Flash :: Reading Stage.stageHeight When Bandwith Profiler Is Open?

Feb 13, 2010

Anyone else has experienced weird behaviors and unexpected values when checking for stage.stageHeight while you have Bandwith Profiler open in Flash IDE?

I have been using this for testing Perlin Noise stuff:

[Code]...

As you see here, the swf is set to a height of 400 When executed with test movie, control-enter, the trace returns 400 .. now, if you try this with the Bandwidth Profiler open, it would return 300, and the Sprite would only extend to 300 height.

View 2 Replies


Similar Posts:


Professional :: Lag / Bandwith Profiler Cs5 Change?

Apr 11, 2011

Making a simple demonstration with three buttons which gotoAndStop on 3 different frames using AS3.  Have done this lots of time with CS4 without issue.  When I publish/preview my work and load the .swf it is blank for a split second and then loads frame 1 of my timeline (but says it is on frame 2 of my movie - in the bandwith profiler).  When I try to look at the bandwith profiler it shows my page 1 as page 2, and when I click around the buttons my flash file does load the different frames correctly, but doesn't display them on the bandwith profiler - everything just stays on frame 2. Every time I try to drag the slider back to frame 1 it plays to frame 2.  Everything should be on frame 1.

Can someone tell me what I am doing wrong, or what I need to do for instantanous loading of content (this is very very light content, should be immediate) and how I get my bandwith profiler to show the navigation to different frames as I click around? Tried to look and find scenes - can't find that dialog either, did they ditch it?  Am I running into this new built in preloader?  How can I disable it?

View 1 Replies

ActionScript 3.0 :: StageHeight Bug With Bandwidth Profiler?

Mar 16, 2010

I just noticed a workaround something that's been annoying me for a long time. Occasionally my projects vertically line up funny if clip y-coords or heights are based on frame 1 stageHeight. I always thought it was a load-time duration or something like that, but it turns out to be bandwidth profiler (CS4 authoring). Try this on frame 1 of a new, empty project:
 
this.addEventListener(Event.ENTER_FRAME, this.entf); function entf(evt:Event):void{ trace(this.stage.stageHeight); }
 
When bandwidth profiler is on, the first frame reports -100 the real stageHeight. Now to avoid the problem I just turn off bandwidth profiler. Is it just a bug?

View 2 Replies

Flash Osx - Viewing Applications On A Mac Stage.stageWidth/stage.stageHeight Return 0 In Firefox/IE

Dec 13, 2009

I am using SWFOBJECT to embed my flash content. I have been worried about stage.stageWidth and stage.stageHeight returning 0 in Firefox/Internet Explorer; this problem is referred to in question #21 on the SWFOBJECT FAQ [URL]..I have been told that this problem is particularly prevelant on Macs. The SWFOBJECT FAQ (question 21) indirectly suggests that this problem does not occur with static publishing. Is this correct? Is it still advisable to implement a solution to this stageWidth/stageHeight problem, even if you are using static publishing?

View 1 Replies

Flash :: Get Stage.stageHeight Or Stage.stageWidth From Imported Class?

Jul 1, 2010

can you tell me a simple and clean way to pass the dimension of the stage to another class, imported in my documentclass?

View 2 Replies

Differences Between FDT Profiler And Flash Builder Profiler?

May 12, 2011

I'm currently hunting a memory leak related to XML objects. FDT's profiler shows results that match my expectations while Adobe's profiler doesn't show any XML objects at all.

Are there any differences between Adobe's profiler that comes with Flash Builder and FDT's profiler or is that a configuration issue?

View 1 Replies

Flash :: Not Getting Stage.stageWidth And StageHeight On Firefox 3.5?

May 31, 2010

I'm having issue regarding the display when using Firefox 3.5 on MAC, I can see my menu and the display is correct. The menu just position above what it supposed to be positioned. It works fine with Safari on MACOSX.My flash size is: 1440x750It looks like Firefox can't recognize stage.StageWidth and stage.StageHeight. It returns 0.Some suggest implementing was to pass in the actual width and height of movie via FlashVars. The movie uses these instead of stage.stageWidth and stage.stageHeightDoes anyone have an example of code of how to fix that issue??

