ActionScript 3.0 :: ProgressEvent Reporting Incorrect Properties?

Jan 7, 2009

I have an app that loads large imagery and swf assets on demand, presenting a movieclip that displays load status based on a ProgressEvent listener. When run locally and off of my own server everything looks as it should and I get accurate bytesLoaded and bytesTotal figures producing the correct load % displayed. However, when published to my client's server, the load status starts at 100% and doesn't ever change. The even stranger thing is that in Firefox it says 100% Loaded but in Safari it says Infinity% Loaded. Are there web server settings or differences I should consider here?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Loader Reporting Incorrect TotalFrames Of Content?

May 9, 2011

detecting the totalFrames of content loaded into a Loader?
 
I made a dummy animation just for testing (150 frames of text just tweening across the screen) to load. I load that in and when it's loaded I'm always told it's only 2 frames long.
 
e.g.:
 
package {
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;

[Code].....

I just wrote that by hand now as an example so there might be a typo here or there but you get the general idea. I'm using CS5, flash player 10, just testing the movie and every time it traces 2 total frames. how to tell how many frames the loaded content actually has?

View 2 Replies

IDE :: CS5 AutoFormat Bug Reporting

Aug 4, 2011

Is there a defined way to report bugs with the autoformat system to adobe (or do they even care may be a better question)? Also, is there a list anywhere of known bugs in CS5?In the last 24 hours I have come across several, and while some may be hyper specific (e.g. if you comment out a for each in loop and the comment is followed by a for in loop it will put semicolons where they dont belong and cause a syntax error), others are easy to do and hard to figure out (e.g. comments inside of for loops mess things up).

View 1 Replies

Flash :: MaxScrollV Reporting Incorrectly?

Dec 9, 2010

I have an html text field that displays content from an xml file, and a class that determines whether or not to show a scrollbar.The code that determines this is as straightforward as

if (field.maxScrollV>1){
showscrollbars()
}

And 9 times out of ten it is working. Sometimes - it seems when the html contains <li> - maxScrollV is reporting '2' and the scrollbars are showing, even though all text is visible onscreen and it will not actually scroll at all.

View 2 Replies

ActionScript 3.0 :: LocalToGlobal Reporting Wrong Coordinates?

Oct 15, 2010

Say I have a movieclip called theScreen a 0,0. It is 800 wide, 700 hightheScreen contains a movieclip called theStatusArea at 600,0. It is 200 wide by 700 hightheStausArea contains a movieClip called pieces at 10, 410. It is 180 wide by 180 highpieces contains a number of movieclips (triangle, square, etc.),all of these sub movieclips are more narrow than the pieces container and are all set added to the pieces container at 0,0

var pt:Point = new Point(triangle.x, triangle.y)
pt= triangle.localToGlobal(pt);
trace(pt); // should be 610, 410 at least at the start.

[code]....

View 7 Replies

Flex - OLAP Web Visualization And Reporting Recommendations?

May 4, 2010

I am preparing an offer for a customer. They proide weekly data to different organizations. There is huge amount data suits OLAP that needed to be visualized with charts and pivot tables on web and custom reports will be built by non-it persons (an easy gui). They will enter a date range, location which data columns to be included and generate report and optionally export the data to Excel. They currently prepare reports with MS Excel with Pivot Tables and but they need a better online tool now to show data to their customers. Tables are huge and need of drill-down functionality. My current knowledge Spring, Flex, MySql, Linux. I have some knowledge of PostgreSQL and MSSQL and Windows. What is the easiest way of doing this project. Do you think that SSRP (haven't tried yet) and ASP.NET better suits for this kind of job. Actually I prefer open source solutions. Flex have OLAP Data Grid control which do aggregation on client side. JasperServer seems promising but it seems I need enterprise version (multiple organizations and ad hoc queries). What about Modrian + Flex + PostgreSQL solution?

View 1 Replies

Php :: Reporting True Game Scores In Flash?

Jan 26, 2011

Im making a flash game and just wondering, how can I protect the ingame scores from being hacked ? For the moment im using a random number, which is set on the server and sent to the client, then using a hashing function which will hash 'score+randNumber' (a bit more complex, but the same idea), then i send the resulting score and the hash to the server (obviously logging attempted cheats). This so far works, but it is still easy to hack the score by decompiling the flash and finding out what the hashing formula is. Is there any other way that the scores can be transmitted to the server with little or no possibility of hacking?

View 3 Replies

Actionscript 3 :: AIR Socket Based App Status Reporting?

Jun 30, 2011

How do I go about creating a socket based status reporting system for an AIR app? What I have in mind, is you connect to the app via socket connection with some sort of terminal. It presents you with a list of options, you issue commands back, and it reports back any stats and messages. (This is for an app running on a remote kiosk, connected via 3G.)

View 1 Replies

Actionscript 3 :: Error Reporting From Event Callback?

Aug 17, 2011

I have been experimenting with supplying better debugging information when an error happens in asynchronous code in AS3.

As an example of the poor error reporting be default, take the case where I force a null pointer in a Timer callback (github gist), I get the following stacktrace back on the console:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Function/<anonymous>()[/[path-to-source-file]/TestClass.as:14]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

This tells me very little about how the timer callback actually links to my code.

The question is: How can I get information about what code created the callback?

View 3 Replies

Flex :: Add Detailed Remote Crash Reporting To Air Application?

Mar 1, 2010

I will be releasing my Air/Flex application soon, but I am pretty sure there are a couple of bugs that may pop up on the various platforms that Air is available for. So I was wondering if there is a way to implement a mechanism, that would send an error report, logging where the error happened, to a remote server each time an app crashes? This way I might catch errors that otherwise would go unnoticed.

View 1 Replies

Flash :: Shape Tween Isn't Reporting Its Size Correctly?

Aug 16, 2011

If I shape tween between two rectangles like so:On frame 5 I have the following:

trace(width);
trace(height);
trace(getRect(this));

[code].....

View 2 Replies

ActionScript 2.0 :: Textfield That Is Reporting Events On Stage Dynamically?

Jan 20, 2009

I need to create a textfield that is reporting events on stage dynamically (hitTests, onPress etc.). Something similar to output window in flash application. I want it to add events line by line, so afterall one can see what has been done.

View 3 Replies

Java :: Flex For Chart Based Reporting Having Oracle Backend

Nov 24, 2010

My only experience with Flex is some limited reading over the web. What i am wondering is if i want to use Flex or some variant of it for generating reports, specifically Charts, coming off a Java/Oracle backend can i accomplish that in an environment where the streaming media (we cannot play videos on our systems at work) is turned off? Also, are there any other restrictions revolving around using Flex for reporting in the form of charts? Currently, we use Jfree Chart API to develop charts but just exploring an alternative.

View 2 Replies

ActionScript 3.0 :: FileReference ProgressEvent?

Nov 17, 2010

After scratching my head for months about a ProgressEvent issue I decided to post my problem.I've been searching the web for a long time about my problem and all I could find was people with similar problems..But none of them had a solution.I've created a SWF file to upload files to the web server.The even triggers the progressEvent.PROGRESS to let a javascript function know when the progress has changed.When it's done uploading it triggers Event.COMPLETE.When I test my code at first it doesn't seem to work.The progress is event 2 or 3 times and then claims it's finished (While the Event.COMPLETE isn't fired yet).When the file is actually uploaded flash triggers Event.COMPLETE accordingly.o Event.COMPLETE is correct.. but ProgressEvent.PROGRESS is not.At least, thats what I thought, when I tested it on another pc (With windows XP 64bit) it worked (Magically?) tried it on a Mac and it, again, worked...why it behaves like this?
Below is my code as it is right now.
 
package
{
import flash.display.MovieClip;

[code].....

View 14 Replies

ActionScript 3.0 :: Loader Not Display - ProgressEvent?

Sep 4, 2008

I am trying to get a loading screen to work. I am using a EventEnterFrame to check how much is loaded but I continue to have problems. I use the code in the first frame on the timeline, with extra movieclips running on that timeline with their own scripts. Can seem to get the loader to display. Considering using a ProgressEvent.

Here's the loader code.
stop();
//trigger the check on every frame
addEventListener(Event.ENTER_FRAME, checkProgress);
//find total number of bytes in the file
var totalBytes:uint = this.root.loaderInfo.bytesTotal;
[Code] .....

View 1 Replies

ActionScript 3.0 :: ProgressEvent.PROGRESS In Different Laptob?

Apr 1, 2010

i made simple of my project to show the problem the code

[Code]...

View 8 Replies

ActionScript 3.0 :: Read Data On A ProgressEvent

Sep 20, 2010

Its possible read the data that is loading from the server (p.e.: a big .xml file) while the load of the file isn't complete? I have this:

[Code]....

View 2 Replies

ActionScript 3.0 :: How To Get Loader Class From ProgressEvent

Jan 2, 2011

How can I get Loader class from Progress event.
function loadMovies () {
var ldr:Loader=new Loader()
ldr.load(new URLRequest("test.swf"))
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,getper)
addChild(ldr)}
function getper (event) {
var info:LoaderInfo=LoaderInfo(event.target)
trace(info.loader)
}loadMovies()

View 4 Replies

Flex :: How To Isolate ProgressEvent Source

Sep 9, 2010

I've added a ProgressEvent listener to an instance of FileReference. At different times in the code I call both upload() and load(). How can I isolate the progression event of only the upload method?

View 1 Replies

ActionScript 3.0 :: ProgressEvent Not Running - Does Not Load The Swf Beyond Frame

Aug 3, 2010

My project works as intended, but after making a minor change a short while ago, something unbelievable happened. As far as I know, I only changed a button images, but now my preloaded does not load the swf beyond frame 1.

[Code]...

View 2 Replies

ActionScript 3.0 :: Read Data From ProgressEvent Http?

Sep 3, 2008

Is there any way that i can read the data from the progressEvent. that is even before the event is complete on an Http communication.

View 5 Replies

ActionScript 3.0 :: ProgressEvent Works On 32bit But Not 64bit

Jan 4, 2011

I'm not sure if the problem is as straight forward as the title describes, but it seems to be the only explaination. I'm loading a video at the begining of an application, but I don't want the skip Intro button to appear until the video "READY" event is fired. This works perfectly on the 32bit flash player but won't work on the 64bit flash player. It's not a streaming issue because I tested in both the local environment and via a server. I know the 64 bit player is in beta still, so there will be issues like this. I'm just wondering if anyone has found a work around. Here is my code if it.

[CODE]....

View 1 Replies

Flex :: AS3 - Main Stage Listener For ProgressEvent?

Jan 7, 2010

Can I add a ProgressEvent listener to the stage? I don't see it in any of the auto-complete options when I am typing in Flex. What do people normally do to get a progress readout of the entire main runner's loading progress? I try the following, which is where I would expect to see the ProgressEvent options pop up:
stage.addEventListener(

View 2 Replies

Actionscript 3 :: ProgressEvent Listener - Add Preloader For Every Image In The Xml

Sep 26, 2011

[Code]...

I want to add preloader for every image in the xml. Now I am getting for last image only. (consider if xml length is 5, it will trace image4 only)

View 5 Replies

ActionScript 3.0 :: Access Loader Class From ProgressEvent?

Jan 2, 2011

How can I access Loader class from Progress event.

[Code]...

View 1 Replies

ActionScript 3.0 :: ProgressEvent EventListener Won't Run If Video Already Loaded?

Feb 25, 2012

The purpose of the code below is to keep a video from playing until it's completely loaded. The first time the page loads everything works perfectly. The problem is that until the browser is closed and reopened, it won't play again. It other words if I hit the browsers refresh button, it won't play.

I believe this is because the video is then already loaded in temp storage, and because of that, on subsequent attempts the ProgressEvent EventListener does nothing, and never goes to the Function ProgressHandler.

//---------------------------------------------------------------------------
import fl.video.*;
import flash.display.*;
import flash.events.Event;

[code]....

View 5 Replies

Actionscript 3.0 :: Error When Trying To Remove ProgressEvent Listener?

May 29, 2009

why does flash return an error (Error #2099: The loading object is not sufficiently loaded to provide this information.) when i try to remove the PROGRESS event listener?

Code: Select allvar thumbLoader:Loader;
createThumbnails();
function createThumbnails():void

[code].....

View 1 Replies

ActionScript 3.0 :: Error When Trying To Remove ProgressEvent Listener

May 28, 2009

why does flash return an error (Error #2099: The loading object is not sufficiently loaded to provide this information.) when i try to remove the PROGRESS event listener?

[Code]...

i am using the ProgressEvent listener just so i can get the bytesTotal.. after getting the bytesTotal, i need to remove the ProgressEvent Listener because i only need the defineBytesCount function to run once..

View 7 Replies

ActionScript 3.0 :: ProgressEvent.PROGRESS : URLLoader Vs Loader?

Jul 10, 2009

I got to make a preloading class to be used all along the project, i need to be able to make some behaviours depending on the user internet connection.i have to load all sort of data and display progress percentage for ; SWFs, JPGs, GIFs, PNGs and Text, XML, Binary..i got problemes while tracing the progress of loading XML requests becaus I have to load XML using URLLoader and other data with Loader:

Code:
if (dispatcher is URLLoader)
{[code].....

as you can see, in xml ther's no progress. is there any work around? or is this a flash related bug?I used Loader to load XML files but got problemes with Event.COMPLETE not firing.

View 6 Replies

ActionScript 3.0 :: Image Preloader - Using ProgressEvent Progress

Aug 24, 2009

I'm writing a simple image preloader and attempting to use ProgressEvent.PROGRESS on my Loader to update a simple graphic bar. All pretty standard fare so far, so I'll show you the code:

Code:
package {
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;

The problem is that the "loadingProgress" function gets called twice by the aforementioned listener and so adds the ENTER_FRAME listener twice. Then, only one is removed so if I trace the value of "percentLoaded" it never stops. Is it standard that the PROGRESS event calls it's given function twice? If so, I obviously need to rethink the updating of the loader graphic.

View 7 Replies







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