ActionScript 3.0 :: Randomly Receive A Value From XML?
Dec 17, 2011I have the following XML
Code:
<countries>
<country>
<name>foo</name>
[Code]....
I have the following XML
Code:
<countries>
<country>
<name>foo</name>
[Code]....
Onmy stage I have a MC, and when I click it a random MC from the Library should appear and move around randomly.
I'm using this to make it move around randomly [URL]
how to make the random MCs appear from the library. And should I put the random moving script on each of my ten MC?
I would like to send information to a php script that queries a database.
eg
send two strings clientName and userName to php
PHP queries the mysql database and returns the result.
How would I us URLVariables or URLLoader? or is it something entirely different.
Whats the best way to receive AMF dates? The queue is an array of vo objects, and some testing vars.
My VO
public var itemID:uint;
public var itemSource:String;
public var itemCategory:String;
public var itemTitle:String;
public var dateString:String;
[Code] .....
How can I post and receive value from jsp using ActionScript 3.0?
View 4 Repliesim newbie in send end recive UDP things..i need to send (maybe receive) some data from PHP web page to local software.this software can recive and send data via UDP 1987 port.is there a way to do? javascript activeX or flash library or somethingSoftware= VOIP SoftPhonePHP Web Page = CRMall I wanted was actually make a button to call and if possible recive length of the call
View 1 RepliesCan I have one Flash Video Player on my page that plays multiple videos when they are selected?
So the videos would be selected by a movie clip button. How would I direct that onRelease button code to play a mp4 video to the Flash Video Player and how would I name the FVP to receive the selected video?
how i can send an array from as3 to php with the toString() method. Now i'm looking for the solution to how do I receive an array from php. I would like to print an array and access it inside my actionscript file as an array? Is there a way to parse it?
View 3 RepliesI'm currently trying to get flash to display a variable from php. It always comes up as 'null' and I'm at a complete loss.
Here's my Code
Code:
package
{
import flash.display.Sprite;
import flash.events.Event;
[code]....
On the server and local I always get 'username is null' displayed. I'm at a complete loss at what to try next.
Can a .swf receive external input? If so, how?
View 4 RepliesHow do I script to receive a text message from one PHP (placed on server A) to another PHP (placed on server B)?
View 27 RepliesMy example imports XML and has an object rotating on stage. The rotating object is called enemy corresponds to ENEMY in the XML. How do I set the rotation variable to receive values from XML?
REASON: It seems more difficult to set up variables using external data. I want to understand it better.
rotation.fla
//LOAD XML
var myXML:XML;
var myLoader:URLLoader = new URLLoader();[code]......
How to receive an array from flash vars?
So I have HTML page. with flash app on it. I vant to send an array to flash. How to do such thing using flashVars (I have something like uid=12&sid=12&sid=32&sid=12&sid=32) so i need to get dinamic andomeegunnown number of Sid's not losind UID how to du such thing?
btw I want to pass in an array of values and have it recognized by Flash as an Array object; For example, with POST and GET requests an array is formed as "field[]=value&field[]=value" etc.
I tried using var params: Object = ((this.stage.loaderInfo) as LoaderInfo).parameters; to get the parameters, but it returns an Object with no properties. That LoaderInfo will give me the correct URL without the parameters though if I use LoaderInfo.url. I'm using the request: http://localhost/foo.swf?start=foobar. params.hasOwnProperty("start") returns nothing, and using a for loop shows that "params" has no properties. How do I receive the start/foobar pair in my code? I would much prefer to not use FlashVars due to our setup.
View 2 RepliesWhat would be the best way to build a sms application with adobe AIR and AS3? An application that send and receive sms. I found how to send using the uri but can't find any explanations about how to receive and display it.
View 2 RepliesI'm trying to do a simple text box, below is the code:
private function onKey(event:KeyboardEvent):void
{
trace("Key Pressed: " + String.fromCharCode(event.charCode) + " (character code: " +
[code]......
i'm trying to connect Action Script 2.0 Scrollpane to get data from php and mysql... my problem is in the action script 2.0 i'm trying to recieve data from mysql by php, Here is my php code :
[Code]....
and my data base is working 100%
i need to display the result in a ScrollPane Object In AS 2.0
I need to create an application (Flash player stand alone) who recieve midi messages from a midi device. I have controler ( Korg nanoPad) and I want to change a movieclip propertie when i hit a pad.
For exemple: Pad1-> MC red, Pad2 -> MC blue, etc...
I just need to recieve midi messages, not to send some.
My softwares:
Adobe Creative Suite CS4
Flex Builder 3
Midi-Ox
[Code].....
I know you can send all the variables using: url...Is there a way to do this but only send the variables I want to? Say I only wanted to send "user" and "pass" but not "content".
View 4 RepliesCode:
// action script
var socket:XMLSocket = new XMLSocket("127.0.0.1",8888);
socket.addEventListener(Event.CONNECT, connected);
socket.addEventListener(DataEvent.DATA, transData);
[Code]....
this won't send the string "this string won't be sent" to the client(flash).
I need to create an application (Flash player stand alone) who recieve midi messages from a midi device.I have controler ( Korg nanoPad) and I want to change a movieclip propertie when i hit a pad.For exemple: Pad1-> MC red, Pad2 -> MC blue, etc...I just need to recieve midi messages, not to send some.
My softwares:
Adobe Creative Suite CS4
Flex Builder 3
Midi-Ox
[code]....
I'm going true the AS Programming 3 manual and the [URL] example doesn't work. The authoring environment gets the focus. You can tel because you see the toolbar changing the selected tool as
you type the corresponding letter.
Can we receive more than four stream at same page .
Like many to many video conference .On a single page i want to see more than one person at same time by different-2 streams.
Do i need a wireless connection from the server. I am thinking of installing an access point to test the server.. The only challenge is i dont know how to get the client to receive streams.
View 7 RepliesI've been trying to get cuepoints out of my flv video with the following code without success:
[Code].....
I have a problem understanding Events and event handling.I have a movieClipA wich contains several other movieClips (a1,A2,A3, etc..)MovieClipA is parent of movieClips (a1,A2,A3, etc..)
In movieClipA I use the following code:
...
addEventListener ( "Pieter", pieterFnP ) ;
dispatchEvent(new Event("Pieter"));[code]....
When I execute the application, function "pieterFnP" is fired, but "pieterFnC" NOT.
Like some others here, I am trying to write a music player that will play live stream (shoutcast mp3). I've tried both Flex (Flash Builder 4.5.1) and Flash CS5.5, it works great when I play the SWF on the PC, but when tranferred to the phone I hear nothing, although it is streaming, I assume that it is something to do with the permissions, but I'm not sure. The permissions I am using at the moment (for android) are as follows:
[Code]...
I have combobox in frame 2. how can I receive the selected "string"data when I go in frame 3? I thing it can't do that. Must I store data in class and I read then when I go in frame 3.
View 2 RepliesI have combobox in frame 2. how can I receive the selected "string"data when I go in frame 3? I thing it can't do that. Must I store data in class and I read then when I go in frame 3.
View 5 RepliesI need to create a workaround for a button issue. I don't know how to have one button created by one class send a click event to another item created in a different class
Therefore, I'd like to place both of my buttons on top of one another, alpha one of them out and have both buttons receive the same click.