public function Main()
{
addEventListener(Event.ADDED_TO_STAGE, handleOnStage, false, 0, true);

[code]....

View 1 Replies

Flash :: How To Fix Stage.stageWidth And StageHeight To Be Recognized On Firefox 3.5

Jun 3, 2010

Working on personal full flash site and I can't really figure out how to make MC's position on Stage aligned on Firefox browser. Everything goes fine using Safari.

I have tried a method of set a timer every time it goes off (every 200 ms or so) it checks to see if stage.stageWidth > 0. If that is the case, do stop the timer and start resize on stage. However it's still not working on Firefox of MAC. :(

In my HTML code:

<link href="css/site.css" rel="stylesheet" type="text/css" />

Test Site

<script type="text/javascript">
var swf = new SWFObject("main.swf", "mymovie", "100%", "100%", "10", "#000000");
swf.addParam("allowScriptAccess", "always");

[Code]....

View 1 Replies

ActionScript 3.0 :: Stage.stageWidth & Stage.stageHeight Change In Full Screen?

Jun 18, 2010

I've been working on a project that requires lots of scaling around a center point.

I always thought that stage.stageWidth and stage.stageHeight give you the dimensions of the stage you set in the properties panel no matter what. But when I went into fullscreen mode (with scaling), both the width and the height changed to the dimensions of the screen rather than staying the dimensions I specified.

View 1 Replies

ActionScript 3.0 :: Stage.stageWidth & Stage.stageHeight Giving Wrong Values

May 17, 2011

In my AS3 code all the elements on the page are dynamically positioned depending on the current width and height of the SWF - providing it's not under a certain value, then the items are back in their original position.

When debugging in the Flash player the size all reports correctly however when run from a web browser it does not - initially.

This is my HTML & PHP code for the entire page:

HTML Code:
<?php
function hashId($fn) {
$hash=md5_file($fn);

[Code].....

But I cannot get the size to report correctly without, say, clicking a button.

It seems to me like I need to force flash to re-draw the screen, but I had no luck trying to do that.

View 8 Replies

ActionScript 3.0 :: Stage.stageHeight - Stage.height - Do Not Work

May 6, 2011

I need to double my stage size, as well as all of the objects on the stage. Is there an easy way to do this? stage.stageHeight, stage.height, etc do not work.

View 3 Replies

Resize And Stage.stageHeight?

Jun 20, 2010

I have two problems. 1) the page still will not resize properly until the window is resized. I assume I have the code wrong somehow.

2) I changed the height of my menu object to stage.stageHeight, but its now coming up squished and only about 30% of the actual height of the stage. I am not sure what I did as it seemed to be working before, but I cant seem to fix it.

Code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, stageresizeListener);

[Code]...

View 6 Replies

ActionScript 3.0 :: Stage.stageHeight Still Incorrect When Testing?

Feb 22, 2011

I've seen this in several of my projects, when testing the stage.stageHeight is 100 less than what I've set the property to. I looked around and found at thread from 2004 (AS2) that talks about it, and found one in 2009 (AS3)With this in mind, I almost always have this:

ActionScript Code:
var SW:int = stage.stageWidth;
var SH:int = stage.stageHeight;

[code].....

View 1 Replies

ActionScript 3.0 :: Package Doesn't Recognize Stage.stageHeight?

Oct 4, 2009

how to make my package use stage.stageHeight so I can tell a ball to bounce when it reaches the bottom of the stage. I'm calling my ball to the stage from the library in a way I'm not used to and have never done so I'm assuming it has got to do with that. if you take a moment to look at it (pretty simple i've stripped out everything except for the physics that makes a ball drop and bounce) and let me know why I cant detect the stage.

particle.as file:

[Code]......

View 2 Replies

ActionScript 3.0 :: Reading TextField And TextFormat From Flash GUI Stage?

May 18, 2010

