Hi there,
I have a function in stage and need to call it from a child I do I do it...
// In main stage
var child_mc:mcChild = new mcChild();
addChild(child_mc);
function parentFunction():void
{
trace("Do something here");
}
// inside mcChild
button_mc.addEventListener(MouseEvent.CLICK, callParentFunction);
function callParentFu...
Is it possible to grab an event, hold it in a class property, do some action, then, when that action is complete, dispatch an event and then retrieve the original event.target in the listener?
I am trying to avoid using a custom event for now, as it is giving me massive amounts of heartburn when dispatching it from a loaded SWF.
Here i...
I know actionscript does not allowed private contstructor at any time and But if i want to write a sinlgleton class in action script So how to implement it in actionscript.
Can anyone provide an sample example of a singleton pattern in actionscript?
...
down vote
Hi,
this blogposts seem to be really old, but my question is fitting best in here. I am doing custom event dispatching on a MC construct like this
main_MC/room_MC/button_MC main_MC/room2_MC
I am dispatching a custom event from room_MC when receiving a button_MC.MOUSE.CLICK. It bubbles up to main_MC where I can do something ...
I want to make a custom container, usable in MXML like:
<local:MyContainer>
<s:Label/>
<s:Button/>
...
</local:MyContainer>
...but I'd like to be able to catch when the children are added so that I can control stuff like when & where they're added.
I tried overriding addChild(), addChildAt(), addElement(), addElementAt(), (exte...
Implemeting RSL in Flex 3.2
The build comils perfectly but opening it shows Error #2124: Loaded file is an unknown type. URL:
Whereas I have confirmed the requisite files are there in the folder. i.e. SWZ/SWF.
I also noticed we assetCache does not contains framework swz.
Any pointers ?
...
Hello Everyone,
here is the link of my Flash application
http://www.asa.com.pk/
hit the above URL and click on the PostCard section shown.. This will show you image and button to download that image. Application works fine at above URL and it downloads the file too but when any user hits the alternate url , the file is not downloaded..
...
Hi,
I need to send data from flash to the server, so I'm looking for a flash ActionScript 3.0 script that will encrypt a text and a C# .net script that decrypt the text.
Can anyone help me here ?
...
I am having some issue with consistency across different machines with my flex application.
There are three things that I have noticed with my application. On my development machine (Windows XP) I can not reproduce these issues.
I have noticed them on a Windows Vista machine as well as a Windows 7 machine.
The three things that I hav...
I have a custom Image class that I am using to store individual image information for a gallery application:
package mtm.test
{
public class Image extends Object
{
public var id:int;
public var filename:String;
public var title:String;
public var description:String;
public var thumbExists:int;
public var mediumExists:int;...
This is the setup. I have created a timeline with a playhead. When my playhead is dragged I would like the timeline to scroll with the drag.
So far, the only way I can do this is by setting clipAndEnableScrolling to true. But in this case I lose the scrollbars(not to mention the impact on my view). So what I would like is to set this pr...
Hi,
Is there a method for getting the last value of? I want
the last number value of an amount that's incremented.
I know I've seen this method.
Thanks,
...
I have an AIR application that is packaged with a network appliance and that is used to configure that network appliance...much like a the embedded webservers on home routers except this is an installed AIR app.
If I want to communicate with the appliance on a port higher that 1024, do I need that appliance to serve up a socket policy f...
Hey, all. I am building an application in Flex Builder 3. Yes, I know that it has an auto-magic feature to build datasheet, but that will not work. I see many Flex controls, such as combo box, can take an array as a data source.
My question, therefore, is (1) How do I send the request from my action script to my PHP form to request a r...
how can i update the built in player of Flash CS5? is it possible?
I've downloaded the latest 10.1.53.64 version and replaced the "Players" folder from this link. However, when i trace which version Flash CS5 uses when launching from the built-in player, it displays "MAC 10,1,52,14".
UPDATE: this website perfectly explains the prob...
Hello everybody,
I need to disable all the aspects of functionality which access the client file system in a flash/flex application. I started having a look on how to do this. It appears that the package flash.filesystem need to be importated to allow the interaction with the file system.
However, I did not find any reference to this p...
I'm using NaturalDocs to generate code documentation for a Flash project that we're developing with Flash CS5 on a Mac running 10.6.4.
Currently, I have an automator script I can click to trigger the UNIX script and generate the documentation, but I'd rather have it automatically generate the documentation whenever I compile. (This is ...
Hi,
Lets suppose, there are 4 popups in my application and a viewer presses Escape once. Now i want application to close the popup which is on the top. I dont know how to accompish this because i dont know thich popup is to the front right now.
Regards
Max
...
When I add a Cube to my Camera3D object with "addChild()", it doesn't rotate along with the camera when I modify the camera's "localRotationX", "localRotationY", ""localRotationZ" properties. The cube will, however, rotate along with other DisplayObject3D objects. Are Camera3D objects a special case?
...
Hi there,
I am using a script to upload photo (written by my own) which allow user to select more than 1 files, using Flash.
When user click upload, as3 will post the upload file to upload.php, resize it, and save it one by one.
The problem:
In production server, if I am uploading many photos and the photos size are very large, >2MB, t...