[Flashcoders] Path/Point interpolator

2010-10-27 Thread Jiri
to say. Could someone give me a hint on how to tackle this. Much appreciated. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Path/Point interpolator

2010-10-27 Thread Jiri heitlager
Thanks, I will study it. It does seem to be a bit more than I am hoping for :) 2010/10/27 Patrick Matte patrick.ma...@tbwachiat.com I think this could help you http://senocular.com/flash/actionscript/files/ActionScript_3.0/com/senocular /drawing/Path.as From: Jiri jiriheitla

Re: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-15 Thread Jiri
fontStyle regular fontTypeembedded length 4 So although regsitering two fonts to the Font class, it shows 4 Font instances in the embeddedFonts?? Anybody has another take? Jiri On 14-09-10 22:39, Keith Reinfeld wrote

[Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-14 Thread Jiri
Hello, i am really getting headache from Embedded font stuff in as3 and would like some help. I embedded the fonts by using the Embed tag: code [Embed( source='../../../../../fonts/myriad pro/MyriadPro-Bold.otf', fontName='MyriadProFont', unicodeRange='U+0010-U+00FC',

[Flashcoders] Question FP10 inactive event dispatched when not visible.

2010-08-17 Thread Jiri
'. Does somebody know if that is done, or could point me to an article describing this behaviour Regards, Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
{ addValue = -1 } buffer+=addValue if(buffer treshold) { buffer = treshold; }else if(buffer -treshold) { buffer = -treshold; }else if(buffer == 0) adjustQuality() } Cheers, Jiri

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
is below 30. I wanted to prevent this and make the profiling a bit better. Not toggle all the time, but just wait a bit before doing the call. So it is not so much about the execution based on EnterFrame but more on how to write the function a bit cleaner. Jiri On 13-08-10 10:29, Henrik

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
better. Not toggle all the time, but just wait a bit before doing the call. So it is not so much about the execution based on EnterFrame but more on how to write the function a bit cleaner. Jiri On 13-08-10 10:29, Henrik Andersson wrote: I use a different event than what you are most likely

Re: [Flashcoders] const inside function

2010-08-06 Thread Jiri
Ok, thanks. Yes that makes sense. I was thinking that it might be a slight enhancement to speed up execution time of a function. Jiri On 05-08-10 19:20, Juan Pablo Califano wrote: The difference is that the reference is constant, meaning you cannot change it. You can't do this: const

[Flashcoders] const inside function

2010-08-05 Thread Jiri
] + my_var } } What is the difference compared to this: function doSomething():void{ var my_var:String = my_var var buffer:String = ''; for(var i:int = 0 ; ilist.length ; i++){ buffer += list[i] + my_var } } Regards, Jiri

[Flashcoders] Question on variable init in a for loop

2010-08-04 Thread Jiri
' is not resetted to null on every iteration as I would expect. I have to explicitly set the id to null myself! Does some know why this is, or are my expectations just wrong. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

[Flashcoders] colorpallete pngencoder

2010-06-15 Thread Jiri
Hello, i am using the PNGEncoder to create png's.Does someone know how and if it is possible to set the colorpalette of the bitmap data, before encoding it into a png? Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

[Flashcoders] JSFL question on shapes and strokes.

2010-06-01 Thread Jiri
Hello, I am trying to convert some drawings on stage into a movieclip via jsfl. It works when all the elements on stage are separatly grouped. JSFL doesnt seem to 'see' non grouped drawings as seperate entities. To clearify, I have on frame on the main timeline. In this frame I have three

[Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri
Does someone know how to distribute a n number of sprite of a top half circumference of a cicrle. I have this, but cant figure out the offset. function plot():void { var totalNumbers:int = 5; var slice:Number = ( 180 / totalNumbers ); var p:Point; for (var

Re: [Flashcoders] Distribute evenly over half a circle

2010-03-23 Thread Jiri
tnx Erik. Jiri On 23/03/2010 16:33, Mattheis, Erik (MIN - WSW) wrote: Half a circle is PI radians, so you'd increment by Math.PI / (totalNumbers - 1) Try - function plot():void { var totalNumbers:int = 5; var radius:Number = 30; var startAt:Number = Math.PI/2

[Flashcoders] Strange RegExp behaviour

2010-03-18 Thread Jiri
); } childs-- } I have three movieclips called 'frame_0' , 'frame_1' and 'frame_2' for sure, but it when I run the above code, it only show 1 and 0?? Anybody has an idea? Jiri On 11/03/2010 22:16, Guest Services, City Concierge wrote: We're looking for a coder

