ActionScript 3.0 :: Load And Send XML Values?
Apr 7, 2009I am new to ActionScript 3 and have a project I would like to get some help on. I have an XML file on a server that has two types of parent nodes.
[Code]...
I am new to ActionScript 3 and have a project I would like to get some help on. I have an XML file on a server that has two types of parent nodes.
[Code]...
I have been given task and dont know where to start. I need to produce a small quiz that sends the selected values to an asp.net application form there populates the database with the values chosen.
Ive been told this is the best way to send values from flash to a database.
I have a client in flash sending values to server. At first time i am sending the value 150. The server responds to returns some data. On receiving that data the client should again send some value to server. Where should i have to write mySocket.send to do it. i tried doing it inside the function[code]...
View 3 RepliesI have values inside an XMLList in Actionscript. Need to send these values to the DB and update it.My actionscript code is as follows:
public static function saveUserPermList():void {
var ht:HTTPService = new HTTPService();
ht.url = Config.getServerURL();[code]..
My .NET developers are telling me to try to send two values from flash to .NET 3 times...so from .NET it will be send to the db.
is there really a need to send it 3 times?... can I just send it once?
they want this to be done 3 times so they are sure that its being sent.
here is my code to send the values.
Code:
on (press) {
myData = new LoadVars();
myData.position = "5";
[Code].....
my code is:
var lvReceive = new LoadVars();
var mcLoaderThree:MovieClipLoader = new MovieClipLoader();
mcLoaderThree.addListener(this);
for (var i = 1; i<=9; i++) {
[code]....
What I need to do is have a button download a installer using Post with added values to download.What I have to mix is this:Peices needed frokm HTML form:
PHP Code:
<form action="http://website.com/dl.asp" method="POST">
<input type="hidden" name="name" value="CJE">
[code].....
I wanted to know how to connect my flash embedded in html to servlets or through javascript and get values from and send to servlets or through javascript. I expect some references or books as i am an amateur and may be i cant follow what u all say in brief.
View 1 RepliesI am new to AICC. Is anybody know how to get and send values in AICC - HACP method ?
View 3 Replieshow to send variable values inside a movieclip, to the main scope (main timeline)?
View 4 RepliesI am in the planning stage of an application. In fact, the application already exists but I am thinking about how to improve it. It's a sports event commentary viewer- it allows the user to view live commentary on soccer games, written by news scouters during the process of the game. Right now, it's all one big file, reading 7 different XML files on the fly, evaluating and processing them and displaying the data on screen.
It works well enough like this but now the whole thing is supposed to be expanded with live news feeds and a videoclip gallery, etc... and even though it would be possible to just keep expanding the file, I thought it would be cool to instead make several segments and put them in an HTML frameset. Now the question is: Is it even possible to pass values from one flash file that is running in one frame- to another one, running in another frame? Of course I will know the framename- so could use getURL with the framename as a target... but that would fully reload that frame and "cold-restart" the swf in that frame- I don't want that.
[Code]...
When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?
View 1 RepliesI would like to embed this flash file within an HTML Page. User finds my page on a google search. The domain is **here.com once the user clicks on the link, it tries to load the "gethere" page but immediately forwards them to another site. I found this code but I am unsure of how to use it.URl..
View 3 Repliesif I change this to a send instead of send and load the email sends.see an issue with my code below that would cause it not to send the email with a send and load?
ActionScript Code:
function sendtoEditor() {
var dataSender:LoadVars = new LoadVars();
[code]....
I need to retrieve data from a text file, sort it with a new added score, and then turn the whole data back into a string and save it back into the text file.
I have worked on mini .swf files and php files, and I can seperately:
- retrieve data from a text file to Flash
- do the sorting in Flash from a string coming from a text file
- send a string to a php file and save it on a text file
But I cannot seem to do the three at the same time! Here is my [code]...
There�s a great tutorial for sending and loading XML (in AS2) here:[URL] However, I�d like to have an equivalent in AS3. I�ve attached my attempt, but it doesn�t work � even though it doesn�t throw any errors. (PS: there are similar examples 'out there' for Flex but after buying the book 'Learning AS3', by Shupe/Rosser the example in Chpt 14 doesnt seem to work whilst I cant find anything of use in O'Reilly's AS3 essential book).
View 5 RepliesI'm trying to fix a piece of flash code that sends variables to a vb script that updates the database. but whatever I do, the database is not updated and there is no variable sent back to the flash. Here is my code:
Clearly I'm sending two vars (pos and user) to the script and should get re_pos and re_date values back. But I get nothing. The code used to work when sendandload uses GET instead of POST. But now neither works. POST option returns no error in the Flash testing panel and GET give me a "script URL not found error".
[Code]...
How many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.
View 2 RepliesMy problem is communication between php and flash. I`m trying to load values from php to flash textfield. Here`s problem simplified:
t_field-textField name
r_val-received value from php script
Code:
var rq:URLRequest = new URLRequest("test.php");
var myLoader:URLLoader = new URLLoader();
[Code].....
i made swf which contain 7 button to control 7 pages i put this swf in dreamweaver to control ths file, i tried to give every single button Avalue to tell the root which frame in which movie clip(for the button to be highlight) but it deosn't work
here is the code
////////////// the code for Buttons
on (release) { if (_root.link != 1) {
// if there anther selected button _root.menu["item"+_root.link].gotoAndPlay("s2"); _root.link = 1;
[Code].....
I am in the final stages of building my new web site: http:[url]....On most of the pages in the portfolio there is a video "Commentary" link (top right corner).Each of the commentaries are flv called up by f.ex:
myMCL.loadClip("http:url.....);
Once the video is done playing, it fades to black.I would really like the flv to trigger an event to send the playhead to another frame and load another swf.I could use a pause command and let the main time line pause so many milliseconds and then proceed, but it is probably not consistent how long it takes each viewer to download the video and watch it.
I'm pretty inexperienced with actionscript, and I'm having the hardest time trying to figure out how to load variables from a file and send it to a dynamic text box. The content of an external file, "varload.txt", is "name1=John". Here is actionscript of my flash file:
[Code]...
I have an .SWF that is a "Share With A Friend" and the text fields are filled in and then the SWF sends the variables to sendToFriend.php and then the email is sent out.. The PHP is working fine and I have all the right codes to send that information from the SWF to to PHP, but the client wants another feature I can't figure out..
They want me to grab data from an XML and use those variables as well, because the XML will have the USER EMAIL and I need to grab the specific data from the XML and I can't find anything that does this..
I barely know where to start. Maybe a simple tutorial that doesn't just load the XML and display the content (I have found that), but rather something that loads the XML, then refers to a specific child and turns the text to a variable to get sent to PHP..
EXAMPLE XML
<client>Joe</client>
<email>JOE@JOE.com</client>
How do I load the XML and directly refer to the <email> information so my PHP file can grab "JOE@JOE.com" ???
I'm having an issue with an event dispatcher and an event listener. Here is the application code...
Code:
Select allpackage {
import flash.display.MovieClip;
import flash.events.*;
import flash.net.URLVariables;
import SendAndLoad;
public class Test extends MovieClip {
[Code] .....
It will trace the loader.data variables but doesn't dispatch the event to the main application (Test). I'm listening for the event on the stage of the main but it doesn't trigger the event to display that the login has been successful even though it traces from the sendAndLoad class...
I have a Guestbook project to develop (personal project) but I can't multiply the values.. I'm testing with a XML (no PHP and DB yet)
For example: I need to load different values for each name, email, comment inserted from XML.
Name: (name_txt) -> Textfield;
Email: (email_txt) - > Textfield;
Comment: (comment_txt) -> Textfield;
Well.. I can load ONE node from XML, but i can't multiply it for 5 blocks of name,email and comment.And if i'd like to paginate if it runs more than 5 blocks, the next 5 goes to another page?
Here is my code:
Code:
// GuestBook
var xmlLoader:URLLoader = new URLLoader();
var meuXML:XML; // vai guardar todo o conte�do do XML;
var imageLoader:Loader;
[code]...
Trying to load some variables into flash I've done it before and it's work fine for some reason it's not working with this project.I get undefined values.Here's the embed code:
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="650" height="650" id="Roulette" align="middle">
<param name="movie" value="roulette.swf" />
<param name="quality" value="high" />[code]......
I have made a bar chart with 2 movie clips and 2 input text fields. when you clik on a button there is this script:
[Code]....
WHen I was learning AS2, it seemed incredibly easy to double it with PHP, but I am having a pretty hard time with AS3.Basically, all I need to do is do the same kind of thing that loadVars could in AS2. Just need to send a few pieces of POST information, and then load up the output of the script.I found this piece of code on the internet:
ActionScript Code:
var request:URLRequest = new URLRequest("http://www.mydomain.com/feed/myfeed?query=youlike&start=34");[code].........
But it doesn't work (when I replace the url with my URL, of course.)
I have a main FLA and when a button is cliked few swfs loads in to it. I need to get a fill colour applied to a object depending on whcih button is cliked.E.g. my_btn - click - loads my.swf & applies #333333 to "my_mc"I'd like to involve a MySQL db here since I'm loading some data with the same buttons' onPress command.
View 5 RepliesHere is the full code that i want to use.it is for synchronise a mouth with the value of sound ( in level)that doesn't work as indicated below.
onClipEvent (load) {
_global.testLoad = new Array()
gStartFrame = _root._currentFrame;
_global.valueSon = new LoadVars();
[coder]....