RE: [Flashcoders] Getting the url where my Flash movie was embeded

2010-08-13 Thread Cor
Thank you, but this I don't understand: //Now check if the regex has matched and if it did then check if there 2 matches in the Array. match at index 0 is the entire matched String You don't use the global flag in the RegExp. If the g (global) flag is not set, the return array will contain no mor

[Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
Hello, I wrote a routine that checks if the fps is below 45 fps for longer then 20 ticks, I toggle the quality of the SWF. If it then after is greater then 45 fps for 20 ticks I toggle quality back up. It works, but out of interested, I was wondering if this could be done in a other more cle

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

2010-08-13 Thread Henrik Andersson
I use a different event than what you are most likely using. I use the Render event. It is a bit more effort since you have to request it again and again, but it is more accurate for the rendered fps. It differs from the enter frame event in that it is not dispatched when the player is skippin

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

2010-08-13 Thread Jiri
Thanx for the answer, I am on a project where the whole thing is allready set up. The quality is now set to BEST as soon as the FPS goes under 30 (i used 45 in my example), but on fast machine this results in very short graphical glitches, because it is usually only 1 or 2 frames where the FPS

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

2010-08-13 Thread Ktu
This doesn't change the way it works, but you could rewrite the addValue stuff to this: buffer += (fps >= 45) ? 1 : -1; On Fri, Aug 13, 2010 at 4:45 AM, Jiri wrote: > Thanx for the answer, I am on a project where the whole thing is allready > set up. The quality is now set to BEST as soon as

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

2010-08-13 Thread Cor
In case the framerate get >= 45, wouldn't this put the framerate up to a endless high number? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu Sent: vrijdag 13 augustus 2010 16:36 To: Flash Coders List Su

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

2010-08-13 Thread Jared
This is a great idea, thanks for sharing never tried to adjust quality like this. Sent from my iPhone On Aug 13, 2010, at 10:36 AM, Ktu wrote: > This doesn't change the way it works, but you could rewrite the addValue > stuff to this: > > buffer += (fps >= 45) ? 1 : -1; > > > > On Fri, Aug

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

2010-08-13 Thread Jiri
No it won't because of this line that calls a toggle function based on the current fps. if(buffer == 0) adjustQuality() function adjustQuality():void{ fps = (fps == 45) ? 20 : 45 trace("qulaity is now adjusted to : " , fps ) } On 13-08-10 16:58, Cor wrote: In case the fram

[Flashcoders] Printing multiple objects

2010-08-13 Thread Lehr, Theodore
I am using the code at: http://stackoverflow.com/questions/1422259/as3-using-printjob-to-print-a-movieclip I am using it to print a Sprite that is holding some other objects I am wondering is there a way I can use this code to print multiple sprites - and also be able to move the and lay th

Re: [Flashcoders] Getting the url where my Flash movie was embeded

2010-08-13 Thread Juan Pablo Califano
No problem. I'm glad you sorted it out. Cheers Juan Pablo Califano 2010/8/13 Pedder > Yeah, that worked. > The embed code the user can copy from my page now directs to a server > script "widget.swf" with some parameters. With a htaccess rewrite rule the > call is redirected to a php script whi

Re: [Flashcoders] Getting the url where my Flash movie was embeded

2010-08-13 Thread Pedder
Yeah, that worked. The embed code the user can copy from my page now directs to a server script "widget.swf" with some parameters. With a htaccess rewrite rule the call is redirected to a php script which stores the HTTP_REFERER and returns the "real" swf. In my first testings this worked fi

Re: [Flashcoders] Printing multiple objects

2010-08-13 Thread Anthony Pace
Just print a parent sprite that encapsulates the children you are laying out. On 8/13/2010 12:30 PM, Lehr, Theodore wrote: I am using the code at: http://stackoverflow.com/questions/1422259/as3-using-printjob-to-print-a-movieclip I am using it to print a Sprite that is holding some other obj

[Flashcoders] Video Tutorial: Using open source tool and cloud service to automate Flash/Flex testing

2010-08-13 Thread Grace Law
Hi there A few weeks ago, Sauce Labs announced a cloud-based system leveraging open source tools to automate the testing of your Flash/Flex Apps. Here is a video tutorial