Sometime project is small. And all I need is attach some movie clip
from a library. It was not a problem control it in AS2. It looks AS3
nothing can do with small task.

2010/9/10 Merrill, Jason <jason.merr...@bankofamerica.com>:
> Also, you should typecast your variables if you aren't.  So instead of:
>
> theVideo=new videoPanel();
>
> do:
>
> var theVideo:videoPanel = new videoPanel();
>
> perhaps Flash is choking because it doesn't know what type theVideo is.
>
> Also, minor unrelated point, but 99.9% of Flash developers start class names 
> in UpperCase, not lowerCase as a convention.
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our 
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America associates)
>
>
>
>
>
>
> -----Original Message-----
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
> Sent: Friday, September 10, 2010 10:45 AM
> To: Flash Coders List
> Subject: RE: [Flashcoders] Get function problem
>
> Not sure that's true, but never tried.  If you're moving to classes, you 
> should consider moving code off the timeline.  Add your movie clip to a 
> document class - call the function in there.  I think people who try and do a 
> hybrid mix of timeline and class coding are only asking for headaches.  Pick 
> one or the other if you can.
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our 
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America associates)
>
>
>
>
>
>
> -----Original Message-----
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia 
> Vikhtinskaya
> Sent: Friday, September 10, 2010 10:04 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Get function problem
>
> I found that AS3 does not allow tocall function from timeline if this 
> function is inside MovieClip placed on the stage. Is there any other way to 
> do that?
>
> 2010/9/10 Merrill, Jason <jason.merr...@bankofamerica.com>:
>> Maybe because you declared your function as "statVideo" in the class
>> and you're trying to call "startVideo" from the timeline.  If that was
>> just a typo in your e-mail, and not the case in your project, then be
>> sure your function is declared public. Other than that, you've done it
>> right so must be something else you've done in your setup we don't know 
>> about.
>>
>>
>>
>> Jason Merrill
>>
>> Instructional Technology Architect
>> Bank of America   Global Learning
>>
>> Join the Bank of America Flash Platform Community  and visit our
>> Instructional Technology Design Blog
>> (Note: these resources are only available for Bank of America
>> associates)
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: flashcoders-boun...@chattyfig.figleaf.com
>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
>> natalia Vikhtinskaya
>> Sent: Friday, September 10, 2010 5:17 AM
>> To: Flash Coders List
>> Subject: [Flashcoders] Get function problem
>>
>> AS3. I have linked mc with name videoPanel in library. This mc has
>> function statVideo() on his own timeline frame;
>>
>> Then on main timeline I have code
>> theVideo=new videoPanel();
>> panelItem.addChild(theVideo);
>> and I want to play function startVideo, so
>>
>> theVideo.startVideo();
>>
>> but that gives me error
>> TypeError: Error #1006: startVideo is not a function.
>> I can get any variables in theVideo but I can not get function. How to
>> solve this problem in this situation?
>>
>> Thanks in advance.
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to