dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: urgent...pls help on an application...

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    4
    Hi all,
    Please help me onthis one:
    On the click of one button(valve) the water level from a tank should start decreasing and flow upto the second button(valve)
    Now on click of the second button the water level in another tank should start increasing.
    The second condition starts only if the first button is clicked.
    The action script that i have written for that is:
    FOR BUTTON 1:

    on(release){
    flag1=0;
    gotoandplay(1)
    flag1=1
    }

    FOR BUTTON 2:
    on(release){
    if flag1="1"{
    gotoandplay(15) //suppose the increase in water level
    // of tank 2 starts from frame 15.
    }
    }

    **** Now the problem is that-->
    on click of button 1 the playhead shud stop before frame 15.
    but the entire movie runs including the part 2.
    I have given stop() at frame 14 but it persists.

    ***** Also is there a way to synchronise the decrease in water level with the increase in the second tank on click of button 2.

    **** Is there a way i can send the .swf file ?
    Pls include your e-mail addresses if possible so that i can reply back .
    Thanks a million!
    triveni.

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    69
    Hi triveni
    is this what u want??
    http://www.force10x.com/tp/waterflow.swf

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    69
    Please try as much as possible to keep your queries in the boards it self, this way others can get an oppurtunity to learn as well and if there is some one out here who has another way/method to help will contribute to the solution too

    anyways here is the revised version of the file

    http://www.force10x.com/tp/waterflow.swf
    and the .fla is here
    http://www.force10x.com/tp/waterflow.zip
    the "1" and "0" inthe text box is just so that u know whats happening.

    Hope this helps you

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