I have an arbitrary number of files that I need to load in an AIR app.
I want to iterate through an array of File object and create and launch Loaders for each one's File.url.
When they are done (event COMPLETED or IOErrorEvent.IO_ERROR), I want to stuff their data somewhere. If they fail, I want to make an exception report. I cannot f...
I created a custom scroll thumb in Flex but the scroll thumb is scrolling past the track skin. Check out this screen shot.
This is my code for the track skin, which essentially just makes it invisible so it appears to be rounded:
package com.project.skins
{
import flash.display.DisplayObject;
import flash.geom.Rectangle;
...
I have menu system that I built in Flash that allows you to select an item and move it up or down. If the object is removed from the menu, I want the selected item to be set to null, so it won't try to be moved anymore.
I have a global (for the current movie clip timeline) variable:
var selectedPlaylistItem:MovieClip;
That stores wh...
I have 2 mxml files, lets say main.mxml and child.mxml. Now lets say I want to load child.mxml inside main.mxml and pass it a complex object as a parameter. How would I go about doing this in AS3/Flex 3?
I have tried to search for this on Google and SO but either I am not searching with the right keywords or there is no info (unlikely)....
I'm trying to get StyleManager to have some effect, to no avail.
package {
import flash.text.*;
import flash.display.Sprite;
import fl.managers.StyleManager;
public class StyleManagerExample extends Sprite {
public function StyleManagerExample():void {
StyleManager.setComponentStyle(TextField, "selectable", false);
...
I'm trying to migrate an existing actionscript program (server part) to java (red5).
However, I'm blocked with the following code :
Client.prototype.requestInterview = function () {
};
Does anyone know what is the equivalent of Client.prototype in red5 ?
Thanks in advance,
Massi
...
I'm using a ProgressEvent in Flash to determine how long something will take to download. I've got this:
progress = event.target.bytesLoaded/event.target.bytesTotal;
to set a percentage.
After some scratching of my head, I did a trace on the two values - and it turns out that "event.target.bytesTotal" is always equaling zero.
I ca...
I am trying to add a drop shadow look( without the offset) to a movie clip in Flash.
Using the Actionscript below, I can add a drop shadow with an offset.
import flash.filters.DropShadowFilter;
var dropShadow:DropShadowFilter = new DropShadowFilter(5, 45, 0x333333, 20, 10, 10, 1, 2, false, false, false);
container_mc.filters = new A...
Hi! I was looking a component to reduce red eye effect on taken photos. Ive found an image Processing library, but it does not work well at all. I was thinking on brush an image, manually, and only paint if the base pixel color its red or near in RGB.
Have no time now to explain all the process, but i need help to get this idea, or to g...
What are you choices?
...
I would like to create a flash presentation for a web page. It would read content from files in LaTeX format and would display the content properly. This would require to call a LaTeX compiler and generate the proper output every time the content in the latex files changes. How can I do that? Any other ideas around this?
...
We made a 3D carousel with the new native 3D support from flash. Now when I resize, my carousel should drag along the middle. Which it does fine. But for some reason the perspective doesnt come along, therefore it looks like the more i resize, the more the carousel is leaning to the left side.
The carousel is set up very simple. Everyt...
Does anyone know if it is possible to inject into a regular as3 (non mxml) class? I've tried with limited success.
Thanks
...
I'm new to Flash, and I can't seem to do this simple action.
(I'm using ActionScript 3.0)
I created an input text box in my editor. The instance name is "test".
In my Action editor I have this:
import flash.events.Event;
this.test.addEventListener(Event.PASTE, pasteHandler);
function pasteHandler(e:Event)
{
trace("blaaaaaaaaaagh...
Alrighty, I don't know how I did this, probably the AS3 gods became angry with me when my scrollbar worked right after I coded it, with no bugs. But I have a very weird problem. I have three different buttons, they aren't nested within each other, and they have event listeners for mouse clicks that call a function. Whenever one of these ...
Hi,
i am new to Flash and AS.
I have to 2 swf file one in as2 and another in as3 , i have loaded swf file(as2) in as3 swf, its working but i need to access all the movieclip from(swf(as2)) and change the property(like style) dynamically . how can i do it .
Here my code::
var loader:Loader = new Loader();
loader.contentLoaderI...
Hi,
I read somewhere a utils to show the class + line nbr of the function who called a trace("foo") which is very handy once you start getting a lot of debug output.
Any hints on where to find it ? it was open source, maybe shown at a flex event.
trace("my debug");
> mydebug :34 bla.as3 ..
Thanks,
Greg
...
Hello flexers,
This simple code shows a green canvas on a red canvas, i would like the Green canvas to let the mouse down event to be catch by the child behind him: the red Canvas.
How can i do this ?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete=...
I have a secret key that was sent to me as a file so I can encrypt some xml data using Blowfish. How do I access the key so that I can use it with AS3Crypto? I assume I need to Embed it using the [Embed] meta tag. It's mimeType="application/octet-stream" but I'm not sure if thats right. How do I embed, then reference this file as the sec...
Are there any stream-reading, parsing libraries available for json or xml formats in AS3? I'm setting up a long-polling application, using URLStream/URLRequest. I do not have control over the data I'm receiving other than a choice between formats. I'd like to have a parser that can handle fragments at a time, which would allow me to t...