swf

How to run an external SWF inside a Flex Application?

EDIT: Due to the answer I change the code posted. I've added the Security.allowDomain("*") line and that line throws me an error. So, how can that be made? I want to run an Action Script 3.0 Application into a Flex Application. To do this I've done the following: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication windowComp...

Using alternative content if url for flash file is bad

I am trying to display a default swf file in case the supplied url for the swf file is not a valid one. Can somebody suggest a good way to do this? ...

possible to recreate xml out of ActionScript?

Hi, I got stuck with an SWF which has ActionScript in it and should use some xml. The problem is, I cannot edit the SWF by decompiling it and compile it again, it simply doesn't work... Adobe Flash CS4 rebuilds the thing, but after I press CTRL+ENTER I get a lot of runtime errors (probably something to do with AS <-> AS2 <-> AS3 and don...

Finding the methods/properties on a swf object

I have a swf object embedded into a web page. Without having access to the source code of the swf file, how can I find the methods/properties that are exposed? For example... alert(document.getElementById('swfObject').id); ...returns a pop-up of "swfObject". And this... document.getElementById('swfObject').someMethod(); ...execu...

Accessing functions in a swf-file through javascript [chatroulette.com]

Lately I have been interested in the code behind chatroulette.com. As you probably know it is a peer-to-peer webcam-chat-service written in actionscript, as I understand. What i have been wondering about is weather its possible to extract the ip-address of whomever you are currently communicating with. I have seen services that do that, ...

flash video covering JQueryUI model dialog

I have a site with a flash SWF on the home page. I have a login dialog that is displayed using the jquery ui modal. The modal dialog is being covered by the SWF movie when it opens. I tried setting the z-index etc but nothing seems to stop the SWF from covering the log in. Is there any way to force the SWF movie to the background? The ...

Java library to render static SWF to raster image

Do you know a Java library to render static SWF file (no animation, just raster and vector images on a canvas) to PNG? I know swfrender (a part of swftools) but I need java, not C. ...

Service for converting SWFs with ActionScript to Video (MPEG, AVI, or MOV)

The SWF files generated by our application are a basic template that reference external resources (images, and textual data) that actionscript uses to fuel the display. Thus the SWF is responsible for the creative layout of the screen the flash player. It is the results of this actions script, images, and textual data that need to be c...

In as3 can we dynamically load .swf movies in any player(in web) like flv player?

I want to dynamically load .swf file in a player(like FLV player of as3) in as3.When I shall click on an image the corresponding video will be played on the player on right side(like you tube). Is there something (like FLV player) for .swf files with play, pause, resume, scrubber options to play in web? ...

Problem with fb:swf in Opera

Hi, I am embedding my flash game in the following way, which runs fine in IE, Firefox, Chrome but doesn't play in Opera. Please suggest what is wrong here. <div> <fb:swf waitforclick = "true" wmode = "opaque" width = "640" height = "480" imgsrc = ""http://mygame.jpg" ...

Display swf from another website into a div.

I’m trying to display a swf from another site into mine. I’ve got permission from the other side to do so I’m just having problems figuring it all out. I’d like to display just the swf not the entire page that swf is on. I’ve tried this – but it only seems to work with content and I haven’t had any luck getting the swf to appear. <?p...

Load SWF in Flex

Hello. I have an SWF that reads an XML. When i load it in Flex it reads nothing. Anyone can help me? Thanks. ...

Problem when compressing SWF in Linux with java.util.zip

Hi! I've created a servlet that changes the binaries of a SWF file and output it to the user. The SWF is compressed by ZLIB by default. Then I inflate, change the binaries, deflate and output the result. Everything was running right on a Windows Server 2008 (also in 2003). Currently, we need change the server to Linux, and then, this s...

Load remote swf files in flex

I have a SWFLoader in mxml of my flex app. <mx:SWFLoader id="swfPreview" width="100%" height="90%" y="20" visible="false"/> Now on a button click, I execute the following code in action script. swfPreview.addEventListener(Event.COMPLETE,loadComplete); swfPreview.scaleContent = true; swfPreview.load(url); Where "url" is the url ...

Securing SWFs, written in Actionscript 2 and 3.

Hi there, I have around 3000 SWF files, some are interactive which has lots of actionscripts and some are just animated lessons for mathematics. Currently, users have access to these files through a web interface (PHP). Even though access to these files are restricted for unregistered users, the registered users can still download the f...

Flex: How to access movieclips within an imported swf

Hello, I have imported a swf (not created with Flex, i.e. non-framework) into a Flex application. Once loaded, I would like to access movieclips within that imported swf. Looking at Adobe's docs (http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html), it seems straightforward; however, their examples are between a...

Can somebody explain in a few sentences how these technologies relate: Flex, Flash, Air, ActionScript, SWF, FLV

I've read about each of these but I still don't understand how they all inter-operate, which are competing technologies, or even really what each of them is distinctly. Flash, Air, Flex... Are these all "containers"/JVM-like runtime environments, in which ActionScript code runs? SWF,FLV,AIR... Are these competing file formats which a F...

What's the best way so sync swf and flv playback in single swf movie?

I want to embed external swf movie and flv file to play in one swf file. I want to have controls to play/pause/start. Embedded swf and flv should play synchronously. Problems begin when swf playback starts but flv wasnt loaded yet. Also I can't preload flv completely. Are the any common patterms for implmenting such scenario? ...

How to set size (width,height) of externally loaded swf

Hi, I have loaded swf using following code, var loader:Loader = new Loader(); loader.load(new URLRequest("XYZ.swf")); addChild(loader); How do I control height and width of this loaded swf. I tried var mc = MovieClip(loader.loaderContentInfo.content); mc.width = 320; mc.height = 240; this gives null object error. ...

how to open xml link target="_blank" in new tab or window?

hi all, i have a swf xml in which i have a link tag like <item id="google_link" link="http://www.google.com" target="_blank" /> even the target="_blank" is given but the link is opening in the same window, is there any other way to open the link in new window or new tab. ...