Actionscript 3.0 :: Basic Return Of Xml Internals Variables?

Feb 13, 2011

I have the maximum possible reduced cod of an xml accessing data:

Code: Select allvar myLoader:URLLoader;
var myURL:URLRequest;
var myXML:XML;

[code]....

How i could make a CORRECT RETURN of these myLoader.data possible values so i could have "in the end" some EXTERNAL variables:

var myName:String = new String()
myName == .....the result from function "readXML": ....trace(myXML.product.name[2])
or
var myNumber:Number = new Number()
myNumber == .....the result from function "readXML": ....trace(myXML.product.length())

View 3 Replies


Similar Posts:


Php :: AsyncToken Return Basic String?

Dec 16, 2011

I'm trying to develop a Flex Mobile / PHP application, and I'm running into some trouble with the AsyncToken... Does it not just return a basic string?

For example... I'm wanting to just return a simple string result from my request - right now, it's going to return a basic output string from the method that's implemented. The backend part works (PHP), I've done all of that... It's this that's giving me some problems:

import mx.rpc.AsyncResponder;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

[Code]....

View 1 Replies

ActionScript 2.0 :: Join Variables To Return A Third?

Oct 12, 2008

I've got 3 variables called pSize1 = 15, pSize2 = 16, pSize3 = 17. I have some radio buttons that have the data: 1, 2, 3. depending on what radio button is pressed, I need to trace the data in either pSize1, pSize2, or pSize3.if they user presses the first radio button, it returns data 1, how can I combine that with "pSize" to return 15, and not "pSize1". What i have tried so far:

