flash

Dynamic Flash banner with XML config file

I am a programmer, not a designer, so I prefer to let the computer do the creative work :-) We would like to implement a dynamic flash banner on our website that gets created on-the-fly from an XML config file. I would like to be able to set as many variables as possible in the XML config file, e.g. pictures fonts text and background...

How to mute audio in flash video clip programattically

I have a site that has as almost all Flash site have music. I want to have a video commercial play and I was wondering if there is a way to make the audio stop while the video is still playing, and then turn back on when I exit the video area. ...

AS2 .swf loadmovie() and unloadmovie() fail when nested inside an AS3 .swf container

I have an AS2 .swf being loaded as a child of a parent AS3 .swf. The AS2.swf calls loadmovie() and unloadmovie() to display 3 jpeg files. The images load the first time, but after that, a call to loadmovie() to replace the image, or a call to unloadmovie() fail. I found the following Adobe Bug report (https://bugs.adobe.com/jira/brows...

Actionscript 3 vs haXe: Which to chose for new Flash project?

I am in the planning stages of a new Flash game project and was wondering which language would be better to use? I already have a strong understanding of Actionscript 3, and have not worked with haXe yet, but i have read the language reference docs and it seems that haXe has some of the features from my other favorite languages, C# and R...

Get the Number of Frames in a Dynamically Loaded Flash File

It has been a really long time since I used flash and I am creating a small presentation in which I recorded some videos of my screen and have them exported as .swf files. I am currently able to dynamically load them into a parent flash file using this.video_mc.loadMovie(movieString); The problem is I have 6 different videos that get ...

Flash - AJAX call

I want to call a web page from Flash and use the data returned from it (either in plain text or XML). I see with the NetConnection you can connect to a web service, but I just want to call a plain old web page. It seems like I managed to do this a while back, but for the life of me, I can't find the answer on the web. Does anyone know...

Set Flex component width to 100% at runtime?

If I am creating say a input field through MXML, I can set the width to 100%. But I cannot seem to do this at runtime through ActionScript. This works: <mx:TextInput ... width="100%" /> This wont compile, says width is a number, not a string: var textinp:TextInput = new TextInput(); someContainer.addChild(textinp); textinp.width = "...

tabIndex fails in an AS3 swf loaded into a flex app

I feel like I'm missing something really simple here. I'm loading a AS3 swf containing a form (created by one of our designers) into a flex app. The swf's tabIndex properties work fine when the swf is viewed by itself, however, once it's loaded into the flex app: <mx:SWFLoader source="form.swf" top="20" horizontalCenter="0" id="formSwf"...

How to list available callbacks exposed by a flash element

Is there a way to query an embedded flash element to determine the available methods that can be executed on it via JavaScript? Edit: It appears that in IE it's as simple as for ( i in flashNode ) { alert(i); } After much clicking, they will be some of the very last members enumerated. Still not able to determine this in Firefo...

How to update adobe air application after install ?

how to update air application after install in system . updated not be reinstall will be automatically ? is it possiable? ...

Array not iterable if associatively used

Hi when I have an array in actionscript var arr : Array = new Array(); arr["fsad"] = 1; trace(arr.length); and now put an entry to it with an associative string and afterwards count the length I get a length of 0 but why? How can I iterate it now? Thanks in advance Sebastian ...

How can I programatically determine the location that Flash stores Local Shared Objects

I'm writing some automated acceptance tests for a flash movie (driving the movie using iMacros). I need to "reset" the test environment before each test run by clearing out the settings flash is storing in Local Shared Objects. I can do this manually by deleting the files in: C:\Documents and Settings{username}\Application Data\Macrom...

Am I stupid for not using custom packages in Flex 3 (flash)?

When I create a new class file in Flex 3 it warns me that I should not use the default package. I personally never used packages before, but think that packages won't make things any more easier since I just want to be able to use all my classes everywhere without importing all kinds of packages which I would have to remember the names ...

Code for communcation between PHP and AS2?

I have a Flash developer I'm working with. This person is building a tool in AS2 that will provide an interface that will send voting data (firstname, lastname, email address, votes (there are 100 items in categories and users will be able to choose some subset to declare "best"). All fair enough, Flash dev will POST data to a PHP app I...

Flash Contact Form; Trouble Returning Server Response

I have a contact form that connects to my site's back-end, the form submits just fine but I get no server response. It's always 'undefined'. I'm worried it may be because of this, but I was hoping maybe one of you smarter folks could help me find either a workaround or if it isn't because of that (note: most likely), then maybe you could...

How can I visualize XML in Flex /Flash?

Hello, I'm making a Flex application to visualize the contents of an XML file in a tree, radial diagram, etc... I looked all over the internet and I can't find any useful tutorials or source code on how to do this. Most existing components on the web have licensing issues with them, so I prefer to write some sort of XML visualization al...

Flex: given Class object, get the name of the class it represents

In Flex, say I have a Class object. How do I get a string for the class it represents? e.g.: var clazz:Class= String; trace(clazz); // this gives "[class String]" but what I want is "String" ...

Actionscript to open URL in new window open new window but not fullscreen

Actionscript to open URL in new window open new window but not fullscreen ...

BitmapViewport3D + interactivity in Paperivion3D 2

Hello, when i use Viewport3D in the scene i can easily interact with stage object, but when i'm trying to to use instance of BitmapViewport3D class as main viewport, it does not work. ...

Q: How to associate linked SWC MovieClip asset with a Class in FlexBuilder Actionscript project

I'm using Flex Builder more and more and attempting to create a fairly asset heavy application all in Flex Builder. I know how to publish or export Flash assets as SWC's so they are available in Flex Builder, but what if you have a button MovieClip with frame states in Flash, which is either exported or included in the swf published as a...