Code Monkey home page Code Monkey logo

Comments (8)

ninjabonsai avatar ninjabonsai commented on May 22, 2024

i've found not necessarily several instances. just disposing a single instance throws the error.

from starling-framework.

PrimaryFeather avatar PrimaryFeather commented on May 22, 2024

You're right, this is part of the same issue!

from starling-framework.

Heliumhorror avatar Heliumhorror commented on May 22, 2024

I have exactly the same problem and it's really an issue since I desperately try to switch between different kinds of particle effects for which I need a new instance starling but it keeps throwing errors :(

from starling-framework.

PrimaryFeather avatar PrimaryFeather commented on May 22, 2024

As a quick workaround, simply remove all event handlers that are added to mStage and mStage3D in the Starling constructor! That should completely dispose Starling.

from starling-framework.

ninjabonsai avatar ninjabonsai commented on May 22, 2024

awesome! that worked. thanks m8

On 12/11/11 20:56 PM, Daniel Sperl wrote:

As a quick workaround, simply remove all event handlers that are added to mStage and mStage3D in the Starling constructor! That should completely dispose Starling.


Reply to this email directly or view it on GitHub:
#50 (comment)

from starling-framework.

PrimaryFeather avatar PrimaryFeather commented on May 22, 2024

The dispose method now correctly releases all resources and event handlers.

Now, it even works to have 2 Starling instances simultaneously, side by side, in one Flash player. Just create each Starling instance with another Stage3D object and separate viewports.

from starling-framework.

Heliumhorror avatar Heliumhorror commented on May 22, 2024

Thanks a lot...I was already thinking about switching to another Framework because of this. Now I'm happy! :)

from starling-framework.

PrimaryFeather avatar PrimaryFeather commented on May 22, 2024

Then I'm really glad I finally found the time to fix it -- sorry for the delay!
:-)

from starling-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.