Re: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread Spike
Yeah, It kinda sucks that Flex Builder doesn't give you introspection of 
the custom components you create.

I guess that's just how it is though.
Spike
JesterXL wrote:
Maybe for dduuggllaa, but not for me. FlexBuilder doesn't show it and that 
is lame for GUI components I created and want to interact with in Flex. 
There must be a way for my SWC's to easily integrate with FB.

- Original Message - 
From: "Spike" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 10:53 AM
Subject: Re: [flexcoders] Still Need Example of Custom Component Built in 
Flash


Depending on what you want to achieve with the component, you can write
it as an ActionScript file and put it in a directory where Flex can find
it. The simplest is to put it in the same directory as the file where
you want to use it.
So say you had the code below saved as CustomPanel.as
You could call it from within an MXML file in the same directory like this:
CustomExample.mxml
***

http://www.macromedia.com/2003/mxml";
xmlns:user="*">




CustomPanel.as
*
import mx.containers.Panel;
class CustomPanel extends Panel {
function CustomPanel() {
super();
}
function resize(newWidth:Number,newHeight:Number) {
width = newWidth;
height = newHeight;
}
}
**
Depending on exactly what you want to do in ActionScript, you may or may
not be able to achieve it without going into Flash Studio and creating a
.swc file.
Does that answer the question?
Spike
JesterXL wrote:
Coding it in Flash isn't hard... it's installing the mofo that I don't 
know
how to do. The docs say you can use an SWC, but where said SWC goes, is
beyond me. I managed to throw one in here:

C:\Program Files\Macromedia\Flex Builder
1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks
ANd it shows up as a "no package" tab when you reboot FlexBuilder, but has
no size when dragged to a form (even though width and height default to
values), nor does it compile, complaining about my classpath or something.
Anyway, that's the key part that's missing I think. DevNet article 
anyone?

- Original Message - 
From: "dduuggllaa" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 9:34 AM
Subject: [flexcoders] Still Need Example of Custom Component Built in 
Flash


Hello,
Would someone be willing to post a simple example of a custom
component built in Flash for use in Flex? The simpler the better. Thanks.
-Douglass Turner



Yahoo! Groups Links




Yahoo! Groups Links





--

Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org



Re: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread Spike
Just re-read the question and realized it was asking about creating 
stuff in Flash rather than specifically ActionScript.

I think Jesse's right and if you're generating .swc files you'll need to 
put them in either /WEB-INF/flex/frameworks or 
/WEB-INF/flex/user_classes. I think the recommendation is to use the 
second of those.

As for creating the .swc itself, you should probably go take a look at 
the following area in the ActionScript documentation:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/3072.html
Spike
JesterXL wrote:
Coding it in Flash isn't hard... it's installing the mofo that I don't know 
how to do. The docs say you can use an SWC, but where said SWC goes, is 
beyond me. I managed to throw one in here:

C:\Program Files\Macromedia\Flex Builder 
1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks

ANd it shows up as a "no package" tab when you reboot FlexBuilder, but has 
no size when dragged to a form (even though width and height default to 
values), nor does it compile, complaining about my classpath or something.

Anyway, that's the key part that's missing I think. DevNet article anyone?
- Original Message - 
From: "dduuggllaa" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 9:34 AM
Subject: [flexcoders] Still Need Example of Custom Component Built in Flash


Hello,
Would someone be willing to post a simple example of a custom
component built in Flash for use in Flex? The simpler the better. Thanks.
-Douglass Turner



Yahoo! Groups Links




Yahoo! Groups Links




--

Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org



Re: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread JesterXL
Maybe for dduuggllaa, but not for me. FlexBuilder doesn't show it and that 
is lame for GUI components I created and want to interact with in Flex. 
There must be a way for my SWC's to easily integrate with FB.

- Original Message - 
From: "Spike" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 10:53 AM
Subject: Re: [flexcoders] Still Need Example of Custom Component Built in 
Flash



Depending on what you want to achieve with the component, you can write
it as an ActionScript file and put it in a directory where Flex can find
it. The simplest is to put it in the same directory as the file where
you want to use it.

So say you had the code below saved as CustomPanel.as

You could call it from within an MXML file in the same directory like this:


CustomExample.mxml
***

http://www.macromedia.com/2003/mxml";
xmlns:user="*">








CustomPanel.as
*
import mx.containers.Panel;

class CustomPanel extends Panel {

function CustomPanel() {
super();
}

function resize(newWidth:Number,newHeight:Number) {
width = newWidth;
height = newHeight;
}
}
**


Depending on exactly what you want to do in ActionScript, you may or may
not be able to achieve it without going into Flash Studio and creating a
.swc file.

Does that answer the question?

Spike

JesterXL wrote:
> Coding it in Flash isn't hard... it's installing the mofo that I don't 
> know
> how to do. The docs say you can use an SWC, but where said SWC goes, is
> beyond me. I managed to throw one in here:
>
> C:\Program Files\Macromedia\Flex Builder
> 1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks
>
> ANd it shows up as a "no package" tab when you reboot FlexBuilder, but has
> no size when dragged to a form (even though width and height default to
> values), nor does it compile, complaining about my classpath or something.
>
> Anyway, that's the key part that's missing I think. DevNet article 
> anyone?
>
> - Original Message - 
> From: "dduuggllaa" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, March 15, 2005 9:34 AM
> Subject: [flexcoders] Still Need Example of Custom Component Built in 
> Flash
>
>
>
>
> Hello,
>
> Would someone be willing to post a simple example of a custom
> component built in Flash for use in Flex? The simpler the better. Thanks.
>
> -Douglass Turner
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

