kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

Array.prototype #189

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new prototype on Array: Array.prototype.myFunction = function(){}
2. Create a new Scene3D

What is the expected output? What do you see instead?
There should be nothing happening, but an error is thrown by Away3D. This does 
not happen on other types (MovieClip, String, etc). The error occures in 
"away3d.core.session::AbstractSession/clearChildSessions()", where for some odd 
reason the newly created protoype function appears to be have been passed into 
the sessions array.

What version of the product are you using? On what operating system?
Away3D 3.6.0
Flash CS4, AS3
Windows 7

Please provide any additional information below.
The full error is:
TypeError: Error #1034: Type Coercion failed: cannot convert Function-67 to 
away3d.core.session.AbstractSession.
    at away3d.core.session::AbstractSession/clearChildSessions()
    at away3d.core.base::Object3D/set ownSession()
    at away3d.core.base::Object3D/set ownCanvas()
    at away3d.core.base::Object3D()
    at away3d.core.base::Mesh()
    at away3d.containers::ObjectContainer3D()
    at away3d.containers::Scene3D()

Original issue reported on code.google.com by emronisan@gmail.com on 27 Jun 2011 at 7:28