[Flashcoders] Dynamic Images and the Library

2009-05-01 Thread Karl DeSaulniers
Hello all, Is there a way to get a dynamically loaded image to be inserted into the library of the SWF? For instance. I have an upload form that creates a preview image of what is being uploaded. I want the preview that is created of the image to be the thumbnail of the image once displayed

[Flashcoders] Does anyone know if a Flash Map api exists from microsoft?

2009-05-01 Thread Carl Welch
I'm working on a project for a client that insists that there is a Map API from Microsoft for Flash. I haven't been able to find anything with a google search. Can anyone confirm that such a thing actually exists? I've only been able to find an AJAX solution form msn maps Thanks. -- Car

[Flashcoders] Nested 3D transforms conflicting with interactivity

2009-05-01 Thread Ashim D'Silva
Hi All, I'm having a bit of a problem with nested transforms and interactivity. I have a parent sprite that has 9 children sprites, and the children have listeners for roll over/out. Transforming/animating the parent seems to be absolutely fine; it rotates fine and the children act as expected.

Re: [Flashcoders] Batch wrapping a bunch of FLV files in SWFs

2009-05-01 Thread Karl DeSaulniers
I have had good luck with making markers in my video that I transfer to my FLV and control via actionscript. I could never get my audio and video to match well when I stuffed them in a swf separately before I learned to use FLVs. In AS2 mind you. TMH Karl DeSaulniers Design Drumm http://desig

Re: [Flashcoders] Batch wrapping a bunch of FLV files in SWFs

2009-05-01 Thread Peter B
The accuracy is pretty much dependant on the density of keyframes in your FLV, as you can only seek to a timecode with a keyframe. This though is absolutely accurate. If your FLVs are of any lenght, and if they have audio, you are likely to run into difficulties wrapping them in a SWF. Pete _

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread natalia Vikhtinskaya
Thank you so much!!! That is exactly what I am looking: changeFactor. 2009/5/1 Jack Doyle : > Here's a function that you can feed a start hex color, end hex color, and > however many steps you want, and it'll generate an Array with hex values for > that many steps: > >

