actionscript

how to syncronize methods in actionscript?

The question is how could I stop a method being called twice, where the first call has not "completed" because its handler is waiting for a url to load for example? Here is the situation: I have written a flash client which interfaces with a java server using a binary encrypted protocol (I would love to not have had to re-invent the w...

Actionscript call from javascript throws an exception

I know this subjet isn't new at all but i'm going to be crazy that it doesn't work at all. So I create a "KISS" (Keep It Stupide Simple) sample just to see if it may be something from the original SWF or just a real problem... HTML is hosted on web site A (actually the Javascript too, but this last one will be moved on web site C) en th...

Addressing from the root directory of website in action script

Hello you all , I have a flash banner in my website and it has some navigation links on it . Because I have several different folders in my website I need address them from the root . At the moment i use getUrl like this : getURL("ArticleList/Default.aspx"); But it doesn't work . Thanks in advance ...

Color detection in AS3 possible?

Hey, i was wondering what do the AS3 experts would do to detect a color with the webcam (red) and draw a sprite on those color boundaries. Thanks in advance. ...

How to prevent browser from becoming non-responsive when ExternalInterface.call is called?

Hi, I have a flash movie and I am using ExternalInterface.call function to call a javascript function from within the movie. The problem is that whenever the javascript function gets executed in Mozilla Firefox, the browser becomes non-responsive. I have uploaded the file here: http://www.aakashb.0fees.net/carbon6.html This is a map of I...

Using Flash FLVPlayback component with skin on Facebook (FBML)

I'm trying to insert a player on a Facebook Page tab with FBML with fb:swf. I have the following: <fb:swf imgsrc="http://IP/player/player.gif" swfsrc="http://IP/player/player.swf" flashvars="source=http://IP/player/movie.flv" swfbgcolor="000000" wmode="opaque" quality="best" width="520" height="430" /> I can see the...

Has any one used Flex 1.5 for mobile apps?

I know its now Flash builder 4 and it is grate. But FP for mobile on Nokia is still quite not up to AS3... while my audience has mostly has quite old Nokia phones... That support like most of FP7-8... Has any one experience of using Flex 1.5 for creating mobile apps? Is my idea ok or there are some really big problems on my way? Mainly...

Set the variables only once on Actionscript 3 game?

Hello I'm trying to create a simple game. I've set up a layer "actionscript", where I put all the code in. Then I have a image, instance name is "player". Here's my code: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyDown); var power = 5; var friction = 0.95; var xspeed = 0; var yspeed = 0; function KeyDown(keyEvent:KeyboardEvent...

How to pass "" symbol to Nativeprocess argument?

var arg3:Vector.<String> = new Vector.<String>; var rescJar:String = File.applicationDirectory.nativePath + "/java/test.jar"; arg3.push("-jar",rescJar,"-n "a string""); "a string" contain 2 separate words. ...

Extract Captivate 4 text captions using Flex (ActionScript 3)

Hi Folks, I'm developing an application in Flex 3.5 for video tutorials, which uses a lot of Captivate 4 (AS3) videos (>200). In the front end, the user can navigate thorough the videos in a menu structure. In the administration part, the admins can upload more videos and organize them into the menu structure. Since we have more than 20...

Make flash-movie full browser size?

Hey I'm trying to create a small flash-app, which needs to run as big as possible on the browser. For example regexr and Grooveshark work this way. However, if I use the File -> Publish Settings and there set the width and height 100%, it resizes to full browser, but... When I use stageHeight and stageWidth, they don't change. I only h...