flash

Beginner: Dynamically inserting a frame to a MovieClip in haXe/ActionScript3

Let's say I have a resource file which exports mc1 with 4 frames in it. I would like to create a new MovieClip and insert frames like this: mc2:flash.display.MovieClip = new flash.display.MovieClip() mc1.gotoAndStop(2); mc2.gotoAndStop(1); mc2.currentFrame = mc1.currenctFrame mc1.gotoAndStop(1); mc2.gotoAndStop(2); mc2.currentFrame = m...

Flex and AIR passing data between each other

I’m looking for some samples/tutorials/general pointers in doing either of the following. 1) Create an AIR app that can load a live flex app and use that for testing. So we have a app which is live and if I could load that into a AIR app which can edit a config file and then test that config file using the live swf but inside the A...

How do you detect when the mouse leaves the stage in ActionScript 2?

I have the bad luck of having to downport some ActionScript 3 code to ActionScript 2 and I have a problem with detecting when the mouse leaves the stage. In ActionScript 3 there is an event called Event.MOUSE_LEAVE, which can be used to detect when the mouse leaves the stage, but there is no equivalent in ActionScript 2 as far as I can ...

How do you find the URL to the SWF file using ActionScript 2?

I'm looking for a way to find out the URL of a SWF using ActionScript 2. In ActionScript 3 this is done by using root.loaderInfo.loaderURL, but I haven't found any equivalent in ActionScript 2. Please note that I'm not looking for the URL to the page where the SWF is embedded, but the URL of the actual SWF, and that using ActionScript ...

Trouble with LoadVars.sendAndLoad in Actionscript 2 across different computers

Hi guys, I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain (the newsletter mailer URL) via curl to sign up the user. So far, ...

Is google anti-Flash?

Google doesn't seem to like Flash content in any other way except writing text straight into the Flash IDE to get exported statically into the SWF movie. Which means that any text drawn by ActionScript into TextField's don't get indexed? Beginning at their Webmaster Guidelines, they recommend: "Avoid hidden text" - preventing hidden ...

Embedding flash Wimpy player so that it works in Firefox

Can somebody help me getting Wimpy player to work in Firefox? I followed the guide from Wimpy documentation page and am still getting nowhere. For tests, I used the same HTML code to embed different swf file and it works perfectly. Could it be the SWF file corrupted itself? Then why it works fine on IE? Here is a test HTML code with tw...

What text inside Flash is indexed by Google?

Does the following mean that dynamic TextFields will NOT be indexed? We currently do not attach content from external resources that are loaded by your Flash files. If your Flash file loads an HTML file, an XML file, another SWF file, etc., Google will separately index that resource, but it will not yet be considered to b...

Play video from local file using Adobe AIR

I'd like to play videos, as well as display images and possibly other flash content using adobe air, and reading from the local file system. I've been searching APIs and I have not yet been able to connect the dots. I know of flash.filesystem.File and flash.filesystem.FileStream and have experimented with loading and reading files. I be...

Providing alternative images if Adobe Flash isn't available

Are there any ways providing an alternate GIF/PNG image, in case the user has no Adobe Flash installed and/or deactivated. I’ve found recommendations, like the following from W3C, which determine via JavaScript the existence of Adobe Flash on the client: W3C Providing alternative images Honestly, I would prefer a non JS technique. I’m t...

Flex: Determine if a component is showing

What is the best way to determine if a component in Flex/Flash is showing on the user's screen? I'm looking for an analog to Java's Component.isShowing() method. The show and hide events fire for visibility, and this seems to work for the first descendant of a ViewStack component, but not further down the display tree. ...

How to make cross-domain communication between JavaScript and Flash?

How do I open 'cross-domain security', so the JavaScript on the page can freely communicate with the SWF, even when this is hosted on another domain? I know for certain that this function communication is blocked by default, but by playing around with a file called "crossdomain.xml" and the actionscript 3 function: system.Security.allow...

Quick and acceptable MP3 streaming solution

Hi, I have to do a job overnight to enable a very simple interface for users listening to a radio channel over the internet. I am wondering what is the best soluition for streaming. I thought of QuickTime, but it requires users to have it installed and I am not quite sure Quicktime is as spread as flash. So I tend to implement something ...

Any quick way to get a Movieclip to scroll in Flash?

I need a way to get a (content) MovieClip within a (container) MovieClip to be scrollable using a scrollbar. Flash AS2 Components ScrollArea - Can only scroll externally loaded SWFs. UIScrollBar - Can only scroll TextFields. How to scroll an internal MovieClip? ...

haXe: Keyframe animation without frames

I would like to do simple (looping) animation (moving, changing alpha etc) in haXe (flash9). I don't have anything that resembles frames in my library, just single frame assets. Since I am a beginner. I am not necessarily looking for a sophisticated framework. I would be happy with something quick & dirty. Maybe ifs checking the frame (...

How to best convert Flash compatible mp4 files with FFMPEG

I am trying to convert different files to a flash compatible .mp4 file with ffmpeg, but i cant seem to succeed. Of cource the objective is to get the greatest quality with the smallest file size. So far I have this, which works, but it doesnt play in a flash player for some reason. The result isn't that great, how can I improve this co...

ActionScript 2 vs ActionScript 3 performance

Any benchmarks of Integer, Array, Function, Class, etc, performance in these 2 languages (compilers)? Comparisons would also be helpful. ...

ActionScript 2 boxing performance

I heard that AS boxes and un-boxes values every time arguments are passed into/out of functions. A. Therefore, would this be faster? var val = doWork(50,"hello", 2048); function doWork (param1,param2,param3){ t.text = param2; return param1+param3; } B. Or this? var val:Number = doWork(50,"hello", 2048); function doWork (para...

AxShockwaveFlashObjects and ShockwaveFlashObjects from Flash ocx

Hi, I'm trying to create: AxShockwaveFlashObjects.dll and ShockwaveFlashObjects.dll entering the following command: aximp C:\WINDOWS\system32\Macromed\Flash\FlDbg10.ocx /nologo but I get an E_ACCESSDENIED error. What am I doing wrong? Thanks! ...

Why is XSPF Player not working on a Mac?

I'm using the XSPF Player (slim) on a new website. The client tells me they cannot hear any music on their Mac in Safari. The player is visible but it just says "Loading playlist..." and never continues past that point. I cannot imagine why since it works fine in all the PC-based browsers I have tried. I don't have a Mac so am having a h...