Professional :: Improving Script Processing And Ensuring Completion?

Jan 7, 2011

I have a program in which I am running a number of for loops which are doing a number of different things.I pull in data from an xml file and then step through that data to dynamically create arrays, populate the arrays, and create and modify movie clips.

The program I'm building is similar in scope to one I developed in Director many years ago, and in that environment we had to actually put breaks in using timers to ensure that the data would be processed and that the system wouldn't choke.

What I'm seeing with this flash version of the application is similar and I suspect the same.  Basically, when navigating from the frame where the scripts are processed to the frame where the movie clips are displayed, there are times when it works perfectly and times when things are out of whack.  I put in a 5 second delay (arbitrarily) to see if this would resolve the issue and on my system at least it does.  But I need some advice on coming up with a real solution.

View 25 Replies


Similar Posts:


Professional :: AS3 - Improving Printing Quality Of Pages

Aug 21, 2010

I am making a flip book in flash. I am using swf files as individual pages. User have the option to print pages. I am converting the swf into a btimap using bitmap data but when I print the test is not clear and all pixelated. Is there any way to improve the printing quality of pages?

View 8 Replies

ActionScript 3.0 :: Ensuring A Static Var Stays Updated?

Oct 28, 2009

I want to get the index of the image currently in the center of the carousel and then I want to use this index number in other classes but it has to stay updated each time.Isuccessfully managed to get the index of the image that is currently being clicked on (this image will then be moved to the center of the carousel so as long as one always clicks on an image at the start, my method will work ) but I dont know how to allow other classes to access this. I tried saving it as a static var and then trying to access it by using the following:

private var coverIndex : int = CoverFlow.selectedCoverIndex;

But I receive the error msg that selectedCoverIndex is not available to static class CoverFlow or something of that sort. This is what my CoverFlow code looks like (i.e. where I determine which image I want to position in the center):

public class CoverFlow extends Sprite {
public var covers : Vector.<DisplayObject>;
private var cover : DisplayObject;[code].............

View 4 Replies

Professional :: Flash Player 10.2.159.1 Standalone Application CRASH With High Graphical Processing

Apr 16, 2011

Flash Player  10.2.153.1and  Flash Player  10.2.159.1 are crashing my standalone application. Later with  version 10.1 the application run ok, never crashes but was taking more than  90% CPU. The  new Flash Player solve the problem of resources, and drop down CPU to  30%, but  the application crashes always after a while, unespectly, or if I open the window of other application.
 
In  the other hand when I disable the harware acceleration at the swf  settings, the application goes crazy and start to make rapid flashes, and frame rate goes down to 8. [URL]. Right click on the Flash logo, Settings,then UNcheck the hardware acceleration in Display Settings.)
 
I'm  on a Mac Mini Core 2 Duo with Mac OS X 10.6.7 (the last Snow Leopard  these days). The graphical card is Nvidia GeForce 9400M.
 
I  did test the application at a Mac Book Pro core i5, Mac OS X 10.6.7,   graphica card Nvidia GeForce GT 330M and the application is more  stable but finally crashes too.
 
Finally if I export my application  with GPU Hardware acceleration at Publish Settings, my application  crashes almost inmediatly after I open it in each of the computers.
 
My guess is that the new Flash Version is using my graphical proccesor in a corrupted way.

View 6 Replies

Actionscript 3 :: Ensuring Crossdomain Policy Files Have Been Retrieved For All Facebook Image Servers?

Aug 10, 2010