[Flashcoders] bitwise question

2009-09-15 Thread Jiri
++) { if (8 (1 i)) return i; } return 0; } Can this be done faster? Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] bitwise question

2009-09-15 Thread Jiri
Thnx, i tought that there would be some kind of smart bitwise operation to do that. This will do fine. Cheers. Jiri Paul Andrews wrote: Paul Andrews wrote: Jiri wrote: When i have a 8 bit int where only one of the bit can be 1, what is then the quickest way to get that bit position

Re: [Flashcoders] bitwise question

2009-09-15 Thread Jiri
0010 0100 etc.. Will do testing tomorrow. jiri John McCormack wrote: It's a little curious loop! i=0 i shifted = 0 i++ gives = 1 binary 0001 i shifted = 2 binary 0010 i++ gives i=3 binary 0011 i shifted=6 binary 0110 i++ gives i= 7 binary 0111 i

Re: [Flashcoders] bitwise question

2009-09-15 Thread Jiri
Cheers. Jiri Paul Andrews wrote: Juan Pablo Califano wrote: Another option: function test(value:int):int { // just to be safe... value = value 0xff; switch(value) { case 0x01: return 0; case 0x02: return 1; case 0x04: return 2; case 0x08: return 3; case 0x10: return 4

[Flashcoders] Syntax coloring Eclipse

2009-08-21 Thread Jiri
be provided in any decent editorthank you Adobe !! Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri
would have to override all the public methods of Array which can be a pain. My question is. How would I prevent users from doing this: listArray[n] = 'whatever' Much appreciated Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

Re: [Flashcoders] Question on preventing this array[n] = 'whatever' on Array var

2009-07-14 Thread Jiri
somebody hint me if this would be worth looking into for this particular case? Jiri Glen Pike wrote: Sounds like you want to use a kind of Observer pattern: Can you wrap up your array class in something that implements the methods you want, ignores / passes on the stuff you care about

Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-13 Thread Jiri
nice! Good luck. Jiri Karl DeSaulniers wrote: Thanks Jiri, That worked perfectly. I knew I had been looking at this code too long and that it was something as simple as deleting a couple of parenthesis. Thanks again.. Karl On Jul 12, 2009, at 2:47 PM, Jiri wrote: I think that it makes

Re: [Flashcoders] separating MouseEvent.MOUSE_UP from MouseEvent.CLICK

2009-07-12 Thread Jiri
I think that it makes sense that the functions like formHidden() gets called, because that is what you put down. It think you will need to put only the function name/ref like so: this.quoteRequest_mc.ySlideTo(quoteHideY,4,easeoutbounce,.5, formHidden ,20,4.5); Give it a try. Jiri Karl

Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling

2009-07-05 Thread Jiri
Did u try ROLL_OVER / ROLL_OUT to? Jiri Andrew Sinning wrote: I've read though the documentation regarding event bubbling several times, but the concept remains blurry. Perhaps this example will help me get my head around it. I want to display a custom cursor, a version of the Photoshop

Re: [Flashcoders] Strange characters added to file when saving from AIR using fileStream

2009-07-05 Thread Jiri
I had similair behaviour. Save the xml as UTF-8 and it should be allright. J Kenneth Kawamoto wrote: I may be wrong but that could be BOM? If you use writeUTF() and open the resulting file in a Unicode editor do you still see it? Kenneth Kawamoto http://www.materiaprima.co.uk/ Cheetham,

[Flashcoders] When to use flash.util.proxy

2009-06-30 Thread Jiri
is the difference with using normal getters and setters? Could somebody tell me of a case where he/she used this flash.util.proxy? Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] gzipped xml receiving with flash

2009-06-25 Thread Jiri
with it? I know AMF would work for what i want, or have the server preprocess the files into a .zip. But i was just wondering and curious. As my questions probably reveal, i am not an expert in this area, so excuse me if my questions are really naive. Jiri

[Flashcoders] Determining probablity of a random pick.

