Hi I have a container sprite in my movie and I add a list to it.
ActionScript Code:
[FONT=Courier New][LEFT]clipListBox=[COLOR=#000000]**new**[/COLOR] [COLOR=#0000FF]List[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
Container.[COLOR=#000080]addChild[/COLOR][COLOR=#000000]([/COLOR]clipListBox[COLOR=#000000])[/COLOR];
loadClipData[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
[/FONT]
I’m having trouble accessing the properties of the list using this code
ActionScript Code:
[FONT=Courier New][LEFT]Container[COLOR=#000000][[/COLOR]clipListBox[COLOR=#000000]][/COLOR].[COLOR=#000080]addItem[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]{[/COLOR]label:d,[COLOR=#0000FF]data[/COLOR]:s[COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
[/FONT]
I get an error saying
“Error #1069: Property [object List] not found on flash.display.Sprite and there is no default value.”
I dont really under stand the error because “Container” is a Sprite?
Im still trying to get used the the difference between attachMovieClip in as2 and drilling down into clips and the equivalents in as3.
Thanks,
dub