I've recently started putting together a Facebook Connect AS3 app and retrieving objects and images through the Graph API.Running anywhere but locally, I receive security errors of the form: SecurityError: Error #2122: Security sandbox violation: Loader.content: xxxx cannot access url...A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.If I add a line of the form:[code]One thing I'd considered was retrieving the crossdomain policy file on a per image basis, capturing the domain from the image URL before making the image request. Unfortunately, at least via the Graph solution (and I haven't looked too closely at the others), their servers resolve the image url after the request is made, from something more generic like: url...Has anyone found a more dependable means of ensuring that images can be retrieved without security sandbox violations? Or do Facebook maintain a definitive list that developers need to keep an eye on?

View 1 Replies

Improving Flash Slideshow?

Aug 12, 2009

So I have made a basic slideshow on flash for a website. Nice but simple, 3 images fading in and out. But I want to make a slideshow that moves either vertically or horizontally, but most likely at an angle. I also want some text to either fade in or move as well. So I have a few questions.1) What is the best way to get th pictures to move at an angle? I have read some xml options for editing in dreamweaver, can't seem to find one for moving the picture.I would imagine you have to edit it in flash? Yes I'm new to flash!2) I take it you edit the text in flash, could it be dynamic text and what is the best way to move it?

View 4 Replies

ActionScript 3.0 :: Improving The Rendering Performance

Apr 26, 2011

