Re: [Flashcoders] Flash8 Question
You can name you boutons a gneric name: btn_0, btn_1, btn_2, etc then you have a loop: for( i = 0; i < buttonNumber; i ++){ var mc:MovieClip = this["btn_" + i]; mc.onhoverMC do something with it } this code is in the buttons container. L Ibrahim Y a écrit : Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto <[EMAIL PROTECTED]> wrote: laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( "0xff" ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Root casting as Main big problem
hm...the MovieClip( root ) help to compile with no error. But then trying to acces a method of the root throw an error about: TypeError: Error #1010: Un terme n'est pas défini et n'a pas de propriété. term undefined...it can't find the object referenced so I casted the object I'm trying to acces from root: import org.lf.PreLoader; trace(PreLoader( MovieClip( root ).pl )); trace(PreLoader( MovieClip( root ).pl ).lxl); var mc:MovieClip = MovieClip( root ).pl.lxl; if( MovieClip( root ).ready[ mc ] ){ mc.launch(); }else{ MovieClip( root ).ready[ mc ] = true; } and the trace return null for the first one and then throw an error because it can't find anything. Do I have to make a swc ?? thx L laurent a écrit : Thanks for the precise answer, I got the book, will have a look tom and try the MovieClip workaround. Now I will bang my head on sweeter stuff ;) thx L jonathan howe a écrit : I think you might be able to get around this by using a swc, which can be checked for classes by the complier without actually including it in the swf. Do you have Moock's Essential Actionscript 3.0? Chapter 31 details the various ways you can do it, all based on which authoring tool you're using. A little much for me to repeat in email. -jonathan On Fri, Mar 28, 2008 at 11:10 AM, laurent <[EMAIL PROTECTED]> wrote: Hi, It's very urgent, try to make it clear: I have one MovieClip index.swf, with a Main.as class attch to it. In this class I define properties and method, of course :) And I load external movieclip, one name content.swf in this content swf I need to talk with rootand I cast it with Main( root ).myproperty The problem when I publish this mc is looking for the Main class and check if element are there, for exemple some linked moviclip, but they are in the index library. so I can copy all needed asset in the content library, and perhaps it will fixe it but I will have all content duplicated...so is there a workaround ?? Thanks for any urgent help! ;) L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto <[EMAIL PROTECTED]> wrote: > laurent wrote: > > If I remember right you must create a Color object for your mac, then > > use color method setRGB to change the mc's tint to the hexadecimal you > > want: > > > > var c:Color = new Color( yourMC ); > > c.setRGB( "0xff" ); > > > > L > > > > > > Ibrahim Y a écrit : > >> Hello folks, > >> I have the following case, > >> I have a lot of movie clips, they have a lot of effect separately (i.e. > >> each movieclip has it's own effect on hover, on press ...etc) most > >> effect > >> implemented in design not in code. > >> what I want to ask about, most movie clips have on hover effect that > >> change > >> it's color to orange, is there a way in code that can change this > >> property > >> to red for example instead change this effect for each movie clip. > >> > >> Thanks. > >> Ibrahim > Color class is deprecated, you should use ColorTransform and Tranform > classes > > ex: > > var myTransform : Transform = new Transform(myMc); > var myColor : ColorTransform = new ColorTransform(); > myColor.rgb = 0x262626; > > //apply the color > myMc.colorTransform = myColor; > > -- > Pedro Taranto > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] L'index indiqué sort des limites....something like, index out of range or out of limit
laurent wrote: What does it means ? I add a movieClip to another one using addChildAt. I specify the level 10 to keep some space if I want to easily add another mc between 0 and 10. But perhpas I must add a child to next highest depth that there's always a displayObject at any depth between 0 an 10. Or is it coming from something else ? thx L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders in AS3 you cant have spaces between depths, only in as2 http://www.emanueleferonato.com/2008/03/29/understanding-howas3-manages-depths/ -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] L'index indiqué sort des limites....some thing like, index out of range or out of limit
What does it means ? I add a movieClip to another one using addChildAt. I specify the level 10 to keep some space if I want to easily add another mc between 0 and 10. But perhpas I must add a child to next highest depth that there's always a displayObject at any depth between 0 an 10. Or is it coming from something else ? thx L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question - contrast transform
laurent wrote: Hm...I should play with colors again. How do we change the contrast or brightness of a color ? using HSV ?? or is there a straight way using colorTransformin AS3 or AS2. thx L you should apply some BitmapFilter -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question - contrast transform
Hm...I should play with colors again. How do we change the contrast or brightness of a color ? using HSV ?? or is there a straight way using colorTransformin AS3 or AS2. thx L Pedro Taranto a écrit : laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( "0xff" ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( "0xff" ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( "0xff" ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash8 Question
Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to take screenshot of sites , as seen on snap.com
Hi, I'm using http://browsershots.org and it's a splendid service really. Regards, Ain Tohvri Flashbit LLC On 30 Mar 2008, at 16:59, "Digg Yeah" <[EMAIL PROTECTED]> wrote: Not sure if this is the right place to ask this, but can anybody share a pointer to how snap.com capture sceenshot of sites? Any help would be much appreciated. Thank you for your time. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to take screenshot of sites , as seen on snap.com
Not sure if this is the right place to ask this, but can anybody share a pointer to how snap.com capture sceenshot of sites? Any help would be much appreciated. Thank you for your time. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders