View Full Version : looking to be able to load all the symbols and code that would make my preloader and
gunner.gwd
08-29-2009, 03:45 AM
Hi All,
I'm sure I'm just going nuts here and can't think straight, but I have a drop down menu and a preloader that I am creating for several websites that I am working on and I was wondering if there was a way I could take and create the preloader and drop down menu one time and then import it to the other sites and modify what I need to modify. Please let me know.
Gunner out
tadster
08-30-2009, 04:42 PM
You could do so if you utilize .as files. Use them as the Document Class or as packages or separate classes, then it gets easy to port code from project to project.
gunner.gwd
08-30-2009, 10:18 PM
Tadster,
I'm sorry if my post wasn't very clear but I am looking to be able to load all the symbols and code that would make my preloader and drop down menu work etc not just the code I want everything.
Gunner out
tadster
09-03-2009, 07:45 AM
this is a late reply, sorry,
but it's possible to take everything around with your .as files as well.
There are multiple ways to do so.
1. You can save all your images/vectors/ect.. in the library of an .fla file.
Then simply change the Document Class of that file as needed.
Referencing only the objects you need for the given project.
2. You can export each image/vector/movie clip/picture...
as either .swf or .gif or .png files.
In an .as file you can embed these files right in with the [Embed...] declaration.
3. You can create a .swc file to hold all your library items.
If you are using a Flex compiler, using a .swc file enables you
to reference library objects as if you were using the Flash IDE:
var myFancy3DDrawing:DisplayObject = new fancy3D();
instead of having to embed them.
4. For maximum portability you'll want to create your pre-loader as one movie clip
or component (holding everything) that can be dropped onto the stage.
If that's what your getting at.
However, my personal way of dealing with dynamics is just to make one file that is programmed to change dramatically via xml.
In your case perhaps color, speed, type of animation, any text, and just about any other variable you wanted could be housed in an xml file.
so when it comes time to use the the file in another site you just change its xml instead of re-compiling it. but then of course an xml file must go with the swf, but its not a bad deal. some food for thought :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.