2009-06-22 Thread Jiri
to each node. This weight would have to determine the probability the nodes get selected out when a random pick is being performed. Does anybody know how to build such an algorithm? Much appreciated, Jiri ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Determining probablity of a random pick.

2009-06-22 Thread Jiri
[0-5] = A Array[6-7] = B Array[8-10] = C Last step get a random number between 0 - 10 = for instance 5 //result is then return Array[5] as XML If this is what you mean, would this approach not take a 'relatively' big amount of memory? JIri Paul Andrews wrote: Jiri wrote: Hello list, I have

Re: [Flashcoders] Determining probablity of a random pick.

2009-06-22 Thread Jiri
I see, that makes sense. Cheers. Jiri Paul Andrews wrote: Jiri wrote: Thank you i understand it. Could u please elloborate on the last part ..You can optimise this by using an array of pointers.. Do you mean that this; a weight=5 b weight=1 c weight=2 First calculated the range for each

[Flashcoders] Delete node using e5x inline.

2009-06-08 Thread Jiri
=true/ randomImage id=3/ randomImage id=4/ /image_conf Much appreciated. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Delete node using e5x inline.

2009-06-08 Thread Jiri
Thnx, but delete is not a method of XMLList so you suggestion wont work. I guess I will have to build an loop, but it feels like overhead, becuase e4x should support it, or am i wrong. Jiri Glen Pike wrote: Is it because you are using: delete pXML.randomImage.(attribute(delete

[Flashcoders] SmartyPants IOC

2009-05-04 Thread Jiri
/smartypants-ioc/ Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Conditional statement in [Embed(source=... tag

2009-04-29 Thread Jiri
So, you could do something like this in an embed tag [Embed(source=Arial-Rounded-MT-Bold.ttf, fontFamily=ArialRoundedBold, fontWeight=bold, mimeType=application/x-font-truetype, unicodeRange=getCodeRange()] Will try it. Cheers for replying. Sidney de Koning wrote: Hi Jiri, Why do you

Re: [Flashcoders] Conditional statement in [Embed(source=... tag

2009-04-29 Thread Jiri
Thanx, i will look into that. Jiri Ian Thomas wrote: It does accept conditionals, sort of, using the mxmlc -define tag. I blogged about it somewhere (hunts around). Aha! http://code.awenmedia.com/node/34 HTH, Ian On Tue, Apr 28, 2009 at 8:41 PM, Merrill, Jason jason.merr

[Flashcoders] mxmlc include classes , possible???

2009-04-29 Thread Jiri
to create a .swc and have that add to the librart tag? Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Conditional statement in [Embed(source=... tag

2009-04-28 Thread Jiri
country? Many thanks, Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Adobe AIR Mailing List?

2009-04-24 Thread Jiri
I will join to :) J Steve Mathews wrote: Start your own, I will join! :) On Thu, Apr 23, 2009 at 10:27 AM, Steven Sacks flash...@stevensacks.netwrote: Anyone know of an active Adobe AIR mailing list (like Flashcoders/Flash Tiger)? Apollocoders is basically dead, and all posts are

Re: [Flashcoders] ColorTransform GTween

2009-04-10 Thread Jiri
Is there really nobody that knows how to do it? Jiri Karl DeSaulniers wrote: Oh yeah, TweenLite is really easy and a realy great class. TweenMax too. They definately have tween for color. And MUCH more. Worth its weight in gold. Karl DeSaulniers Design Drumm http://designdrumm.com On Apr 8

Re: [Flashcoders] ColorTransform GTween

2009-04-10 Thread Jiri
above would be the same. Jiri Paul Venton wrote: Taken a look at the comments on here: http://www.gskinner.com/blog/archives/2008/08/gtween_a_new_tw.html after a quick search on Google. coltw:GTween = new GTween(theclip.transform.colorTransform, 0.5, { redOffset:255, greenOffset:255

Re: [Flashcoders] ColorTransform GTween

2009-04-10 Thread Jiri
He Cor, the question is. I want to tween a clip its color to a certain hex Value. So the equivalent of this in TweenLite: TweenLite.to(mc, 1, {tint:0xff9900}); Cheers, Jiri Cor wrote: No, yours. Yes it does flicker, but as I said, I don't think I understand the question correctly

Re: [Flashcoders] ColorTransform GTween

2009-04-09 Thread Jiri
people are using GTween, especially not for color tranformations. Jiri Karl DeSaulniers wrote: Oh yeah, TweenLite is really easy and a realy great class. TweenMax too. They definately have tween for color. And MUCH more. Worth its weight in gold. Karl DeSaulniers Design Drumm http

[Flashcoders] ColorTransform GTween

2009-04-08 Thread Jiri
(colorInfo); var myTween:GTween = new GTween(clip,2,{color:0xFFcc00}); myTween.setAssignment(clip.transform,colorTransform); //resulting in flickering of color of the clip. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

Re: [Flashcoders] ColorTransform GTween

2009-04-08 Thread Jiri
Thanx Ashum...,but is there really nobody out there who knows how to do it ? Jiri Ashim D'Silva wrote: Never used GTween before, but Grant is joining forces with Jack Doyle of TweenLite, and that library is incredibly easy to use. If the possibility exists, you might want to switch libraries

Re: [Flashcoders] Bitwise selection

2009-04-03 Thread Jiri
So each element in a ByteArray can hold 8 bits. What about the readInt() method of the ByteArray, does an integer then span over 4 elements of the bytearray. And if I start at position 0 and then call the readInt(), is the position after that then 4? Jiri Kerry Thompson wrote: Jiri wrote

[Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
: tRestrict = A-Z a-z; trace('char') } trace('restrict field ' , tRestrict) return tRestrict; } getRestrict() Thank you. Jiri ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Thanks Hans, I am aware of that, so if-else would be the only way to go I guess. Jiri Hans Wichman wrote: Hi, isn't the absence of break statements messing things up? greetz JC On Thu, Apr 2, 2009 at 12:08 PM, Jiri jiriheitla...@googlemail.com wrote: I am new to bitwise operators, so I

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Thanks for the helpfull feedback Mark Winterhalder wrote: Jiri, if() isn't too bad, especially since you will possibly want to permit multiple restrictions (like numbers /and/ letters, or Latin letters plus umlauts). If you use if() and combine that with appending to the restriction instead

Re: [Flashcoders] Bitwise selection

2009-04-02 Thread Jiri
Nice, that you took the time to write that post. It is much appreciated. Jiri Kerry Thompson wrote: Jiri has gotten some good answers. I got to work late today after working until 11:30 last night meeting my 5:00 deadline :-P I did occur to me that a fair number of us may not completely

[Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
mentioned multi array. I could be completely wrong, but would like some advice. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
Good point, i can use getPixel to retrieve the color value and based on that 'know' if it is walkable. Cheers. Jiri Hans Wichman wrote: Hi, why not use an image? Eg use an image that represents your area, lookup the pixel values, AND them and decide what you can or cannot do in that area

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
On stage there is a draw shape. I copy it to BitmapData and use the transparancy for testing walkable or not. So i dont use compressed image format, just raw bitmap data. Or am i missing something? Jiri Hans Wichman wrote: yup exactly, only thing is that I'm not sure how detailed this info

Re: [Flashcoders] Storing x and y in a bytearray

2009-03-30 Thread Jiri
Hittest is to expensive, i try to avoid it at all times. J Hans Wichman wrote: ah no then you'll be fine ! Although if it's just a simple shape, hittest will work as well of course, depending on the performance you need. On Mon, Mar 30, 2009 at 1:52 PM, Jiri jiriheitla...@googlemail.com wrote

Re: [Flashcoders] Question on ByteArray acces.

2009-03-18 Thread Jiri
(but I don't think it is) var pixelPos:int = row + col * totalRows; // or y + x * height buffer.position = pixelPos * 4;// each pixel takes 32 bits == 4 bytes var pixelValue:uint = buffer.readUnsignedInt(); Cheers Juan Pablo Califano 2009/3/17, Jiri jiriheitla...@googlemail.com: Seems

[Flashcoders] Question on ByteArray acces.

2009-03-17 Thread Jiri
probably save me some computation time. How are the bytes stored, is it a multi dimensional array and if so, what is the colum size? Thank you, Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman

Re: [Flashcoders] Question on ByteArray acces.

2009-03-17 Thread Jiri
/adobe/images/PNGEncoder.as Romu Jiri wrote: Hello, I have a BitmapData and use the draw() method to add sprite data. Then I get the ByteArray through the BitmapData.getPixels() method. This byteArray is compressed and cached. Then when i need it, i decompress the ByteArray and use

Re: [Flashcoders] Question on ByteArray acces.

2009-03-17 Thread Jiri
Thank you , i will try it tommorrow and let you know if that worked. I am just wondering if there is no begin offset in the ByteArray. So maybe I should not start at position=0. Do you know something about that, anyway I will try and see tomorrow. Jiri Juan Pablo Califano wrote: Have you

[Flashcoders] Strange behaviour ByteArray to BitmapData object

2009-03-16 Thread Jiri
( sourceRect , storedMapData ); var i:int = 0 while(i source.width){ trace( tData.getPixel(i , 0 ) ) i++ } /code Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo

Re: [Flashcoders] Strange behaviour ByteArray to BitmapData object

2009-03-16 Thread Jiri
is on the walkmap. If I would render it to a graphics I will loose the getPixel() method for checking. Also when i use the Loader.loadBytes. Or am i wrong? Jiri Romuald Quantin wrote: Did you try myByteArray.position = 0 before reading it ? You can try to use a Loader.loadBytes to instantiate

Re: [Flashcoders] RegExp headache

2009-03-06 Thread Jiri
Everybody thank you! Jiri Merrill, Jason wrote: Seriously, just play with RegExr / Regex Buddy, get the cheat sheets: Am now - love it! Can't I still be in awe? :) Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Learn about

[Flashcoders] RegExp headache

2009-03-05 Thread Jiri
, but it is killing me. var pattern:RegExp = /^(\d)?(^\d+)|(?)/ var result:Object = pattern.exec(tConditionalString); I tried another approach but i am still figuring out how to do it. It goes something like this var pattern:RegExp = /^():((?(2)then|else)) Jiri

Re: [Flashcoders] Gumbo and E4x

2009-02-25 Thread Jiri
Maybe try this._interface_xml..*.(@type == name)@label Jiri Lori Hutchek wrote: Hey All, I have a simple xml search that I'm doing to retrieve some attributes. But when trying to use gumbo no results are returned. I know this is working in the Flex 3 SDK. Is this a bug or have

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-18 Thread Jiri
For the archive. This is the way to do it. function convert(tFlaPath , tExportPath , tFilename){ debugMessage += \n Vectorizing file : + tFilename + on + (new Date()).toGMTString() + \n; debugMessage += SettingstraceBitmap(100, 2, 'normal' , 'normal') \n;

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
(- frameCount: + timeline.frameCount); doc.selection = timeline.layers[0].frames[0].elements; doc.traceBitmap(100, 1, 'pixels', 'normal'); } } doc.exitEditMode(); regards, Muzak - Original Message - From: Jiri jiriheitla...@googlemail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
= timeline.layers[0].frames[0].elements; doc.traceBitmap(100, 1, 'pixels', 'normal'); } } doc.exitEditMode(); regards, Muzak - Original Message - From: Jiri jiriheitla...@googlemail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, February 09, 2009 9:47 AM Subject

Re: [Flashcoders] Help jsfl traceBitmap

2009-02-10 Thread Jiri
will give your suggestion a try tomorrow and cross my fingers it works. Thank you again. jiri Muzak wrote: 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

[Flashcoders] Help jsfl traceBitmap

2009-02-09 Thread Jiri
'); } } Hope someone can help! Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Jiri Heitlager
Couldn't HaXe a good candidate for a solution? Omar Fouad wrote: Hi all, I wanted to ask if there is a way to let two AIR applications connect to each other through a home network (the same AIR application running on different computers) by using sockets or any other method. Thanks.

Re: [Flashcoders] round number to closet value of 8

2008-12-19 Thread Jiri Heitlager
Indeed it looks very impressive. Could some explain what is does exactly? Hans Wichman wrote: very cool! On Thu, Dec 18, 2008 at 4:26 PM, Benjamin Wolsey b...@benjaminwolsey.dewrote: Am Donnerstag, den 18.12.2008, 16:13 +0100 schrieb Hans Wichman: Hi, I think you are looking for : function

[Flashcoders] round number to closet value of 8

2008-12-18 Thread Jiri Heitlager
I am trying to figure out the fastest way to get the closest multitude of 8 from a random Number and I am really not a math person. var tN:Number = 32.3 //32 var tN:Number = 32.00 //32 var tN:Number = 44.9 //48 var tN:Number = 44.4 //40 Much appreciated if someone could help me out Jiri

Re: [Flashcoders] round number to closet value of 8

2008-12-18 Thread Jiri Heitlager
Thank you all. :) Benjamin Wolsey wrote: Am Donnerstag, den 18.12.2008, 16:13 +0100 schrieb Hans Wichman: Hi, I think you are looking for : function roundToEight (pVal:Number) { return Math.round(pVal/8)3; } although 44.9 and 44.4 will both return 48, don't you mean 43.9 and 44.4?

Re: [Flashcoders] Pixel precise

2008-12-17 Thread Jiri Heitlager
Math should be avoided when possible, I believe it is quit slow. Maybe Number 0 is even faster for rounding of ;) Jiri laurent wrote: int( ) is casting the content to integer, it has the effect to drop off the decimal part. Same as Math.floor but lots faster L Cor a écrit

Re: [Flashcoders] Pixel precise

2008-12-17 Thread Jiri Heitlager
Casting to int is faster. var tX:int = int(sprite.x) Jiri jonathan howe wrote: Hi, Laurent, You could use localToGlobal(), apply Math.round() to this global point, compare the original global point with the rounded version, and then offset the child's coordineates by the differences

Re: [Flashcoders] What design pattern would this be?

2008-12-08 Thread Jiri Heitlager
refining means that I _can_ use a pattern, it doesnt always mean that I should use one. I think these are those things that take a long time of experience. Good luck. Jiri Joel Stransky wrote: Thanks Jiri, I had not seen that site. I had assumed the book covered all of the patterns I was going

Re: [Flashcoders] What design pattern would this be?

2008-12-07 Thread Jiri Heitlager
be taking into consideration.. Good luck, Jiri Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise.It looks like it's possibly a Template pattern but I was hoping

[Flashcoders] E4x replace nodename

2008-12-04 Thread Jiri Heitlager
XMLlist with custom nodes. But how do I access the currentNode in the query instead of the name(). Or is it possible to directly do a regExp replace on the node? Thnx Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

Re: [Flashcoders] OT: smoothd.com

2008-10-29 Thread Jiri Heitlager
Nice Meinte van't Kruis wrote: has anyone checked out http://www.smoothhd.com/ seems pretty cool, here's the description; SmoothHD.com is an early glimpse of cutting edge new technology from Microsoft and Akamai that will raise the bar on the consumer video experience. SmoothHD.com is

[Flashcoders] runtime instantiation

2008-10-28 Thread Jiri Heitlager
to add the class to the compiler. Meaning I will always need to recompile. Is there any way to get around this? Jiri artur wrote: need to know a few things: 1 - can i render/export to QT an AS based animation that will be 40min long? it will be incorporating an FLV ( soundtrack

[Flashcoders] Question on architectural problem.

2008-10-17 Thread Jiri Heitlager
solution excists that deals with this in an elegant way. I read about the Bridge pattern, but I am not sure if this will help me? Thank you. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo

Re: [Flashcoders] Question e4x attributes text replace

2008-10-10 Thread Jiri Heitlager
Thanx Ian, that sounds like a very clever solution. I will give it a try, and speedoh well I geuss it can always be faster ;) Jiri Ian Thomas wrote: Convert the XML to a string. Do the regExp replace on the string. Reparse the XML? e.g. var str:String=xml.toXMLString(); // do

[Flashcoders] Question e4x attributes text replace

2008-10-09 Thread Jiri Heitlager
XMLList and change the $$lang$$ for another string Hope somebody can help me out. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Jiri Heitlager
traces, does AS3 provide acces to this? Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Jiri Heitlager
Thank you all for the helpfull reply. JIri Juan Pablo Califano wrote: A rather dirty way is to enumerate all methods in a given object (the current timeline, for instance) and compare that to the self-reference that a function holds in arguments.callee. u function test():void { trace(getName

[Flashcoders] AMF objects storing in database

2008-08-28 Thread Jiri Heitlager
is this adviceable? Thank you, Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] What's happened to my var?

2008-07-07 Thread Jiri Heitlager
Or add onCompleteScope:this so you dont need to import Delegate class. TweenFilterLite.to(m, tweenTime, {_y:targetPos, onCompleteScope:this , onComplete:moveShape, onCompleteParams:[_timeline.y1]}); Jiri Ali Drongo wrote: Hi there, I've noticed this happen before and can't figure out why

Re: [Flashcoders] Saffron Modeler - what happened to it

2008-07-03 Thread Jiri Heitlager
/SamuelAgesilas S. On Jun 30, 2008, at 6:05 PM, Jiri Heitlager wrote: Does somebody know what happend to the saffron UML modelling tool. The site http://www.levelofindustry.com/ is not showing any update anymore. Jiri ___ Flashcoders mailing list

[Flashcoders] Saffron Modeler - what happened to it

2008-06-30 Thread Jiri Heitlager
Does somebody know what happend to the saffron UML modelling tool. The site http://www.levelofindustry.com/ is not showing any update anymore. Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman

Re: [Flashcoders] Document viewer

2008-06-29 Thread Jiri Heitlager
some interesting flash stuff with a pdf. Jiri Dave Watts wrote: It has been a year ago and I'd thought Adobe would have brrought out an update by now. Geuss not! I don't think that Adobe is especially interested in promoting FlashPaper, which is essentially a competitor or substitute for PDF

Re: [Flashcoders] Document viewer

2008-06-27 Thread Jiri Heitlager
Be carefull with huge documents in Flash Paper. I had some serious issues with that in the past. Jiri Stuart Campbell wrote: @Eric: Thanks. Downloading the trial now. @Paul - yeah screengrabs aren't considered a problem (the documents are so huge that nobody is likely to bother). On Thu

Re: [Flashcoders] Document viewer

2008-06-27 Thread Jiri Heitlager
destroyed. It was a disaster and we ended up splicing the docs.. I would really advice testing with the biggest doc you have. Jiri Stuart Campbell wrote: Really? Some of my docs will be 200 pages long. What problems did you have exactly? I'm also having fun because I thought FlashPaper would allow

Re: [Flashcoders] Flip movie clip

2008-06-12 Thread Jiri Heitlager
Is the center point in the middle? Jiri Bassam M wrote: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip

Re: [Flashcoders] Question AIR Sqlite api

2008-04-18 Thread Jiri Heitlager
() at flash.data::SQLConnection/commit() at classes.models::SQLProxy/createDatabase()[/Users/Jiri/Documents/_Flash/SmsApp/SmsApplication/src/classes/models/SQLProxy.as:128] Debug session terminated. /error private function createDatabase(e:Event):void

Re: [Flashcoders] Question AIR Sqlite api

2008-04-18 Thread Jiri Heitlager
to check if the table already exists. 'CREATE TABLE IF NOT EXISTS ...' regards, Muzak - Original Message - From: Jiri Heitlager [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 18, 2008 10:19 AM Subject: Re: [Flashcoders] Question AIR Sqlite

Re: [Flashcoders] Question AIR Sqlite api

2008-04-17 Thread Jiri Heitlager
the use of synchronous mode to be alot easier. regards, Muzak - Original Message - From: Jiri Heitlager [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 16, 2008 5:02 PM Subject: [Flashcoders] Question AIR Sqlite api I have a question

[Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
transaction. at Error$/throwError() at flash.data::SQLConnection/commit() at classes.models::SQLProxy/createDatabase()[/Users/Jiri/Documents/_Flash/SmsApp/SmsApplication/src/classes/models/SQLProxy.as:128] Debug session terminated. /error code protected function build

Re: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
Perfect that was it. Thank you Morten. Jiri Morten Barklund wrote: Hi Jiri, I believe it is due to the default lock type. The default lock type (DEFERRED) description says: * SQLTransactionLockType.DEFERRED indicates that a lock is not acquired until the first read or write operation

Re: [Flashcoders] Question AIR Sqlite api

2008-04-16 Thread Jiri Heitlager
Morten, i just burst my own bubble. It appears not to be working after all. It seems the line Sql_conn.openAsync( Sql_db ) in the build() method is the problem, becuase when I change it to Sql_conn.open( Sql_db ) everything works fine. Do you have any other suggestions? Jiri Morten Barklund

[Flashcoders] Flash developers Berlin - are there any?

2008-04-15 Thread Jiri Heitlager
happy to know Thnx Jiri ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  1   2   >