PDA

View Full Version : Actionscript and dynamic objects



UrbaNomad
April 28th, 2003, 11:42 AM
Hello all... I'm new to the forums and to Flash.
Just have a Flash MX question. Is it possible to pipe in XML and dynamically create objects using actionscript?
In the instance sense. Can I have a library object and create many instances of it dynamically using actionscript that reads incoming XML?
Also, I know it is possible to drive animation with actionscript. Once the object is created, can I give it complex behavior? Does actionscript have classes or is it much simpler than that?
One more Q... can you create a path in actionscript similar to the motion path Flash MX can make?
Thanks all.
:bandit:

liam
April 28th, 2003, 12:06 PM
urba -

try reading some of the tutorials on this site, it's full of ones that pertain to your questions.

if you don't find a tutorial that helps you, then search the forums for your question first, just in case its already been asked.

that said, check out the following tutorial pages about XML and Flash:

http://www.kirupa.com/developer/actionscript/scripting.htm

Look at the attached file for a cool way to get a movie clip to follow an actionscripted bezier curve.

UrbaNomad
May 1st, 2003, 04:39 PM
Hmmm I can't figure out how to make that attachment do anything.

kdzines
May 1st, 2003, 06:00 PM
**** Liam,

That's cool! The code is well complicated, i want to do something far simpler using this path scenario.

Any clues as to where i can find more info on the subject?

UrbaNomad
May 1st, 2003, 06:03 PM
Oh god... ok I am a retard. I just figured out I have to export it to see it work.
Thank you Liam that is definately the sort of thing I was looking for I will analyze all this code for my own implementations!
Is there a way to see ActionScript's effect without exporting to a movie?

kdzines
May 1st, 2003, 06:10 PM
press ctrl + Enter to see movie (automatically exports into same folder as the fla).

Or hit the Control button in flash > Test Movie

Simple!