RE: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread Jack Doyle
Here's a function that you can feed a start hex color, end hex color, and however many steps you want, and it'll generate an Array with hex values for that many steps: -- function getHexSteps($start:uint, $end:uint, $steps:uint):Array {

RE: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Mendelsohn, Michael
Wow, straight from the source! Cheers Jack! - MM > You could do this: > > var matrix:Matrix = mc.transform.matrix; > > TweenLite.to(matrix, 1, {a:1.5, b:0.2, c:0.2, d:1.5, tx:100, ty:100, > onUpdate:applyMatrix, onUpdateParams:[mc, matrix]}); > > function applyMatrix($mc:DisplayObject, $matrix:M

Re: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Joel Stransky
As with everything else you beat me to it Jack. Congrats on v11! --Joel On May 1, 2009, at 10:04 AM, "Jack Doyle" wrote: You could do this: var matrix:Matrix = mc.transform.matrix; TweenLite.to(matrix, 1, {a:1.5, b:0.2, c:0.2, d:1.5, tx:100, ty:100, onUpdate:applyMatrix, onUpdateParams:[mc,

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread natalia Vikhtinskaya
I am sorry. I did not understand your advice. I am working with AS2. 2009/5/1 Hans Wichman : > Hi, > > mask out the r,g, b and tween them individually. > > eg write a class: > > RGBTween.getRGB (source, dest, 0..1); > > The getRGB should mask out the r,g,b values, calculate the result r,g,b > base

RE: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Jack Doyle
You could do this: var matrix:Matrix = mc.transform.matrix; TweenLite.to(matrix, 1, {a:1.5, b:0.2, c:0.2, d:1.5, tx:100, ty:100, onUpdate:applyMatrix, onUpdateParams:[mc, matrix]}); function applyMatrix($mc:DisplayObject, $matrix:Matrix):void { $mc.transform.matrix = $matrix; //for changes i

[Flashcoders] Window Shade Component for Flex?

2009-05-01 Thread Charles Parcell
Anyone know of a component that does a simple window shade? Window Shade One line of title text that when clicked, reveals a block of content under the title text. Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfi

Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread Hans Wichman
yes you can accomplish that with one loop. On Fri, May 1, 2009 at 6:10 PM, wrote: > > > Is there a better way to write Event Listeners for a large number of > buttons that increment the names by 1? example: > solution_button1.addEventListener(MouseEvent.MOUSE_DOWN, s_btn1_down); > solution_butto

Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread Gregory Boland
Store your buttons in an array then for loop through the array If you have instances of them on stage already and are not creating them dynamically then its a little more work but u could still pass a reference of each button into the array greg On Fri, May 1, 2009 at 12:10 PM, wrote: > > > I

Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread ekameleon
Hello :) 1 - creates a new class to creates your custom buttons and implement the addEventListeners in this class (in the constructor for example) 2 - use the dynamic loop : var down:Function = function( e:MouseEvent ):void { trace( e.type + " : " + e.target ) ; // only one method and use th

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread Hans Wichman
Hi, mask out the r,g, b and tween them individually. eg write a class: RGBTween.getRGB (source, dest, 0..1); The getRGB should mask out the r,g,b values, calculate the result r,g,b based on source, dest and a 0..1 factor and combine the parts into a new rgb value. It will do the trick, but Im

[Flashcoders] Creating for loops for event listeners

2009-05-01 Thread zurie
Is there a better way to write Event Listeners for a large number of buttons that increment the names by 1? example: solution_button1.addEventListener(MouseEvent.MOUSE_DOWN, s_btn1_down); solution_button2.addEventListener(MouseEvent.MOUSE_DOWN, s_btn2_down); solution_button3.addEventListener(Mous

Re: [Flashcoders] Tween a matrix transformation

2009-05-01 Thread Hans Wichman
Hi, there is probably a better way, but one solution is to do: x* state1Matrix + (x-1)*state2Matrix and tween x over 0..1 greetz JC On Fri, May 1, 2009 at 4:31 PM, Mendelsohn, Michael < michael.mendels...@fmglobal.com> wrote: > Hi list... > > I'm trying to think of the best way to tween a sprit

[Flashcoders] Tween a matrix transformation

2009-05-01 Thread Mendelsohn, Michael
Hi list... I'm trying to think of the best way to tween a sprite that's been transformed, with all 6 props of its matrix property having been altered. I use TweenLite a lot...should I write 6 lines of code, one for each matrix property? Any suggestions for the most optimal way to tween a matr

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread natalia Vikhtinskaya
Thank you. Yes this class allows to create gradient. But I need code that allows to have N MovieClips with blend colors from one to another. 2009/5/1 Glen Pike : > Have a look at the Greensock Tween classes - they might help. > > natalia Vikhtinskaya wrote: >> >> Hi to all >> I need dynamically g

RE: [Flashcoders] E4X question

2009-05-01 Thread Mendelsohn, Michael
Thanks for all the responses! I ended up adapting this solution, and I got tripped up on the fact that parent() is a method!! Ugh. - MM take the XMLList that you have and run a for each loop on it looking for a match at the name attribute for each (var element:XML in FloorPlanData.floor){

Re: [Flashcoders] Dynamically generate blend colors

2009-05-01 Thread Glen Pike
Have a look at the Greensock Tween classes - they might help. natalia Vikhtinskaya wrote: Hi to all I need dynamically generate blend colors from one color to another. For example RGB: 1Mc 255 255 255 2? 3? 4? 5? 6? 7 136 114 141 Is there a way to calculate blend colors for 5 steps? Thanks you

[Flashcoders] Dynamically generate blend colors

2009-05-01 Thread natalia Vikhtinskaya
Hi to all I need dynamically generate blend colors from one color to another. For example RGB: 1Mc 255 255 255 2? 3? 4? 5? 6? 7 136 114 141 Is there a way to calculate blend colors for 5 steps? Thanks you for any help or links. ___ Flashcoders mailing li

Re: [Flashcoders] Batch wrapping a bunch of FLV files in SWFs

2009-05-01 Thread Henry Cooke
Not with any great degree of accuracy though, as far as I know? 2009/4/30 Muzak > You know you can control flv's right? > > - Original Message - From: "Henry Cooke" < > aninfinitenumberofmonk...@gmail.com> > To: "Flash Coders List" > Sent: Thursday, April 30, 2009 7:23 PM > Subject: [Fl

Re: [Flashcoders] AS3 Papervision Question

2009-05-01 Thread Glen Pike
Hi, You would probably have to "roll your own" for this: You could make up your own 3D object out of planes and assign different material to each plane. Or render a large bitmap of all your movieclips and use that as a material. Not 100% on this - just a suggestion... Gle