PDA

View Full Version : Game Development: Loading the External .swfs in game



nnn123
September 8th, 2007, 03:37 AM
Hi,

I am new to Flash Programming & developing games in Flash.

Sometimes I found that people using separate flash files & then making call to it.

How it can be useful in game development & how can I make call to different flash files in my game?

Please guide if it can be helpful anyway in improving game performance.

Thanks in Advance.

fw2803
September 8th, 2007, 05:24 AM
Well... I don't think it can improve game performance. However, it can prevent you from messing your own work as you can sort the files and manage the files neat and tidily so you will have a clear sense of what you are doing.

zellers
September 12th, 2007, 11:08 PM
No, as said above, it won't help improve performance, in fact, I find it decreases it slightly (maybe my imagination) But, the basic way to load a movie is




_root.createEmptyMovieClip("placeholder_mc",_root.getNextHighestDepth());
_root.placeholder_mc.loadMovie("path2movie.swf");



You could also make a loader for it, which would be similar to your pre-loader, if you have one.

nnn123
September 13th, 2007, 12:52 AM
Thanks a lot. I will try this.

zellers
September 20th, 2007, 10:18 PM
Did it work for you?