how can i reference a display object's coordinates according to it's parent object or stage from within the class that creates the object?
essentially when i create a new sprite object from a custom class and add it to the display list, i'd like to include code within the custom class that limits the drag coordinates to the stage, or a ...
Hey everyone,
First off, I am very bad at flash/actionscript, it is not my main programming language.
I have created my own file upload flash app that has been working great for me up until this point. It uses PHP to upload the files and sends back a status message which gets displayed in a status box to the user.
Now I have run into ...
Hi,
in Adobe tutorials, they suggest to create a class to handle the events (see below the copy/pasted code, and link to page).
I was wondering if I have to handle all events with the function handleAllEvents, using if statements to check if the target is the one I want, and the event is the one I want.
i.e. if (event.type=="click") &...
...unless they're something like "Times New Roman" or some other established font with a fully designed italic and bold, presumably in seperate files.
Let me explain what I mean (though why no one has commented on this before I have no idea.)
Numerous, numerous fonts do not have a seperate file for italic and bold, and in fact to the b...
It took me many hours to narrow down a problem in some code to this reproducible error, which seems to me like a bug in AVM2. Can anyone shed light on why this is occurring or how to fix it?
When the value at index 1 is deleted and a value is subsequently set at index 0, the non-existent (undefined) value at index 1 will now show up in ...
I'm using the <s:ComboBox> flex component which I suspect is very similar to the mx one <mx:ComboBox>
What I'm trying to do is listen to the event of the mouse moving between the items of the list. There's a change event, but it kicks in only when the item is clicked/selected from the list.
What event would I need to listen for when i...
I just tossed this super simple code example into a Flash CS4 IDE frame script, but it doesn't output anything in the console. I'm simply rolling over my mouse over the window, not clicking anything, and nothing is happening. Why doesn't this work as I expect?
stage.addEventListener(Event.MOUSE_LEAVE, traceMouse);
function traceMouse...
I'm looking for a way to load invalid (malformed) XML into an AS3 XML object. Do you know a class or a technique to do so? I have to load malformed HTML and parse it as XML.
This is a Flex project so I can use Flex specific classes if needed!
I thought of using the HTMLLoader since it accepts all kinds of malformed HTML and renders it ...
Hi guys, you all know: "right click -> zoom in or out" in flash file, well, I need to do this but using, for example, clicking a button.
Is this possible using only AS3 code?
Thx!
...
Is it possible to make php variables public and accessible anywhere on the timeline?
The script I included works fine if I set it as the document class only (it won't work if I try importing it). The variables pass the text to dynamic text fields on the main timeline.
The problem:
It will pull the information and display it when the SW...
How can you get the height of the Text component that's been created dynamically from ActionScript. For instance, if you have something like:
var temp:Text = new Text;
temp.width = 50;
temp.text = "Simple text";
how to get height of temp?
...
I am just trying to understand what the values sent back from computeSpectrum(bytes,true,0) mean. I have values ranging from 0 to 1 for each float i read from the byte array but does each value represent a range of Hz
Thanks!
...
Hello!
So I am pretty familiar with memory management in Java, C and C++; however, in flash what constructs are there for memory management? I assume flash has a sort of virtual machine like java, and I have been assuming that things get garbage collected when they are set to null. I am not sure if this is actually the case though. Also...
Hi All,
I would like to play AAC audio format file from local disk. I got example to play through netstreaming but I need to play it from local disk. I got an example to play mp3 file from local disk using Sound class.
For reference:
http://www.adobe.com/devnet/flashmediaserver/articles/audio_playlist_app_05.html
...
I have a initApp.as which instantiates a class which needs to access the "currentState" property and the States array as well. However we cannot get this to work as we cannot see how we can access this information.
Within initApp.as currentState is accessed via "this.currentState". This does not work in the class which is instatiated wi...
How can I skin a listbox component in as3??
I want to change the default white background color of the cells and the default light blue on mouse over to match my application color scheme.
I found nothing clear on the AS3 Documentation
Help is appreciated.
...
this is one of those upsurdly basic questions for which google does not work. I have usually dispatched events from my classes and dealt with the user interface in the document class. But now i want to separate all the UI in a separate class, accessible by other classes.
I have added it as a child to the main/document class, but how do...
hi friend,
I have created webapplication in which I am getting the error:-
ypeError: Error #1009: Cannot access a property or method of a null object reference.
at FlexSBTSApp/displayString()[E:\Users\User1\Documents\Flex Builder 3\FlexSBTSApp\src\FlexSBTSApp.mxml:38]
at FlexSBTSApp/___FlexSBTSApp_Button1_click()[E:\Users\User1\...
I'm trying to implement a small program with Flash and php that records audio and converts it to mp3.
Currently I have Red5 server up and running, I can connect to it with no problems and I can publish flv recordings to the server. When I listen to the flv with Wimpy FLV player it seems to be fine. The problem comes when I'm trying to c...
Hey all, basically i have an empty AS3 fla file with just the following code:
import fl.controls.CheckBox;
var cb1 = new CheckBox();
cb1.label = "Beets";
cb1.y = 10;
addChild(cb1);
But when i run it, i keep getting this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::...