I am new to flex and as3 and I need to create a workaround for a button issue. I don't know how to have one button created by one class send a click event to another item created in a different class
Therefore, I'd like to place both of my buttons on top of one another, alpha one of them out and have both buttons receive the same click....
Hi guys,
How can I call WebService using ActionScript 3. from my initial findings, I come to know it is AS3 dosen't support WebService and SOAP, it was in Flash MX/AS2 though.
Any suggestions or links guys??
Thanks
...
public class SndFx
{
[Embed(source="Sounds/01.mp3")]
public static const s01:Class;
public static const s01s:Sound = new s01() as Sound;
[Embed(source="Sounds/02.mp3")]
public static const s02:Class;
public static const s02s:Sound = new s02() as Sound;
[etc...]
}
Can I access these attributes dynamically? I've got a number of ...
I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.
Here are the contents of the root crossdomain.xml:
<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies ="all"/>
...
To select all the items in myList I wrote:
myList.selectedItems = ['red','cyan','magenta'] ;
But what if I don't know about the items in the mx:list in advance? How can I select all the items in a list without specifying their names?
Thanks
...
Hi,
I am trying to construct a line dynamically, with a start and end gradient. I want to avoid using a GradientBox, as the lines are dynamic. All I want to do is have the line start red, end blue. This code does not work though :(
myLine = new Shape();
myLine.graphics.lineStyle(2);
myLine.graphics.lineGradientStyle(GradientType.LINEAR...
Hello all,
I have a page that uses the jQuery.swfobject plugin to embed 5 flash items into a page and each flash item has a callback using externalInterface. The callbacks work when I have the js function outside of $(document).ready(function() but the jQuery animations do not fire - the ajax load however does.
Does anyone know how to...
Hi there,
I want to add a simple piece of text to the stage and add a listener to do something when the user clicks it.
Here's my TextLink class:
package some.package
{
import flash.display.Sprite;
import flash.external.ExternalInterface;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
public cla...
Say I have four sub-classes of 'Car'. One for each color. I want to have one function that can build and return a 'color-car' sub-class based on the passed value. This is a dumb example, I know, but it is precisely what I am trying to do only on a smaller scale.
public class Car
{
}
public class BlueCar extends Car
{
}
You get it.
T...
Hello all,
I am trying to create a mini media player AIR app that allows users to view videos, images, and songs loaded in through an external XML file, while also allowing the user to browse through their own files and play any media through the viewer. As of right now, I can get videos to stop playing when an image thumb is clicked, ...
I have a flex application that loads an external swf file. I created the external swf file using flash cs4 so I can add code to it if that is what it takes.
Here is the code I use to load my external swf:
//add button swf
var request:URLRequest = new URLRequest("http://www.yadayada.com/media/but_button.swf");
var loader3:Loader = new L...
In regards to as3 project:
Is there a way to inherit the properties of a given DisplayObject?
I am looking for a single method that will grab something like the x, y, width, height, color, etc.
Whatever is involved in the common classes between the two display objects.
...
Edit:
I don't think I was clear enough... Let me give an exam...
Hi,
Try to explain my problem first.
In my local drive(C:\temp) have zip file.I want to transfer this file in the server location.
the problem which i faced, i want to do that without fileReferenceList.browse();
fileReference = FileReference(fileList[0]);
In fileReference variable, may be given the file object.
How I can make the p...
I have an 2D image that I want to draw in true 3D, and spin around its centre.
I'm using Actionscript 3 code (actually Haxe, no IDE), and I'm struggling to discover the values by experimentation.
I have a DisplayObject. If I use rotateZ = 45, the object rotates around it's top-left, rather than centre; more complicated Display.transfo...
I've been trying to get this to work for a while. I have 25 frames I want to loop, but on a mouseover I want it to jump to frame 26 and continue. Any suggestions?
Actionscript 2 or 3 is fine...
...
In Flash CS4, if I create a new AS3 file and use File > Import > Import Video to bring in an mp4 video it works great. However, if I create a new scene and import the video into that, I instantly get this error at runtime:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTi...
Hello
I want to imitate the iPhone scroll behavior in a Flash app I am developing. The idea is to enable drag-drop with a certain amount of inertia/deceleration (you know, when you drop something while your cursor is still moving and the thing would continue moving for a moment and then stop).
I am using the TweenMax library for my ani...
Hi,
I want to implement drag&drop possibilities in my application. Here is my source code:
I added images to the container, and now want to be able to move them from element PieceContainer to element board (defined in the another class). I tried to define mouse move handler as it was shown here: http://livedocs.adobe.com/flex/3/html/he...
I have a flex app under construction that makes use of a lot of . I have a main module that has child modules. Ugh, I know. in one of these sub-modules, i want to know if i click a button. The handler for that button-click resides "higher" up in the app. I added an eventlistener looking for the event that I dispatch down in the sub-modul...
My team has been asked to offer AMF output from our web service to decrease the time spent parsing XML or JSON for Flash modules on the front end.
As we have an existing application architecture that we must continue to support in terms of request structure etc, I am not interested in using one of the preexisting AMF RPC frameworks (eg:...