[Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
Hi all, I'm trying to duplicate a clip and I'm getting a type mismatch error. Undoubtedly it's something silly but I'm not getting anywhere fast. I have a flash movie with a .as file attached. In the .as file, I want to copy a movie clip. Inside the _customerArt array are two MovieClips

Re: [Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
Hi all, I'm looking into this further and although I don't have a solution - I have a bit more info. The following code creates a duplicate of my movie clip: *var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip,

Re: [Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
It does nothing. I don't see what you suggested differently to what I was already doing? The asterix in my code was my email client's way of demonstrating bold. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search

[Flashcoders] Window component depth problem.

2006-04-04 Thread David Farrell
Hi all, I've had this problem a few times now and I'm not sure what I'm doing wrong. I have a Flash movie that attaches a .as defined MovieClip in the first frame of the timeline. In my MovieClip class, I attach a background image movie and a couple of buttons and whatnot - basically building

[Flashcoders] Any way to set properties of a Window component's contentPath?

2006-04-02 Thread David Farrell
Hi all, I created a movie that accepts a string and an array. The string defines a message and the array defines button options. I want this button generator to sit inside the Window component so that I can fire up modal dialogue boxes when I need them. The way I wrote my movie was such

Re: [Flashcoders] Any way to set properties of a Window component's contentPath?

2006-04-02 Thread David Farrell
Also, I can't see how to access my object once it is the content of the Window. ie.. I create a window with DialogueButtons as the contentPath This creates the window as hoped - now I want to call a few methods on my class to create the buttons - but how do I access the content (my

Re: [Flashcoders] Any way to set properties of a Window component's contentPath?

2006-04-02 Thread David Farrell
My problem ended up being the default scope of objects / vars not being public. Adding 'public' in front of 'var' fixed the issue. Thanks for your help. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

[Flashcoders] Strange depth issue with Window component

2006-04-02 Thread David Farrell
Hi all (again), I create a window with the following code: _popUp = PopUpManager.createPopUp(_root, Window, true, { title:Error, contentPath:DialogueBox}); (_popUp is defined but not instanciated at the very top of my class.) When I create this, it is not visible and it does not have

Re: [Flashcoders] Help with MovieClipLoader

2006-03-28 Thread David Farrell
When movieLoader loads a clip, once it has finished, all the properties of that clip are reset to default values. This includes on events This is how I deal with the issue: createEmptyMovieClip(_cancelOrder, getNextHighestDepth()); loader.loadClip(buttonCancelOrder.gif,