Flash Lite Friday – Tip of the Day #1

September 8th, 2007 by Scott Janousek
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading ... Loading ...

This 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.

Flash Lite Friday - Tip of the Day #1

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:

  • flftotd_0001.zip
  • 4 Responses to “Flash Lite Friday – Tip of the Day #1”

    1. .byte-sm’s blog - Leonardo Risuleo » Flash Lite Friday - Tip of the Day #1 Says:

      [...] Scott) – Scott Janousek started a new great initiative: Flash Lite Friday – Tip of the [...]

    2. BlocketPc | Desarrollo Flash Lite sobre Symbian y Windows Mobile Says:

      [...] Flash Lite Friday, tip of the day #001 [...]

    3. Marcos Says:

      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.[...]

    4. Flash Lite For Mobile Game Developers » Blog Archive » Flash Lite Friday, tip of the day Says:

      [...] Flash Lite Friday – Tip of the Day #1 [...]

    Leave a Reply