Plugin on Flash 10

  • Hi,

    it seems that the plugin tries to access the "stage" object, but this is not available direct after loading,

    before doing anything in a plugin, it should wait for the ADDED_TO_STAGE event,

    e.g.

    best regards,
    Klaus

  • the as3 code


  • Hi,

    all direct "stage" accesses are the problem:

    globe.x = stage.stageWidth/2;
    globe.y = stage.stageHeight/2;
    stage.addEventListener(MouseEvent.MOUSE_DOWN, toggleStroke);
    stage.addEventListener(MouseEvent.MOUSE_UP, toggleStroke);

    here is a modified code that should work: (not tested, have a look for all KRP comments)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!