flash

Memory usage in Flash / Flex / AS3

I'm having some trouble with memory management in a flash app. Memory usage grows quite a bit, and I've tracked it down to the way I load assets. I embed several raster images in a class Embedded, like this [Embed(source="/home/gabriel/text_hard.jpg")] public static var ASSET_text_hard_DOT_jpg : Class; I then instance the assets this...

How do I make my DIV ontop of a flash object inside an iFrame I don't control?

Basically, I have a DIV, which I've set to z-index: 100. I have an iframe which I set to z-index: 0. My 100 div is ontop of the frame on a normal webpage, but I have to load a flash page in the frame. Unfortunately the flash in the frame shows overtop of my 100 DIV. I can't set the z-index of the flash object because I don't control that...

Looking for ideas on automatically arranging a set of objects (furniture) in a virtual room in AS3

First of all, I don't want to visually arrange 3D models dragging them with the mouse, all I want is: Given a room of certain dimensions (L,W,H) and given a set of elements like beds, chairs, etc (with L,W,H dimensions, of course) I want to automatically arrange those elements to take advantage of the space as much as I can. So I want ...

Facebook FBML and frame redirect

I have, what is probably a simple flash question. I have a flash countdown clock I am using in an Iframe of a facebook app. At the end of the countdown it fires this off myFlipCountDownClock.onFinish = function() { }; And I can add getURL or whatever. My problem is I need to fire off some facebook specific code. This being This d...

MXMLC and 64bit JRE

Are there any workarounds to get the Flex compiler to work with a 64bit JRE? If I use an MXMLC task in an Ant buildfile in Eclipse it works fine but if I try to use MXMLC from the command line (or try the Run... command from FDT in Eclipse) it fails, telling me ... "Error loading: C:\Program Files\Java\jrrt-1.6.0\jre\bin\jrockit\jvm.dll...

How to learn to make a social game in facebook like happy aquarium, farmville.

I want to learn how to make a social game in facebook. How to go about it. I think you would need a team of devs. What languages are used to make social games like farmville, happy aquarium, etc. Are any tuts available or any book? ...

How can I convert flash armature (ik) animation to frame-by-frame animation with jsfl

My objective is to paste together several ( a lot, actually ) armature animations, each in a separate symbol. I have no idea how to do it, armature layers are a bit... strange. So i see only one solution: convert it to a regular layer. ...

When does flash.display.Loader add the external swf to itself?

I am using the Loader to load an external swf into my program. Inside the external swf, I need to be able to access the Loader instance that just loaded it. Does the loader add the external swf to itself before any code inside the swf gets executed? When is it safe to access the loader via the following code? var target:DisplayOb...

AS3: How can I access a movieclip in a different scene?

I want to access a MovieClip in another scene than I'm currently in. More specific I want to set a TextField to a certain value from a "preloader"-scene. This is for handling totally dynamic language phrases. Maybe this is the wrong way. I'm loading a XML with language phrases that I want to replace the textfields with. We could do th...

Using a mask over a transparant background (Flash)

Hi, I'm having a hard time with this and I'm hoping someone can point me in the right direction. First some details about what I am trying to achieve: I'm making a Flash file with Actionscript 3. The SWF I'm creating is supposed to be a scratchcard with a dynamic background (i.e. the covered picture and the location of the SWF can ch...

how to put swf file to my website - adobe flash cs5

Okay so i have made my first animation video in adobe flash CS5. I used actionscript 3. When i save it i have two files trueEly.swf and trueEly.fla. Video is 1min 15sec long. its size 550x400px. Now i want to embed it into my website. What is the best way to go for? I have googled it a lot and read adobe documentation. what i gathered ...

can i add FLVplayback to .fla file -- in adobe flash

so the question is can i add the FLV playback to my .fla file and how? i am not able to add .fla as a source to the FLVPlayback once dragging it into my timeline. how can i add the ability to stop pause and play my animation? (its .fla file and i opened actionsctipt3). i would super appreciate any answers. ...

average velocity, as3

Hello, I need something accurate I can plug equations in to if you can help. How would you apply the equation bellow? Thanks guys. AVERAGE VELOCITY AND DISPLACEMENT average velocity V=X/T displacement x=v*T more info example I have 30 seconds and a field that is 170 yards. What average velocity would I need my horse to travel at...

Smart coding on ActionScript 2 (importing vars from a php)

Hello, i have a php who when is executed it give me a couple of vars in this format: &lVar1=DATA1&&lVar2=DATA2&&lVar3=DATA3 and soo... The problem is that i dont know the quantity of lVar the php script is gonna give in any time, so i cant figure out a smart script in AS2 to import all of them into a array to my flash. Can you help me?...

IE History Tracking, IFRAMES, and Cross Domain error...

So here's the deal. We have a Flash application that is running within an HTML file. For one page we call a legacy reporting system in ASP.NET that is within an IFRAME. This page then communicates back to the Flash application using cross-domain scripting (document.domain = "domain" is set in both pages. THIS ALL WORKS. Now the kick...

i can't get variable in function.

i can't read the variable in the function, i want to use it outside the function, here is my code. var contentLoader:URLLoader = new URLLoader(); contentLoader.load(new URLRequest("http://localhost/data.php")); function onComplete(event:Event):void { var txtu:String = event.target.data; } contentLoader.addEventListener(...

Running The JVM From Within An MXML Component

Thinking outside of the box here... What possible basic approaches could be taken in an effort to create a Flex component that could run Java? I know I can easily use flex to browse to or launch a Java app, but there are things I can only do if I can run the Java from WITHIN an MXML Component. I the strictest sense, I know it's not im...

Flash/Flex: "Warning: filter will not render" problem

In my flex application, I have a custom TitleWindow that pops up in modal fashion. When I resize the browser window, I get this warning: Warning: Filter will not render. The DisplayObject’s filtered dimensions (1286, 107374879) are too large to be drawn. Clearly, I have nothing set with a height of 107374879. After that, any time I ...

Foreach File in a Folder in Flash?

Hey, I have an image slideshow program working right now and it takes in a folder of a hard coded in number of images. I would like to change this so that it can take in a folder and will display all of them no matter the number. Is there a way to do this in flash? I'm thinking something like the foreach loop in perl or other scripting...

Display alternate content when Flash is not installed with jquery.swfobject

How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this. Here is a snippet of my code: <script type="text/javascript" language="Javascript" src="jquery.1.4.2.js"></script> <script type="text/javascript" language="Javasc...