thuansaritasa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Flex DownloadProgressBar returns stageWidth/stageHeight 0 when using SWFObject #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a standard Flex 3 application
2. Create a custom Preloader extending mx.preloaders.DownloadProgressBar. 
Use this as the preloader for the application.
3. Override the 'initialize' method in the custom preloader and add a 
trace to check the stage size:
override public function initialize():void {
trace("initalize: " + stageWidth + "x" + stageHeight);
super.initialize();
}
4. Create an HTML page that will contain the SWF produced by this Flex 
project and set the dimensions of the Flash to 100%x100%.
5. Debug the project from Flex opening the HTML page.

What is the expected output? What do you see instead?
Expected output: "initialize " + [some value higher than 0] + "x" + [some 
value higher than 0]
Resulting output:  "initialize: 0 x 0"
Stage size seems not to be set.

What version of the product are you using? On what operating system?
Flex 3 using SDK 3.3 (latest stable release) and the most recent version 
of SWFObject.

Please provide any additional information below.
It seems Adobe has picked up on this in the new Spark preloader: 
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projec
ts/framework/src/mx/preloaders/SparkDownloadProgressBar.as

Question: how to solve this issue in the current (Flex SDK 3.3) 
DownloadProgressBar?

Original issue reported on code.google.com by antoine....@gmail.com on 6 Jun 2009 at 7:44

GoogleCodeExporter commented 9 years ago
Please read our FAQ Q21: http://code.google.com/p/swfobject/wiki/faq

For authoring questions, please use the discussion group:
http://groups.google.com/group/swfobject

Original comment by bobbyvandersluis on 6 Jun 2009 at 11:20

GoogleCodeExporter commented 9 years ago
I have the same Problem with Firefox when using a custom Preloader based on the 
wojderfull preloaderclass 
from Urbansquall:
http://www.gamepoetry.com/blog/2008/10/05/the-last-preloader-youll-ever-need-rea
lly/

Original comment by jan.st...@gmail.com on 24 Jul 2009 at 9:19