Variable as movieClip name?
Timeline 10:
I assign the variable "company" a value:
company = ford;
Timeline 20:
I have a button with the following script that needs to access a movieClip called "ford" (also located at timeline number 20):
on (press) {
company.gotoAndPlay(2);
}
The variable doesn't get passed. I have tried tracing it with:
trace(company);
trace(typeof(company));
In both instances I get "undefined" back.
When I insert "company = ford;" directly in the button so it looks like this...
on (press) {
company = ford;
company.gotoAndPlay(2);
}
... it works, and my traces gives me:
_level0.instance1.ford
movieclip
I tried replacing "company = ford;" with "_global.company = ford;" at timeline 10, but still no luck.
Any good ideas on how I can assign "ford" to a variable early on the timeline and then use the variable as a movieClip name later?
Thanks in advance!
:: serviator
How bout a few photoshop secrets
Well, it is obvious from your designs that you are more than proficient with graphics, i.e. the complex backgrounds on most of the sites on your designs. How bout a couple of tips and tricks for those of us that can program the hell out of flash but can draw a stick figure on paper? At atleast some sites to learn from. I mean I have some skills but am far from a PhotoShop or Illustrator/Freehand expert