ActionScript 3.0 :: Multi-threading Or  Background Process

Jul 12, 2010

Hi..my friis Multi-threading or  Background process possible in Flash(as3)..?

View 1 Replies


Similar Posts:


Actionscript 3 :: Unwanted Background Multi-threading?

Apr 25, 2011

I created a new class with private vars and public get properties.When I create a new instance of the class, it loads text files content to the private vars - it probably takes a bit of time to load it.After the new instance created, I try to get the value of the private var with the get property:

var item1:MyItem = new MyItem("0001");

trace(item1.ItemName);

Well, The output is blank.The string that ItemName points to is not undefined, it contains data.So, it's like a timing issue, and ActionScript is probably running the code using background multi-threading, so it's calling the trace command before it finished to run all methods in the MyItem c'tor (methods that load the text file data into the String var that ItemName points to).

Is there any way to force ActionScript avoid using this unwanted "background multi-threading", and run the code normally (by the order of the commands)? I mean like "Don't run the 2nd command until you finished running the 1st one".

View 3 Replies

Multi Threading In Flex

Sep 29, 2010

I know that flex does not support multi threading however, I would like to clear a doubt.I have two events that call a same function. Suppose the two events occur at the same instant (or in quick succession) will the handler be called twice, one after the other or there is a chance that if the handler function is taking too much time to execute the same handler can start executing simultaneously.

View 3 Replies

Android :: Multi Threading In Flex Mobile Project?

Jun 20, 2011

I want to download a video on mobile device through flex framework. For that reason I need to have support of multithreading so that I can download video in background. Unfortunately, Flex doesn't have multithreading support. I am quite new with flex environment.

View 1 Replies

Multi Process Architecture For Flex AIR Based Application?

Nov 11, 2010

I developing an AIR application in Flex that would be dealing with playing different SWFs. I am finding some issues as these SWFs that I am playing are heavy. I find that the animation is not smooth and is causing the graph of CPU usage to go high (my be because single thread architecture of Flex). I am therefore planning to have a multi process architecture for my application. Something like Google Chrome. I have one main application as one process and other SWFs would be playing in separate process but should be seen inside the main application window. How to make it possible in Flex?

View 4 Replies

Java :: Adobe Flex Mobile Background Process

Apr 6, 2011

What is the best solution for multi threading in flex, I notice if I play a mp3 in flex and do something else at the same time something ends up giving out, either the song stops playing or the UI hangs for about a split second. It doesn't have that fluid response that I am looking to achieve. If possible I would like to call a multi threaded java class to do some of the client-side end back end processing. I just don't know if that is possible.

View 6 Replies

ActionScript 2.0 :: Loading External Images As Background Process

Jul 29, 2009

I was wondering if anyone could point me in the right direction.I have images loading into loaders, and empty movieclips, on demand..I would like to be able to load images that havn't been cached yet, but still have the images that the user navigates to to take loading precedence if need be. ie...Speed up loading time by haveing images load as a background process.

View 1 Replies

Actionscript :: Flex Charting - Fixing The Background Grid And Multi-line Plotting

Jan 19, 2011

I have two requirements for a flex charting component:

1) The grid lines should always remain fixed to a scaling I define using an array of data. Something like a graph paper sheet.

2) Plot multiple line series data over this grid.

How does one get complete control over the background grid lines? I have tried a combination of annotation elements and setting the linechart background elements. If I get the grid right, I can't plot over it (Probably due to the scale). how would one go about designing a graphpaper like interface for linecharts in flex/actionscript?

View 1 Replies

Flex :: Does 3 Support Threading

Apr 12, 2011

Does Flex 3 support threading? If so, are there any examples or links I could look at?

View 3 Replies

ActionScript :: Multithreading - Timers And Threading In Flex 3

Jun 7, 2010

Does it run in a separate thread or the main loop? If the latter, does that mean that the Timer might not be called if the main loop is in a long-running action?More generally, what can you tell me about threads running in ActionScript? My once-a-minute Timer is called if an event-handler runs for minutes, so it is not the case that all ActionScript runs in one thread.

View 1 Replies

Flex :: Why Doesn't ActionScript Currently Support Threading

Jun 15, 2010

Why doesn't Flex/ActionScript currently support threading?