-- 


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org



Yahoo! Groups Links










RE: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread Matt Horn
There's an 80 page document that shows:
- how to build simple components in Flash for use in Flex; 
- instructions on how to compile components into SWCs; 
- where to put SWCs for use in your Flex environment;
- and Much Much More! :)

This document was removed from the Flex 1.0 DevApps book and put up as a
separate document on the Macr website because it details a workflow that
we don't really want to encourage. The process for building and skinning
components made in Flash for use in Flex applications should be
streamlined (again!) for 2.0.
 
Link:
http://download.macromedia.com/pub/documentation/en/flex/15/flex_compone
nts_themes.pdf
 
Also, read the last chapter of the 1.5 DevApps book which provides info
on using the components document for Flex 1.5.

Hope this helps,
 
matt horn
 




From: JesterXL [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 9:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Still Need Example of Custom Component
Built in Flash


Coding it in Flash isn't hard... it's installing the mofo that I
don't know 
how to do. The docs say you can use an SWC, but where said SWC
goes, is 
beyond me. I managed to throw one in here:

C:\Program Files\Macromedia\Flex Builder 
1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks

ANd it shows up as a "no package" tab when you reboot
FlexBuilder, but has 
no size when dragged to a form (even though width and height
default to 
values), nor does it compile, complaining about my classpath or
something.

Anyway, that's the key part that's missing I think. DevNet
article anyone?

- Original Message - 
From: "dduuggllaa" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 9:34 AM
Subject: [flexcoders] Still Need Example of Custom Component
Built in Flash




Hello,

Would someone be willing to post a simple example of a custom
component built in Flash for use in Flex? The simpler the
better. Thanks.

-Douglass Turner







Yahoo! Groups Links








Yahoo! Groups Sponsor   
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=1292td13b/M=298184.6018725.7038619.3001176/
D=groups/S=1705007207:HM/EXP=1110983862/A=2593423/R=0/SIG=11el9gslf/*htt
p://www.netflix.com/Default?mqso=60190075>  

<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=:HM/A=2593423/rand=721672570>   



Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service <http://docs.yahoo.com/info/terms/> . 








Re: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread Spike
Depending on what you want to achieve with the component, you can write 
it as an ActionScript file and put it in a directory where Flex can find 
it. The simplest is to put it in the same directory as the file where 
you want to use it.

So say you had the code below saved as CustomPanel.as
You could call it from within an MXML file in the same directory like this:
CustomExample.mxml
***

http://www.macromedia.com/2003/mxml";
xmlns:user="*">





CustomPanel.as
*
import mx.containers.Panel;
class CustomPanel extends Panel {
function CustomPanel() {
super();
}
function resize(newWidth:Number,newHeight:Number) {
width = newWidth;
height = newHeight;
}
}
**
Depending on exactly what you want to do in ActionScript, you may or may 
not be able to achieve it without going into Flash Studio and creating a 
.swc file.

Does that answer the question?
Spike
JesterXL wrote:
Coding it in Flash isn't hard... it's installing the mofo that I don't know 
how to do. The docs say you can use an SWC, but where said SWC goes, is 
beyond me. I managed to throw one in here:

C:\Program Files\Macromedia\Flex Builder 
1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks

ANd it shows up as a "no package" tab when you reboot FlexBuilder, but has 
no size when dragged to a form (even though width and height default to 
values), nor does it compile, complaining about my classpath or something.

Anyway, that's the key part that's missing I think. DevNet article anyone?
- Original Message - 
From: "dduuggllaa" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 9:34 AM
Subject: [flexcoders] Still Need Example of Custom Component Built in Flash


Hello,
Would someone be willing to post a simple example of a custom
component built in Flash for use in Flex? The simpler the better. Thanks.
-Douglass Turner



Yahoo! Groups Links




Yahoo! Groups Links




--

Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org



Re: [flexcoders] Still Need Example of Custom Component Built in Flash

2005-03-15 Thread JesterXL
Coding it in Flash isn't hard... it's installing the mofo that I don't know 
how to do. The docs say you can use an SWC, but where said SWC goes, is 
beyond me. I managed to throw one in here:

C:\Program Files\Macromedia\Flex Builder 
1.5\Configuration\Objects\MXML\WEB-INF\flex\frameworks

ANd it shows up as a "no package" tab when you reboot FlexBuilder, but has 
no size when dragged to a form (even though width and height default to 
values), nor does it compile, complaining about my classpath or something.

Anyway, that's the key part that's missing I think. DevNet article anyone?

- Original Message - 
From: "dduuggllaa" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 15, 2005 9:34 AM
Subject: [flexcoders] Still Need Example of Custom Component Built in Flash




Hello,

Would someone be willing to post a simple example of a custom
component built in Flash for use in Flex? The simpler the better. Thanks.

-Douglass Turner







Yahoo! Groups Links