[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-09 Thread daddyo_buckeye
The migration isn't so painful once you really get your head around 
concepts in Flex.

Thanks to everyone for their replies to this initial post. I posted 
on the actionscript.org forum at the same time, and got some very 
helpful advice from a user named Sly_cardinal. 

I thought I would post it here for the benefit of all.

One additional note: after I figured out how to get at the clips 
within a SWF, I wanted to populate an array with a list of those 
clips. Then I can call them with a function to apply a color from a 
colorpicker. 

The code uses SWFloader to load "kj_complete.swf" then parses the 
individual parts of the artwork (a basketball uniform, BTW) into an 
array. The 'change' method on the ColorPicker control calls the 
function to apply color to an individual part.

The artwork was created in Illustrator, then all objects were 
converted to symbols, imported into Flash CS3 and placed on the stage.

I'm thinking I can skip the step of placing the artwork on the stage 
with additional AS code, but I just needed to get this working.

Sorry, but I can't post the actual artwork (non-disclosure agreement) 
but I thought everyone could benefit from the code.

Here's my code:


http://www.adobe.com/2006/mxml";
creationComplete="creationCompleteHandler(event)">














RE: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-05 Thread Alex Harui
Not only do you need to use CS3, but you have to publish for player9
using Actionscript3

 

When you've done that, then when you load the SWF, after the "complete"
event, swfLoader.content will be the root of the movie.  If you had some
script in the movie that did myButton.scaleX = 10, you would just write

 

swfLoader.content.myButton.scaleX = 10;

 

Note that if you have stuff showing up and going away using the
timeline, you need to know what frame you are on otherwise you'll get
null reference errors if the object isn't around at the moment you
access it.  Swfloader.content is a MovieClip (if it isn't your publish
settings are off) and its currentFrame will tell you where the main
timeline of that SWF is.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of daddyo_buckeye
Sent: Friday, July 04, 2008 5:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to access properties of symbols in loaded
SWF?

 

Alex,

I can't find any concrete examples on the 'net of users getting at 
symbols and changing attributes of those symbols using 
SWFLoader.content. Seems like most are using it to simply check if 
the content is loaded.

Any further, more specific tips, are greatly appreciated.

BTW, everything is created in CS3(Illustrator & Flash).

Sherm

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If the SWF is published for player 9, then you can get to it via
> swfLoader.content (or image.content). If it is published for an 
earlier
> player, then you'd need an intermediate SWF that uses 
localConnection to
> communicate between the main SWF and your SWF. You can check out 
third
> party solutions
> 
> 

 



[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-04 Thread Tim Hoff

Hi Sherm,

Since you're using Flash CS3, I'd recommend that you use the Flex
Component Kit for Flash CS3.  This will allow you to export a Flash
movie as a SWC, and interact with it as if it was a Flex Component. 
Here's a couple of links that might be helpful:

http://blog.halcyonsolutions.net/2007/06/30/flex_flash_integration_resou\
rces/


http://jessewarden.com/2007/04/example-for-flex-component-kit-for-flash-\
cs3.html


-TH

--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]>
wrote:
>
> Alex,
>
> I can't find any concrete examples on the 'net of users getting at
> symbols and changing attributes of those symbols using
> SWFLoader.content. Seems like most are using it to simply check if
> the content is loaded.
>
> Any further, more specific tips, are greatly appreciated.
>
> BTW, everything is created in CS3(Illustrator & Flash).
>
> Sherm
>
> --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> >
> > If the SWF is published for player 9, then you can get to it via
> > swfLoader.content (or image.content). If it is published for an
> earlier
> > player, then you'd need an intermediate SWF that uses
> localConnection to
> > communicate between the main SWF and your SWF. You can check out
> third
> > party solutions
> >
> >
>




[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-04 Thread daddyo_buckeye
Thanks for the reply. 

I really don't need much beyond changing the color of a symbol in 
position in its parent SWF, don't really need an Illustrator tool 
(I've already spent the money on the REAL Illustrator!!).

I have worked with this same project in SVG before, so I was 
exploring Degrafa, but I think in my case it complicates things.

Thanks for the suggestion, tho.

--- In flexcoders@yahoogroups.com, "scalenine" <[EMAIL PROTECTED]> wrote:
>
> Actually, you could translate the artwork you created in 
Illustrator to Degrafa Path data 
> and make a full Illustrator-like authoring tool. Here's some simple 
examples:
> 
> http://samples.degrafa.com/BindingSample/BindingSample.html
> 
> http://samples.degrafa.com/CapacityIndicator/CapacityIndicator.html
> 
> If you're just looking to change colors in static artwork then 
maybe the SWF route may be 
> be more suitable. 
> 
> --- In flexcoders@yahoogroups.com, "daddyo_buckeye"  
wrote:
> >
> > Upon further review...
> > 
> > Looks like the only thing Degrafa offers (in my case) is to use 
CSS
> > styling on my artwork. 
> > 
> > I don't need Flex or the AS3 drawing capabilities to create any
> > artwork, all the (fairly complex) art is already done in 
Illustrator.
> > 
> > I may include Degrafa for other parts of the app, tho...
> > 
> > Thanks again.
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Flex Frenzy  wrote:
> > >
> > > Correct me if I'm wrong, but wouldn't Degrafa be the best tool 
for that?
> >
>




[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-04 Thread daddyo_buckeye
Alex,

I can't find any concrete examples on the 'net of users getting at 
symbols and changing attributes of those symbols using 
SWFLoader.content. Seems like most are using it to simply check if 
the content is loaded.

Any further, more specific tips, are greatly appreciated.

BTW, everything is created in CS3(Illustrator & Flash).

Sherm

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If the SWF is published for player 9, then you can get to it via
> swfLoader.content (or image.content).  If it is published for an 
earlier
> player, then you'd need an intermediate SWF that uses 
localConnection to
> communicate between the main SWF and your SWF.  You can check out 
third
> party solutions
> 
>  



Re: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-04 Thread Abdul Razack
Hello Tom,
This is Abdul Razack i have seen ur mail really its very
useful for me . Thank you so much to help me know i can learn flex easily in
good way. once again thank you tom. if i need help in subject i can ask u
tom.


On Mon, Jun 30, 2008 at 8:12 PM, Tom Chiverton <[EMAIL PROTECTED]>
wrote:

> On Monday 30 Jun 2008, Abdul Razack wrote:
> > Hello iam a beginer in flex i want to develope website in flex 2 like
> html.
> > could u tell me the procdure to develope web site in flex 2
>
> http://adobe.com/go/flex
>
> --
> Tom Chiverton
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
> list of members is available for inspection at the registered office. Any
> reference to a partner in relation to Halliwells LLP means a member of
> Halliwells LLP.  Regulated by The Solicitors Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged.  If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents.  If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
Sunny Bhai ka Mail hai Tikh se Padeye warna apne health ke liya tikh nahi
hoga

Abdul Razack
Web Designer and Developer
Contact No : 9391180165


[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-03 Thread scalenine
Actually, you could translate the artwork you created in Illustrator to Degrafa 
Path data 
and make a full Illustrator-like authoring tool. Here's some simple examples:

http://samples.degrafa.com/BindingSample/BindingSample.html

http://samples.degrafa.com/CapacityIndicator/CapacityIndicator.html

If you're just looking to change colors in static artwork then maybe the SWF 
route may be 
be more suitable. 

--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]> wrote:
>
> Upon further review...
> 
> Looks like the only thing Degrafa offers (in my case) is to use CSS
> styling on my artwork. 
> 
> I don't need Flex or the AS3 drawing capabilities to create any
> artwork, all the (fairly complex) art is already done in Illustrator.
> 
> I may include Degrafa for other parts of the app, tho...
> 
> Thanks again.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Flex Frenzy  wrote:
> >
> > Correct me if I'm wrong, but wouldn't Degrafa be the best tool for that?
>





[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-02 Thread daddyo_buckeye
Upon further review...

Looks like the only thing Degrafa offers (in my case) is to use CSS
styling on my artwork. 

I don't need Flex or the AS3 drawing capabilities to create any
artwork, all the (fairly complex) art is already done in Illustrator.

I may include Degrafa for other parts of the app, tho...

Thanks again.




--- In flexcoders@yahoogroups.com, Flex Frenzy <[EMAIL PROTECTED]> wrote:
>
> Correct me if I'm wrong, but wouldn't Degrafa be the best tool for that?



[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-02 Thread daddyo_buckeye
I was looking at Degrafa because of its support for SVG. The art 
library I'm working on was previously published in SVG. Of course, 
Adobe is pulling the plug on their SVG viewer so I get to do the entire 
project in AS3.

I'll check it out. thanks.

--- In flexcoders@yahoogroups.com, Flex Frenzy <[EMAIL PROTECTED]> wrote:
>
> Correct me if I'm wrong, but wouldn't Degrafa be the best tool for 
that?




[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-02 Thread daddyo_buckeye
I'll look into this. thanks.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If the SWF is published for player 9, then you can get to it via
> swfLoader.content (or image.content).  If it is published for an 
earlier
> player, then you'd need an intermediate SWF that uses localConnection 
to
> communicate between the main SWF and your SWF.  You can check out 
third
> party solutions



Re: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread Flex Frenzy

Correct me if I'm wrong, but wouldn't Degrafa be the best tool for that?

from ScaleNine.com/blog:
"Degrafa is not Adobe, but every project I work on gets Degrafa added  
to it. Why? Because bitmaps and static vector artwork can only go so  
far. I make 80-90% of my skins in Degrafa. This allows me to open up  
any properties of the graphics to CSS, which means one Degrafa Button  
skin to create an infinite number of variations versus making separate  
graphics for each variation. There’s things I can do with Degrafa that  
I can’t with bitmap or static vector graphics and with the the things  
planned for Degrafa Beta 3, it’s a no brainer."

On Jun 29, 2008, at 8:46 PM, daddyo_buckeye wrote:


Okay, let me re-phrase the question.

I have vector artwork created in Illustrator, imported into Flash as
symbols, and exported for actionscript. All the artwork is in a single
SWF file.

I can load the entire SWF, and I can load an individual symbol from
that SWF, but I'm trying to figure out if I can access and manipulate
the properties of the individual symbols.

Based on what I've found on the net, it appears that I'll have to load
each individual symbol and position them manually to access the
properties.

Any direction is greatly appreciated.







RE: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread Alex Harui
If the SWF is published for player 9, then you can get to it via
swfLoader.content (or image.content).  If it is published for an earlier
player, then you'd need an intermediate SWF that uses localConnection to
communicate between the main SWF and your SWF.  You can check out third
party solutions

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of daddyo_buckeye
Sent: Sunday, June 29, 2008 8:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to access properties of symbols in loaded
SWF?

 

Okay, let me re-phrase the question.

I have vector artwork created in Illustrator, imported into Flash as 
symbols, and exported for actionscript. All the artwork is in a single 
SWF file.

I can load the entire SWF, and I can load an individual symbol from 
that SWF, but I'm trying to figure out if I can access and manipulate 
the properties of the individual symbols.

Based on what I've found on the net, it appears that I'll have to load 
each individual symbol and position them manually to access the 
properties.

Any direction is greatly appreciated.

 



RE: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread Alex Harui
Please do not hijack threads.  If you have a new question start a new
post

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Razack
Sent: Monday, June 30, 2008 3:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to access properties of symbols in
loaded SWF?

 

Hello iam a beginer in flex i want to develope website in flex 2 like
html. could u tell me the procdure to develope web site in flex 2

On Sun, Jun 29, 2008 at 11:05 PM, daddyo_buckeye
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:

Okay, let me put this another way: it appears that I can load an SWF 
and then instantiate each symbol in that SWF, and then load each symbol 
to the 'stage' (or whatever it's called in Flex) separately.

I can certainly instantiate each symbol separately, and then align it 
on stage, but it seems to me to be bass-ackward to do it that way, 
expecially since I created the original SWF with everything in position.

Is there no way to access the attributes of the individual symbols 
within an SWF without separately instantiating them?




-- 
Sunny Bhai ka Mail hai Tikh se Padeye warna apne health ke liya tikh
nahi hoga

Abdul Razack
Web Designer and Developer
Contact No : 9391180165

 



Re: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread Tom Chiverton
On Monday 30 Jun 2008, Abdul Razack wrote:
> Hello iam a beginer in flex i want to develope website in flex 2 like html.
> could u tell me the procdure to develope web site in flex 2

http://adobe.com/go/flex

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread Abdul Razack
Hello iam a beginer in flex i want to develope website in flex 2 like html.
could u tell me the procdure to develope web site in flex 2

On Sun, Jun 29, 2008 at 11:05 PM, daddyo_buckeye <
[EMAIL PROTECTED]> wrote:

>   Okay, let me put this another way: it appears that I can load an SWF
> and then instantiate each symbol in that SWF, and then load each symbol
> to the 'stage' (or whatever it's called in Flex) separately.
>
> I can certainly instantiate each symbol separately, and then align it
> on stage, but it seems to me to be bass-ackward to do it that way,
> expecially since I created the original SWF with everything in position.
>
> Is there no way to access the attributes of the individual symbols
> within an SWF without separately instantiating them?
>
>  
>



-- 
Sunny Bhai ka Mail hai Tikh se Padeye warna apne health ke liya tikh nahi
hoga

Abdul Razack
Web Designer and Developer
Contact No : 9391180165


[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread daddyo_buckeye
Okay, let me re-phrase the question.

I have vector artwork created in Illustrator, imported into Flash as 
symbols, and exported for actionscript. All the artwork is in a single 
SWF file.

I can load the entire SWF, and I can load an individual symbol from 
that SWF, but I'm trying to figure out if I can access and manipulate 
the properties of the individual symbols.

Based on what I've found on the net, it appears that I'll have to load 
each individual symbol and position them manually to access the  
properties.

Any direction is greatly appreciated.



[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-06-30 Thread daddyo_buckeye
Okay, let me put this another way: it appears that I can load an SWF 
and then instantiate each symbol in that SWF, and then load each symbol 
to the 'stage' (or whatever it's called in Flex) separately.

I can certainly instantiate each symbol separately, and then align it 
on stage, but it seems to me to be bass-ackward to do it that way, 
expecially since I created the original SWF with everything in position.

Is there no way to access the attributes of the individual symbols 
within an SWF without separately instantiating them?