User Tag List

Results 1 to 10 of 10

Thread: Checking each object with a loop without object name

  1. #1
    No Products Registered

    Join Date
    Nov 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Checking each object with a loop without object name

    Hi all, I hope you can help.

    I am looking to have many active objects that I will manually add to the frame, this is because each one will have a different number on them and/or image. I am giving each object an alterable string name (the same name as the image shows, I'm doing this through the properties panel) I have added an 'Edit box' to the frame too.

    What I would like to do is have an object highlight when I type the name of the objects alterable string in the edit box area. How can I get a loop to check each object for its alterable string and compare it to the text box whenever I type into the edit box (without having a submit button).

    At the moment I have the edit box checking each object manually, once the object count increases this won't really be a feasible way to do this.

    Thanking you in advance.

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    You can achieve this better with ForEach loops. I've just whipped together an example for you.
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Nov 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Thank you for your very quick response, I have had a look at the example you have given, this is a great example, however, the actives that you creating are on each run of the application, the version I am creating has to already have the objects added to the frame, so for example I have object "say a triangle", then another object "say a circle", then another "a square". On each one of these objects I have given a unique alterable string of the same object. I want to add them to the stage before the application is run for a reason.

    I hope this makes sense.

    Kind regards

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Yes of course, just group all the objects into a qualifier and run the loop over the qualifier...

  5. #5
    No Products Registered

    Join Date
    Nov 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm really sorry I'm really new to Clickteam fusion 2.5, how do I do that?

  6. #6
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    No problem. On every object you want this to apply to, select its properties, click on the 'Events' tab, where it says 'Qualifiers', click 'Edit' then 'Add' and select a qualifier. Do the same qualifier for all the objects that you want to include in the search. Then in the events (as per example) just replace all the events (and the foreach loop) with the qualifier under events.

    Putting objects into a qualifier means you can 'group' objects together and just do 'events' for that qualifier which will affect all objects under that qualifier. It saves you having to write events for each separate object.

  7. #7
    No Products Registered

    Join Date
    Nov 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent, thank you. So the qualifier can be any one of those, it is just asking to use one as a reference?

    Thank you so much for your help. Things are starting to make a little more sense with Fusion 2.5 now. Keeping an eye for your tutorials too.

  8. #8
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Yes, these are purely for visual representation so you can assign any object to any qualifier. An object can also be included in as many qualifying groups as you want. It's very handy when running over multiple different objects to narrow objects out based on certain conditions.

  9. #9
    No Products Registered

    Join Date
    Nov 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much for the help, it worked perfectly.

  10. #10
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Excellent! Glad you got it sorted. Best of luck with your Fusion developments!

Similar Threads

  1. Trouble checking a value in the same loop
    By Janette5 in forum Fusion 2.5
    Replies: 2
    Last Post: 30th December 2014, 05:40 PM
  2. Checking object into zone!
    By crayzorechos in forum Fusion 2.5
    Replies: 1
    Last Post: 9th May 2014, 11:37 PM
  3. Checking and comparing values of an object.
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th May 2009, 10:47 PM
  4. 3 KEYS an d 3 LOCKS(checking if an object is used)
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th May 2009, 09:19 AM
  5. Distance Checking for Each Object Separately.
    By ogu in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th October 2008, 05:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •