For anyone else using FlashDevelop only, hope this helps...

I work in FlashDevelop since I only have Flash 8 and here's how I get
movieclips into FD.

The makebutton.swf has a movieclip "redBox" with another animated mc
inside it called "bluebutton"
makebutton.swf is exported, not as swc, and then embedded.

[Embed(source="makebutton.swf", symbol="redBox")]
private var redbox:Class;

private var redboxmc:MovieClip = new redbox();

Now FD can reference blueButton that is inside redBox.

redboxmc.stop();
redboxmc.blueButton.stop();
redboxmc.blueButton.addEventListener(MouseEvent.MOUSE_OVER,
blueButton_mouseOverHandler);

This was part of a Papervision tutorial somewhere and works of course
in Away. Using Flash 8 I can't have any code in the MCs so I don't
know how it would otherwise if it had functions.




On Nov 9, 9:51 am, colouredfunk <[email protected]> wrote:
> Wow I've just switched to FD for compiling, it's sooooooo much faster
> than CS4!
>
> Cheers guys :)
>
> On Oct 30, 10:37 am, colouredfunk <[email protected]> wrote:
>
>
>
> > so isflashdevelopfast at compiling than CS4? I'm currently waiting
> > about 1min each time!!!! Feels like forever!
>
> > On Oct 29, 11:11 pm, delfeld <[email protected]> wrote:
>
> > > Here is what I don't understand:
>
> > > "link it with the class myClass1"
> > > How are you doing this?  Is this in the "Properties" of the movieclip
> > > you created?
>
> > > "in flashdevelop in main.as instantiate a myClass object"
> > > What is myClass?  Do you mean  a myClass1 object?
>
> > > "link your mc1movieclip with the class MC1"
> > > How are you doing this?
>
> > > "and in base class you put myClass1 everything is allright."
> > > I assume you mean the same base class as before, right?
>
> > > "i didn't try to export a swc that had a document class attached"
> > > What do you mean by this?  Do you mean extending the Stage with a
> > > class in the "Properties" window, using the "Class:" textbox?
>
> > > On Oct 29, 1:48 pm, claudiul25 <[email protected]> wrote:
>
> > > > no. here's what you do
>
> > > > create mc1 a movieclip and link it with the class myClass1 which has
> > > > lots of functions and varaiables
> > > > inside mc1 drop textfields and movieclips , whatever.
>
> > > > then export the swc.
>
> > > > in flashdevelop in main.as instantiate a myClass object and add it to
> > > > stage. you'll find that you can't see nothing and can't acces the
> > > > inside textfields and movieclips.
>
> > > > but if you link your mc1movieclip with the class MC1(doesn't exist)
> > > > and in base class you put myClass1 everything is allright.
>
> > > > p.s i didn't try to export a swc that had a document class attached, i
> > > > red somewhere that you can't ... or that is not indicated- Hide quoted 
> > > > text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to