I have a rectange that I've created and set its individual properties like so
var aRect:Rect = new Rect();
aRect.width = "15%";
aRect.height = "15%";
Problem is the compiler chokes on 15% and "15%", with or without the quotes, neither works.
...
Solution:
if you have the same problem, addElement() instead of addChild() is what did it
I'm trying to move away from mxml to actionsctipt. I have a <s:Rect> that I've created and set its properties, but having trouble adding it.
var aRect:Rect = new Rect();
//set properties like aRect.x, aRect.y, aRect.width, aRect.height
//trie...
I have a Rect object that I'd like to create and set its properties only once. After that, I want to just modify its properties since it already exists. This is my general idea
if(theRect == undefined){
Alert.show("creating");
var theRect:Rect = new Rect();
//then set properties
addElement(theRect); //then add it using addElem...
Macromedia Flash 8 Question:
I have a map of Ireland, just a gif, and there are several small buttons representing various point of interest around Ireland, which are scattered across the map.
This part works fine.
THE PROBLEM:
Dublin is too small to contain all of its points of interest (approx 20).
THE SOLUTION
OnMouseOver Dublin, I...
OK, I was just fooling around in my spare time and have made this cool interface and game-playing code for a Connect-4 type game, written in Flex and playable by 2 human players in Flash. It accurately detects wins, etc. I'm smart enough to know that I've done the easy part.
Before I dig into an AI for game play, I wanted to ask if this...
I am trying to add a flexnativemenu to my air application and I have some problems...
When I set it in the windowApplication, I get null errors in child controls so I tried to set this.menu = myMainMenu (which is my flexnativemenu) in the creation complete event but the menu doesn't show up...
I tried to show an alert message before se...
I have a requiremnt where my Air application loads ZIP files instead of swf.
The zip contains all swf ,images and other files.
My requirement is when user browses for file in a browse dialog, user selects a zip file and the contents of this zip file should be displayed to the user.
i found examples to extract zip files, but i want to k...
Hi guys, Im having a problem with Flex 4 beta 2...
I cant call a class using: "<fx:Script source:"myClass"/>
For some reason, no matter what I do, the error is always the same.
"Packages cannot be nested".
I googled it and I found links to help.adobe.com... but they are all broken links...
So, is this a Flex bug or there is a new wa...
Hi,
Hi my designer made a fla file where he has animated layers loads of them. All the images inside those animations are loaded from outside the swf.
Now, the issue is at one point in time I want some of the objects to go under another object ( current their on top) . If I do this visually the images inside the swf(loaded) are lost....
stage.focus = textField;
textField.setSelection(0,0);
is not working for me.
...
Hello Everyone,
I am learning MVC implementation with ActionScript 3.0. So far, I have done alright but have couple of questions that can make this learning process very pleasant for me. I would highly appreciate your help and wisdom.
Let me explain how I am implementing a simple MVC implementation:
My Flash Movie is called FusionMVC....
I'm using flex and have a few images that I need to sequence through. I may add some text under each image. What I'm trying to do is automatically sequence through these images such that a black fading effect appears briefly between each image and the next - sure you've seen that sort of thing before.
My questions are this:
should th...
For example :
input = 360 seconds
output = 6 minutes
input = 86400
output = 1 day
Is there a built-in method for this.
I did find something similar here.
Just want to know if there is a built-in method?
...
How Can I have a Flash AS3 Projector load protected images/mp3s/videos from a password protected server? I have a bunch of content in a password protected directory that I do not want people to access unless it is in my flash Projector. Is this possible?
...
I'm in the middle of creating a fairly large flex application, and over time, it's started to edge toward unmaintainability.
I'm using 3 external library projects which are still small enough to remain maintainable and reusable, but the main project seems to be impossible to keep organized.
Part of the problem seems to be that I ha...
Does anybody know a way for a swf file to communicate with the site its placed in. What I mean is I have a flash file with a start up screen in it, which has a tick box saying "Don't show this screen again" which skips to the sites content when tick, the same as what some adobe applications have when first started up. I think this might ...
I know of FlashDevelop for windows but how about developing actionscript or haxe on a mac? besides flex plugin for eclipse, flex builder and FDT is there anny good IDE out there for actionscript development on mac? I would really like to se a good plugin for netbeans but it looks like all the projects on making something like this has ha...
In a DataGrid, how can I force data() of all itemRenderers on visible rows to be called when I've made an update to the dataProvider.
I'n the following the Grid isn't updated after pressing doSomething. If I have a large list the update is done when scrolling down and then back up again, or in the case of the TreeGrid i open/close a no...
I have been doing lot of thinking on how chatroulette came into existance . I mean its able to switch on my cam , but thank god its atleast asking for permission . I checked its code and it says that it has a cam id tag , but i think its an action script in flash which does the trick . Can i know what is the trick here or is it java scri...
I'm currently using the JPGEncoder from the AS3 core lib to encode a bitmap to JPEG
var enc:JPGEncoder = new JPGEncoder(90);
var jpg:ByteArray = enc.encode(bitmap);
Because the bitmap is rather large (3000 x 2000) the encoding takes a long while (about 20 seconds), causing the application to seemingly freeze while encoding. To solve...