actionscript

Captivate playback control skin in flash

Hi, How can I create and control Captivate Playback Skin in Flash with my custom layout and script? ...

BlazeDS point to point examples using JMSAdapter or custom MessageAdapter

Is there any example of using JMS Queues in BlazeDS as point-to-point communication to a Flex client. I'm curious in writing a custom MessageAdapter for BlazeDS that is adapting a point-to-point message queue system and I want to understand how it works for JMS Queues which are point-to-point. The BlazeDS documentation describes JMS Qu...

how to call actionscript function from javascript

Hi all I have a function like this in actionscript3 private function uploadFile(event:MouseEvent):void { var uploader:URLRequest = new URLRequest(serverUploadFile); localFile.upload(uploader); } how can i call this function from javascript ? thx ...

ExternalInterface.addCallback is not working

Hi This is my AC3 code private function uploadet( dosya:String ):void { var uploader:URLRequest = new URLRequest(dosya); localFile.upload(uploader); } var a = flash.external.ExternalInterface.addCallback("uploadet",uploadet); And this is Javascript <script type="text/javascript" src="swfobject.js"></script>...

UDP real-time games in Flash/Flex available Open source RTMFP implementation

Are there any examples of using the Flash 10 beta RTMFP UDP based protocol to build real-time Flash games. The RTMFP examples so far seem to focus on P2P networking between flash clients does anyone know of any examples of traditional client/server UDP based communication over RTMFP. Does anyone know the ability of RTMFP to do NAT firew...

randomized placement of xml nodes with Actionscript

I have a flash ecard that I am working on and had one of those "wouldn't it be cool if..." moments! I would like find out if it is possible to: 1) load in an xml file that contains several names 2) Load each one of those names into a predefined movie clip which would display the name 3) randomize the placement of each name in a given s...

Manipulate my flash depending on a URL?

I have a flash map of the UK which is divided up into the counties, a user clicks on a county and is then directed to a new url, eg. www.mydomain.co.uk/region/london. The flash map remains on that new page in case they wish to select a new region. What I want to know: is it possible to manipulate the flash so that if the url is www.mydo...

What's a good way of deserializing data into mock objects?

I'm writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I'd prefer not to generate the data in code like this: var mockData = new Array(); mockData.push(new Foo(1, "abc", "xyz")); mockData.push(new Foo(2, "def", "xyz")); ... Rather I'd like to store the data in...

Flex renderer data inside a panel...

I have a page (below) that has a datagrid that lists "item"'s returned from an XML file (below) and when it loads it created a page in the viewstack for each item it finds (working) it also renders a page (below) inside each panel but i am having issues passing the data. Each page renders and loads but with the FIRST result of the XML da...

Using ExternalInterface.addCallback in AIR

We're building an Ajax AIR app but want to include a Flex component in it to display photos. Currently using Doug McCune's 'coverflow' but also looking at Sebastiaan Holtrop's 'sebCoverflow'. We're trying to communicate between JS and the Flex component but can only do this one-way (AS->JS) using ExternalInterface.call(). ExternalInte...

Flex/Flash Shoutcast player

I am trying to build a flash player for my company's Shoutcast server, and have seen a few articles about it on the 'net, including this SO question here. However, I can't seem to get the audio stream to actually play. It seems to be connecting alright, but calling stream.play() doesn't seem to do anything. I have tried the code i...

How to change the state in Adobe Flex, using ActionScript?

Hello, I`m really new to Flex and ActionScript so please be patient with me. I want to implement this script: tinyurl.com/yafqrqb ...that is doing this "magic" : tinyurl.com/y9qg32r ...but I want to tweak it a little on InfoWindowTabbedComponent. To be more precisely I`m trying to insert links in that tabs, and when you click one the ...

How do you stop a setInterval function?

I have a function that I want to run at an interval within a frame. I use the following code to start the function: var intervalID = setInterval(intervalFunction, 3000); Then, in a button's onRelease I want to stop the function. In the onRelease, I make a transition to another frame. btn.onRelease = function() { clearInterval(int...

Can XMLSocket send more than once in a frame?

I have a XMLSocket and I call send twice in the same function. The first send works but the second does not? Does XMLSocket have a restriction to only send one message per frame? Do I have to queue messages and have an onEnterFrame function that checks the queue and sends one message for a frame? ...

gotoAndPlay(1) when a video is completed

I am trying to create a video that can be streamed on a website. The video started with a screen grab of the video on frame one. This has the action on stop();. When this screengrab is clicked, gotoAndStop(2); is fired and the timeline moves to frame 2 and the video starts to stream. All is well... Except from when the video finishes... ...

SOAP web services from AS3, without Flex?

What's the best library/package/class out there for calling SOAP web services from ActionScript 3, without using the Flex framework? ...

Using a For loop with an array and addEventListener

I have this map I'm creating in Flash. You click on a state, then you can click on an icon to view a tooltip/popup of some information. What I was trying to do was instead of creating new functions and event listeners for every different icon is to use a for loop...but it's not going so well. I haven't touched AS in a long time so bear w...

gotoAndStop oncomlete with TweenMax

Hello all I'm trying to get onComplete (frame 5 in this case) to skip to a given frame after a series of animations. Here is what i have written so far. Shouldn't this work? stop(); import gs.TweenMax; import gs.plugins.*; TweenPlugin.activate([DropShadowFilterPlugin]); import fl.motion.easing.*; TweenMax.from (redSquare_mc, 1, {x:...

drag file(s) from destop directly to flash webpage

Could someone please let me know if is possible to drag (multiple) files from desktop directly into a flash webpage. If yes could you please link me to some online resources. ...

Flex Compiler Api: Adding images in Java

Hi there, I have a very specific question. I want to compile an ActionScript project within Java in-memory with the help of the Flex Compiler API ( http://livedocs.adobe.com/flex/3/compilerAPI%5Fflex3.pdf ). My last problem is to add images (jpg, png) that are embedded in the project to the compiler. I don´t see a possibility to do thi...