View 5 Replies

ActionScript 3.0 :: Custom Events, Loaders And Threading?

Feb 3, 2009

I'm working on a project in flex and I have a few questions pertaining to performance. First off I know that I cannot write multi threaded programs but I understand the internals of the flash player are multithreaded1. when i call ActionScript Code:loaderObj.load(new URLRequest("ljdsfglsdhflsd")); will flash player make a new thread for that?2. I am also interested in making a custom Event class will the listener (which i assume is a loop that runs once per frame or more) run in a different thread. I want to minimize CPU usage as much as possible in areas I can.

View 0 Replies

ActionScript 3.0 :: Can't Seem To Find Any White Papers Or Documentation On The Threading Behind Flash

Oct 2, 2009

If your Flash app is in the middle of some code, such as a method, or the AS on a frame, and it gets a callback from an asynchronous event, how does it handle that? Is execution halted on the current code to handle the callback? Or does the currently executing code finish first?

I can't seem to find any white papers or documentation on the threading behind Flash.

View 1 Replies

ActionScript 3.0 :: "threading" - Run Multiple Tweens At The Same Time Without Them Crashing?

Jun 18, 2010

is there a way in as3 to run multiple tweens at the same time without them crashing? eg. I had a problem with a movie clip.. on mouse over it would glow, and if clicked it would move to another place... the problem was if the user clicked the clip while it was glowing, the "glow" tween was interupted and the clip moved to another place but kept the glow... another eg. if i play an embedded video at the same time an animaton of some sort starts at another part of the screen, they both slow down.... so basicly, is there a way to make multiple tweens and/or videos run smooth at the sam time?

View 2 Replies

How To Speed Up Fade In / Out Process

Jan 12, 2009

I have an image menu that starts off as black and white and when the mouse hovers over it, it enlarges and changes to colour. It works a treat but I would like the transition from black & white to colour to be faster. Is there anyway of doing this without much(hardly any) flash knowledge.

Here is the fade in/out script:
MovieClip.prototype.fade = function(dir:String, addInteger:Number, f):Void {
delete this.onEnterFrame;
//this.step = (dir == "in") ? 0 : 100;
this.step = this._alpha;
this.onEnterFrame = function():Void {
this.step = (dir == "in") ? this.step+addInteger : this.step-addInteger;
this._alpha = this.step;
if (((dir == "in") && this._alpha>=100) || ((dir == "out") && this._alpha<=0)) {
delete this.onEnterFrame;
f();}};};

View 1 Replies

Flash :: Process Video Using It?

Jun 5, 2010

I want to have a web page where user can activate his/her web-camera and send video to another user. Additionally to that I want to have a possibility to process video on the client side. In more details, I want to have a program which analyze video on the client side. Is it possible to do it with Flash?

View 1 Replies

ActionScript 3.0 :: Getting Php Process Info?

Nov 30, 2009

I'm working with a php script that takes a really long time to process. Is it possible to get the process info to flash (as3)? I'm thinking that I could echo the process percent from php, but is it possible to read and use the values as the process is running

View 1 Replies

As3 :: Process For Creating A Component?

May 15, 2007

OK, what's the process for creating a component in as3? Not AS2. If you ask anyone, they seem to refer you to as2 documentation. Also, I am strictly working with flash pro cs3 and have never used flex. I have lots of components from all the time with as2, but now need to convert everything over to as3. Or maybe, that's not possible and you have to still use both in some manner?

View 9 Replies

Javascript :: Video With Transparent Background On Page Above Image Background?

May 2, 2010

I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?

View 1 Replies

Flex :: After Importing A PNG With Transparent Background It Shows Up With White Background

Dec 28, 2010

As the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]

View 2 Replies

Process Of Creating An All-flash Website?

Apr 23, 2009

I am in the process of creating an all-flash website for my best friend.It is for his music group and he would like to be able to update the dates on the upcoming events page every so often.s there a fairly easy way for me to show him how to do this, or should I just scrap the half-made flash site and opt for an html site?

View 1 Replies

Professional :: Get Rasterized In The Swf Creation Process?

Feb 23, 2010

I'm somewhat of a noob here, so please forgive my ignorance.  I tried to google the answer to my questions, but probably not using the right terms.
 
