Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Listener+gotoAndPlay

Listener+gotoAndPlay

2004-03-10       - By IsK

 Back
Reply:     1     2     3     4     5     6     7     8     9  

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)