Re: [Flashcoders] AS3 For loop proplem

2008-05-07 Thread John McCormack
Since you have not set x,y for the MovieClips, might the others be 
underneath the top one (last loaded)?


John

- Original Message - 
From: [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 06, 2008 5:54 PM
Subject: [Flashcoders] AS3 For loop proplem


This code should load a MovieClip from the library 5 times, place
each on the stage and then load a different image into each one
Instead it loads the 5 MovieClips from the library, places them on
the stage and then only loads the image into the last (5th)
MovieClip, whats going wrong?
 this code will not run as its stripped 
var itemList:XMLList  = locationInfo.item;
for (var i = 0; i  itemList.length(); i++) //
Loops through 5 times
{
_summaryElement[i] =
loadLibrary(summaryContainer); // Load our MovieClip from the library
loadImage(images/ + i + .jpg,
_summaryElement[i].sumImg); // Should load image into
_summaryElement[i].sumImg which is a blank placeholder movieclip
}
function loadImage(filename:String,
mcName:MovieClip):void
{
_mcName = mcName; // Contains MovieClip object
(object 1 through 5)
var imageLoader:Loader = new Loader();
var imageURL:URLRequest = new
URLRequest(filename);
imageLoader.load (imageURL);

imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
imgLoadComplete);
}
function imgLoadComplete(ev:Event):void
{
_mcName.addChild(ev.target.content); // This
should add the loaded image into the placeholder movieclip for each
of the 5 MovieClips
   }
SJM
___
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] FPS limit of flash player inside browser?

2008-05-07 Thread Sander Schuurman
Hi,

 

Just came across some limitations on the fps of a flash movie inside a
browser.

I've read on the internet some messages about the limit to be at around
60? 

But my tests got stuck at around 33 fps, it begins at around 57, but
drops within a few seconds to around 33...

 

Anyone can shine a light on this subject?

 

Thnx in advance,

 

Sander Schuurman

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-07 Thread Sidney de Koning

Maybe this is what your after?
http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

On May 7, 2008, at 2:07 PM, Sander Schuurman wrote:


Hi,



Just came across some limitations on the fps of a flash movie inside a
browser.

I've read on the internet some messages about the limit to be at  
around

60?

But my tests got stuck at around 33 fps, it begins at around 57, but
drops within a few seconds to around 33...



Anyone can shine a light on this subject?



Thnx in advance,



Sander Schuurman

___
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] FPS limit of flash player inside browser?

2008-05-07 Thread Juan Pablo Califano
Hi,

The thing is, when you set a FPS value, you're setting an upper limit. It's
like telling the player not to play more than n frames per second. But the
actual frame rate depends on the available resources. If you're doing
something rather processor intensive, the player is likely to start dropping
frames.

By the way, in most cases setting a FPS above 30 doesn't make much sense
(bear in mind that a NTSC video signal runs at 30 FPS, and a PAL one at 25
FPS). And it will only worsen frame-dropping problem, if you already have
one.


Cheers
Juan Pablo Califano


2008/5/7, Sander Schuurman [EMAIL PROTECTED]:

 Hi,



 Just came across some limitations on the fps of a flash movie inside a
 browser.

 I've read on the internet some messages about the limit to be at around
 60?

 But my tests got stuck at around 33 fps, it begins at around 57, but
 drops within a few seconds to around 33...



 Anyone can shine a light on this subject?



 Thnx in advance,



 Sander Schuurman

 ___
 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] FPS limit of flash player inside browser?

2008-05-07 Thread Juan Pablo Califano
Great article, thanks for the link.

2008/5/7, Sidney de Koning [EMAIL PROTECTED]:

 Maybe this is what your after?

 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

 On May 7, 2008, at 2:07 PM, Sander Schuurman wrote:

 Hi,
 
 
 
  Just came across some limitations on the fps of a flash movie inside a
  browser.
 
  I've read on the internet some messages about the limit to be at around
  60?
 
  But my tests got stuck at around 33 fps, it begins at around 57, but
  drops within a few seconds to around 33...
 
 
 
  Anyone can shine a light on this subject?
 
 
 
  Thnx in advance,
 
 
 
  Sander Schuurman
 
  ___
  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] FPS limit of flash player inside browser?

2008-05-07 Thread Sidney de Koning

No problem :)

This article really clarified a lot for me.

Sid.

On May 7, 2008, at 3:20 PM, Juan Pablo Califano wrote:


Great article, thanks for the link.

2008/5/7, Sidney de Koning [EMAIL PROTECTED]:


Maybe this is what your after?

http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

On May 7, 2008, at 2:07 PM, Sander Schuurman wrote:

Hi,




Just came across some limitations on the fps of a flash movie  
inside a

browser.

I've read on the internet some messages about the limit to be at  
around

60?

But my tests got stuck at around 33 fps, it begins at around 57, but
drops within a few seconds to around 33...



Anyone can shine a light on this subject?



Thnx in advance,



Sander Schuurman

___
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



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-07 Thread Steven Sacks

Juan Pablo Califano wrote:

