Link to home
Create AccountLog in
Avatar of petelab2
petelab2

asked on

How to Load and Play SWFs in sequence in AS3

I find an example of how to Load and Play SWFs in sequence for AS2.... can someone show example code how to do this in Actionscript 3 from an array using XML data?

Thank you
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Avatar of petelab2
petelab2

ASKER

Well I'm certainly impressed by the rapid response! Thanks

(I also need a tutorial on google searching!)

1. Running this script throws the errors shown in the attached code... and

2. It doesn't address loading from XML data.

Thank you again for the quick reply!





Load next swf 
ready to call eFrame
1
1
Load next swf 
ready to call eFrame
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at loadtest_fla::MainTimeline/eFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Forgot to attach the source file with that script...

CyanBlue
SequentialLoad.zip
Please disregard the 1009 error in the previous comment.... it was something in one of the files in the sequence.

So the script you found solves part of my question...the sequence loading !

Now about the XML loading...?

Thanks
Thank you for the very quick and useful replies!
Super fast reply to my inquiry!