actionscript-3

Flex Button with one color on left & another on right

I have a Flex button. I need one color on the left and another on the right. I don't need it to be a gradient. Just solid colors. Like green on left & red on right. I really don't want to use an image -- just because it'll probably take me a long time to do it. The gradients via Flex Properties in Flex Builder seems to apply only vertic...

Why am I seeing inexact floating-point results in ECMAScript / ActionScript 3?

Hey all, let's jump straight to a code sample to show how ECMAScript/JavaScript/AS3 can't do simple math right (AS3 uses a 'IEEE-754 double-precision floating-point number' for the Number class which is supposedly identical to that used in JavaScript)... trace(1.1); //'1.1': Ok, fine, looks good. trace(1.1*100); //'110.00000...

AS3 - Unload Class Loaded from VAR

Hi, I have a XML image gallery created within a custom class. This is the way I add the gallery to stage: var mainContainer:MovieClip = new galleryXML(stage, "xml/image_gallery.xml"); This works perfectly. But I'm thinking in setup my navigation in the same way. Creat the pages within custom classes and them loading them as I lo...

Call JavaScript funcion while playing an FLV

I want to create a site tour that plays an flv and then highlights different areas of the actual site while the flv is playing. I would like to do this with AS3 and jQuery. I will probably try to use jw flv player for playing the video. I know you can call JS from Flash, but it's been awhile since I've messed with Flash video and my g...

Understanding remote shared objects in Flex and ActionScript

Hello I have 2 questions about remote shared objects in Flex/ActionScript3: 1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect, but please let me know 2) Is the entire ob...

Adobe Air windows that don't show up on taskbar (I dont mean UTILITY or LIGHTWEIGHT)

I want to create a new Adobe AIR window from my application. I want the new window to be a normal new window but not to re-size, minimize, or maximize but I also don't want it to show up on the task bar. In other words, I want it to be like a browser's alert window. Look carefully when you look at one of those, the type of window is not ...

Is there any 'FindBugs like' plugin for Adobe Flex Builder or Flash Builder?

Is there any 'FindBugs like' plugin for Adobe Flex Builder or Flash Builder ...

Is there a program that uses static analysis to look for bugs in actionscript code?

Is thre any program which uses static analysis to look for bugs in actionscript code? ...

Button Disappearing in Actionscript 3d

I've got this weird thing happening (maybe weird) when I use the 3d stuff in cs4. Basically, I have a stage that is 1100.wide and 500.tall. I have a custom class called Cube.as that if I import and place in the middle of the stage i.e.; var cube:Cube = new Cube(); addChild(cube); cube.x = 550; cube.y = 250; All the sides, when cli...

Record Voice file Directly from a Browser

I am a looking for a free solution that would allow our website users to record voice files directly from our website. Instead of having to record it on their local machine then send it to us. ...

AS3 Button that doesn't exist yet

When we work with buttons we set up our listener and the function it uses, but if we have the button animate in or show up elsewhere in a later frame, we will get an error saying the object doesn't exist. What would be the more common or correct approach, set up our functions on frame 1 then attach the listener on the frame the button c...

Does Flex save stuff to the local cache on client computer?

My Flex app downloads a bunch of images. When the user closes the browser window (or navigates away from the page), those images shouldn't be saved in the local cache. HTTP headers for the SWF file tells browser to fetch it from the website every time -- that is, it shouldn't save the SWF file locally. I just want to make sure that any o...

Is there an equivalent to __DATE__ in AS3?

I'm looking for an equivalent to C/C++'s __TIME__ and __DATE__ compile-time constants in AS3. I want to be able to bake in when the swf was built. I can write a build script or JSFL to update a constant somewhere, but I was hoping there was something built in. ...

flash player security

I can run the following locally on my own machine without problem (and also loaded through a test.html. However it will not load if I download it from a test webhost I'm using. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" > <mx:SWFLoader ...

Embed swf XML path issue

Hi, I am trying to embed swf to html, and I'm using SwfObject 2.0 My swf has a xml file with it, the swf are in the same folder with index.html, and the xml file is in a subfolder called xml. So far everything's fine and working. However, I have another html page that's in a subfoler and wants to load the same swf and xml. This time, th...

Flex-iframe: problems in FF

I'm using http://code.google.com/p/flex-iframe/ for showing wikicontent in a flex app. <?xml version="1.0"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" title="Hjälp" showCloseButton="true" close="close();" styleName="Popup" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" w...

Actionscript 3: How can I get the symbol name, and not the instance name

A silly question, but I spent an hour trying to find it: I created a symbol, and named it symbol_a. How can I get this symbol name from an instance? If I use myInstance.name I get the instance name and not the symbol name...... Thanks in advance, Edward ...

detecting changes to the location of sprite

What is a good strategy for detecting when the position (x, y) of a sprite, relative to the stage, has changed? In other words, how can I detect changes to a sprite's global position? This becomes difficult when the sprite is the child of other DisplayObjectContainer objects. ...

youtube chromeless as3 player

I'm goofing around with the new youtube as3 API but got stuck. This is how far i got (from looking at their sample code). http://pastie.org/656088 public class Main extends Sprite { Security.allowDomain("*"); private var player:Object; private var loader:Loader; public function Main():void { if (stage) init...

How can I use XPath with AS3 and get a result that still reffereced to the XMLDocument object?

I'm parsing a XML string into XMLDocument object. I want to search for a specific node using XPath technology by using XPathQuery.execQuery() - this function returns new XML object which means I need to convert it to a different XMLDocument object and lose the reference, how can I do that without loosing the reference? I'm using this XP...