I'm trying to use ExternalInterface.addCallback to allow js to call an as3 method. My code is as follows:
AS:
ExternalInterface.addCallback("sendToActionscript", callFromJavaScript);
function callFromJavaScript():void{
circle_mc.gotoAndStop("finish");
}
JS:
<button type="button" onclick="callToActionscript()">Switch to square</...
I have something like
public class Controller {
[Observer("fetchEmployeesEvent")]
public function fetchEmployees() : void {
//doSomething
}
}
and I want something like
public class Controller {
public static const FETCH_EMPLOYEES_EVENT : String = "fetchEmployeesEvent";
[Observer(FETCH_EMPLOYEES_EVENT)]
...
HI I am working with amCharts at the moment and was wondering if somebody could give me some sort of guidance on the matter. I am using Flex to call a server side php file which then returns some xml data. This works perfectly and efficiently. I then add this data to the chart will also works quite well. However as I try to use the scrol...
Hello;
I have a Flex application, I want to scroll the page to bottom when a button is pressed.
Scroll bars is added by browser, they do not belong to flex app or component.
I can do this by javascript but is there a way to do this with action script?
Thanks.
Enes
...
Hi all - this is (I think) a relatively simple math question but I've spent a day banging my head against it and have only the dents and no solution...
I'm coding in actionscript 3 - the functionality is:
large image loaded at runtime. The bitmapData is stored and a smaller version is created to display on the available screen area (...
So I have that panel or any other mxml component. I want somehow to rotate it around like a wheel of a car with which you drive it... loke a Racing wheel... sow like when mousebutton is down it captures pont of component... when you move mouse component rotates (not moves) according to new mouse position... How to rotate MXML component r...
Hi
I need to override the call method from NetConnection class, the signature of the method is:
public function call(command:String, responder:Responder, ...parameters):void
How do I override that method?
The following lines didn't work for me.
override public function call(command:String, responder:Responder, ...parameters):void
{...
Hi, I have a Canvas (lets call it the Drop Box) which users can drag and drop external files onto. Next to this I have a ViewStack, of which one of the layers is a Canvas with a TileList. I have successfully managed to code it so that the items dropped onto the Drop Box appear in the TileList. I simply capture the darg drop event (let...
Using Actionscript 3 is there a way to search one bitmap for the coordinates matching pixels of another bitmap?
http://dl.dropbox.com/u/1914/wired.png
Somehow you would have to loop through the bigger bitmap to find and the the pixel range that matches and return those coordinates. For example the Bitmap with the "E" is 250 pixels over...
I have a Dictionary that I'd like to bind as the dataProvider for an mx:ComboBox. e.g., when I do this:
mydict[somenewkey]= somenewval;
I'd like the combobox to update its contents.
The problem is that Dictionary doesn't seem to be Bindable. If I were using an Array, I'd use ArrayCollection. But there doesn't seem to be a c...
Hello all,
I have a strange issue! I am trying to remove an event listener on a FileReference object by calling a function, but it seems not to be removed, and I do not understand why.
Here is the code:
private function clearFileUploadListeners(file:FileReference, index:String):void {
var dispatchEvent:Function = function(event:Ev...
Hello.
I'm working on Flash ActionScript.
My Movie Load some data like photo, sounds and photo to the Movie Stage. Each of loaded MovieClip have own animation.
Is it possible to generate (record) FLV or other Movie file from ActionScript with ActionScript?
...
I seem to recall that Loader.unload() could once be used to stop loading a swf before it had finished loading. I can no longer find documentation or the blog where I read this. Perhaps it was an unofficial feature. Anyhow, IModuleInfo, returned by ModuleManager.getModule() has an unload() method. If I want to halt loading a Flex Modul...
Can i get the height of an image from its url info in Actionscript 3. I have the image url. I want to draw the image in my UI and i want to set the height of the drawing area dynamically upon getting the image. ?
...
I am using Mate version 0.8.8.1 for my Flex Framework. RemoteObjectInvoker (http://mate.asfusion.com/page/documentation/tags/services/httpserviceinvoker) allows you to set showBusyCursor="true" but not HttpServiceInvoker. Is there something I'm missing?
...
I name frame 50 "_foo" (in the IDE)
I can trace this._currentframe at any time (and get a number)
I can gotoAndPlay("_foo");
But how can I find out if the current frame IS "_foo" as the movie plays?
Is this possible?
...
Looking back at an internal system I just built, the common server / page model with minor use of Ajax for some UI components. I'm not sure if I'm satisfy with the end result because it seems like we spent too much time on the frontend. Not a big fan of going through all the trouble for styling and making sure the CSS works right.
So ...
this is my code ..
import RegExp;
var userEmail:String;
var userName:String;
var userPhone:String;
how to restrict my userPhone:String; to take only numbers?
i tried the restrict property. the compiler gives me error.
...
As known, each subsequent time that the FileReferenceList.browse() method is called, the FileReferenceList.fileList property is reset to the file(s) that the user selects in the dialog box. And my question is:
How to manage to "remember" all previously selected files, each subsequent time that the FileReferenceList.browse() method is ca...
How to Call ActionScript function inside the HTML page inside HTML Control
...