Arrays Syntax
Have a look: Code: for (j=0;j<artists[i].firstChild.nextSibling.childNodes.length;j++){_root.totalCDs++;artist_names[i][cdTitle[j]] = artists[i].firstChild.nextSibling.childNodes[j].attributes.title;//item_mc.menu_item_btn.cdImg[j] = artists[i].firstChild.childNodes.attributes.image;} I'm trying to basically end up with:artist[0].cdTitle[0] = some title;artist[0].cdTitle[1] = second album name here;artist[0].cdTitle[2] = thrid album name;artist[1].cdTitle[0] = Thriller;artist[1].cdTitle[1] = Dangerous;etc...BUT, assigning this "artist_names[i][cdTitle[j]]" doesn't seem to work. What am I doing wrong?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-22-2005, 11:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Arrays And Syntax
I am new to action script, but came accross this in box with no explanation..
FillArray = new Array();
// this will create a new array called fill array.... fine i understand that
FillArray.push({x:x,y:y})
i know the push method push items into a array like
eg Myarray = new Array()
Myarray.push("Cat","dog","snail")
and then Myarray[0] = Cat...... I think...
But FillArray[0] is what?
what are these {} i though each item is separated by a comma so FillArray[0] = the x:x... however it doesnt and x was set earlier in the program as the start point of a fill but i have never seen this syntax till now.... so confused....
Larry thanks i know i am slow like the snail.
Web Service Syntax ? And Arrays...
I'm calling a web service that returns an array. I have a function that just displays the result returned. I'm getting [object, object] when I trace the result. How do I pull a variable returned from the array like city? I've tried;
details.onResult=function(result){
trace(result.city); // equals undefined
trace(result); // equals [object, object]
}
please help;
what am i missing
Syntax When Dealing With Arrays?
Code:
this.ButtonContent.text = _root.menu1menu[0];
This works great, however I would really like to introduce something along the lines of this.
Code:
this.ButtonContent.text = "_root.menu"+var+"menu"+[0];
However, it's been forever since I've worked with arrays and I haven't a clue how to do this properly.
I thought eval might be an option, but that's very old school flash isn't it?
Thanks in advance
I Thought It Would Work But...(arrays & Dot Syntax)
Hey,
Well I've been trying to think of a way to create to scroll my images horizontally upon rolling over a button. Most of the solutions here talk about horizontal scrolling in relations to the mouse position.
So I thought I would create two MC and a button. The first MC is my menu with images(instance "menu"). The second is a blank mc with a loop(instance "initialize"). And the button starts my loop.
MC 1:
on clipEvent (data) {
Xpos=move;
Xmove=Xpos/10;
_root.menu._x=Xmove;
}
MC 2:
Frame 1 = stop;
Frame 2 =
for (go=0; go<10; go++) {
array[0]=(go+1)*10;
move=array[0];
_root.menu.loadVariables(move);
}
Button:
on (rollOver) {
_root.initialize.gotoAndPlay(2);
}
What I thought would happen was I would rollover my button; start the loop counting; have the loop assign a value to var move; and have the x position of my menu change as the new var move came into its AS.
Am I completely over my head?
Thanks.
Exact Syntax/arrays And Accessing Them
deck1 = new Array((whitemage, 1, 1, 2, 2));
cardname = deck1(1)(1);
i assigned a txt box the cardname var, it didnt show
why doesnt this work!?!?!
btw, i tried every variation, [] instead of () and "whitemage" instead of white mage, just to be sure
please help!
GetURL Syntax Problem With Arrays
i'm using the getURL(); function to open a link in another browser window but i'm trying to get the URL to be taken from an array,
i've tried things like...
Code:
getURL("linksArray[w][2]", "_blank");
and...
Code:
getURL(linksArray[w][2], "_blank");
but i can't get it to work. what is the syntax for something like this???
cheers
p.s. the url stored in the array is a fully qualified url e.g http://www.somesite.com
GetURL Syntax Problem Using Arrays
i'm using the getURL(); function to open a link in another browser window but i'm trying to get the URL to be taken from an array,
i've tried things like...
Code:
getURL("linksArray[w][2]", "_blank");
and...
Code:
getURL(linksArray[w][2], "_blank");
but i can't get it to work. what is the syntax for something like this???
cheers
p.s. the url stored in the array is a fully qualified url e.g http://www.somesite.com
Fuse-Syntax With Targets & Arrays
hello, i don't understand the syntax with arrays and fuse
in the documentation ist something mentioned, that i can use arrays with "fuse.addTarget" and "fuse.target"
Code:
var buttons_arr:Array = new Array ("b1_btn", "b2_btn", "b3_btn", "b4_btn");
var fuse:Fuse = new Fuse();
fuse.addTarget = buttons.arr; // don't work, which is the correct syntax here ?
thank for you help...
Advanced Actionscripters? Help, Please:dot Syntax, Referencing Arrays
Hello, once again. Thanks to whomever might be able to solve this...
Problem:
I have a movie in which I set two modes:
mode="one"
mode="two"
When in "one" mode, i have a clip which is duplicated into a containerclip (for reasons of maintaining control over depth).
"duplicateone" is the instance name of the clip being duplicated into "containone"
i reference it:
_root["contain" add mode]["duplicate" add mode]
when in "two" mode, i am doing the same thing, only with different clip being duplicated.
i reference it the same way, as mode is a global variable.
no problems thusfar...switching between the two of them is not an issue.
But now i need to be able to reference both of them, preferably with a single line. It's sort of like I've got the individual variable references to each instance working, but now I need to also have a 'global' variable that references both of them. If I can do this, it will mean management of the movie will be much easier, as will adding new modes...
So, I thought about setting an array of the modes...
and here's where it all fell apart....
I tried:
globalMode=newArray("one","two");
then i tried to reference it something like:
_root["contain" add globalMode]["duplicate" add globalMode]
and a couple of variations on it.
the movie explorer message tells me that an operand must follow my use of 'and'...
so, anyone know the syntax to address two clip instances using variables and/or arrays?
or, better still, any ideas on how i can get myself out of this predicament?
much appreciation to anyone who can offer insight...
thanks
Arrays In A Text File To Arrays In Flash
What i am wanting to do is get an array list from an external file and put it into flash arrays, the code i tryed to use was this:
PHP Code:
for (i=1; i<33; i++) {
if(id=="undefined" || id=="NaN"){
} else {
id[i] = id(i)
}
}
But that dosent work obviously.
I know ive got the
PHP Code:
id[i]
bit right, but i dont know how to do the bit from the text file.
in the file it goes like this:
PHP Code:
id1=432&id2=324 ect
So basically what i am trying to ask is how to in a look do variables using the i (id plus the i at the end). Anyone got any ideas?
Sorting Arrays...2-Dimensional Arrays
How would I go about sorting two dimensional arrays using the sort() function. What I'd like to do is organize the arrays inside of an array by a certain variable...
i.e:
array1 = new Array("Name", "State1", "Cost");
array2 = new Array("OtherName", "AnotherState", "OtherCost");
array3 = new Array("DifferentName", "YetAnother", "AndAnother");
allarrays = new Array(array1, array2, array3);
Now, let's say I want to sort the arrays in allarrays by their state variable. In other words, I want to sort them so allarrays would look something like this (if sorted by state):
allarrays:
array2,
array1,
array3
Any suggestions or past experiences with this sort of sorting? Would I use the Sort() fuction? or would I have to make my own sort function? Thanks in advance for any help you can provide.
Arrays: Cleaning Up Empty Arrays
Hi,
So, I have an array generator, and its not worth explaining the details, but long story short, I end up with an array in which some of the slots are "undefined". How can I go through and remove just those slots? Eg this this my Array
myArray[1] = "red"
myArray[2] = "blue"
myArray[3] = undefined
myArray[4] = "pink"
myArray[5] = "undefined
and what I want to end up with is:
myArray[1] = "red"
myArray[2] = "blue"
myArray[3] = "pink"
thx!
-Z
Arrays/Arrays/Arrays/and Functioning.
Can someone please , tell me how to shorten that Rescale function to just do all the movies in one shot ? and also to add an array for the delay which is the ( o.2, 0.4,0.6 ) so i need to shorten all this to do something like this
Code:
rescale = function(){
this.scaleTo(100,2,"easeOutElastic",this.speed);
this.alphaTo(100,2,"linear",this.speed);
}
//... the next line is inserted within the duplicate movie loop
eval("item"+a).speed = 0.2*a
Instead of all this..
Code:
// Callback Function for lacos to tell when to rescale/alpha back to 100 percent
reScale = function(){
//How can I shorten this by just making an array and doing this in One shot ? is the only problem
item0.scaleTo(100,2,"easeoutElastic",0.2);
item0.alphaTo(100,2,"linear",0.2);
item1.scaleTo(100,2,"easeoutElastic",0.4);
item1.alphaTo(100,2,"linear",0.4);
item2.scaleTo(100,2,"easeoutElastic",0.6);
item2.alphaTo(100,2,"linear",0.6);
item3.scaleTo(100,2,"easeoutElastic",0.8);
item3.alphaTo(100,2,"linear",0.8);
item4.scaleTo(100,2,"easeoutElastic",1);
item4.alphaTo(100,2,"linear",1);
item5.scaleTo(100,2,"easeoutElastic",1.2);
item5.alphaTo(100,2,"linear",1.2);
item6.scaleTo(100,2,"easeoutElastic",1.4);
item6.alphaTo(100,2,"linear",1.4);
item7.scaleTo(100,2,"easeoutElastic",1.6);
item7.alphaTo(100,2,"linear",1.6);
item8.scaleTo(100,2,"easeoutElastic",1.8);
item8.alphaTo(100,2,"linear",1.8);
item9.scaleTo(100,2,"easeoutElastic",2);
item9.alphaTo(100,2,"linear",2);
item10.scaleTo(100,2,"easeoutElastic",2.2);
item10.alphaTo(100,2,"linear",2.2);
item11.scaleTo(100,2,"easeoutElastic",2.4);
item11.alphaTo(100,2,"linear",2.4);
item12.scaleTo(100,2,"easeoutElastic",2.6);
item12.alphaTo(100,2,"linear",2.6);
};
//Duplicate method puts all movieclips on stage at 0 alpha so the user doesnt see the placement
for (a=0; a<titles.length; a++) {
duplicateMovieClip("item", "item"+a, a+1);
//eval("item"+a).alphaTo(0,0,null);
eval("item"+a).item_txt.text = titles[a];
eval("item"+a).tween("_x", [posX[a]], 4, "easeoutElastic");
eval("item"+a).tween("_y", [posY[a]], 4, "easeoutElastic", 0.1);
//Callback function is set here
eval("item"+a).scaleTo(0,0.2,"easeoutElastic",0.1,reScale);
item._visible = false;
}
Actins:wrong Syntax=correct, Right Syntax=wrong
Has any body made a similar observation:
when I want to load a pic into mc and write
_root.loadMovie("pic.jpg","mc");
I get a little window just the size of my pic but not my stage. But when I write:
_root.mc.loadMovie("pic.jpg");
everything is fine. I have a Mac, OS9.1. Is this related to the flashplayer in mac or what?
Arrays Referencing Other Arrays?
Picture this... I declare two arrays:
array1= new Array();
array2 = new Array();
Then I went through some data and added values to "array1". For this example, let's say it has 20 values. (length = 20)
I want array2 to be a "backup" of this data, so I did this:
array2 = array1;
I would expect array2 to simply be a copy of the contents of array1. But, whenever I .pop() a value off of array1, array2 ALSO loses that same value! How is this possible? Is array2 only a "reference" to array1??
Only Arrays Or Arrays And Objects
Hi
I've been told not to do this with an array...
PHP Code:
var travelbooks:Array = new Array();
travelbooks.push({titel: "Madrid", release: 2004, pages: 248});
travelbooks.push({titel: "Barcelona", release: 2003, pages: 224});
travelbooks.push({titel: "Tenerife", release: 2002, pages: 124});
travelbooks.push({titel: "Malaga", release: 2005, pages: 172});
for (var i=0; i < travelbooks.length; i++) {
trace(travelbooks[i].release + " - " + travelbooks[i].titel);
}
... but to do this...
PHP Code:
var travelbooks:Array = new Array();
var book_1:Object = {titel: "Madrid", release: 2004, pages: 248};
var book_2:Object = {titel: "Barcelona", release: 2003, pages: 224};
var book_3:Object = {titel: "Tenerife", release: 2002, pages: 124};
var book_4:Object = {titel: "Malaga", release: 2005, pages: 172};
travelbooks.push(book_1, book_2, book_3, book_4);
trace(book_1.titel);
trace(travelbooks);
trace(book_releases);
function book_releases():void {
for (var i:Number = 0; i < travelbooks.length; i++) {
trace(travelbooks[i].release + " - " + travelbooks[i].titel);
}
}
Could you tell me why i'm not supposed to use the first example? And why example 2 doesn't work?
Thank you
Ferran
Creating Arrays From Arrays?
I'm not sure this is possible but...
I'm trying to create a series of arrays from one main array.
My main array [main_elements] contains four items - interactive, motion, print and illustration. This main_elements array is dynamically created from an xml file.
I'm wanting to create a set of arrays based on the content within this initial 'main_elements' array.
So i would end up with an interactive array, motion array , print array and an illustration array.
currently i'm at this stage with it...although i've tried every other combination i can think of to get it working.
ActionScript Code:
for(q=0; q<work_elements; q++){
main_elements[q] = xmlDoc_xml.firstChild.childNodes[1].childNodes[q].nodeName
//this is the actual categories of work - the areas - interactive,motion,print,illustration
var Vname = work_elements_ARRAY[q]
//i need to create an array based on the names in the work elements area
//ie i need an interactive array - motion array etc
Vname = new Array
trace("Vname-- "+interactive.length)
//this trace should pick up the newly created interactive array but it doesn't exsits...???
}//end of second for
I would then fill these arrays with the work items.
As you can guess its a menu system of the simplest kind i'm trying to build.
Is there a better way to be doing this or is it a case of correct syntax / approach??
# Of Arrays - Length Of Arrays
Is a length of 540 to long for an array?
If so what a good limit to cap it at?
What # arrays of max limit are to many for a flash movie?
10?
100?
1000?
I'm just curious as i need to track the _x and _y of a dragable MC for as long as possible - 3 to 4 minutes if i can squeeze that. It needs to have smooth motion when it's played back, so the cord's need to be stored about 3 times a second. I was just wondering if anybody has an idea of how much data is too much?
All comments are welcome. Thx
Arrays In Arrays Trouble
does AS3 have capability to do multidimensional arrays? My computer won't let me download it because I have edu version. 2D arrays would make this a lot easier. Here's the class:
Code:
class com.samainsworth.math.matrix {
var arr:Array;
var r:Number;
var c:Number;
public function matrix(r:Number, c:Number) {
this.arr = new Array(c);
for(var i in this.arr) {
this.arr[i] = new Array(r);
}
this.r = r;
this.c = c;
}
public function getPos(r:Number, c:Number) {
return this.arr[c][r];
}
public function fillPos(val, r:Number, c:Number):Boolean {
if(r <= this.r && c <= this.c) {
this.arr[c][r] = val;
return true;
}
else {
return false;
}
}
}
here's the code in the movie:
Code:
import com.samainsworth.math.matrix;
var m:matrix = new matrix(2, 2);
trace(m.fillPos(1, 0, 0));
m.arr[0][0] = 1;
trace(m.getPos(0, 0));
and last but not least here's error:
Code:
true
undefined
I'm trying to work on 3D which requires a lot of matrices work even though flash doesn't support 3D you can fake it with a lot of math - http://www.kirupa.com/developer/actions ... onCube.swf
Syntax? Why Cant I Do This Way?
Please take a look at the code below. Could someone please explain to me why I cant call a instance by its name until it has played (or that seems to be the case). Basically I cant use the statement: "_root.Intro.gotoAndPlay(1);" in the "else" statement it only allow me to identify it as "_root.gotoAndPlay(2);". Why wont the actionscript allow me to call it as an instance name? It works fine in the "if" portion of the statement...I assume because it has already begun playing. Please clarify this for me.
on (release) {
if (_root.Intro._framesloaded > 0) {
stopAllSounds ();
_root.Stop();
_root.Intro.gotoAndPlay(1);
} else {
_root.gotoAndPlay(2);
}
}
Thanks for your help
Sean
Syntax Help
I have 30 webpages named 1.htm, 2.htm etc.
I'm trying to select one at random and open in a specific frame
Can I use random to construct the URL and getURL to open ?
And if so HOW ?
I'm sure I'm doing something wrong with all the Expression checkboxes but can't work out if there's something deeper wrong in my logic.
Dot Syntax
I have a for loop in which I want to do a tell target..since it's depreciated I thought I try dot syntax.
But I can't figure it out...what I want is this:
_root."char" add i.gotoAndPlay(14)
but that doesn't work
again please help...
Thanks
Dot Syntax
where can i find an in-depth walkthrough of flash 5's dot syntax? i have no experience with javascript, and i'm still using the slashes to target levels and movieclips. sigh... please help!
Dot Syntax
can someone convert this to flash 5 syntax (not that this won't work in 5
height = getProperty ("../../body_text/" add ../../body_text:scrollTarget add "/scrolling", _height );
thanks
Need Some Help With My Syntax
Here's the question:
If I have a variable x getting a random number
ie. x = Math.random()
How do I get the value of x to show up in a loadMovie URL?
ie. mymovie.swf?x
(I want x to be the random number, instead of it interpreting it as the actual letter x)
Any suggetions would greatly appreciated. Thanx.
Bad Syntax?
I know I'm just writing this wrong. I know this because I always write actions with variables wrong. How do I write:
'_root.darts.whole_game.buggy.bug_run_' + Number( _root.darts.whole_game.whichbug) + '.stop()'
I just want to send a Stop acticton to a movie clip using the variable "whichbug"
Thanks
Frequent-C
Bad Syntax
Why does this work
_root.Explode_1.duplicateMovieClip ("Explode_2", 1);
but this doesnt
"_root.Explode_" + _root.CurrentBall + ".duplicateMovieClip ("Explode_2", 1);"
Right Syntax?
how to attach several for example _levels 1-10:
for (...)
level[+n] ...
whats the right syntax for _level+variable
Need Some Syntax Help... I Think...
ok, in this example:
getURL("javascript:functionName(variable1,variable 2,cariable3)");
I want to use a dynamic variable for "functionName" so I can change the function I am calling at runtime.
so i would assume it would look something like:
getURL("javascript:"_root.variableName"(variable1, variable2,variable3)");
but that does not work... and this is most likely a result of my not understanding JS as well as I should.,.. but could anyone shed some light ont his for me?
Raiven...
thx in advance
Help With Dot Syntax
What am I doing wrong?
//This is how you would do it without the dot syntax
for(i=1; i<=10; i++) {
target = "target" + i;
tellTarget (target) {
gotoAndPlay(2);
}
}
//This doesnt't work because there is no movie named "target", only ones named "target1","target2"...
for(i=1; i<=10; i++) {
target = "target" + i;
target.gotoAndPlay(1);
}
//This is what I'm trying do do, but I can't get it to work in the for loop
target1.gotoAndPlay(1);
target2.gotoAndPlay(1);
target3.gotoAndPlay(1);
target4.gotoAndPlay(1);
target5.gotoAndPlay(1);
target6.gotoAndPlay(1);
target7.gotoAndPlay(1);
target8.gotoAndPlay(1);
target9.gotoAndPlay(1);
target10.gotoAndPlay(1);
Please help me, Thanks
Syntax
I need some help putting a loop together.
1 function coinHit() {
2 i = 1;
3 while (i<=3) {
4 if (_root.coin+i.hitTest(_root.ball)) {
5 _root.coin+i.play();
6 }
7 i++;
8 }
9 }
I have tried every combination I can think of, to get this to work.
I have three coins. (coin1, coin2 and coin3) I want to run a hitTest on each of those three coins, by calling this single function. However, I don't know how to write lines 4 and 5 correctly.
Can anyone help?
Also, where can I find this out in future? Does anyone know whwre I can look up concatenation like this? I always get stuck on this. A mental block /
Thanks.
Dot Syntax
hi | i'm building a shell for a movie and i'm having one problem. on the main timeline i have a movie with a button. on release, that button sets a variable on the main timeline and it also jumps back to the main timeline and has the playhead go to frame 3, i.e.
on(release) {
myVariable=1;
_root.gotoAndPlay(3);
}
-- this part is working fine --
on frame 3 of the main timeline is another movie which has a condition:
if(_root.myVariable=1 {
placeholder.loadMovie("one.swf");
}
the problem is that the placeholder movie clip (which has the instance name of placeholder) isn't loading the external movie -- which is targeted correctly. i also ran a trace statement in this second movie just to make sure that _root.myVariable=1; -- and it did. does anyone have any ideas why my placeholder isn't responding to the command?
thanks, - matt.
Syntax?
Is their an on line source for flash like the java doc are for java? To help explain all the syntax?
Thanks
JOptionPane
Syntax Help
Ok,
I'm trying to preload a external swf but i cant seem to get it to preload right. Can anyone help me out with the correct syntax?
Dot Syntax Help
I made a slideshow that fades in and out. With a link back to the root time line in the last frame like so _root.nextFrame(); then it would go to the next frame in the root time line and start the next movie and it all worked well. Then I made it in to a movie called slideshow with an instance name of sh can anyone tell me what the path would be to make it work again? What I basically have is a movie inside a movie and I want it to go to the next frame on the root time line of the outside movie. Hope this makes sense.
Thanks
JOptionPane
Another Old Syntax
hi,
what is this in mx actionscript n
its the ":" that paticularly confuses me
Code:
ny = eval("../" add n add ":ymov");
thanks
mark
Syntax Help?
Could anyone tell me the syntax for 'on click' tell a movie clip to go to frame 2 (of itself) and play. (ie: so a button is clicked and another movie clips plays from frame 2)
it used to be telltarget didn't it?
thanks
IF Syntax
I want to use the IF statement to determine whether or not a movie should play and would like to know how to lay it out.
These are the factors:
If the movie is at frame 6 then play the movie
but if is at any other frame then dont play.
This will be activated by clicking on a button.
Thanks - Joe
Syntax
Could anyone give me the correct syntax here.
If you are finding the x position of an object using it's library identifier you use this
for (x=0;x<100;x++)
x=_root["identifier"+i]._x
What is it if you are using it's instance name?
x=_root.identifier[i]._x
would this be it???
Thanks
What Does The Syntax 'in' Mean?
I have a sample .fla I got from FK that I am learning how to build an mp3 from. one of the functions is this.
code:
function select(){
for(i in playlist_mc.target_mc){
if(playlist_mc.target_mc[i].songNum != songNum){
playlist_mc.target_mc[i].gotoAndStop(1);
}
else{
playlist_mc.target_mc[i].gotoAndStop(2);
}
}
}
What does the 'in' mean in the line
for(i in playlist_mc.target_mc){
There is no listing for this in Flash's reference.
Syntax Help
Is this syntax correct? I'm not sure how to interpolate the i variable in this for loop:
Code:
for (i=1; i <= 3; i++) {
pic[i]_mc._alpha = 0;
}
What I'm trying to get is simply:
pic1_mc._alpha = 0;
pic2_mc._alpha = 0;
pic3_mc._alpha = 0;
Syntax
Hi
what is the syntax to specify something like this
idClients = new array("Party22","Fox22","Elite");
//load the names from the array (as dynamic text)
for(i=0;i<11;i++)
{
idText+i.text = idClients[i]; //this bit here
}
how do u write idText+i.text so it works as if idText+i is one variable ??? It should be something with [] but I can't remember. Also is there a way to maybe load these names from single external file insted of array and how would I specify as many variables as needed in one file so when u pull it in each text field pulls right variable contents. i know how to have a txt file with single variable but not multiple variables.
Cheers
What's The Syntax?
Hi all, I have a movie with an empty MC called "container" in which I need to attach "pages" from the library. on each page I'll have 2 buttons, next and previous. Also on the first frame of each page I have this:
_root.currentpage = 1; (or 2, 3, 4 etc)
The pages are linked as page1, page2, page3 etc.
What I want to do is have the "next" button attach the next page by it's number and then go to a frame label on that page. I don't know the proper syntax but here's what I've got:
on (release) {
container.attachMovie("page" + (_root.currentpage + 1) ,"page" +(_root.currentpage + 1),1);
container.page+(_root.currentpage).gotoAndStop("pa ge");
}
Can anyone help me out?
Syntax For 'using'
I recently saw in the middle of a thread a cunning way of putting 'using' then I think, a path, and then a whole load of variables so you didn't have to rewrite the path the whole time.
Would be really useful if someone could let me know what the syntax was.
Thanks.
XML Syntax
Hi, I get an error when trying to view the following xml.
<coworker1 imageURL="Einstein.jpg" linkURL="http://iwww.org.distr.com/news_detail.asp?news_id=88183"></coworker1>
The '=' sign is not accepted. Anyone now how to rewrite the XML to get it to work.
Thanks!
/october
Syntax
I'm sure this is easy but i don't know why this isn't working. The path is correct but it keep giving me this error. It is written on an MC.
onClipEvent (enterFrame)
_root.cater.cattext._visible = false;
BUG REPORT
Scene=catering, Layer=cater, Frame=1: Line 2: '{' expected
_root.cater.cattext._visible = false;
Syntax
hi
what is the syntax to get dot+i to work ?
dot is the name of a movie clip ??? undefined at the moment?
for(i=1;i<96;i++)
{
cordX[i] = getProperty((dot+i), _x);
cheers
For.in Syntax Help.
Brain is not working properly today.
Why isnt this code working? I need to continue coding yet Iam totally stumped why this isnt working. What Iam I not seeing here ?
Quote:
onClipEvent (load) {
for (c = 1; c <= 5; c++) {
_root.mc_bm.mc0[c]._visible = 0
//_root.mc_bm.mc01._visible = 0
}
}
Quote:
onClipEvent (load) {
for (c = 1; c <= 5; c++) {
Trace( "mc0"+[c]+"._visible = 0" )
Eval(mc0[c]._visible = 0)
//mc04._visible = 0
}
}
|