actionscript-3

flash, javascript

I'm trying to make a flash form to freeze somewhere at the middle of the page even if the client scrolls down or up the page . Something similar with the left side "feedback" rectangle from http://uservoice.com/ . The flash form which I'm trying to integrate can also be found here http://www.macromediahelp.com/flash/php_flash_contac...

AS3: Singleton class vs LocalConnection class

Hi: I have a Main class loading 2 SWF (loader and viewer, also with document classes). They need to share a double buffer with content, of course, filled by loader and showed by viewer I was thinking to use the LocalConnection class but after a suggestion from PatrickS now I'm evaluating the possibility of a Singleton Class. I've never...

AS3: Accessing External Library Symbols Dynamically

I am loading an external SWF containing uninstantiated MovieClip Symbols. I can get the SWF loaded, no problem. If I call: loader.contentLoaderInfo.applicationDomain.getDefinition( "TestClip" ) as Class I get the class of a Library symbol called "TestClip", which I can then instantiate. Jawesome. The issue I'm having is that basicall...

Actionscript: how do I make a class that uses arguments (aka parameters?) from another class?

I'm really new to actionscript so I'm not even sure how to ask this. First off I'm not using any Adobe IDE just notepad with flex as a compiler. What I want to know is how to make a class but make it with arguments and then have that class use those arguments. The only way I can clarify what I mean is through an example. So for example ...

Best advanced book on Actionscript?

Is there a "very best" book on Actionscript? Ideally an advanced book, one that teaches a good deal of movie clip manipulation, Flash's APIs and usual patterns. ...

Flex bar chart not working

XML Data to plot: <?xml version="1.0" encoding="utf-8" ?> <spearkerslist> <speakers langid="afb" countryid="SA" countryalpha3id="SAU">200000</speakers> <speakers langid="acw" countryid="SA" countryalpha3id="SAU">6000000</speakers> <speakers langid="ars" countryid="SA" countryalpha3id="SAU">8000000</speakers> <speakers la...

auto select datagrid row

I have a datagrid. How can I put the focus on a particular row (ie row #5) of a datagrid via actionscript? I'm partially there, but not quite: stage.focus = myDG; this obviously just sets the focus to the datagrid and not the row. ...

How to URL encode variable in AS3

I get following Error when trying to pass variables via URLRequestMethod.POST; Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Is there a method for string URL Encoding? ...

Multidimentional Vector in AS3

How can I initialise two-dimentional typed Vector is AS3? Now I can get working only this: private var _mainArray : Array = new Array( MyConst.DIMENTION ); public function MyArray() { for ( var i : int = 0; i < MyConst.DIMENTION; i++ ) { _mainArray[ i ] = new Vector.<int>( MyConst.DIMENTION ); } } ... _mainArray[...

How to update children in actionscript?

For starters let me just say that I am very new to action script and also that I'm not using adobe creative suite, I am using notepad with flex as a compiler. I have two classes, a main class and a class called OBJECT_square. Here is the MAIN class: package { import flash.display.*; import mx.core.*; import...

Do I need to pay to create interactive flash movies?

I want to create interactive movies using flash technologies. Do I need to buy a program from adobe to be able to create my flash movies or there are some free software that I can use? I would prefer something for Linux (Ubuntu). ADDED I need to program in "actionscript" and I would like to know what programs can I use to compile my co...

Actionscript: add a sprite from a subclass to the display list of its super class?

Say i have these two classes: MAIN.as package { import flash.display.*; import mx.core.*; import flash.events.*; import mx.collections.*; import flash.geom.*; import mx.controls.*; import flash.text.*; import mx.events.*; import mx.styles.*; ...

Actionscript: call a superclass method from a subclass

What I would like to do is to call a method from a superclass in a subclass. Specifically I want to be able to add the subclass as a child of the superclass but without physically having to type addChild in the superclass (but I will have to type it in the subclass). For now I'm just trying to call a method in the superclass that draws s...

Actionscript 3: Why override custom event...and when to override it?

Hi guys.. I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. I appreciate if someone can light me up. Thanks. EDIT: My projects seem work fine even though I use my custom event without override. Anyone could explain it? ...

Loading external images then fading between them using ActionScript 3.0...?

Hi, I'm using the Loader class in AS3.0 to load external images. I need to load a random image each time and I'm using a timer to load a new image after 5 seconds or so. When I load the first image, I call... myMovieClip.addChild(loader); After the first time I call... if (myMovieClip.numChildren > 0) { myMovieClip.addChildAt(lo...

AS 3.0: Calling a method, which is defined in another class, from Main class gives Error 1120

I have two classes. The Main class calls a function, which is defined in a Second class. I'm getting the following error: Error 1120: Access of undefined property myFunction Basically, I am creating buttons in the Main class that will add a corresponding Child to an Object in the Second class (if you click one button, child x1 will be...

as3 load, play and mute external swf

I have a file to which I do not have the source - a flash header with an obnoxious sound intro and I need to mute all sounds. Without the source I am limited as to what I can do. I have some as3 code that I am using to try and load the swf into and mute(building in FlashDevelop). Here is the code in question: package { import flash.dis...

Flex/mate: mate doesn't cache instance, created with Object Builder

If you once run an ObjectBuilder the object instantiated will be cached and next time you use an PropertyInjector or something else, the instantiated object will be used instead of creating a new object. Or at least this should be like this :) But in the example below it seems that mate tries to instantiate the object again: The follow...

Is it possible to maximize the window of a Flash Projector?

I have a presentation built in Flash using AS3 and would like the projector to launch NOT in fullscreen, but as a maximized window. Is there any way to do this via AS3? ...

AS3 CPU Performance with +100 MovieClip copies

I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect. As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mous...