rendering performance when scrolling some content. I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy. I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event. The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite? (Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 3 Replies

ActionScript 1/2 :: Improving Performance With Overlapping MCs?

Oct 29, 2009

I'm having some performance issues in certain areas of a flash game Im making.
 
Here's the situation: I have big movieclip containing a map that can be scrolled and scaled. There are some pannels with a bunch of MC buttons, controls, etc. on the right side of the stage. These are seperate from the map and stay in the same place.
 
Everything runs fine untill the large map is  zoomed in and/or scrolled such that the right side buttons and stuff are overlapping them map. Then the framerate jumps down from a nice smooth 30 fps to about 3 fps while the map is moving. There are no issues with the map moving when they don't overlap.
 
Now the thing is, is that's there's no real interaction between the buttons and the map. No transparency or anything, in fact I'm perfectly happy with the map dissapearing behind a side pannel. There are only about 3 pannels that the screen drawing routine would have to worry about, as all the buttons rest on top of the pannels, so why is my performance taking such a hit?
 
(Hmmm. Actually I do have a lot of transparency, but each is on top of a solid background, and none interact with the map.)

View 8 Replies

ActionScript 3.0 :: Improving Workflow With The Drawing API?

Nov 12, 2009

I'm used to the drawing tools within CS3/CS4, but i tend to draw from with AS3 using the drawing API, this is because I tend to want to programmatically animate the drawing parameters.Is there some solution whereby you can use the drawing tools within flash CS3/4 but then 'capture' the drawing information so you could then draw the same line/curve/ shape from within AS3?So a pentool could then give a code output like:

lineStyle(..)
moveTo(...)
lineTo(...)

[code].....

View 4 Replies

ActionScript 3.0 :: Improving The Script Interpreter?

Nov 6, 2011

So i'm building a plugin system for my game, and i need to know actively what objects each plugin wants to use. For this, i have made a simple String interpreter. What it can do so far is separate id's and get whether a required input uses all of that kind.

my input format is like this:

Code:
IA:[param];IA[param];NN

IA is the index of all objects matching the parameter to the right of it. A is replaced by A if you want all those objects with the ID of param, or a number for a specific index.:[] tells the interpreter that what is inside the ['s is the param.the param is the string identifier that it looks for when finding objects.NN is the end sequence. this tells the engine that it doesn't need any more params.so say i had a plugin that uses the string

Code:
I2[player];IA[world];NN

the engine will loop through all objects with the ID "world" using them as the second param for the plugin's behavior, and the first will always be the 2nd "player" in the list.I can currently detect whether it wants all of a certain parameter, and what the parameter is. Now, i need to be able to find the index each param requires if it is not all. And i've tried multiple ways of doing this, but none so far have worked. What method would i use? Also, if you see anything that would kill performance in the interpreter, i would love to know, as this is called every frame.

My current code is a class with static methods called StringInterpreter, with the below code:

Code:
package Utils
{
public class ScriptInterpreter
{

[code]...

View 6 Replies

ActionScript 2.0 :: Improving Smoothness On Site?

Nov 5, 2002

Notice the animated "I"s in the top right... this is an MC with different instances of an I with a code in each one that animates it then resets it at a random size and alpha.If you scroll over the main menu buttons of the site and watch the animation sometimes it pauses for a bit. I have even removed many of the "I"s I had origonally and it still slows up a bit. This became more noticable when I added sound to the menu buttons.

View 5 Replies

ActionScript 3.0 :: Flash Improving The Rendering Performance?

Apr 26, 2011

I am working on a large project and I would like some advices about improving the rendering performance when scrolling some content.I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy.

I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event.The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite ?(Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 6 Replies

Flex :: Coding Tools Do You Use For Improving Effectivness Of Programming?

Nov 6, 2011

What coding tools do you use for improving effectivness of programming in FLEX?I found Tr.ace() AS3 Debugging Utility whichme a lot with working in a team of programmersframeworks like RobotLegs and others.

View 3 Replies

ActionScript 3.0 :: Flash Improving Time Taken To Open Swf's In Webpage?

Nov 25, 2010

I have an html website that displays still photographs contained in a swf built in flash. I refer in particular to the images in the rectangle window on the right. [URL]As you can see the swf starts with a % preloader. The images are fairly high resolution, 14 in total (each embedded into movie clips and not dynamically loaded)I just wish to know if there is a way of SPEEDING up the time it takes for the swf to load and open in the web page, to aid users with a slower connection.I understand that if my host server is reaonably fast (which I believe it is) then the problem lies with the users connection speed, but IS THERE ANY ADD ON ACCELERATOR or CODING I can apply from my side of things ?

View 4 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects / Improving Code Suggestion

Feb 25, 2010

i want to improve my code for drag drop seven different or multiple objects to be moved in any three of target places then target value will be search by category or feature wise,[code]

View 3 Replies

Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

Data Integration :: Course Completion Not Registering In LMS

Nov 5, 2008

A vendor had built courses for us a few years ago. There are 5 modules. The courses are SCORM and are tracked in the LMS from url...We recently had 60 students sign up for a course, but they are not getting completion tracking for 4 of the 5 modules. The students are using IE7 and Flash Player 9. complete works for the module where the completion code is send from an HTML page. The completion does not work from any of pages where the completion is sent from Flash. The flash files were coded with AS2, here is the code on the "Finish Button":[code]

View 1 Replies

ActionScript 3.0 :: Check For Completion Of Timeline

Mar 27, 2010

I have a moveclip inside of another movie clip. "graphicsSpace" is the main clip. "graphicsMenu" is the clip inside it. When graphicsSpace is opened, it stays at frame1 and graphicsMenu runs through some animations and finishes. When it's done, I want graphicsMenu to tell graphicsSpace to go to its second frame. Yet every time I'm getting this error: TypeError: Error #1010: A term is undefined and has no properties. at Portfolio_fla::GraphicsMenu_30/frame156() I was just using this basic code on the last frame of graphicsMenu: this.graphicsSpace.gotoAndPlay(2); Nothing else.

View 9 Replies

ActionScript 3.0 :: Delete A Tween After Completion?

Jul 9, 2010

How do I delete a tween after completion?

View 4 Replies

Android :: How To Listen A Method's Completion

Jun 29, 2011

I am working on a little android app [Air for Android],and I am struggling on how to listen a method's completion.[code]which init() is a function that I wrote in a class named OauthConnection,saved as file named [OauthConnection.as]My problem is when init() is still executing though, busyOff() got executed.what i should do to make sure busyOff() is executed after init() is done.

View 1 Replies

Actionscript 3 - How To Use Flash Code Completion

Oct 3, 2011

At this years Flash on the beach i saw a speaker using small 'code-keywords' that would complete entire sets of AS-code, depending on the keyword.Ex.:He would write @forloop, hit enter/space and a typical for-loop would be written automatically.Unfortunately he never said how to access this functionality in Flash.

View 1 Replies

ActionScript 2.0 :: Detecting Completion Of A LoadMovie Swf

Apr 2, 2003

I have a movie called radio.swf this has 5 keyframes. Each keyframe loads a different swf movie.[code]This all works great. BUT here is the problem When song1.swf ends it loops itself. How can i make it to when song1.swf ends, the timeline in radio.swf advances one keyframe so that song2.swf starts to play?

View 14 Replies

ActionScript 2.0 :: [FMX] Detecting Loading Completion

May 11, 2003

Ok, I have a main movie with two transition elements. They each close together when loading a main category, and i just wanted to kno is there a way that i can keep the stuff behind transitional element 2 closed, even if its done loading, until the stuff behind transitional element 1 is done?

View 14 Replies

ActionScript 2.0 :: Completion Of FLV - Video Object And FMS

Dec 14, 2007

I am creating a simple video player with the video object but I am using Flash Media Server. I can not figure out how to determine the completion of the FLV. Here is my code:

[Code]...

View 2 Replies

ActionScript 2.0 :: Detecting Completion Of TransitionManager?

Feb 18, 2009

I'm just wondering if there is a way of detecting when the transition from TransitionManager has completed? Is there a parameter for that?

View 1 Replies

ActionScript 3.0 :: Code Completion/hints Would Not Be Showing Up?

Mar 11, 2009

I just downloaded the 30 day trial of adobe flash cs4.why the code completion/hints would not be showing up? Either when typing a "(" for a method or a "." I get nothing. "code hints" is checked off in my prefs and the delay is at 0 sec. Also, If I click the show code hint button in the AS window nothing happens.

View 3 Replies

Actionscript 3 :: Listen For The Completion Of A MovieClip Playing?

Jul 29, 2010

I want to execute a function upon completion of a MovieClip's animation. That is, I would command it to play() or gotoAndPlay(). I don't know of any listener that I can attach to the MovieClip with the "addEventListener()" command. Have any idea I can do?

View 2 Replies

ActionScript 3.0 :: URLloader - Event Not Triggered On Completion

Feb 11, 2009

I have code that sends variables to an .asp file to be put on a database, and all that works fine the database connects and is updated fine, the thing is flash doesn't recognize that the operation was successful and won't continue with the further functions. I understand this may be due to a problem on my asp file, but the SQL executes successfully which I see when i check my DB, so I was wondering if anyone could look at my AS code and see any problems?

[Code]...

View 1 Replies

ActionScript 3.0 :: Listening For Class Completion And ENTER_FRAME?

Aug 15, 2011

I have a complex class that manipulates and creates many calculations and graphics on the fly. Once I create an instance of this class in my main file I am using the enter_frame event to constantly update the class. (it's for re-calculating/scaling graphics)The problem is: flash locks up because of all the rapid processing. Is there a way to listen for the class's processing completion and only call the enter_frame event if it is complete? I tried creating a boolean public variable that is set to TRUE at the end of the processing stack (inside the class) but that doesn't seem to do the trick.'m lost here?

Naturally lowering the frameRate is a "cheap" way to smooth things out...but that is lazy and hacky in my opinion because I would like the class to get updated as fast as the end user's computer can handle.I've simulated my problem with the following code. Just some long loops that really slow down the flash player. How do i get the player to say: "ok, not done processing the updates inside the class... ignore this enter_frame" ?

ActionScript Code:
// SlowClass.as
package  {

[code]......

View 8 Replies

ActionScript 2.0 :: How To Use Playing Sound To Trigger Event On Completion

May 27, 2009

I'm trying to use a playing sound to trigger an event when it finishes:
onSoundComplete = function(){
redbtn._alpha = 100;
redbtn.enabled = true;
}
I have the button fading and disabling nicely (on (release)) but when the sound stops playing, I need them to return to alpha 100 and enabled=true. It doesn't work but there's no error generated either.

View 1 Replies







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