By the way, in most cases setting a FPS above 30 doesn't make much sense
(bear in mind that a NTSC video signal runs at 30 FPS, and a PAL one at 25
FPS). And it will only worsen frame-dropping problem, if you already have
one.
  


I'm awfully tired of hearing this argument put forth by people.  If this 
had even a remote possibility of truth then Nvidia and ATI would be out 
of business.  Obviously, they're not.  In fact, the competition is 
fierce over something that you claim makes no sense.


The fact of the matter is, running at a higher frame rate makes things 
look smoother.  Period, end of statement.  If you take a time-based 
animation inside a 30fps movie and a 60 fps movie, the 60 fps version 
will look a lot smoother.  It's not an opinion, it's a fact.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Why isn't my TextField multiline? AS2

2008-05-07 Thread Alistair Colling

Hi there, thanks for checking this.

I'm generating a textfield from within a custom class but I can't  
seem to make it multiline, I can see the border of the textfield is  
the right size my text only appears on the first line and also my  
carriage returns \r are having no effect.
I've tried a number of options for properties of the textfield but I  
cant seem to get it to work.


Any suggestions thankfully received this is taking lots of time for a  
simple thing!

Cheers,
Ali



Here's the code from within my class:




var oline:MovieClip = mainMC.monkey.bubble.outline
			var tmpBox:MovieClip = mainMC.monkey.bubble.createEmptyMovieClip 
(text_mc, 1);
			var tmpField:TextField = tmpBox.createTextField(my_txt, 1,  
oline._x, oline._y, oline._width, oline._height);

tmpField.selectable = false;
tmpField.border = true;
tmpField.embedFonts = true;
tmpField.type = dynamic;
tmpField.multiline = true;  
tmpField.text = Q.monkeyStr;
tmpField.setTextFormat(myM);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-07 Thread Bob Wohl
 If i remember correctly it should be:

tmpField.wordWrap = true;


hth,
B.

On Wed, May 7, 2008 at 10:03 AM, Alistair Colling [EMAIL PROTECTED]
wrote:

 Hi there, thanks for checking this.

 I'm generating a textfield from within a custom class but I can't seem to
 make it multiline, I can see the border of the textfield is the right size
 my text only appears on the first line and also my carriage returns \r are
 having no effect.
 I've tried a number of options for properties of the textfield but I cant
 seem to get it to work.

 Any suggestions thankfully received this is taking lots of time for a
 simple thing!
 Cheers,
 Ali



 Here's the code from within my class:




var oline:MovieClip = mainMC.monkey.bubble.outline
var tmpBox:MovieClip =
 mainMC.monkey.bubble.createEmptyMovieClip(text_mc, 1);
var tmpField:TextField =
 tmpBox.createTextField(my_txt, 1, oline._x, oline._y, oline._width,
 oline._height);
tmpField.selectable = false;
tmpField.border = true;
tmpField.embedFonts = true;
tmpField.type = dynamic;
tmpField.multiline = true;
tmpField.text = Q.monkeyStr;
tmpField.setTextFormat(myM);
 ___
 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] Why isn't my TextField multiline? AS2

2008-05-07 Thread Robert Leisle
Hi Alistair,

Try adding this to your code:
tmpField.wordWrap = true;

Hth,
Bob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alistair
Colling
Sent: Wednesday, May 07, 2008 10:03 AM
To: Flash Coders List
Subject: [Flashcoders] Why isn't my TextField multiline? AS2

Hi there, thanks for checking this.

I'm generating a textfield from within a custom class but I can't  
seem to make it multiline, I can see the border of the textfield is  
the right size my text only appears on the first line and also my  
carriage returns \r are having no effect.
I've tried a number of options for properties of the textfield but I  
cant seem to get it to work.

Any suggestions thankfully received this is taking lots of time for a  
simple thing!
Cheers,
Ali



Here's the code from within my class:




var oline:MovieClip = mainMC.monkey.bubble.outline
var tmpBox:MovieClip =
mainMC.monkey.bubble.createEmptyMovieClip 
(text_mc, 1);
var tmpField:TextField =
tmpBox.createTextField(my_txt, 1,  
oline._x, oline._y, oline._width, oline._height);
tmpField.selectable = false;
tmpField.border = true;
tmpField.embedFonts = true;
tmpField.type = dynamic;
tmpField.multiline = true;  
tmpField.text = Q.monkeyStr;
tmpField.setTextFormat(myM);
___
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] FPS limit of flash player inside browser?

2008-05-07 Thread Wagner Amaral
On Wednesday 07 May 2008 14:06:43 Steven Sacks wrote:
 The fact of the matter is, running at a higher frame rate makes things
 look smoother.  Period, end of statement.  If you take a time-based
 animation inside a 30fps movie and a 60 fps movie, the 60 fps version
 will look a lot smoother.  It's not an opinion, it's a fact.

It actually depends on the monitor or screen you're running your movie. In my 
case, my monitor's refresh rate is at 60Hz, so anything over 60fps will not 
make it any smoother.
If you're running at a TV with a refresh rate of 25Hz, then anything over 
25fps is useless.

