Flash Lite Friday - Tip of the Day #1
September 8th, 2007 by Scott JanousekThis is a new initative I am starting … where I post a piece of code or tip every Friday in regards to Flash Lite (1.1, 2.x, 3.x) or Flash Mobile.
Feel free to comment on these postings, if you have a different way of doing something, or have something related you’d like to share.
The code is completely free. Just please bare in mind that code may be rough, and really it’s just to get a point across and not much else … just an FYI!
Here is a Flash Lite 1.1 tip for this Friday.

In Flash Lite 1.1, in order to target a movieclip you are currently inside you can specify it by an empty string: “”.
Remember, there is no such thing as the ‘this’ keyword in Flash Lite 1.1 (it’s Flash 4 style syntax). So if you’re targetting Flash Lite 1.1 for a game to maximize the number of devices it will run across, then you’ll be using this syntax.
For example, you’ll use this in conjunction with duplicateMovieClip( target ); or unloadMovie( target ); to trash/remove a clip you currently inside (say for a game or other application).
[ActionScript]
/* either of these statements below will remove the movieclip you are
currently inside (say if these were in a enemy sprite movieclip). */
removeMovieClip( “” );
//– OR:
unloadMovie( “” );
[/ActionScript]
I have a quick example of this provided in the .zip file attached below.
Download:
Print This Post



September 8th, 2007 at 7:40 pm
[...] Scott) – Scott Janousek started a new great initiative: Flash Lite Friday - Tip of the [...]
September 9th, 2007 at 4:47 pm
[...] Flash Lite Friday, tip of the day #001 [...]
September 9th, 2007 at 4:49 pm
Great initiative!
Blocketpc support it, we’ll post a new entry about it all fridays
[...]Scott ha comenzado una magnífica iniciativa, sobre todo viniendo de un experto desarrollador Flash Lite como él.[...]
September 24th, 2007 at 8:04 am
[...] Flash Lite Friday - Tip of the Day #1 [...]