swf

ArgumentError: Error #1508: The value specified for argument font is invalid.

I have an air application that loads an external swf when prompted by the user. In the external swf, I have a class that loads all the necessary fonts for that particular swf. When my air application attempts to load the swf I get ArgumentError: Error #1508: The value specified for argument font is invalid. Any ideas? Thanks. ...

Looking for a way (javascript) to remove .swf when finished

Hello guys, I have an .swf (but not the .fla file, so I couldn't work with ActionScript), and would like to fade that movie out once it have finished playing, so the div containing it gets empty (showing some HTML content). I think that using javascript (tweaking the special settings that Adobe outputs in the HTML file, when the movie ...

Load dynamic swf generated by Flex 3 in a div

I am trying to load the dynamic SWF file which has 100% width and height ,generatd by my flex 3 in a div. using Jquery load() function. The div wherein i am trying to load is visible for sometime but after that my SWF comes out of div and takes whole viewport area to display the SWF. I have tried to provide fixed height and width to div ...

How to get a swf name of a DOMElement object?

Now I have detect a swf url and DOMElement object in a webpage , but I still want to know the swf name , I think that the name is not regular using url, and the name will using the DOMElement , but How to get the name of it ? Just like this method : - (id)sb_initWithFrame:(NSRect)frame pluginPackage:(id)pack URL:(id)url baseURL:(id)ba...

Ways to protect a Flex app on a public website

I'm building a Flex app that will run publicly, and so I would like to protect the SWFs from reverse engineers as much as possible. I once heard of ways to deny browsers direct access to the SWF files, yet allowing it to play within the main HTML page. I would like to know any such practices (and how to employ them) that can be used to ...

Get Current Browser URL - ActionScript 3

Hello, I'm trying to get current browser url. already tryed with External Call, and didn't work... And with loaderInfo.url i receive the current SWF url. Thansk ...

How do I embed an SWF file in an HTML page without IE having a fit?

I'm trying to get an HTML page to run a shockwave-flash video. While I can do it no problem using: <object width="350" height="263"> <param name="movie" value="video/star.swf"> <embed src="video/star.swf" width="350" height="263"> </embed> </object> IE will not run it without a two-stage verification that you want to...

Flash AS3 - Load XML from outside web directory on the local server

Is it possible for flash to access data from outside of the root directory of the server it resides. i.e. Root directory = /var/www/httpdocs SWF = /var/www/httpdocs/flash/file.swf XML = /var/www/xml/file.xml Thanks! ...

embed fonts in as3 from resource file

I'm creating a generic flash navigation. I'd like to allow people to use their own fonts like sIFR. I know i can just create a swf file with a font embedded but i'd like to make it as easy as possible for someone to swap fonts so an existing method of creating a swf font file would be preferred. ...

What is the easiest way to find out when a Property of a built in type changes to a certain value?

I'm having an issue with Movieclips inside my Swf resizing to the wrong dimensions. I'm currently tracing the width of the offending clip every half second, and I can see the value change to an incorrect size at some interval in the logged output. I really want to see what code is changing the width. My plan was to extend Movieclip, over...

In ActionScript, fill stage with external SWF

EDIT: I have since solved this problem by simply reworking my MXML-based app and using the SWFLoader component to get the desired effect, without any reloading necessary. This question is therefore no longer an issue for me, but I leave it open for reference. In MXML, I can get the desired effect easily: <?xml version="1.0" encoding=...

Edit Text in SWF File

I am wondering the capabilities of the SWF Format. I have some text in a Flash Video, which is an email address ([email protected]) which I would like to write a C# application to edit. I have the SWF File Format Spec and was wondering if the following is possible: If I read in the Tag (I am assuming this text is stored as a Static Te...

What is the correct way to add components to the library of a Swf?

I've been having a problem that's plagued me many times in the course of developing a Flash project. It looks something like this: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackground() at fl.controls::TileList/fl.controls:Til...

How to optimize the import of swfs in the preloader

I work on a big Flash project as the web backend guy that delivers all the files and assets to the main application SWF. Our last, really big packet of data are all the assets and sounds contained in swf files that are imported during the preloader. Are there any ways to optimize this process in any way? I'm really looking for ideas i...

Generate XML with PHP and pass it to an SWF

In the past I have created a php file that generates the XML and then referenced it in place of the xml file and it has worked. I am trying this with a precompiled flash app and it is not working. Any ideas why? It works if I run the script, save it and then reference that file to the swf. I would rather not generate a file to the file...

Adding an intro to a swf without access to the fla OR: differences between top-level and loaded swfs

I've got to (quickly!) add an intro to an existing flash masthead on a site that I've inherited. I don't have access to the source .fla's, so I approached the problem by putting the intro in a wrapper swf and loading the current masthead and adding it to the display list on Event.INIT. So far, so good. (Incidentally, the swfs are built...

How to tell what .swf generated an error?

I was viewing a page just now and got the error box popup telling me of a runtime error in a .swf The problem is, there are multiple .swfs on the page, and I do not know which one generated the error. Is there a way to tell? ...

How to load specific flash while switching different lang in ASP.NET web application ?

Hi I've built a multilingual ASP.NET web app and no problem . I'm trying to put a flash header for this website so I've made couple flash in different language ( because they are different not just in language , they have tiny different because of different cultures ) . But my problem is i don't know how to load specific flash while ...

how to redirect to a new page from a swf file

Hi all, I have a swf file, which handels some xml data. After that process complets I am giving the data back to my rails server. My problem is, that any redirection in my rails app is handed ower to the swf file and the actual displayed page remains the same! How can I perform a redirection in my webpage from a swf flash file. Thanks...

embedding swf file in resource (res) file

Hello In .RC file I can use images and waves as below: MYIMAGE GIF "images\square7.gif" MYWAVE WAVE "sounds\login.wav" And after compiling the .res and including in my dll I can access them with below URLs: res://D:\myres.dll/gif/MYIMAGE res://D:\myres.dll/wave/MYWAVE My question is how to do the same for .swf (flash) file? I want...