Actually, a small testing program (glxgears) issues 2694fps in my machine, 
however if I enable sync to vblank in my video card - that is, making 
graphic applications refresh at the same rate as my monitor - the same 
program running at 60fps looks indeed smoother than at 2694fps (because you 
can't divide 2694 by 60 and get an integer, meaning that eventually the 
rendering engine will have to delay or advance a frame, so I don't get a 
blank).
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Player 8 and the Alert component

2008-05-07 Thread Glen Pike

Hi,

   Yes, you may need to drag an instance of it onto the stage in your 
FLA file so it gets compiled in.


   Glen

Lehr, Theodore M (N-SGIS) wrote:

Should the Alert component work in 8 (player)?

Ted
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Player 8 and the Alert component

2008-05-07 Thread Lehr, Theodore M (N-SGIS)

Should the Alert component work in 8 (player)?

Ted
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-07 Thread strk
On Wed, May 07, 2008 at 10:06:43AM -0700, Steven Sacks wrote:

 The fact of the matter is, running at a higher frame rate makes things 
 look smoother.  Period, end of statement.  If you take a time-based 
 animation inside a 30fps movie and a 60 fps movie, the 60 fps version 
 will look a lot smoother.  It's not an opinion, it's a fact.

If a frame takes MORE to render (or execute associated actions)
then another, the rendering will NOT be smooter, just going
fast and slow depending on frame number, which isn't smooth...

--strk;
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-07 Thread Juan Pablo Califano
Ok, I might be wrong about the smothness, I just don't seen any
difference, but that can be subjective. However, using a higher frame rate
does put more burden on the rendering routines, so if you already have a
problem with frames being dropped, it will only get worse by incrementing de
FPS.

Cheers
Juan Pablo Califano


2008/5/7, Steven Sacks [EMAIL PROTECTED]:

 Juan Pablo Califano wrote:

  By the way, in most cases setting a FPS above 30 doesn't make much sense
  (bear in mind that a NTSC video signal runs at 30 FPS, and a PAL one at
  25
  FPS). And it will only worsen frame-dropping problem, if you already
  have
  one.
 
 

 I'm awfully tired of hearing this argument put forth by people.  If this
 had even a remote possibility of truth then Nvidia and ATI would be out of
 business.  Obviously, they're not.  In fact, the competition is fierce over
 something that you claim makes no sense.

 The fact of the matter is, running at a higher frame rate makes things
 look smoother.  Period, end of statement.  If you take a time-based
 animation inside a 30fps movie and a 60 fps movie, the 60 fps version will
 look a lot smoother.  It's not an opinion, it's a fact.
 ___
 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] Set FLVPlayback source property via html query parameter for H.264 not working

2008-05-07 Thread Biehn, Matthew P.

Hello,

I'm having an issue working with H.264 videos and the FLVPlayback
component.

Set the source FLVPlayback component via ActionScript like the following
is working great.

flv.play(sample.m4v);

However, if I try to set the source of the FLVPlayback component via
ActionScript with a query parameter, I get a connection error. Same
video, same path, tried both relative and absolute paths.


// get query parameters
var o:Object = l.parameters;

for (var prop in o) {
switch (prop){
case VIDEO_PATH:
videoPath=String(o[prop]);
break;
// I have multiple parameters I'm passing in
...
}
}

debug(videpPath); //outputs sample.m4v

try {
flv.play(videoPath);
} catch (e:Error){
debug(e); //no error is thrown for some reason
}

Anybody have any idea why it works in the first example, but the second
example doesn't work? The second example works fine when passing in an
.flv. I'm trying to get this app to work using the H.264 formatted
videos.

Thanks.
Matthew Biehn.


This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: Set FLVPlayback source property via html query parameter for H.264 not working - fixed

2008-05-07 Thread Biehn, Matthew P.

Never mind. After pulling in the FLVPlayback component and replacing the
existing component in my fla, it started working. I guess I forgot
to do this after installing the Flash Update. That would explain why the
first example worked fine - new fla.

 _
 From: Biehn, Matthew P. 
 Sent: Wednesday, May 07, 2008 3:34 PM
 To:   'flashcoders@chattyfig.figleaf.com'
 Subject:  Set FLVPlayback source property via html query parameter
 for H.264 not working

 Hello,

 I'm having an issue working with H.264 videos and the FLVPlayback
 component.

 Set the source FLVPlayback component via ActionScript like the
 following is working great.

 flv.play(sample.m4v);

 However, if I try to set the source of the FLVPlayback component via
 ActionScript with a query parameter, I get a connection error. Same
 video, same path, tried both relative and absolute paths.


 // get query parameters
 var o:Object = l.parameters;  
   
 for (var prop in o) {
   switch (prop){
   case VIDEO_PATH:
   videoPath=String(o[prop]);
   break;
   // I have multiple parameters I'm passing in
   ...
   }
 }

 debug(videpPath); //outputs sample.m4v

 try {
   flv.play(videoPath);
 } catch (e:Error){
   debug(e); //no error is thrown for some reason
 }

 Anybody have any idea why it works in the first example, but the
 second example doesn't work? The second example works fine when
 passing in an .flv. I'm trying to get this app to work using the H.264
 formatted videos.

 Thanks.
 Matthew Biehn.


This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders