Ok, after 2 and a half solid days researching (books, video tutorials, this site, Senocular’s site, etc) I finally can’t search no more and will simply post my questions here and hope for a response. I have 90% of my code migrated to 3.0 but i still have 2 problems:
-
I still havent figured out how to target an object. Im trying to access an object in my timeline from my .as file and since theres no _root, i tried many of the alternatives with no luck so for now i changed _root to this. Can someone tell me how to use the stage to access the root or even how to use Senocular’s TopLevel.as?
-
In the same .as file (but the 2.0 version) I had many lines where id say:
_root.Main_Mc.textBox.text = myFunction (param1, param2);
As i said i updated _root when migrating so the statement now looks like:
this.Main_Mc.textBox.text = myFunction (param1, param2);
Now in as2.0, the textbox would call the myFunction, pass it what it needs, and then display the return value of the function but now i get: “Error 1180: Call to a possibly undefined method myFunction”. I assume they changed how this works in as 3.0?
If someone, anyone, could shed some light on my issues id be forever grateful. Im about a a lock of hair away from insanity. So I beg of you, please help me out!
Thank you in advance.