Problem Flash8 lable

51 Views Asked by At

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 _root.myLabel.scroll _root.myLabel always udefined. Why? I'm trying this code in a complex template that I downloaded. Thanks

1

There are 1 best solutions below

4
Dominic Tancredi On

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.