Re: [flexcoders] Re: problems embedding symbols from Flash

2009-06-04 Thread grimmwerks
Thanks - it turns out I was doing something not too swift at all --  
think it was just not compiling for as2 or some idiocy.



On May 27, 2009, at 1:37 AM, Rohit Sharma wrote:




Will this help?

   http://jessewarden.com/2006/08/flash-9-button-in-flex-2.html

I use flash movieclip symbols in flex by linking to an external AS  
class and provide the symbol functionality in that class only.


Regards,
Rohit

On Tue, May 26, 2009 at 11:05 PM, a.scavarelli  
 wrote:



Is the symbol "exported for actionscript" in it's properties? And if  
so is the name "amp_ok"? or is it something like "someclass.amp_ok"?


I could not ever figure out how to link a symbol to an external as  
class and use it's extended functionality in Flex. I ended up just  
creating a component with all the external as within teh script tags.


Hopefully it's an easy fix like this for you :)



--- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>
> Frustrated.
>
> I've got tried this with an AS3 version and currently with a Flash
> player 8 version... but am trying to embed a class within a  
component

> like so:
>
> [Bindable]
> [Embed(source="buttonStates/multistate8.swf", symbol="amp_ok")];
> private var tmp:Class;
>
> I get "Metadata requires an associated definition"
>
> The component is on the same level of buttonStates, so it's not a  
path

> issue; when I've attempted to test the flash file with a Button and
> using symbol as skins, it works no problem...\
>
> Thoughts?
>









Re: [flexcoders] Re: problems embedding symbols from Flash

2009-05-26 Thread Rohit Sharma
Will this help?

   http://jessewarden.com/2006/08/flash-9-button-in-flex-2.html

I use flash movieclip symbols in flex by linking to an external AS class and
provide the symbol functionality in that class only.

Regards,
Rohit

On Tue, May 26, 2009 at 11:05 PM, a.scavarelli wrote:

>
>
> Is the symbol "exported for actionscript" in it's properties? And if so is
> the name "amp_ok"? or is it something like "someclass.amp_ok"?
>
> I could not ever figure out how to link a symbol to an external as class
> and use it's extended functionality in Flex. I ended up just creating a
> component with all the external as within teh script tags.
>
> Hopefully it's an easy fix like this for you :)
>
>
> --- In flexcoders@yahoogroups.com ,
> grimmwerks  wrote:
> >
> > Frustrated.
> >
> > I've got tried this with an AS3 version and currently with a Flash
> > player 8 version... but am trying to embed a class within a component
> > like so:
> >
> > [Bindable]
> > [Embed(source="buttonStates/multistate8.swf", symbol="amp_ok")];
> > private var tmp:Class;
> >
> > I get "Metadata requires an associated definition"
> >
> > The component is on the same level of buttonStates, so it's not a path
> > issue; when I've attempted to test the flash file with a Button and
> > using symbol as skins, it works no problem...\
> >
> > Thoughts?
> >
>
>  
>


[flexcoders] Re: problems embedding symbols from Flash

2009-05-26 Thread a.scavarelli
Is the symbol "exported for actionscript" in it's properties? And if so is the 
name "amp_ok"? or is it something like "someclass.amp_ok"? 

I could not ever figure out how to link a symbol to an external as class and 
use it's extended functionality in Flex. I ended up just creating a component 
with all the external as within teh script tags.

Hopefully it's an easy fix like this for you :)


--- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>
> Frustrated.
> 
> I've got tried this with an AS3 version and currently with a Flash  
> player 8 version... but am trying to embed a class within a component  
> like so:
> 
> [Bindable]
> [Embed(source="buttonStates/multistate8.swf", symbol="amp_ok")];
> private var tmp:Class;
> 
> I get "Metadata requires an associated definition"
> 
> The component is on the same level of buttonStates, so it's not a path  
> issue; when I've attempted to test the flash file with a Button and  
> using symbol as skins, it works no problem...\
> 
> Thoughts?
>