A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: come in one at a time instead of all on the same button click?

  1. #1
    Flashdunce
    Join Date
    Jun 2010
    Location
    durham, england
    Posts
    9

    come in one at a time instead of all on the same button click?

    Hi

    I have recently upgraded to FlashCS5, but i am still working in Actionscript2. i am just wondering if anyone can help me with a simple problem i am having.

    I have a simple document, and on a button click i have several different things that appear, i am wondering though if i can get them to come in one at a time, instead of all together, but still clicking on the same button.

    Again, i know this is a really simple problem, but i am stuck!

    Help greatly appreciated!

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Yes, you simply separate the actions. If you want this image to load first, then you produce the code that loads and display that image. When that is complete, then it calls the second function which performs the next action, maybe load sounds. When that is complete then it loads the third action and so on.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Flashdunce
    Join Date
    Jun 2010
    Location
    durham, england
    Posts
    9
    hi, sorry i have not been online for a while so have just came across this response, thanks for your help

    i am still having trouble, i think the problem is, all of my functions will be the same, for example by clicking on one button, i would like 3 seperate images to appear, but one at a time, so click 1=image 1, click 2=image 2 and so on, but at the minute they all just keep coming on together, how do you mean, seperate the actions? i have them all as seperate on (release) actions but it doesn't seem to help.

    Sorry to go on and on, and thanks for reading!

  4. #4
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    You can use a variables to determine which image should be displayed at the next click. Although the function is exactly the same, this variable would separate who has the focus.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center