actionscript-3

how to pass input data from swf to Lingo?

Hi We have an Arabic educational application in Director 11.5, published originally as projector for desktop use. Since Director don't support “right to left” languages, the application uses an ActivX component to call external encoded html and load it into a textarea container, in this way the Arabic language can be written and redden...

Does Flex allow full control over UI components?

Hi, I'm wondering what the best tool is for developing a mobile UI is. My requirements are that I retain full control over the look and movement of every UI component. I think Flex might be the best way to do this but I can't tell if I'll have that level of control using their UI components. Any links would be appreciated. Thanks! Edi...

appending data to external text file by PHP and Actionscript3

Hi all ,That's my code . import fl.controls.*; var MyText:TextArea = info_txt; var score:XML = new XML(<score/>); score.PlayerName = "Maged"; trace(score); Here I create a new XML date , I want to write these data to an external text file to use it by PHP but I don't have much information about it . Note i want to append to the tex...

SimpleButton Not Displaying

Hi, I'm just trying to get a SimpleButton to appear on the stage in an AS3 project. For some reason, it won't appear. Can anyone see why? Thanks in advance. Code: //Main class: package { import flash.display.Sprite; import view.controls.CustomButton; import view.controls.Button; public class ButtonTest extends Sprite { //priva...

How to list all methods of an object in ActionScript 3?

How do I get the list of all methods from an object? I know I can get the object class in this way: var className:String = flash.utils.getQualifiedClassName( myObject ); var objClass:Class = flash.utils.getDefinitionByName( className ) as Class; It gives me an the class prototype, but and can't do anything with it... In JavaScript I c...

How to create a DataProvider using specific elements from an XML object in Flash AS3

I have this XML (Flash/AS3): <channel> <title>...</title> <description>...</description> <item><summary>...</summary><detail>...</detail></item> <item><summary>...</summary><detail>...</detail></item> ... </channel> I want to create a DataProvider containing the elements (for use in a datagrid). I thought this would work: va...

flash (as3) / php communication not as easy as in as2

hi, i have a question... how to get a Var from php into an running flash application scripted in as3? There was a function called _root in as2 but it seems not to work in as3?!? Is there a easy way (without a socket) to receive php vars in as3? Thx ...

AS3: Only allow a certain number of a certain type of object into an Array

I want to find a way to only allow certain objects into an array that have a certain word in thier class name. Or at least find the optimal way of doing something like this. Heres the details. I have an Array that stores all the objects dropped into a cart. function addProductToArray (e:MouseEvent):void{ currMC = (e.target as MovieClip...

AS3 ScrollPane Component scroller problem

AS3 ScrollPane Component scroller, When i test the project locally, scrollbar works fine, when i put my project to my website, scroller do not scroll when i want to drag it up and down. Something prevents it to scroll? what? ...

SWFAddress and Data Persistence

I'm creating a Flash site with a dynamic inventory search feature where a bunch of checkboxes toggle different types of clothing items to appear in a gallery. For example, users may check "Shirts" "Jeans" and "Bags" from the list and a dynamic array of images will be loaded in the gallery corresponding to their selections. My problem...

AS3 Remove element from array (of objects) generically

Hi All, Is there a way to generically remove an object from an array? (maybe not using array.filter or creating a new array) Example: var arr:Array= new Array(); //create dummy objs for (var i:uint=0; i < 10; i++){ var someObject:SomeClassObject = new SomeClassObject(); someObject.Name ="Amit"+ i; ...

Clicking Text Element in Tween Halts Animation...

Hi guys, I've been having some trouble with tweens. Here's a description of my usage: I have a system where a textbox is the child of a movieclip. When you click the "Next" button, the movieclip fades to 0-alpha and upon completion, the text in the textbox is changed (to the next index in an array) and it tweens back in to 100-alpha. Th...

Actionscript 3, JQuery SWF Object plugin and ExternalInterface problem.

Hi. I'm trying to write a simple flash mp3 player while using JQuery and it's SWF Object plugin. I'm adding an swf to the page using this code: $("body").append("<div id='player_external' style='position:absolute;top:0;left:0;height:1px;width:1px;'></div>"); $('#player_external').flash({swf:"player_external.swf",wmode:"transparent",hei...

Substring of two strings in flex

Hi, I have a string like " How\Are\You-1 " . I need to substring till to " You-1 " with out using first and last index. Thanks, ravi ...

Binding a textfield to some XML

I'm currently looking at ways to externalise all text in my flash applications into external xml files (for translation purposes). Basically, all copy in these applications has to be in two languages (English and Welsh). At the moment, I'm just looking at a structure whereby the name of each TextField instance is the same as a field in...

AS3: Mono/Stereo for microphone?

When you use Adobe Flash Media Live Encoder you have a lot of options for audio. For instance channels and bit rate. I can't seem to find out how you can set that with Microphone or NetStream. I'm guessing it's possible since you can do it in Adobe's encoder? The only thing I can find is the sample rate. Anybody knows? ...

FLEX: Partciles emitter not showing in Augmented Reality(FlarToolkit)

Hi All, I have created a Flex application for a AR Campaign. I am using an external SWF that contain an animation included a particles emitter as my movieMaterial for my PV3D plane. I have created a CustomFLAR class, so my project is more organized. Particles Emitter: http://www.patrickjansen.net/stockflash/particleemitter/Readme.ht...

Flash / AS3: Load external swf *with animation*

hi. i load three external swf files into my flash movie, here's the code: import flash.display.* var screens:Array = new Array( 'screens/left.swf', 'screens/center.swf', 'screens/right.swf' ); var loaders:Array = new Array(); function complete_listener(event:Event):void { event.target.content.width = 341; event.t...

How I can access in Actionscript the "text" property of a TLF text created in the Flash IDE

I created a TLF Text with the Flash IDE in the main document. I've assigned it an instance name with the IDE When I try to access the text with Actionscript I cannot access the text field. Of course if I transform in the IDE the text in classic dynamic text it works as expected I feel very stupid and I suspect it has an obvious solutio...

ExternalInterface.addCallback does not work right

I have js code: function onFlashReady() { sendToAS("sit"); } function callJS(value) { onFlashReady(); return "Hi Flash."; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } }...