What is the entry point of an AS3 script?
What is the entry point of an AS3 script? Are there any good very simple tutorials on using Flash CS4 (Windows)? ...
What is the entry point of an AS3 script? Are there any good very simple tutorials on using Flash CS4 (Windows)? ...
I want trace every event on every object, there is way to do it? ...
I need to determine if one class descends (directly or indirectly) from another. I can do var testInstance : Object = new ClassA(); if (testInstance is ClassB) ... but I hate creating an instance just to test ancestry. I hoped that if (ClassA is ClassB) would work, but it does not seem to. AS help states isPrototypeOf(theCla...
I'm getting a very bizarre callstack in my Flex project (AS3). Main Thread (Suspended: VerifyError: Error #1068: Array and * cannot be reconciled.) I was able to reproduce it using this block of code. If you debug, you'll never get inside "failure" function. private var testArray:Array = [{},{},{}] private function run()...
I've inherited an AS2 app that has a lot of functionality. I need to embed this thing somehow in my AS3 app so I can execute function calls etc and basically control it. Has anyone ever tried something like this? I'm assuming I'll have to URLLoader the AS2 SWF into a MovieClip and take it from there. ...
How do you pass parameters / variables through event listeners? I've overcome this problem fairly effectively using anonymous functions; which is an incredibly simple solution, but at the end of the day, it smells like a giant loophole for functionality that I feel should be provided natively anyways. Normally life would go on, but as f...
Hi, All, I started to learn Flex and ActionScript and encountered interesting statement: untyped variable. That is: var x:*; or just var x; I found out that they can hold undefined values. Variables of Object type cannot. But I don't understand the purport of them. I don't think that someone often need to distinguish undefined and...
For example, if I have a MovieClip with a ton of nested MovieClips and graphics on various frames ranging from 2 through 9999, but my clip never goes past frame 1, do those unseen clips cause a performance hit, or will Flash simply focus on what's being rendered onscreen on the current frame at one moment? ...
Using Flex 3, I had created a employer profile application where I could view 10 profiles in a page using repeater, however, when I tried to load 20 profiles in a page, all of the component go haywire, became non-function. It would not happen if I set the application height to 100% but due to native scrollbar requirement, I use Swffit t...
I have created an assets.swf, in which I want to keep all my symbols. Then, I have created an Assets class which does the embedding. It looks like this: public class Assets extends MovieClip { [Embed(source="assets.swf", symbol="MyBox")] public static var MyBox:Class; public function Assets() { } } ...
Hi again fellow Flashers :) My first question poised here at StackOverFlow dealt with this issue, I had an array which created a few different buttons. However I didn't know how to assign actions to them: How to give dynamically created buttons actions for each one - part 1 Thanks to Joel Hooks, I was able to get my code working. Howev...
Is it possible to package a XML file with a Flex app inside the .swf? With a Silverlight application, you can do this quite easily but you have to do a http request in flash to grab it if you're using flash?? I've been wondering this ever since I did a pretty serious silverlight application and utilized local txt and xml files for se...
Hi, I'm trying to figure out stage coordinates (x,y) so I can have an object in a legend move when an object in a picture is clicked. Thanks ...
I am working with google map api ... http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/GeocodingSimple.mxml What i want to do is to take up all the steps of direction, and place them in a datagrid. but the problem that the google map api provide description on in HTML format. and then i put this steps data in...
Hi, I am creating grid based map renderer in AS3 which loads required chunks of PNG images and render them in a container. I've applied scrolling/dragging logic in this app using MOUSE_MOVE event handler. What I do is, I register bDragging flag in MOUSE_DOWN and position of mouse, In every MOUSE_MOVE, I check displacement of mouse an...
Hi I'm trying to upload to amazon s3 using FileStream and UrlRequest. But it seems I can only upload 2 files simultaneously. Is there a reason for this? How can I work around this? Also would this affect web service calls to a SOAP web service on the same domain? Thanks, ...
Hello, I'm trying to create a simple "smart" textbox component in Flex, and I want a function inside it that I can use outside of the component to force itself to select all text inside of it. Inside my SmartTextbox.mxml public function selectAll():void { this.setSelection(0, this.length); } I also use this function when the tex...
I need to load multiple swf in a list like control so that I can load all the swf from the folder and show them to the user, then the user can select any one and view it. How can I load swf in HorizontalList in Flex3, please send me any example or link regarding this requirement. Thanks in advance. ...
Hi, Lets say I have two swfs A and B, and at runtime, swf A loads swf B, and I wish to share code between them, to minimize file size and download times. If swf B has some code (say. com.blah.HelloWorld), I tell the compiler to have swf B's source in swf A's classpath, but only do a compile-time link and not actually compile com.blah.H...
In AIR on Mac, when I send login creds to a service and they're incorrect, AIR displays a native popup window to try logging in again without dispatching an error event. Twitter provides a header (suppress_response_codes=true), which returns any error as a status 200 with the error message. I'm using HTTPService to connect to a service w...