In linkage properties class is clip_mc

2010/4/16 Henrik Andersson <[email protected]>:
> natalia Vikhtinskaya wrote:
>>
>> Maybe I do something wrong?
>>
>> On main timeline in the first frame
>> var countN:int=0;
>> var clip_mc = new clip_mc();
>> addChild(clip_mc);
>>
>>
>> in the firtst frame of clip_mc
>> addEventListener(Event.ADDED,added);
>>
>> function added(e:Event) {
>>  var countN:int=MainTimeline(root).countN;
>>  //trace(countN)
>> }
>>
>> that gives error
>> 1180: Call to a possibly undefined method MainTimeline.
>>
>
> You need to have the class that you are casting to.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to