开发者

Problem Flash8 lable

开发者 https://www.devze.com 2023-02-26 04:17 出处:网络
I have a problem: I am using Flash 8. I have a label. I gave a name to label this as myLabel. code in the actionscript I need access to perform this label

I have a problem: I am using Flash 8. I have a label. I gave a name to label this as myLabel. code in the actionscript I need access to perform this label scrolling text: I try but with _ro开发者_开发问答ot.myLabel.scroll _root.myLabel always udefined. Why? I'm trying this code in a complex template that I downloaded. Thanks


Try just "myLabel". This really matters when we figure out WHERE your actionscript is.

It sounds like you're possibly creating a scroller. Here's a tutorial from Adobe on how to do it in Flash 8 and Actionscript 3. Flash 8 / AS 2 permeates bad coding-practices by having you place actionscript on specific object-instances (textfields, movieclips, etc.) without really telling you what you're doing. It's like asking you to visually program in OOP without the foundation of WHY and HOW.

If you can, it'd be better for you to use Actionscript 3, document-level classes, OOP, etc.

Where is your actionscript? Is it in a frame at the top of your timeline? If you HAVE to use AS 2, or Flash 8, then put all your actionscript in a locked layer at the top of your timeline.

0

精彩评论

暂无评论...
验证码 换一张
取 消