I've got a couple trees that I allow a user to drag and drop from one to another, works great except one apparent limitation. I'm picking up where they drop it in the list and adding it to the dataProvider manually. The user can drop it everywhere except after the last child of any particular node it seems, since it reads that position a...
Be aware that I might be doing this totally wrong, so I apologize in advance.
I have mxml thingy, for example:
<mx:VBox id="isThisVBoxAwesomeOrWhat" width="500" height="500"
backgroundImage="@Embed('images/500x500.jpg')" verticalAlign="bottom"
includeInLayout="false"
blendMode="{BlendMode.ERASE}"
x="-1000"
y="...
How to copy something as a pastable bitmap in flash?
So I have simple mxml project - empty page with a panel on it.
I want to be able to select some region on my panel and copy it somehow as bitmap pastable to photoshop, word and other programms.
How to do such thing? (libs, articles etc)
Edit - It may be not possible in FP10 but in...
<mx:Label id="myLabel" dataChange="{trace('changed!!');}" />
I change the text in the above label:
myLabel.text = "new text";
But nothing is traced as it's supposed to.
Am I using a wrong event? I thought dataChange is fired when text in the label is changed.
...
Has anyone ever run into this before? I have the crossdomain.xml set and I've also tried setting the local playback to network only and still no luck.
What I'm trying to do is have the user upload an image, then I pass that value over through PHP and a directory is created. After that hits it returns with the path and I try to load the ...
I have created a online portfolio that loads in External swfs. Everything works fine on its own but once the external swf is loaded into the containing swf I lose control of the external swfs timeline. Is this a bug or is there just something I am forgetting
function ValidateAndSend(event:MouseEvent):void{
//validate form fields
i...
Hello Stackers!
My question today deals with checking an XML file for a specific node.
Example:
<vid
flv="videoName"
thumb="thumbnail.jpg"
title="Video Title"
logo="Path to logo here">
</vid>
<vid
flv="videoName"
thumb="thumbnail.jpg"
title="Video Title"
</vid>
The first vid node contains a path to a logo graphic, I then need...
I am trying to read a very large file in AS3 and am having problems with the runtime just crashing on me. I'm currently using a FileStream to open the file asynchronously. This does not work(crashes without an Exception) for files bigger than about 300MB.
_fileStream = new FileStream();
_fileStream.addEventListener(IOErrorEvent.IO_ERR...
I'm currently developing a flash game and I need to be able to test it on my local machine and also on the web.
When running locally I use some dummy test data and when online it is joined to an API.
While in development I would like to be able to detect where I'm running so I can switch between these automatically. Is there a way to d...
I've seen the Loom project, but are there any alternatives that are more mature (and actively developed)? I am looking for something that would allow load-time weaving of pointcuts into existing binary code at runtime with the AVM2 runtime.
Has any work been done in this area?
...
i'm linked a MovieClip class object to my project, and i will programatically add it to the display list. is there a difference between defining the variable's data type and not doing so? neither produce a runtime error.
//var datatype
var rectangle:Block = new Block();
addChild(rectangle);
//no var datatype
var rectangle = new Block...
I need more examples animating external files. My ball in the external swf is suppose tick across the stage. How do I get "ldr.swf" to load "ball.swf" and tell it to move the ball across the stage?
var bgLoader:Loader = new Loader();
bg_mc.addChild(bgLoader);
var bgURL:URLRequest = new URLRequest("ball.swf");
bgLoader.load(bgURL);
...
Currently, I have all my variable initialization and function definitions in the timeline's first frame, my logic in the second frame, and a command to 'go to the second frame' in the third frame.
This seems very sloppy to me, and I assume Flash developers have a better way of creating a run loop.
Thanks!
-S
...
I want to view all of the frames from within a MovieClip concurrently on the stage, however I am struggling to extract the individual frame information from the MovieClip.
I have managed to load an external SWF into a MovieClip and view the frames sequentially with the following code:
<mx:HBox id="hbox"></mx:HBox>
<mx:Script>
...
Hi!
I love django, and I like flex. Django for it's cool debugging system (those yellow pages helps a lot to find bugs in my code), and flex for it possibilities.
Recently I come across a problem. If I create a form in flex and then communicate with the django server, I can't see any debugging info (when the exception happens in django...
Hi All,
I have a Flex application which allows the user to edit a cloud-based document. (Think SlideRocket.) When the user tries to navigate away or close the browser window, I'd like to show them an are-you-sure dialog iff they have unsaved changes.
I'm using the following custom class, which I found at http://stackoverflow.com/questi...
I have a class (ImageLoader) that extends Sprite container and loads an external image to its instance. When i instantiate an object of this class from another (Main) class i want to have the dimensions (width, height) of the loaded image being known to this (Main) class. It seems that is difficult for me as the dimensions are known afte...
I want to display "Hello World" with calibri.ttf using only AC3. How would I do that?
...
Hey guys,
This is a really strange one. I've created my own CustomTextField class which I am using to embed the font and set the defaultTextFormat. This is working absolutely fine, but for some reason when I try to create a new CustomTextField in any module but the parent application, text text is only showing sometimes.
Here is my Cu...
Say I have code in my main mxml and in a function like this:
this.addChild(someContainer);
and now I want to refactor code and move this to it's own class and method in a separate file. How could I access root now, since this obviously now points to the new class I created.
...