ActionScript 3.0 :: Acessing URL In XML?
Nov 24, 2010
I am trying to use a gotoURL and pass the URL from XML. I am trying to use the date function as a variable number to use in the array in the XML to access the right URL based on the date.
Hmm hard to explain but I think the code might explain it.
Code:
var loader:URLLoader = new URLLoader();
var xml:XML;
var my_date:Date = new Date();
[Code]...
View 2 Replies
Jun 9, 2009
So I have another issue that has me stumped (it's been happening a lot on this project). I have three movieclips1. clip1.swf2. clip2.swf3. clip3.swfThe way it works now is that clip1.swf loads the clip2.swf and clip2.swf loads the clip3.swf. I named clip2.swf to clip_2 and so forth. I'm trying to access the main timeline of clip3.swf (clip_3) which looks like:from the main timeline of clip1.swf
Code:
trace(clip_2) //returns [Object MainTimeline]
but when I do
[code].....
View 6 Replies
Sep 2, 2009
So I'm trying to do a simple graph with rollover definitions. I have the graph on one layer in the root along with the definitions. On a hit testing MC I have the following:
var defbox:info = new info();
var mcName = this.name;
var xPos = (MovieClip(parent).stage.stageWidth)/2;
[code]....
View 5 Replies
Mar 5, 2011
To load a Flash symbol in Flex, I use
[Bindable][Embed('xxx.swf', symbol='symbolName')]
private var SWFClass:Class;
[Bindable]
[code]....
View 1 Replies
Nov 9, 2004
I need to disable some buttons in a movie in level0. I manage to do that...but the thing is i have some other buttons inside a movieclip and i can't disable them... what should i do?how can i acess the buttons inside the movieclip to disable them?the code i'm using for the buttons in level0 is:
on (release) {
for (i=0; i<4; i++) {
_level0["button"+i].enabled = false;
[code]......
View 1 Replies
Oct 15, 2010
is it possible to dynamically create variables in actionscript?for example lets say i have some kind of loop and for each itteration of loop i want new variable to be created, or acssed if creatin is not possible. ( tbh i don't need to create them dynamically there is more simple sollution of my problem in real project, am just wandering is it possible )[code]the best i could thought for acessing is filling them in array and acessing it like that.... code works but i am actually trying to make it work without array.[code]
View 2 Replies