I am trying to put getters and setters into my inteface but I get the following error1053:
Accessor types must match.
Below is my Interface.
package com.objects{
public interface IKiller {
function get Systems():Array;
function set Systems(value:TargetSystem):void;
}
}
How are you suppose to put getters...
What about support for major browser? IE 6+. FF 2+, Opera 9+, Safari 3+, Google Chrome?
It is good idea to use actionscript to generate graphics (interface developed in JS and standard HTML forms)? Maybe its better to use canvas? What about performance?
...
Hey all,
I am a total flash newbie, and I'm looking to build an audio player that uses flash in the back-end, javascript in the front-end. Therefore I do not need the "movie" capabilities of flash. I have the actionscript class that runs the audio, the javascript that tells the actionscript to play, and swfobject to embed the flash. I d...
Hi,
Is there any way to call from javascript to actionscript, not using JSON object.
thanks,
Ravi
...
for(var l:int=0; l<anXML.length(); l++){
aButton=new btn_secondTier();
aLocation.addChild(aButton);
//var aButtonDefaults:ButtonDefaults=new ButtonDefaults(aButton);
aButton.y=l*24;
aButton.name=anXML[l].attribute("id");
aButton.title_txt.text=anXML[l...
Hello All,
I was wondering if there is any way to use the "Export Movie" as "PNG Sequence" to work for movies where objects are animated with actionscript. Exporting like this works just dandy for normal animations, but it doesn't work for my current project. Basically I am creating images using mathematics and I want to be able to expo...
Picnik's left hand menu:
http://www.picnik.com/app#/create/shapes
Basic features:
Accordion like components (but multiple items can be selected)
Each stack has multiple child stacked
The whole menu resizes depending on how many stacks are selected and a scrollbar is also shown if necessary
So how Do I go about creating a menu like ...
What libraries or methods would be needed to achieve this?
...
I've got a TileList with verticalScrollPolicy="on".
Is there a property that returns the width of the tileList minus the width of the scrollbar?
...
I have an array of objects which uses a delimited string as the keys. When examined in the FB4 debugger, the keys look like this:
[+] 22477◦25220◦20.1
[+] 22477◦25220◦20.6
[+] 22477◦25220◦20.8
[+] 22477◦25244◦55.1K(j)
The first two items are numeric (cast to string) but the third item in the multi-part delimited key is na...
Hi! I have a "format" method that works in a similar manner to the C# String.Format method, with the following signature:
In a class named StringTools:
/**
* Formats a string, based on C# String.Format method.
* @param raw A string with numbered tokens, such as "{0}, {1}"
* @param rest Values that replace the numbered tokens in raw....
I am a little confused. I made a button symbol and I put a textbox called "butLabel". this button is encapsulated into another movieclip called MainMenu. cbegin is the instance name I gave the button. If I trace like this....
trace(menu.cbegin);
It recognizes cbegin is a button. but if I trace it like this
trace(menu.cbegin.butLabel...
I don't like external as files. Most developers prefer this and claim it's better. Explain why is it better to use classes in ActionScript 3.0.
My ActionScripts are different. I strip the classes away and paste it in the Flash IDE. 9 out of 10 times it works fine. My question is Socratic, but I really feel ignorant about this, since the...
I use the setTimeout() function through my application but when its time to garbage collect. the method still runs and calls on a function. How do I stop it from calling on a certain function. I tried setting it to null but it doesnt work
...
Gentlepersons,
How does one initialize a collection instance from MXML in Flex/Actionscript?
Background
Let's assume that:
I've got three lists of number-name
pairs.
The contents of each list never
changes, but I may want to add new
lists in future.
The user can choose which list to
use.
I know how
to use MXML to define/initial...
I got this error and I am not sure what it's about. The last thing I remember doing is adding a clearInterval() method to clear some setTimeOut() intervals varibles. besides that I am not sure what it could be. Not asking for a solution. But if anyone know's any possibilities of what it could trigger that error, maybe that might help me ...
I'm am super new at this, and this is my first time ever using Adobe. I get the "joy" of doing a project in my school using The CS4 Suite. I was playing around and using this book to help me get a button to start an action. I have tried many different codings, but this one gets me the least amount of errors. This is what I have so far:
...
It might sound confusing so let me explain the situation. I made a movieClip. And in that movieClip I have a dynamic textfield set. I called this textfield "AmmoCount"
I dragged this movieClip onto the stage several times and each time I called on the AmmoCount varible in each movieclip and gave it a different value. I get the followin...
Hello,
I am trying to load an image in Flex (AS3) which already exists:
<mx:Image id="Img"/>
With this code:
Img.load('http://www.path.com/image.jpg');
The path is verified to work, but I always get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
I used the code from the documentat...
I need to randomly scatter a variable number of objects in a Flash movie. Just randomly choosing locations doesn't result in a visually pleasing output. Objects end up on top of each other, all clumped together on one side, etc.
I'm looking for something similar to the algorithm that Photoshop uses to create a Difussion Dither when co...