Flash notes by Edzis

ActionScript programmer / Flash developer Edgars Simsons on professional stuff

AS3 preloaders made easy in FlashDevelop

with 4 comments

AS3 Preloader in FlashDevelop

Read this article on my new blog

I have migrated my blog to www.edzis.com, please come by to read this post.


Written by edzis

Friday, 16th 2009f January, 2009 at 15:04

4 Responses

Subscribe to comments with RSS.

  1. How does it behave when it comes to passing a variable from HTML code to Main.as ? i.e. when using SWFAddress ?


    Saturday, 17th 2009f January, 2009 at 12:13

  2. This is not like loading another swf who is not in the same ApplicationDomain and SecurityDomain. I have not tested, but I don’t think there should be any problem.

    1) Flashvars can be accessed from any place as long as it has a reference to the stage, also the Main.as as long as the ADDED_TO_STAGE event is caught. And in other situations there is always a possibility to store the flashvars in Preloader.as and in Main.as access them trough the parent property.

    2) SWFAddress does not need to have any connection to the stage whatsoever, the job is done by accessing ststic methods of SWFAddress class. There are no changes required if you are adding the preloader logic to a project.


    Tuesday, 20th 2009f January, 2009 at 09:14

  3. So I tried to add the preloader to my project. I put it in my project directory where my Main class is, and I still get an error saying it doesn’t know what Main is when it is supposed to switch to my document class. I did that thing “-frame start Main” in that spot.. so any ideas on why it’s not working? I’d appreciate your help. Thanks for sharing the preloader by the way. I hope I can use it. :) Thanks


    Thursday, 6th 2009f August, 2009 at 04:04

  4. It is hard for me to debug by not seeing it.
    An idea that I want to chech is maybe you have a different classpath?


    Thursday, 6th 2009f August, 2009 at 09:59

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: