Hi.
I need a function that gets two array parameters of the same length: property-names (Strings) and property-values.
the function should create an object with properties so that, for an example, after calling
var obj:Object = makeObject({"prop1","prop2"},{1,2});
the testing condition (obj.prop1 == 1 && obj.prop2 == 2) should be t...
I have a dynamic ActionScript Class that is used to send parameters to a WebService. Some of these parameters are always present, so they are public properties of the Class:
package
{
[Bindable]
public dynamic class WebServiceCriteria
{
public var property1:int;
public var property2:String;
public v...
I have a dynamic Class that is a Value Object that is used to pass arguments to a WebService. It has two public properties:
package
{
[Bindable]
public dynamic class WebServiceCriteria
{
public var property1:String;
public var property2:String;
}
}
I set these two properties in one part of my applicati...
Hi all,
Is it possible to do with application or anyother control except image control
...
I have a project with only a couple of graphics and lots of ActionScript 3.
Anyone have any tips on reducing SWF file size?
...
If I include a an external actionscript file in a flex mxml file, I get different behaviours at compile time depending on the method used. Using an mx script tag with a source attribute or an include statement, then compiling the file gives errors like:
Error: Packages cannot be nested.
If use import these errors go away and the file ...
Can any Flash compiler put specific scripts on specific frames of the Flash movie SWF?
Like you can do from within the Flash IDE, just place a script on the required frame using the Timeline panel, and the script gets compiled to that frame of the Flash movie SWF.
Eg. script on frame 1 :
trace("Reached frame 1");
Eg. script on frame...
Does ActionScript 3.0 offer any means to accept an arbitrary number of parameters? I usually use .NET, but I'm being forced to use AS3 for a project and something along the lines of function blah(params double[] x) would be awesome for a helper library.
Thanks;
...
When i maximize an air window that has no chrome (no system chrome, no flex chrome but i think it's the same even if only flex chrome is used) a few pixels on all sides go offscreen.
Anyone has a solution for this or knows why it happens?
...
How can I convert the following XMLList to an Array of Strings without using a loop?
<labels>
<label>All</label>
<label>your</label>
<label>base</label>
<label>are</label>
<label>belong</label>
<label>to</label>
<label>us.</label>
</labels>
I want this result:
["All","your","base","are","belong","to","us."...
I see $(var) often in the Actionscript code I am looking through, where var is a variable that is previously defined. What does it mean exactly?
...
I feel like I have done this a million times before just fine, but in this instance it is simply failing:
I am creating a movieclip and loading an external swf file into it, something like the following:
large_poem_clip_display = preview_clip._parent.attachMovie ("cyber poem display window" , "cyber_display" , preview_clip._parent.getN...
What AS3 class should I use to read a simple property/ini file into memory to configure some settings such as colors easily for the project.
format could be
key=value <newline>
I like to access it with this kind of API: trace ( Settings.get("key") )
...
For example, the following MXML script attaches a listener to a Button class:
<mx:Button id="STACK" label="OVERFLOW" click="doStuff()"/>
I have a custom action script class which fires an event when a value is updated and I wish to be able to listen for that event in an MXML class:
ActionScript Class:
public function set currentPage...
I am trying to save some bandwidth and include wsdl file in my flex/air application. Which url format should I use in order to load that file instead of the remote one.
I am using loadWSDL() method.
EDIT:
wsdl file needs to be part of the application. I know I can use file://some/path for local files, but don't know how to load file ...
Hi
I have a c# form where i want to display a youtube movie. I have placed a shockwave flash object where i can load a youtube movie.
axShockwaveFlash.LoadMovie(0, "http://www.youtube.com/v/tVP0b8qvZg8&enablejsapi=1&playerapiid=ytplayer");
this works fine. The problem occurs when i through code, want to play/pause/anything wi...
I have a movie clip that is attached with attachMovieClip, and it has a function in it called test()
///
function test()
{
trace('!');
}
after attaching the movie clip i was trying to call that function, but I simply couldn't. Is there a simple solution for this? I've read something about you you cannot call the function until the...
The actionscript I want to write looks like this:
public function API(requestClass:Type=URLLoader) {
var req:URLLoader = new requestClass(new URLRequest("some url"));
req.load(url);
//etc
}
so that I can test the API class by passing in a mocked subclass of URLLoader. This doesn't appear to be possible in Actionscript's type sys...
Does anyone knows whats the default timeout value for the responder object? is there a time limit when the flex app will wait for result and call fault handler instead of result handler?
...
In Flash CS4, I'm creating a photo gallery. My goal is to load different thumbnails from a number of images. I have managed that when one clicks an image, a number of thumbnails are being displayed, but when one clicks another image, the new thumbnails are placed on top of the old ones. Can someone help me on how to get rid of the old th...