Hi,
I'm trying to load a module into a flex 4 application (the module was compiled using SDK4 as well) but I got this error (I'm migrating this app from Flex 3 to Flex 4):
VerifyError: Error #1014: Class mx.core::LayoutContainer could not be found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame...
In Flash, I have a container with several overlapping children. When I give this container an alpha value of .5, some of the children can be seen behind others that overlap them. I would rather be able to take the whole thing as a composite image and blend it that way.
Any ideas? cacheAsBitmap on the parent container doesn't have any...
In ActionScript, you can do something like this:
[Embed(source = "src/myfile.xml", mimeType = "application/octet-stream")]
private var xml : Class;
and it will embed your file to be used in code. How can i do something similar in HaXe?
...
In AS3, what is ApplicationDomain.domainMemory for?
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html#domainMemory
...
Well i have the custom flv player which reads an XmL and draws circles on Flv video. Postion and time is specified in the XML. I did calculation with as3 getTimer() function. It works fine, no matter how long u pause and then play again. Circles are shown at right time.
Now i have two problems
1- How getTimer can be reset?? it is requi...
Sorry if this doesn't make sense... I know the length of the triangle segments and the xy coordinates of two points. How do I figure out the xy of the 3rd point?
...
Hi,
Consider this scenario we have a class A which is singleton it has a function Sum(a,b) ** . Now we have two classes **Class B and Class C respectively. Both classes (B,C) call add function and listen for a event.
Class A
{
function add(a:int,b:int):void
{
c:int = a+b;
dispatchEvent(new myEvent(myEvent.addC...
Hi,
I'm looking to place an image (object) on top of the other object (default video player in Flex 4), any suggestions are most welcome. Do we've to use canvas? can I do it without using canvas? An example would be greatly appreciated, thanks.
Regards
...
Hi,
I have a custom class say class A :
class A
{
public testA:int;
public testB:int;
}
Now, I have a object say Object C , the object has the exact same names of variables and everything as the class.
My question can I cast that object into class or vice versa. Instead of set/get of individual variables.
...
I have a movieclip which has in the actions for frame 1
this["myCustomVar"] = "bla";
I then do this:
var mc:MovieClip = new MyMovieClip();
trace(mc.hasOwnProperty("myCustomVar")); // is false
Why does the movieclip not have myCustomVar, or to put it more generally:
When are frame scripts in movie clips executed exactly?
...
I have some in-file actionscript 3.0 code. This code controls a number of elements on it's stage. These elements each have an Over, an Out, and a Click event.
I currently define these event listeners as so:
mc_hotspot.addEventListener(MouseEvent.MOUSE_OVER, lift);
mc_hotspot.addEventListener(MouseEvent.MOUSE_OUT, setDown);
mc_hotspot.a...
Hi all,
The current architecture of the game is:
PHP + MySql backend,
Flash and ActionScript 3 frontend.
Major criteria for engine/framework selection are:
1. Support for isometric view.
2. Resuability : The current game development should easy the work for building similar social game of diffrent story type in future.
3. Ease of deve...
I'm fetching some data from a PHP application using Zend AMF. However I can't get the data to bind to a simple DropDownList control. The PHP method is:
class Test
{
public function myMethod()
{
$res = array();
$res[] = array('NAME' => 'ThisIsATest', 'ID' => 1);
return $res;
}
}
Network Monitor repor...
I have a project where clicking on one of a series of spots on an object will pull in a SWF file related to that particular spot. (Think of a car; clicking on the engine will load the engine.swf and clicking on the wheel will load wheel.swf).
Do I add a pre-loader to the Main timeline or do I add one that plays immediately on the extern...
Here's my swf loading code:
function loadBall(e:MouseEvent):void{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("ball.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mReq...
I am trying to use Flex builder for the first time in years. I haven't used the "Run Application" option before, and when I do that now it tells me "Errors exist in required projects" and whether I should proceed. I would like to debug those errors.
Does anyone know how I can do that?
PS: When I click the "Debug" button, it does exactl...
I am using Flex Builder for an Actionscript which apparently has a dependency on IMXML object. I'd never heard of this object, and there is nothing on the project site about any dependencies. I assume it's a Flex component library, though. Which library should I include in order for this program to resolve its dependency issues?
Thanks ...
how to remove the right click menu in swf file ?
...
Not sure how to phrase this but I'm wondering if I can create a catchall error handler that umbrellas the entirety of the code, to send to a custom handler that outputs the info graphically within the program. Something along the lines of:
root.addEventListener(ErrorEvent.ERROR, this.customHandler);
I'm hoping to stop any and all fr...
What it is I would like to do seems simple enough, but is confounded by the fact that I want to work within Flash's timelines, as opposed to within custom classes, .as files, flex, etc. I am an artist, and code is only as reusable as my assets (created/animated in Flash), so I tend to work in the timeline.
I want to have a script at th...