Recently in a project I configured a custom Loader class as follows
First I define my Loader as a private variabel
private var _myLdr:Loader
//Then in the constructor
_myLdr = new Loader();
_myLdr.contentLoaderInfo.addEventListener( Event.COMPLETE, doneImgLoad );
_myLdr.contentLoaderInfo.addEventListener( ProgressEvent.PROGRESS, lo...
I am trying to get a movie clip to play properly. The first part with MouseOver works fine, but the MouseOut doesn't get a response.
Here's the code:
stop();
callout_btn.addEventListener(MouseEvent.MOUSE_OVER, playCallout, false, 0, true);
callout_btn.addEventListener(MouseEvent.MOUSE_OUT, resetCallout, false, 0, true);
function play...
Learning to program slowly so I bought ecard application to learn how to build my own. After changing address to match my domain and upload the to/from info does write to a text file but I get an error message that says it can not send ecard. My hosting co said they changed permissions but still doesn't work. Address: www.myphotocards...
I have to create an ActionScript 3 project in Flash Builder, and compile with mxmlc.exe, but the output has to be a .exe file for Windows, and also, an .app Macintosh Projector file for Mac.
Does anybody know how to achieve this?
...
hi guys,
just facing a difficulty with tree control drag drop..
Suppose i have tree with drag-drop enabled.
I want to which node(id) is droped inside which node.
1]if i drag "Cat1" node inside "Cat3",i want to identify
ids of siblings of "cat1",and "cat3".
2]in general i want to know the ids of current element being moved along wit...
Hi,
I have run into a small graphics glitch in Flash. It seems to be both in FP9 - Exported via Flash CS3, and FP10 - Exported via the Flex 4 beta SDK.
The glitch / problem manifests itself as embedded text at a small point size "blooming" under certian conditions. It basically looks like the antialiasing becomes fatter at some level...
To crop the image into a selected size by drawing rectangle over it. It should be done in ActionScript 3.0 and Flex 3.0
warm rgds,
...
I need to realize a multiple-track player. The user can upload multiple tracks and mix (play them together). My problem is to allow the user to define an exact start position of each track to allow a synchronization between them, something like this:
Track 1: start at [x] sec.
Track 2: start at [y] sec.
play/stop
where the user can s...
I want to design a custom component that extends Button that will have two new styles: selectedColor and selectedFontSize. These will allow the button to have a different text label color and font size when the button is selected. (When I say 'selected' I mean selected state, not being selected (mouse down).
The approach I've taken is...
DISCLAIMER: relatively new to Flex/AS3, I might be missing something obvious.
After doing some research it appears that using the for(var property:String in object) does not guarantee the enumeration order of properties, however it doesn't say anything about modifying the VALUE that property points to as changing the for...in loop. See...
In my flex app I have various custom components done with mxml or actionscript.
I want all of them to extend a base-class where I can define properties/event listeners etc.
Can someone give me an example how to create that base class and how I can extend it in mxml and actionscript components?
...
After many years of using Flash 8, I'm moving to CS3 at work. I know I'll have to learn AS 3.0 so, does anyone have any good references or summaries of the major/most noticeable changes? Also, are there any tips/tricks for the flash environment? After spending a few minutes in CS3, I noticed that you can't directly attach actionscript...
I'm using GraniteDS Actionscript code generation templates that let's me take a Java object and convert it to an Actionscript class.
It's mainly used for BlazeDS Java to Flash communication but I'm adapting it to work with JSON webservices using XStream/JETTISON JSON.
Is it possible to use the Granite DS Groovy templates to inspect an...
So basically I have this map. On this map I have points, and when you click on these points it goes to a URL.
The code setup is as follows:
Arrays to define the movieclip
locations and another for the urls
(this one is an associative array).
I then create a function loop to make
an event listener for each point.
When the point is clic...
I'm using the FileReference class to upload flvs to a server.
Is it possible to check the flv length not size before allowing an upload?
...
Senario
I have a movieclip ('myMask') which has 3 layers inside:
1. Mask shape (face silhouette)
2. picture (of person)
3. square shape with alpha 0% (this is slightly bigger than mask shape)
1 is in the center of 3
1 is masking 2
The picture is much bigger than 2 and 3 and is at a rotated angle + positioned off center.
Problem
I need...
Hello, I've a problem loading a JSON with flash class com.adobe.serialization.json.JSONIt works fine with everything except I haven't found a way to load special chars, so if i have
{
"json_text":"Hello, goodbye! I work fine!"
}
but If i need a special char like àùòèéì it won't work, I've tryied with
{
"json_text":"òàùèéì I r...
Hi!
I'm trying to use degrafa in my Flex project, and I would like to change a surface coordinate reference point. I want to put the center of the screen as (0,0).
I have tried many ways but I can't make it work. Any ideas, please?
...
When playing a flash movie in a browser, we can right-click on stage and zoom in.
can we also code these as functions in our actionscript-3 file? like automatically zooming onto the stage at a particular point? can we do it when some key is pressed?
...
The documentation says that clipRect parameter of the BitmapData.draw method sets clipping for the source. Reading this I wrote an AnimatedObject class for my potential flash game. This class draws a frame from a .png animation strip, and doesn't work with Flash scene hierarchy.
var frame : Number;
public function onDraw(backBuffer : ...