throught code i am trying to read GUI display objects. (don't ask why) My problem is that i can read individual properties of TextField object and TextFormat object, but not traverse those objects to gather all its contents at once.

See my code, individual traces are hapening ok, but those in for cicles are not, i don't get it.

Code:
if (_target.getChildAt(i) is TextField)
{
var currentTextField:TextField = _target.getChildAt(i) as TextField;
trace(currentTextField.embedFonts); //true

[Code]....

View 0 Replies

C# :: .net - Open Source Library For Reading And Writing Swf File,which Supports Version 8,9 And 10?

Mar 12, 2010

Currently I am using SWFDOTNET libray for reading and writing swf file,which supports swf file from version 1 to 7.Is there any other open C# source lib for reading and writing swf flash which supports swf file version 8,9 and 10?

View 1 Replies

Flash :: ActionScript 3 Profiler & Memory Analysis Tool

Dec 9, 2009

I'm using Adobe Flash CS 4 and would like to know are there any profiler or memory analysis tools available for it ? (actionscript 3). I know there are available tools for Flex, but are there for Flash CS 4 instead?

View 3 Replies

Flash :: Builder 4.5 Profiler Not Finding Memory Leak?

Oct 11, 2011

I'm working with a large modular app, and most of the swfs were made in Flash Professional. When I load the app in the Flash Builder Profiler, the memory usage appropriately goes up and down as I add and remove modules. When I flip between two modules many times, I end up with the current memory in the Profiler more or less where I started at around 2 megs. System.totalMemory, however, shows that the flash player has only been allocating memory and is currently using 106 megs. Is there a certain bug known to do this, or is there a better way to detect memory leaks? I'm using the latest flash player debug version.

Note: The SWF modules are all permitting debugging, and the Profiler picks up objects in them.

View 1 Replies

Actionscript 3 :: Vtune Profiler For Adobe Flash Player?

Nov 28, 2011

I found this link which explains how to profile a Tamarin application with vtune. Since tamarin and Adobe Flash share the same code base, can I use it to profile Flash apps too ?

View 1 Replies

Flex4 :: Does Flash Builder 4 Profiler Work With Flex 4.5 Project?

May 17, 2011

I'm trying to use the Profiler for the first time so I don't know much about it. But it doesn't seem to work.I run my project under profiler, it says it is running, but no window shows up. Nothing. I can see the project's icon down there but I see no window at all.Can this be cause by the fact that I'm using Flex 4.5? You can the app in the dock and it shows its live objects, but I don't see the apps' window and cannot interact with it. The app is just a simple 400x400 window with some black shapes in it.

View 2 Replies

Actionscript 3 :: Find Where Size Is Coming From In Flash's Bandwidth Profiler?

Feb 21, 2012

I'm working on a Flash CS5/AS3 pre loader, and the bandwidth profiler is telling me that my frame 1 size is massive - about 850kb. Frame 2 is 128kb. This results in a white screen during the bulk of loading, followed by the brief and now-unecessary preloader, and then the rest of the swf.

I have a setup of two frames, the first being the preloader with the following code:

stop();
addEventListener(Event.ENTER_FRAME, preLoad)
function preLoad(event:Event):void{
var bytestoLoad:Number = loaderInfo.bytesTotal;

[Code].....

The .as file associated with the fla has tons of other information, a full game.

I've already gone through my library and on all the symbols with Linkage, unchecked the "Export in Frame 1". Also the pre-loader is small, only a text box and a shape.

How can I get more detail of it's loading in frame 1 so that I can move it to frame 2?

View 2 Replies

ActionScript 3.0 :: Reading LoaderInfo Flashvars Then Chaning Them And Reading Them Again Fails

Oct 24, 2011

I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.

View 1 Replies

Media Server :: Dynamic Live Stream Don't Take The Best Stream For Bandwith

Mar 9, 2010

I build a client side application where is only a FLVPlayback2.5 component and a short AS3 script.

[Code]....

My Encoder is setup with three streams: Vid: 500 kbps - Audio: 48 kbpsVid: 800 kbps - Audio: 48 kbpsVid: 1500 kbps - Audio: 48 kbps I start the encoder and everything looks fine in the log. In my browser (Safari or Firefox) I go to my html site and the stream starts after 6-8 sec. But anytime with the lowest bitrate 548 kbps and nothing look like the stream is switching to another bitrate. I tried it with the smil playlist and the result is the same. Only the lowest bitrate is plublished.

[Code]....

View 3 Replies

ActionScript 3.0 :: When Game Window Open After That User Don't Need To Click On Flash Stage Area For Unable Keydown Event

Dec 21, 2011

I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydown event..

View 1 Replies

Flex :: Profiler Doesn't Do Anything?

Mar 1, 2010

My Flex application has some memory problems which I'd like to find using the profiler. However, when I run the profiler from Flex Builder, nothing happens. The appication is run the regular way, but nothing is profiled. The Profiling perspective doesn't event open, and when I open the Profiling perspective, no memory usage is displayed.
Can anyone help me out here?

View 1 Replies

Flex :: Find A Bandwidth Profiler

Mar 21, 2010

I was trying to find a bandwidth profiler in flex like there used to be one in Flash but couldn't really find one. Is there a way, that I can do bandwidth profiling of my local swf?I'm using Flex Bulider with a AS3 project.

View 2 Replies

ActionScript 3.0 :: Centering/stageHeight Strangeness?

Aug 18, 2009

I have a class with the following code in it's constructor (eventSprite is just a circle added to the stage):

Code:
eventSprite = new Sprite();
addChild(eventSprite);[code].........

View 5 Replies

Flex :: Spot Memory Leaks In Profiler?

Jul 20, 2009

I have an AIR/Flex app I made, I have a few people testing it and everyone is reporting that after leaving it running for a while, it is making all there machines run very slow. It runs fine at first so this must be a memory leak somewhere. I used the profiler on this and the only thing that shows as using a substantial amount of memory is MethodQueueElement which is not a class I wrote, and I have no idea what it does, I am assuming its part of the Flex framework. I am not familiar with using a profiler so I am not sure what all I shuld be looking at, that was the only class that was high on "memory" and it said it had over 100,000 instances. If this is my problem what can I do to fix it?

View 1 Replies

ActionScript 3.0 :: Use The Flex Profiler On A Live Project?

Nov 17, 2009

... by which I mean a project that's sitting on a web server somewhere.

View 1 Replies

IDE :: Bandwidth Profiler :: Show What Is Loading In Any Given Frame?

Jan 11, 2010

I have made a preloader that is in the same swf as my main Movie.I went and set all my linked movieclips to *not* export in the first frame.However, I seem to still have quite a bit loading in my first frame (64kB) and I can't quite figure out what it is? The only movieclips I have set to export in my first frame is my preloader movieclips ("container" and "preload bar") both of which are simple shapes I made in flash.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved