# from AS1,2 to AS3 undefined method/property action frame

**URL:** https://forum.kirupa.com/t/from-as1-2-to-as3-undefined-method-property-action-frame/634551
**Category:** flash
**Created:** [April 27, 2016, 9:57pm UTC](https://forum.kirupa.com/t/from-as1-2-to-as3-undefined-method-property-action-frame/634551 "2016-04-27T21:57:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thegodfather](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@thegodfather](https://forum.kirupa.com/u/thegodfather)
#### Post date: [April 27, 2016, 9:57pm UTC](https://forum.kirupa.com/t/from-as1-2-to-as3-undefined-method-property-action-frame/634551/1 "2016-04-27T21:57:38Z")

</div>

need to convert the AS1 to AS3 it seems easy but it’s not… please help.

errors

frame 1\> Scene 1, Layer ‘Action Layer’, Frame 1, Line 1, Column 1 1120: Access of undefined property url.

> Scene 1, Layer ‘Action Layer’, Frame 1, Line 2, Column 1 1180: Call to a possibly undefined method loadVariablesNum.  
> Scene 1, Layer ‘Action Layer’, Frame 1, Line 2, Column 18 1120: Access of undefined property url.  
> Scene 1, Layer ‘Action Layer’, Frame 1, Line 3, Column 1 1120: Access of undefined property \_root.  
> Scene 1, Layer ‘Action Layer’, Frame 243, Line 1, Column 19 1120: Access of undefined property \_root.

frame1

> url = “xxx”;  
> loadVariablesNum(url + “\_main.html”, 0);  
> \_root.link = 1;  
> stop ();

frame 243

> pages.gotoAndStop(\_root.link);

my best regards.

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [April 28, 2016, 1:46pm UTC](https://forum.kirupa.com/t/from-as1-2-to-as3-undefined-method-property-action-frame/634551/2 "2016-04-28T13:46:52Z")

</div>

Your big problems are that \_root and loadVariableNum no longer exist in AS3. This thread has some information on some of the alternatives:

> **[ActionScript 3 Tip of the Day](https://www.kirupa.com/forum/showthread.php?223798-ActionScript-3-Tip-of-the-Day)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

Search that TOC for the keywords `root` and `loading`. There’s a couple in there about \_root.