So my questions are these: Is there any advantage to using vector elements in flash projects, or do they just get rasterized in the swf creation process?
 
If you use vector instead of raster art, can you scale your swf infinitely large (theoretically) without degradation? Will vector art result in a smaller swf size?  Will it take less processing power to play?

View 1 Replies

Flash :: Process Closes After Starting

Feb 19, 2011

So my problem is that I can not even run Adobe Flash.

I downloaded the trialversion and I installed it too but after running the Flash.exe it closes immediately without any error message.

View 6 Replies

Flash :: Call An AppleScript Process From AIR?

Apr 9, 2012

How do you call an AppleScript process from an AIR native process?

Background: I've created a script.scpt file and placed it in the root src directory of project.

I'm getting this error with what I have:

Error: Error #3219: The NativeProcess could not be started. 'launch path not accessible'

What I have:

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var file:File = File.applicationDirectory.resolvePath("MyScript.scpt");

[Code].....

After that I passed the script file name as an argument. It also needs the working directory to be set to the directory of the script otherwise you get:

ERROR - osascript: script.scpt: No such file or directory

View 1 Replies

Flex Core Process Window?

Aug 10, 2009

if someone presses ctrl +alt +delete or any kind of shutdown hook from any os and delete the flex process from task manager then how can i track from that flex process application that killing that flex process was activated so i like to do some processing before killing this process.

View 1 Replies

Php :: Process AJAX Requests More Securely ?

Mar 19, 2010

I want to send AJAX requests to my website from my Flash games to process data, but I don't want people downloading them, decompiling them, then sending fake requests to be processed, so I'm trying to figure out the most secure way to process in the PHP files. My first idea was to use Apache's built in Authorization module to require a username and password to access the pages on a separate subdomain of my website, but then you'd have to include that username and password in the AJAX request anyway so that seems kind of pointless to even try.My current option looks pretty promising but I want to make sure it will work. Basically it just checks the IP address being sent using REMOTE_ADDR to make sure it's the IP address that my server runs on.

<?
$allowed = new Array("64.120.211.89", "64.120.211.90");
if (!in_array($_SERVER['REMOTE_ADDR'], $allowed)) header("HTTP/1.1 403 Forbidden");
?>

Both of those IP addresses point to my server. Things I'm worried about:

1) If I send a request from Flash/ActionScript, will that affect the IP address in any way?

2) Is it possible for malicious users to change the IP address that is being sent with REMOTE_ADDR to one of my IP addresses?

View 3 Replies

Flex :: How To Process Events Chain

Jan 10, 2011

I need to process this chain using one LoadXML method and one urlLoader object:

ResourceLoader.Instance.LoadXML("Config.xml"); ResourceLoader.Instance.LoadXML("GraphicsSet.xml");

Loader starts loading after first frameFunc iteration (why?) I want it to start immediatly.(optional)

And it starts loading only "GraphicsSet.xml"

[Code]...

View 2 Replies

Flex :: ActionScript 3 - How To Get Self Process ID In Desktop App

Jul 31, 2011

I create a Flex Desktop App by Flex builder 4. I want to log some debug info into a file , named by process id
//var pid:int = NativeApplication.nativeApplication.getPid() ??
var logFile:String = "/var/log/MyApp_"+pid+".log";
Is these any API to get pid in Flex/ActionScript3?

View 3 Replies

C++ :: Pass An Image To The Native Process?

Aug 30, 2011

I am trying to make an AIR application, that needs to pass an image (.jpg/.png) to a C++ app, that does number crunching.(this needs to be done very often, like every 2-3 seconds.) I've managed to pass the image by saving it to disk via AIR, then opening this file with the C++ program (and passing the filename as an argument to the C++ program), but this method is really slow, because it involves lots of disk I/O.

Is there a method to send an image directly to a native process?

Edit: There is a good Flash-C++ communication example at [URL] using sockets. The big problem with this method is, that some firewall settings can block the communication (i get a windows firewall warning, when i start the app).

View 1 Replies

ActionScript 3.0 :: Communicate With A Native Process?

Sep 10, 2011

I see a lot of tutorials out there for the flex environment but none for Adobe Flash Cs5. Not even when it is using the AIR build.How exactly does one communicate with a native process using flash or air?

View 4 Replies







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