|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Member
Join Date: Apr 2009
Posts: 10
|
AS3 dynamic call to MC - need help with Target Path
I'm working on the basics of building a Flash website. For navigation, I have several buttons in a MC (nav) that when clicked make the proper page visible and hide the current page. I've used clever naming to access the page MC's dynamically. Here's my code:
Actionscript Code:
It works fine. But I need to store all the pages into an MC. So here's that code: Actionscript Code:
Except Flash doesn't like my last 2 lines of code. (Error #1010: A term is undefined and has no properties.) So how do I reference the page instance name dynamically and add a target path to it that flash will accept? It must retain this structure: Scene 1 |--AS located here |--nav | |--nav buttons |--pages | |--pages mc's thanks for the help |
|
|
|
|
|
#2 |
|
SitePoint Member
Join Date: Apr 2009
Posts: 10
|
I figure it:
Actionscript Code:
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 03:36.







Hybrid Mode
