My Flash Code
var myLoader:URLLoader = new URLLoader;
var xmlData = new XML();
myLoader.addEventListener(Event.COMPLETE, LoadXML);
myLoader.load(new URLRequest("mydata.xml"));
function LoadXML(e:Event):void
{
xmlData = new XML(e.target.data);
trace(xmlData);
}
My XML Data (mydata.xml)
<xml>
<items>
<item Name="Test" ID...
In one of my flash project i am getting xml data from the aspx file. But it always shows the same data and the new data is not coming in the request. I suspect the problem is in cache.
Below is my code
var urlloader:URLLoader=new URLLoader();
var header:URLRequestHeader = new URLRequestHeader("Cache-Control", "no-cache");
var urlReque...
Is there any utility that indicates in a comprehensible way what is referencing and object and why it can't be garbage collected.
...
I often have an function / action that is performed on a mouse event (say, MouseEvent.CLICK) that has to be moved to:
happen inside of an animation (at a given frame label)
happen at an event (say, Event.COMPLETE)
happen when another item is added to the stage or removed from the stage
What is the best OOP way to encapsulate such ac...
I have a problem when making flash applications with more than one frame that has symbols placed on it in that I can't declare all of the event listeners for the objects at the same time and I have found that even if I put them all on the first frame, add the event listeners, then click through to the next frame then the buttons won't wo...
So, the company I'm working at uses Flex and Java for their product.
Currently, I'm just an XML editor, but I would like to get my hands dirty with
some of the technology they use as soon as possible.
I was wondering if anyone who has learned Flex could possibly give me some advice
on the best way to learn Flex as quickly as possible w...
Hiya,
I'm currently developing a Flash website that incorporates an flv player. The controls on the player's skin are all vectors.
I've set it up so that when you hit fullscreen on the player controls a fullScreenSourceRect is created which is working great.
However when the the player is full screen, the once crisp vectors are now p...
I'm using the following switch/case for SWF Address:
switch (e.value)
{
case "/A" :
function A();
break;
case "/B" :
function B();
break;
case "/C" :
function C();
break;
case "/" :
break;
}
The problem is, when I am in any section (A, B, or C)...there is anot...
Is there a way to call a function inside a loaded SWF file?
Basically, I have a .swf file (A) that loads another .swf file (B)...I would just like to treat B as if it was any other instance added to my class .swf "A"...
Have to recast "Loader" with the name of your .swf file class:
Loaded .swf class:
package src {
import flash.disp...
Ctrl+enter works in all browsers on windows and mac except chrome mac.
This is a flash as3 app.
Here is my code:
stage.addEventListener(KeyboardEvent.KEY_UP, upListener);
private function upListener(e:KeyboardEvent):void {
if(e.ctrlKey && e.charCode == 13) {
//do stuff
}
}
One thing I notice is that the mouse cursor ...
So, I've been creating an application using the Adobe AIR Packager for iPhone (command line style).
The app consists of a lot of screens that provide various information, and the navigation is handled all in the document class via an event-triggered function that uses a large switch-case statement to determine what screen to go to.
When...
What way of reading and storing data is fastest for AS3. For debugging right now it is just reading the raw XML, but I suspect it would be faster if I made them into nested arrays.
Would parsing the XML into nested arrays to be read later be the most efficient method?, or is there a better way to read lots of data?
...
Firstly apologies for the length of this question, and for asking about facebook API ( seemingly one of the most inconsistent api's in the world... ).
The Situation:
We're producing an FB product 'community' - type page for our client, featuring standard facebook tabs, one of which embeds a flash game. At the end of this game we'd like ...
Hi guys,
following is my flex 3 code.
[Embed(source="SizeNESW.png")]
[Bindable]
public var cursor:Class;
private function mouseOver():void
{
CursorManager.setCursor(cursor);
}
here what i am doing that there are four corners above the image for resizing purpose. and i have a single image for cursor. i want to use th...
Hiya,
I've successfully integrated SWFAddress deep linking on a site I'm working on. However I'm having a problem whereby SWFAddress CHANGE event isn't dispatched when you click an anchor tag in the htmlText of a textField. The browsers address bar is successfully updated, just no CHANGE event.
How can I get it to dispatch in this sce...
Hi,
I am creating an AIR app. In this app there's a need to copy a folder from a fixed known localtion C:\xyz to app:/. I would like to know how can I do this copying before compilation/build so that they get packaged when I run the 'Export Release Build'.
Thanks guys in advance... :)
...
I am new to flash and actionscript.
I have added some movie clips to the stage using addChild method on Some Mouse Events.
Now on an event say Mouse Double Click I want to clean the stage.
I checked the Stage class from reference it does not have any method called clear.
Neither I have stored the references of the objects, so that i ca...
Hi All
Ours is a Flex/Parsley/Blazeds/Spring project & I'm trying to implement java Enums in Actionscript3 and all I have to do is to send the Enum value to Spring service method.
The Java Enum Code (this is generated from XSD)
public enum ReferenceLookupType {
PATIENT_VISIT_TYPE("PATIENT_VISIT_TYPE"), PATIENT_STATUS(
...
I'm trying to create a listing of thumbnails using the TileList component, and so far it's working great. Is there a way to change the appearance of a single ImageCell within the component.
I'm bringing in the thumbnail data as XML, and I have an attribute for whether it's a "new" image or not. I would like it to display a small badge ...
I have a actionscript 3 based desktop Flash app which has its own event model(GUI component) and another native c++ application(business logic) which has its own model. I want to connect them and have a middleware module which can act like an arbiter between the two and dispatch events across the two components according to some model lo...