Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-08-2006, 09:21 PM   #1
Electrobaby
electrobaby
 
Join Date: Jan 2006
Location: southern california
Posts: 77
Default Question on my first array....

Im not sure if my logic is correct here. I have 5 logos mcs with linkage ids as 1-5. I want to list them in an array and have a function grab the next element at the end of the 50 frame animation (which is just a solid color mc that fades in and out to look like the logos are fading in and out.)

So Logo 1 will fade in, stay and while, and then appear to fade out at which time I will call the function. I think the getLogo is a problem...with it I am trying to grab the next element in the array...the elements in the array are the linkage IDs of the logo MCs. Is this all screwed up or what??


var myArray:Array = newArray = ["1", "2", "3", "4", "5"];
var getLogo = myArray++;



function logoSwap() {
_root.attachMovie(getLogo, "nextLogo", 2);
_root.nextLogo._x = 94;
_root.nextLogo._y = 40;
}

thanks all
Electrobaby is offline   Reply With Quote
Old 03-08-2006, 09:36 PM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

This is MX2004 syntax and should thus be moved to the appropriate forum.
oldnewbie is offline   Reply With Quote
Old 03-08-2006, 09:57 PM   #3
Electrobaby
electrobaby
 
Join Date: Jan 2006
Location: southern california
Posts: 77
Default Question on my first array....

Im not sure if my logic is correct here. I have 5 logos mcs with linkage ids as 1-5. I want to list them in an array and have a function grab the next element at the end of the 50 frame animation (which is just a solid color mc that fades in and out to look like the logos are fading in and out.)

So Logo 1 will fade in, stay and while, and then appear to fade out at which time I will call the function. I think the getLogo is a problem...with it I am trying to grab the next element in the array...the elements in the array are the linkage IDs of the logo MCs. Is this all screwed up or what??


var myArray:Array = newArray = ["1", "2", "3", "4", "5"];
var getLogo = myArray++;



function logoSwap() {
_root.attachMovie(getLogo, "nextLogo", 2);
_root.nextLogo._x = 94;
_root.nextLogo._y = 40;
}

thanks all
Electrobaby is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Array question nyghtrunner ActionScript 2.0 2 08-10-2005 03:11 PM
record function audio mixer -> array question nosep ActionScript 1.0 (and below) 2 03-08-2005 05:01 PM
question on checking information in ARRAY every second bruchedog2 ActionScript 1.0 (and below) 1 02-16-2005 02:47 PM
possible array question. Mutty Other Flash General Questions 1 03-30-2003 05:14 AM
Simple array question Chris Like ActionScript 1.0 (and below) 1 06-17-2002 02:25 AM


All times are GMT. The time now is 05:10 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.