Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorDiane
    • CommentTimeJan 14th 2011
     
    I'm trying to use the Explode Image example on a bitmap heart image that I've converted to a symbol and exported for AS. Where in the code do I identify the heart bitmap.

    Also, how do I start the explosion without a mouse - just when enter a certain frame.

    Thanks much,

    d
    • CommentAuthorRichard
    • CommentTimeJan 18th 2011
     
    You pass the bitmapData property of the image to Particle2DUtils.createRectangleParticlesFromBitmapData. Whenever you want to start the explosion, add the explosion action to the emitter. This can be in an event handler (e.g. the enter frame event handler), a frame script, or any other code.
    • CommentAuthorDiane
    • CommentTimeJan 22nd 2011
     
    Thanks alot