Listener+gotoAndPlay 2004-03-10 - By IsK
Back Hi Andreas, It's a kids 'secret agent' game. I want it to listen for a sequence of letter/numbers whilst the rest of the game plays. On the stage I have a movie clip and on hearing them sequentially it should move from frame to frame, within its movie clip with the final frame launching the browser.
So I put a listener on each frame then the getURL on the last. The stop(); worked in that it no longer opens 12 browsers per second. But now it the browser just opens even though the other keys haven't been pressed.
I tried adding a stop to each frame, but that was not the answer. I have posted a mock-up of the .fla if you have a moment I would appreciate you taking a look and perhaps giving me some insight. www.isk67.com/test/test.fla
Thanks in advance IsK
-- -- Original Message -- -- From: "Andreas Weber" <webweber@(protected)> To: <flashnewbie@(protected)> Sent: Thursday, March 11, 2004 12:29 AM Subject: RE: [Flashnewbie] Listener+gotoAndPlay
> On the sixth frame put this code > > stop(); > getURL("http://www.google.com","_blank"); > > If the 6-frame timeline does not have a stop anywhere it will jump right > back to frame 1 and play again. > With a framerate of 25 fps the playhead will reach frame 6 about 4 times per > second, thus opening 4 browser windows per second. > > Sorry, still don't understand how the key-Listener fits in here and it > confuses me a bit that you say > > ...the last listener... > > You have only one listener - the event it is listening for (the pressing of > 'i') can be dispatched many times though. > > If above code does not solve it yet - what happens if the user presses 'i'? > > -- ---- ------ > Andreas Weber > motiondraw.com > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Supported by Fig Leaf Software > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Lower Prices for Certified Training! Check out new lower prices for > Certified Macromedia Training from Fig Leaf Software. Expand your > skill set with courses in ColdFusion, Flash, Rich Internet > Applications and .NET in the new year. Fig Leaf Software provides > the highest caliber instruction at our training centers in Washington > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > your location. > > Get the details at http://training.figleaf.com/ > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > For additional commands, e-mail: flashnewbie-help@(protected) > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|