Skip navigation
Currently Being Moderated

problem to import my file swf in my librairy

Jun 8, 2012 8:24 AM

Hi,

 

 

I have a probleme. I am using flash cs5

and I created a file called : animation.swf (his weight is 880 ko)

 

My goal is to create a loading barr for my file (animation.swf)

but when I want to import my file animation.swf in my library

it doesn t work.

 

Someone could explain me why it is not working?

 

thanks in advance

 
Replies
  • kglad
    62,236 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 8, 2012 9:48 AM   in reply to marie5510

    actionscript in an imported swf is not expected to work.

     

    in addition, you should not be importing your swf, especially if you want to display its load progress.  you should be loading animation.swf using the loader class:

     

    var loader:Loader=new Loader();

    loader.load(new URLRequest("animation.swf"));

    addChild(loader);

     
    |
    Mark as:
  • kglad
    62,236 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 8, 2012 12:04 PM   in reply to marie5510

    you should see an error if animation.swf is not in the correct directory.  do you?

     

    otherwise, use the trace() function to confirm chargerImage is being called.  if it is, use a complete listener to confirm loading completes.  if it does chargeur is probably covered by something you added to the display list after adding it.  you can use addChild(chargeur) in your complete listener to remedy after confirming by adding a trace to animation.swf.

     
    |
    Mark as:
  • kglad
    62,236 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 8, 2012 10:14 PM   in reply to marie5510

    that's an unrelated or additional error.  click file>publish settings>swf and tick "permit debugging" to find the line of code that's trying to reference a non-existant object.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points