Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
Thnx a million ! J Muzak wrote: This should work, but should probably build in a few more "checks" in the loop. Like check if there's a bitmap in the currently editted movieclip in the specified frame. What this does is: - loop through the items in the library - check if current item is a mov

RE: [Flashcoders] UK freelance flash opportunities

2009-02-10 Thread Paul Steven
Thanks Allan, I have sent off my CV TO Major Players so hopefully something will come of it. Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt bik-elliott (thefieldcomic.com) Sent: 09 Feb

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread ali drongo
Thanks for your responses guys. I'm still stuck on this and I have been playing around a lot. I can get the number from the decimal format to the hex string but when I try to convert it to a hex number the colour is incorrect. Any advice much much appreciated, this is taking up lots of time. Thank

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread Juan Pablo Califano
The problem seems to be here: var hexNum:Number = parseInt(c, 16); You're asking parseInt to convert a string to an integer and telling it the string is an hexadecimal representation, when it's decimal, according to this line: trace("string colour:"+c); // e.g. for red: 16711680 So try, hexNu

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread Muzak
Maybe this will help? http://muzakdeezign.com/flex3/flex3lib/ColorUtil.zip //docs http://muzakdeezign.com/flex3/flex3lib/docs/com/muzakdeezign/flex/utils/ColorUtil.html regards, Muzak - Original Message - From: "ali drongo" To: "Flash Coders List" Sent: Monday, February 09, 2009 6:2

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread Sidney de Koning
Hi Ali, If you need to switch between different number systems, you can also try this: var myUint:uint = 0xff; // this is the colour red trace (myUint.toString(16)); //will trace ff -- in hexadecimal system; trace (myUint.toString(2)); //will trace -- in

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread ali drongo
Thanks everyone, Juan, you solved the final part of the puzzle and Muzak thanks for your utility class it's very useful. Cheers again! Ali On Tue, Feb 10, 2009 at 1:13 PM, Muzak wrote: > Maybe this will help? > http://muzakdeezign.com/flex3/flex3lib/ColorUtil.zip > > //docs > > http://muzakdeezi

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
Muzak and others, everything worked fine, but now i am struggling with movieclips and different frames on their timeline containing 1 png. I followed your described logic. 1. go trhrough lib items. 2. Check if it is a movieclip. 3. For framecount of the timeline, do a loop. 4. For each frame ge

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Muzak
This one threw me off a bit :) You have to move the timeline playhead for traceBitmap to work. When you enter edit mode, you automatically end up in the first frame, so that's why traceBitmap works for the first frame, and not the others. So, loop through the number of frames, set "timeline.cur

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread Taka Kojima
I usually don't use parseInt for this purpose I usually just cast it as a uint. i.e. uint(c); would work as well. glad you figured it out. - Taka On Tue, Feb 10, 2009 at 5:54 AM, ali drongo wrote: > Thanks everyone, Juan, you solved the final part of the puzzle and Muzak > thanks for your ut

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
> This one threw me off a bit :) Tell me about it, it did my head in all day.. > When you enter edit mode, you automatically end up in the first frame, That explains why, although looping through the frames, it was always only the first one to be converted before the error was thrown. I will gi