I'm trying to make a variation on Array for a very specific purpose. When I have the following:
public class TileArray extends Array {
// Intentionally empty - I get the error regardless
}
Why can't I do this?
var tl:TileArray = [1,2,3];
despite the fact that I can do this
var ar:Array = [1,2,3];
The error I receive is this:
...
I am new to Flex programming. I am an experienced J2EE developer and have done a fair bit of RIA programming using non-Adobe technologies..
Can you please suggest one or two good books which cover Flex 4 and AS3 programming in depth.
PS: I am not looking for beginner level books, I need an intermediate to advanced Flex programming bibl...
currently i'm tweening numbers with the Tween class by adding their value to an object's items array:
var tweenObject:Object = {value:20};
distanceTween = new Tween(tweenObject, "value", None.easeNone, 0, tweenObject.value, 5, true);
is this the most common, simple way to tween numbers with the Tween class?
i'm aware there are more s...
I'm trying to set up a menu. Because this menu can have a varying number of entries, I'm generating it instead of hard-coding it. The Menu object contains an Array of MenuEntry objects, and each MenuEntry has a framework.Button object which contains the text and box that actually gets drawn to the screen. I can add a MouseEvent.Click eve...
I'll consider myself a newbie,
I've made buttons in a flash menu to play animation and go to a url on click, and I've made it so that the url page loads in an iframe.
Everything works fine on Safari, but it ends up loading the url page in a new tab for Firefox.
If anyone has a solution, it'll be really appreciated. Thanks so much.
He...
hi, how to compare values of 2 dates using actionscript
i executed this code in my program..
var time1:Date = new Date(Number(fromDate.substr(0,4)),Number(fromDate.substring(5,7))-1, Number(fromDate.substring(8,10)));
var time2:Date = new Date(Number(toDate.substr(0,4)),Number(toDate.substring(5,7))-1, Number(toDate.substring(8,10)))...
I'm looking for an efficient way to filter a specific color from a bitmapData object in ActionScript 3. Currently I use a loop with readByte32(). This takes about a second to process which is unacceptable. I have been trying to get paletteMap() to work but so far haven't been able to grasp its API (any truly useful links? Google has ...
Hi,
I better explan what i mean:
I have a Data Grid with automacticly genorated columns, i now need to add data items into
a spesific row / column of this grid e.g. col 2 row 3. It dosnt have a data provider at the moment as i wish to be very selective about which data goes where.
Which is the best way to do this?
Thanks
Jon
...
I am editing a Flash file and I need to change a mailto: link. When I edit that link to change the email address I get several instances of error #1056.
I am no Flash guru, I am just wondering why such an arbitrary change would break everything and where I should be looking to solve the problem/
Thanks
Edit:
Here are the errors:
Ref...
Hello,
Can anybody tell me what can be the cause of this error or where can I find out more about this error?
event.preventDefault();
try{
var itemsVector:Vector.<Object> =
event.dragSource.dataForFormat('itemsByIndex') as Vector.<Object>;
}
catch(errObject:Error) {
trace(errObject.message);
}
I...
I want to add a newline to a string text and I was wondering if there is a newline constant in actionscript 3? For example in .net there is an Environment.NewLine that is a string, containing "\r\n" for non-Unix platforms, or a string containing "\n" for Unix platforms.
...
Hello
I want to use instances in an array, but get an error. How do I use instances in an array? Thanks.
Error 1010 'A term is undefined and has no properties'
//I'm trying to make two array objects disappear
var pink:Array = ["boxInstance1","boxInstance2"];
/*
THIS WORKS
boxInstance1.visible = false;
boxInstance2.visible = false;
*/
/...
import flash.net.URLLoader;
import fl.video.*;
import flash.utils.getTimer;
fk.autoPlay = false;
// Parametreleri yüklüyoruz.
var myLoaderInfo=new Object();
//Parametrelerin yuklendigine emin olmak için false yapıldı.bunun daha sonra true olması gerekiyor.
myLoaderInfo.myParamsLoaded = false;
// Event.complete i cagırmak için kullanı...
Hi,
I accidentally stumbled into using flash for a project where php wasn't an option, unfortunately I've come to a point where i need to edit a little actionscript and it's beyond me.
the xml looks like this (i know it's stupid but it's already tied into some php parsing functions that would be irritating to rewrite!)
<project>
<proj...
I'm rebuilding this embedable player for a client of mine, the video file URL and a couple of other variables are in the HTML as Flashvars. I suspect something is wrong with the code that looks for the flashvars.
Link to test page: http://dev.howdini.com/embed.html
The top part showing the green box is where the player didn't load becau...
I would like to compile my view classes into an SWC from flash, and compile the rest of the application using mxmlc (avoiding recompiling through the IDE). However, because the view classes (source) are in the project class path, mxmlc gives them precedence over the compiled SWC.
Now I'm thinking that maybe the view classes have to be s...
Stratus is currently in beta !
So, if I create a simple app with stratus tecnology and I get millions of users, then how can I scale the application ?
How chatroulette have resolved the scaling issue ?
...
import com.hydrotik.queueloader.*;
.................
public class Main extends MovieClip
{
private var _ql:QueueLoader;
private function _loadSTRATIntro()
{
QLog.log("_loadSTRATIntro()");
this._ql.addItem("res/swf/STRATIntro.swf", this.introduction_mc);
this._ql.ad...
I have some small canvas, and i have to show border around them, i did that using rollover and rollout evenets, (these canvas hold product images), here rollover and rollout are working perfectly fine, but when a user clicks on some canvas, it has to be selected, means it has show the border around it, and rest canvas should work as norm...
Hi,
I have a function which makes a call to the server to load some financial data. This data is then displayed in a grid. In order to keep displaying the latest data I keep making this server call (every 30 secs). I'm using a Timer object to do this.
The problem I have is that I have to wait 30 secs when the application starts for fin...