View Full Version : Link MovieClip to individual *.as files
Bracer
07-31-2008, 05:58 PM
Each instance of the movieclip is linked to a particular class.
By Doing so, the *.fla file can contain no actionscript at all, with all the controlling within the *.as file
Does this quote makes sense in the AS3 world ?
xxneon
07-31-2008, 06:10 PM
sounds like its talking about having your flash app completely controlled by actionscript class files that are linked to movieclip symbols that reside in the fla library.. by doing this ... you should not need to put any actionscript on the fla timeline .. since all the code that is needed is in the .as class files.. at least thats how i read that quote as..
Bracer
07-31-2008, 06:17 PM
It sure does sound that way mate.
Do you know how to go about doing that ?
xxneon
07-31-2008, 06:25 PM
well you write a class file .. and then in your library you can goto the linkage properties of the symbol .. and then assign it a class name.. and the class name would be the full name of the class package path + class name..
if you dont know what i mean .. then you might want to research abit on how to make as3 custom classes..
but anyway once you have the custom class linked to the movieclip you are free to drop instances of the symbols on the stage .. or you can use the Document class option to create a class file that would be associated to the main timeline so that you can use actionscript to add instances of the symbols to the stage too..
Bracer
07-31-2008, 06:37 PM
I understand what you mean xxneon, thanks
CyanBlue
08-03-2008, 08:16 PM
Please do not delete the thread... People learn from other people...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.