First, you need a loadComplete function in your icMain class to get called after the swf is loaded. You set up that relationship already in this line: indexLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); so you need this: private function loadComplete(event:Event):void { } then, move these functions into the loadComplete function as you have to wait until
Personally, I think you need a totally different approach. This is too awkward and clumsy an arrangement. Consider one of the slide-show type extensions from PVII - http://www.projectseven.com/ -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http
> So now you need positioning to place the 2nd thumb where it would normally go had it followed the flow of the layout. No, you don't. Floating the <a> tags would work too. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com -
You cannot type object's property. So the line OBJ["ball"+i]:Ball = new Ball(); is incorrect Correct line is: OBJ["ball"+i] = new Ball(); Also, a more efficient code would be (for two reasons: you type your object to Ball and reuse the same variable): public class Test extends Sprite { public function Test () { var OBJ:Object = new Object(); var prop:Ball;
In message <a7d99e47-954a-4216-9d9c-89feb6c45cd3@v3g2000hsc.googlegroups.com>, James Lampard wrote: On 21 Feb, 15:12, Tony Moore <old_coas...@yahoo.co.uk> wrote: On 21 Feb 2008, James Lampard <dontreplytot...@mailinator.com> wrote: On 20 Feb, 20:29, Tony Moore <old_coas...@yahoo.co.uk> wrote: [snip] !Monopoly.Resources.Data.Sprites contains four