Skip navigation
Grootlicht
Currently Being Moderated

CS6 loader Class event won't fire on Complete

Jun 19, 2012 7:20 AM

Tags: #flash #bug #complete #event #loader #cs6

I opened an existing Flash CS5 project in Flash CS6. All works fine exept for loading external SWF files. After some experimenting it seems the loader class doesn't fire on the event.COMPLETE:

 

myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHan dler);

 

It just freezes. Did anybody else experience this kind of problems?

 

regards,

Ivo van de Grift

 
Replies
  • kglad
    72,212 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 19, 2012 7:52 AM   in reply to Grootlicht

    that's always possible if loading starts before you add your listener.

     

    if you don't think that's the problem, copy and paste your loading code.

     
    |
    Mark as:
  • kglad
    72,212 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 20, 2012 6:32 AM   in reply to Grootlicht

    upload your project to a server and post a link to the embedding html.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 10:29 PM   in reply to Grootlicht

    Hi,

     

    Did reinstalling Flash CS6 resolve your issue? Please let me know.

     

    Regards,

    Suhas Yogin

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 12:58 AM   in reply to Grootlicht

    It seems you did a mistake .

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 8:35 PM   in reply to Grootlicht

    Hi ,

     

    Can you share the project or just the code snippet with us so that we could investigate and get back to you on this.

     

    Ideally what you are doing is correct -

     

    We need to call Loader.contentLoaderInfo.addEventListener(Event.COMPLETE , function(event:Event):void

     

    I tried this with a small snippet in Flash CS6 and it got called as expected.

     

    var url:String = "http://www.helpexamples.com/flash/images/image2.jpg";

    var urlRequest:URLRequest = new URLRequest(url);

    var loader:Loader = new Loader();

    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_complete);

    loader.load(urlRequest);

    addChild(loader);

     

    function loader_complete(evt:Event):void {

        var target_mc:Loader = evt.currentTarget.loader as Loader;

        target_mc.x = (stage.stageWidth - target_mc.width) / 2;

        target_mc.y = (stage.stageHeight - target_mc.height) / 2;

    }

    The situation when the COMPLETE event wouldn't be called is when we give an incorrect urlRequest.

     

    Thanks and regards,

    Sudeshna Sarkar

    Adobe Flash Professional Team.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 12:26 AM   in reply to sudeshna sarkar

    Hi Sudeshna,

    i have the same problem mentioned in this post.

     

    I have one project that imports external SWF on CS5 Working , and the same project on CS6 giving the error mentioned when click to load the external SWF. (working on CS5)

     

     

    VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.

     

    ReferenceError: Error #1065: Variable _11f1d66f38eb234da07a684678bb07c1e6cff9d15441f91af33073b7534701e8_fla sh_display_Sprite is not defined.

     

     

     

    Thanks for the attention,

    Gonçalo Miguel

    Portimão

    Portugal

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 12:43 AM   in reply to Grootlicht

    Thanks a lot Grootlicht !

     

    Correct and Helpfull.

     

    (Consider a bug?)

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 1:06 AM   in reply to Grootlicht

    You should be able to import SWF published from CS5 on your CS6 project. That´s for sure.

    But thanks you found an workaround.

    GM

     
    |
    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