Code:
var listenerObject:Object = new Object();
listenerObject.click = function(eventObj:Object):Void {
thisSize = eventObj.target.selectedRadio.data[code]......

View 2 Replies

ActionScript 3.0 :: Return All Of An Object's Variables?

Jan 26, 2011

I want to assign an existing Object all the vars of a prototype Object, without a direct reference. One way to do this is:

[Code]...

This way both Object's values for .nom and .age can be independently changed, but it's tedious. Is there an automated way to assign all of protoObject's vars to enObj?

View 9 Replies

ActionScript 3.0 :: Return Variables After External Load?

Aug 14, 2009

I have a class to load some XML and build the data into an array but I can't get the timeline to see the array. [code]...

View 4 Replies

ActionScript 3.0 :: Return Multiple Variables From A Function?

Jul 21, 2011

As seen below, I tried to return more then one variable from a function but , I think I have some syntax problem..
 
function hesapla3(parametre1,parametre2):(Number&&Boolean) // PROBLEM IS HERE, I NEED TWO VARIABLES TO RETURN{var yenideger2:Number=new Number();var bol2:Boolean=new Boolean();yenideger2=parametre1+parametre2;if(yenideger2>80){bol2=false;}return yenideger2;return bol2;trace(yenideger2);trace(bol2);}

View 3 Replies

ActionScript 2.0 :: Check Which Variable Has A Certain Value Then Return Variables Name?

Jan 22, 2009

First of all sorry im not very familiar with the flash lingo, im still new to all this actionscript stuff

ok so i wrote this on a frame in the timeline[code]...

now i need to check which one from all these has a value of zero. then when it finds it i need it to tell me which one it is (s1x or s2x or s3x) so i can do stuff with it.

View 4 Replies

ActionScript 2.0 :: MySQL Database Return Variables

May 15, 2004

I am using Freddy Thunder's tutorial on how to make a login script with php/mySQL The problem is that the button doesn't do anything when I click it. I can't tell if it goes to the php script, but it sure doesn't return the correct variables like it is supposed to.

View 3 Replies

ActionScript 2.0 :: MySQL Database Return Variables?

May 15, 2004

I am using Freddy Thunder's tutorial on how to make a login script with php/mySQL

The problem is that the button doesn't do anything when I click it. I can't tell if it goes to the php script, but it sure doesn't return the correct variables like it is supposed to.

[URL]

View 3 Replies

ActionScript 3.0 :: Using An External Class / Function To Return Variables

Jul 29, 2008

I'm using a class that I converted from AS2 to AS3 using Patrick Mineault's converter: [URL]

The original AS2 class:

Code:
/**
* Colour handling routines
* Culled from many places:
* - http://www.actionscript.org/forums/s...d.php3?t=15155

[Code]....

Is the AS2 to AS3 conversion part of the problem (aside from my ignorance of how to use it)?

View 3 Replies

Flex :: Return Multiple Variables From Math-crunching AS3 Function?

Nov 9, 2011

I'm new to Actionscript programming. I'm trying to figure out what is the best way to return multiple variables, each having a different data type, from a function. For example, if a function needs to return variable aa ( a string) and variable bb (a number).

The function I'm using just crunches a lot of math, and doesn't relate to an object in a GUI. One method I got from a Google search used an Object, but as (I think) this requires me to create a class, I wondered if there was a simpler way. Since an array can hold elements of different data types, perhaps this is a simpler approach (?). [code]...

View 2 Replies

ActionScript 3.0 :: Pass A Collection A Variables And Return A Result Based On The Filtered Results Of A Mysql Table

Nov 28, 2010

I'm trying to develop a simple as3 flash program that passes a collection a variables and returns a result based on the filtered results of a mysql table. Here is my as3 file:

[Code]...

No value is returned. If I replace with '$test4' and '$test5' with numbers such as 1 and 17, a value is returned. Where am I making a mistake?

View 1 Replies

ActionScript 3.0 :: Inheritance / Interface - Override A Function That Return An Object Of Class A And Make It Return An Object Of Class B Which Extends A?

Aug 4, 2009

I'm having some troubles with the use of interface and inheritance in AS3. I've done lots of OOP in the past and what I'm trying to do seems obvious to me, but doesn't work in AS3. The question is : Is it possible to override a function that return an Object of class A, and make it return an Object of Class B which extends A ? It seems not to be possible, since I'm getting a signature error in Flash, when compiling. For example, the following set of class do not compile (the code in function definition doesn't matter):

[Code].....

View 3 Replies

Basic Use Of Buttons

Apr 15, 2009

I have a flash file and in the main timeline four frames and and each frame has a stop action with a different movie clip in it. Frame's 2 movie clip has a move and at the end of it I have a button and want to make it when you click on it you go back to the main time line but the second frame. I have a "go to and stop" and tried others but none of them worked. it only stays in the the movie clip timeline.How do I get it to when you click on the button and it goes back to the main timeline from the movie clip?

View 1 Replies

ActionScript 3.0 :: Tutorials For Basic As3.0

Nov 18, 2009

I'm expert in AS2.0 but I couldn't get the fine starting point of the actionscript 3.0,. So please someone help me to start my as3.0 journey with fine kick(Tutorial link)..

View 3 Replies

ActionScript 2.0 :: Get Basic Xml Into Flash?

Nov 18, 2009

I know how to get basic xml into flash, but I'm having a problem with a particular set up of xml. The sample below, I can get into flash but am having trouble manipulating it and getting the various bits of data into a format I can manipulate.

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<Contacts>
<Contact id="1" name="name1">
<ContactDetail id="1" type="email" detail="sample@sample.com"/>

[code]....

View 7 Replies

MX04 Basic Countup With Intervals?

May 1, 2009

basically what im trying to do is have a basic countup timer that goes in intervals of three. (3,6,9,12,15,ETC.) but it has to run with a 12 fps and not stop. also this cannot be 1000 frames long .

View 12 Replies

Capture Basic Text Input?

May 15, 2009

I have a text box that i want people to enter a location into, and then when you press submit, a link takes you to [url]...

is this an easy script to do in actionscript 2.0?

View 1 Replies

ActionScript 3.0 :: XML And FLASH, Basic Info?

Nov 7, 2008

I would like to have a third party exchange english language text in a swf file with translation-text in other languages. They would like to do it via XML. Is there a place where I can look up some basic info on how to write XML code (beginner), or find a script that lets me exchange text/content via XML?

View 2 Replies

Basic Fade In / Out Of Five Images Using Alpha

Oct 6, 2009

I am using Flash 8 - trying to get started by simply fading in/out using Alpha. I totally get on the first layer converting image to movie, inserting key frame and motion tween, selecting clip and changing alphato 0%. Where I am absolutely lost - is when it comes the second, third, fourth and fifth image. I have tried inserting new layers and repeating the steps - but for some reason 2-5 images do not transition like image one.

View 2 Replies

ActionScript 3.0 :: Basic Flash/PHP Mailer?

Sep 22, 2010

I'm creating my first Flash website using AS3, and it's really basic. I would like to put in a contact form, which I have made. I've converted the 3 fields (name_field, email_field and message_field) to a symbol (movie) called 'form'. I've also got a send button, which is called send_btn.

I've set up the Action Script so that when the button is clicked, the user is taken to a confirmation-style page. All I want to do is called a php script (I'm comfortable with the code for that) called 'mailer.php' and send the three variables from the form to it before then loading the confirmation page.

[Code]...

View 13 Replies

ActionScript 3.0 :: Build A Basic Quiz?

Nov 26, 2010

I'm trying to build a basic quiz - there are 6 questions and I want it to display a score at the end. Everything works and it shows a value at the end (but always '0'). It's not keeping proper scoring as users go along, it should be adding '1' point for each score, no matter what option is clicked it just traces '0' in the output window. Maybe something to do with the variable or? Kinda new to Flash, the chunk of code I believe to be the issue is below, 
 
import flash.events.MouseEvent;
//varialbe for keeping score
var score:Number = 0;
//event listeners for button clicks, which will adjust the scoring array

[code].....

View 1 Replies

Professional :: Animate A Basic Character?

Mar 8, 2011

i've been trying to animate a basic character, which is a comp of 2 legs, 2 arms, a torso and a head.I want it to move from point a to point b, whilist moving it's arms and legs in a very simple manner. what i've done is motion tweened the main character from point a to point b during 10 frames, and then inside the character i've classic tweened the arms and legs during 10 frames aswell. the animation inside the comp is working, but in the main scene i only see the character moving, and in frame 10 the arms and legs change to the tween's final pose, without the entire animation in the middle...

View 1 Replies

Basic MovieClip Usage In FlashDevelop

Apr 6, 2011

I'm just started doing 'hands-on' learning of Actionscript 3 using FlashDevelop. I've now managed to subclass a sprite, load a graphic from the library, and manipulate it around the stage. Next step is doing the same with a MovieClip, but it doesn't seem to be as simple. Basically, I want a simple subclass of MovieClip, that uses a SWF that I created & exported in Flash CS5 (anything else that can create them?), and then added it into my library in FlashDevelop.

In my 'Main' class, I want something like this:
package {
import flash.display.MovieClip;
import flash.events.Event;
public class Main extends Sprite {
private var myClip:MovieClip;

But that says the child is null, and I'm not sure I should be creating a 'new' MovieClip inside my sub-classed MovieClip anyways.

View 1 Replies

Flex :: OSMF With Basic Authentication?

Jul 24, 2011

How would one create a video or audio stream using OSMF when there must be basic authentication on the url?Can one feed in Audio/Video using HTTPService to provide the header authentication?

View 2 Replies

ActionScript 2.0 :: Basic Button Example Of Delegate?

Dec 8, 2009

I've got records being populated into our database from paypal's Instant payment notification methods...great. now i turn to our flash cs3 app to populate a component datagrid with the stored database data and to my surprise I'm unable to identify any examples on how this might even be done.

How do you connect to an mssql database from within flash cs3 to retrieve data for displaying within a flash datagrid?

I can write a cfc from coldfusion to return a dataset, but overall i'm not sure if i 'have' to learn Flex, or AIR or what to get the records 'read'.

My ActionScript 3.0 bible is vague at best and resorts to php. (which i dont know)

View 1 Replies

ActionScript 3.0 :: NavigateToURL With Basic Authentication

Jan 7, 2011

i would like to open a URL in a new browser tab from Flash (by clicking on a button). The page is protected with basic http authentication (the browser displays the login window), but i would like this authentication to be automatic.

The code i have now is this:

Code:
var urlRequest:URLRequest = new URLRequest("some_URL");
urlRequest.data = new URLVariables("name=John+Doe");
urlRequest.method = URLRequestMethod.GET;

[Code]....

I have a system where users authenticate over Flash and then they should be able to browse various folders on the server, which are protected with the same user/pass and i don't want them to enter the authentication twice.

View 0 Replies

ActionScript 3.0 :: Basic Way To Communicate Through Different Classes?

Jul 3, 2011

I've had C# lessons in class and saw some basic class functions. Now however it's been a while since I worked with AS3. And it seems I can't figure out a basic way to communicate through different classes. I'd hoped I could do something like level.backgr1.x += 5; Where backgr1 is a MC defined in the class Level. I'll explain the thing I want to accomplish. I have a 3 classes, Main, Player and Level. Player and Level are children of Main. the mc in Level needs to move when a keyboard event occurs in Player. But only Main can acces Level because it is it parent.

View 2 Replies

Basic Flash Website Structure?

Aug 31, 2009

What is a good structure for a complete Flash website. ex.

1) Index.swf ( which is just a container and loader for the actual SWF site content)

2) Main.swf (the main content of the site that gets loaded in by Index.swf)

Should the index.swf load in several SWF's , like navigation file , news reel file , etc....Also , if anyone know of a web site that has this information or knows of a book that covers this material ,

View 1 Replies

ActionScript 2.0 :: Basic Calculation Not Working?

Dec 14, 2002

EXAMPLE 1

Code:
a = 98587
b = 0711
c = a - b

This results with c = 98130 which is wrong it should be 97876.

[Code]...

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved