is it possible that by using one button to control two flash?
?? If i got the question right…you can’t.
?? If i got the question right…you can.
how? i mean…these are two different windows. But if he means two different flash in one window then yeah, sure, it’s possible.
go ahead guys, impress me =)
?? If I got the question right…
http://www.macromedia.com/support/flash/action_scripts/local_connection_objects/
You can control two seperate Flash objects with a button from one of the Flash objects?? I suppose you could do it with PHP - is that what you mean?
Why would you use PHP (I don’t even know if it’s possible, I guess it is) when you can use the LocalConnection object!? :-\
I didn’t know about the LocalConnection object until I posted and read your link. Couldn’t you use PHP to send a variable out from one to be picked up by the other? (Which of course now is using a cannon to swat a fly)
Maybe… but you’d have to check for the variable constantly, since Flash will not receive a notification when you change the variable from the other movie.
I don’t know, don’t listen to me. I’m just guessing here.
Hey, meeee to! It’s just the first thing that poped into my head because I’ve been working on a login script in PHP where Flash sends out a var and then gets it back in a loop. So, there you go, you would need a loop. Like I said, get the cannon!!
what i trying to say is that for instance when i press a play button then A.swf will be played and at the same time it will load B.swf. But when i press the pause button in A.swf it will be pause but however B.swf will continue to play. so i am asking that how i can control two swf files using one button. is it possible to do it by using actionscript or what?
Ohhh!!! Load the two swf’s into a main movie in seperate movieClips and then, with the press of a button, tell them to stop() and/or play(). If you don’t know how to loadMovies into a movieCilp, visit here:
load movie A.swf into a movieClip called ‘movieA’;
load movie B.swf into a movieClip called ‘movieB’;
Then, just say you want A to keep playing and P to pause, make a button (could be anywhere I believe) and give it these actions:
[AS]
on(release){
_root.movieB.stop();
}
//then to have it start playing again - on a different button
on(release){
_root.movieB.play();
}
[/AS]
Right?
ok get it. thanks alot.