flash

How to load xml item one at a time as3

Flash AS3: Does anyone know how to load items one at a time instead of loading in loop at a normal process using AS3? I'm having problem with overwritten value. I couldn't make that work, it's always overwritten the last value.I tried to use the dictionary and though it will help to resolve my problem... I want to be able for EACH but...

How do you run multiple 'Test Movies' in Flash CS4 IDE? (Need the Sandbox Mode)

I'm making a binary socket server for Flash and I'm trying to figure out a way to run Multiple clients in a local environment for testing purposes. Tried to run the exported flash movie in my browser (to open multiple tabs of flash swf) but I just could not figure out how to solve the cross-domain problem. I'm running my server right f...

How do i send data from flash to html page?

I would like to know that how we could send out data from a flash movie to html , php, aspx page so that that data could use for further calculation. ...

Convert Flash art to OpenGL-ready vector format?

Say I have some 2D artwork in Flash CS4 format .FLAs, and I'd like to put it into an iPhone game that uses OpenGL ES, keeping it in vector format. An OpenGL-ready format could just be a list of vertex positions and colors for a triangle strip. Is there a converter available that can do that easily? ...

How to render a printable image from a SWF

I'm working on a project at the moment where the client uses an off-the-shelf Flash library to display data against a map. It's a SWF that we feed some XML data and it renders it in various ways, such as a map of the UK with each county represented with a different colour depending on the data we feed it. As it's an off the shelf, we on...

Detecting end of Flash movie in javascript

Is there a way to detect end of Flash movie (OOTB, without using some sort of flash callback). Alternatively, is there a way to know the length of the movie? Update: IsPlaying() looked promising (periodically checking it), but as it turns out, nobody is creating straight forward swfs any more; now, the content is embedded in main lay...

Removing invalid characters from string in AS3 ready for XML

I need some code for ActionScript 3.0 which will remove any characters which are not valid in an XML attribute. Have spent some time searching google and not found what I'm after. Can anybody help me out? ...

Flash AS3 javascript popup on Safari

Hi, I'm trying to do a popup window that is sized at 300x200 when clicking a button using the following code var jscommand:String = "window.open('http://www.mydomain.com','win','height=200,width=300,toolbar=no,scrollbars=yes');"; var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);"); navigateToURL(url, "_self")...

Action Script 3 get sounds total time and current time?

Hi, i have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this. function onPlayProgress(evt:Event):void { var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal)); var seekbar = 100 * (channel.position / sndLength); ...

Safari full screen bug

I need to use full screen mode in my flash application, for some reason when i go into full screen mode in safari or chrome, the stage is completely disabled. I tried using a very clean swf file with nothing on it, just 2 buttons: one for full screen and the other for normal screen, and still i can't click on anything after going into fu...

Flash-AS3: Calling a function in a Class from another Class (Part 2) via DispatchEvent

Hey this question is in reply to Joel Hooks's comment on an older question of mine (How to call a function in a Class from another Class?) I was able to fix my own problem using a public static var to reference one of my Classes, so in the other class I just needed to use the this keyword so it could be called. instance = this; // in N...

Is there anyway to scrape flash in this format?

Hello, is it possible to scrape this applet http://www.text118118.com/livefeed.aspx Its not possible to do it traditionally as the text is within the applet however is it possible to do it with a macro. The feeds loops after 8 questions and the text stays highlighted? ...

Unnamed, non-existing .swf

I'm using jQuery sIFR plugin for text replacement, although it works perfectly but there's a link to an unnamed and non-existing ".swf" file. Is it issue related to the sIFR plugin I'm using? How do I fix it? Many thanks ...

Flex + PHP: Flash Builder 4 vs. Eclipse

I'm getting started with Flex and initially installed the Adobe environment (Flex Builder 3) and later found out that they're starting to call it Flash Builder 4. Anyway since I'm very new to this technology and I have to leave Flex Builder 3 anyway, I'm trying to find out if there are any advantages to developing with Adobe's Flash Bu...

Flash movie behaving really weird, possibly corrupt FLA?

I have an FLA done in Flash 10, and some AS3 code that manipulates a MovieClip in the movie based on the mouseX and mouseY coordinates. Last night the FLA was working 100% perfectly. This morning things went haywire. Layers on the movie started jerking around severely. So suspecting my formula, I commented it out and replaced it with mx...

AS3: Accessing custom class public functions from a MovieClip on a timeline

Hi, I've got a AS3 program with a Main.as custom class. In this class I load an instance of a 'menu' movieclip which has simpleButton instances inside... How do I access the Main class public functions by the menu movieclip buttons? I.e. Menu button -> gotoPage(5); (which is a Main public function) If I try to access the Main functio...

Making a smooth path from an irregular number of x,y points to simulate handwriting

Hi all I am trying to make a 'brush' tool in AS3 (pure, not Flex) which simulates handwriting, making strokes to be smooth instead of cornered. Then, the trace must be reduced to cubic bezier curves which can be dragged and deformed, affecting the previously drawn path (like the illustrator's pen tool). I'm tracking the mouse movement ...

Test for availability of Google Maps Flash API

I'm trying to write a test page which a customer can send us to identify whether they can use various parts of our site. Typical support stuff I guess. Anyway, the test for flash is straightforward enough, but can anyone suggest how I might test if they can access the Google Maps API on their browser? Any help appreciated as I have hit...

2d game engine for race game built to web-page.

I think Flash/Flex is a good aproach for this case. We need to build some like the following: http://www.flashracegames.com/play-micro-racers-2.html Is there some free engines to perform it? ...

DTD flash open source engine?

DTD flash flex action script open source engine? I need some open source engine for creating some games like Desktop Tower Defense games Does it exist?) So… What do I need? I need - • Open Source Libs • Tutorials • Blog posts/Articles ...