Your example makes no sense to me: I don't know what TestClass is, I
don't know why you think that you can declare a variable then not
instantiate it and expect to have it show up, and so on.  You might
have to find someone else to help you.

For me, I need your examples to be very clear.  If you write down
every step taken, and then name of the locations where you are
entering/changing names or references, then that would be easier.  Or,
if you answer the questions I posted, that would be easier.  Or, post
the code and your FLA file somewhere.

Putting it simply, your descriptions have not described the task
sufficiently.



On Oct 31, 7:01 am, claudiul25 <[email protected]> wrote:
> i've built your example and it works. when i publish the swc it
> doesn't trace me nothing, because the constructor isn't called.
>
> but let's say you have a MC1 symbol on the scene named "alfa". add
> this variable in the MainClass like this "public var alfa:MC1" then
> publish again
>
> in main.as, write this :
>
> var scene:TestClass = new TestClass()
> addChild(scene)
> trace(scene.alfa)
>
> it traces null
>
> why?

Reply via email to