 |
JimmyPez
Awesome Devil

Registered: Dec 2005
Local time: 12:05 AM
Location: NY
Posts: 798
|
hey,
i know this is really wrong;
ActionScript:
for(var x=0;x<=6; x++){
_root.illNav["ill"+ x].gotoAndStop(_root.images.x+1);
};
|
im trying to make it like this
theres a thumbnail called ill0, ill1, ill2, ill3 etc up to 7
i want those to correspond to a frame in a seperate movie clip timeline
so if you click on ill0 thumbnail, it opens images (which is a movie clip) frame 1.
Report this post to a moderator | IP: Logged
|
04-11-2006 09:41 PM |
|
|
|  |
 |
XemonerdX
veganXcodeXwarrior (StaffMember)

Registered: Apr 2002
Local time: 05:05 AM
Location: The Netherlands
Posts: 4818
|
What you want is for each thumbnail to remember what frame it corresponds to. You can do this using several ways. One is that when the user clicks on a thumbnail it checks the number inside its own name and determines the frame based on that. Another, which I prefer, is to store this number as a property inside each thumbnail and use that. Like so:
ActionScript:
for(var x=0;x<=6; x++){
// get referent to thumbnail clip
var thumb = _root.illNav["ill"+x];
// store x inside thumb
thumb.myX = x;
// set onRelease
thumb.onRelease = function () {
_root.images.gotoAndStop(this.myX+1);
}
};
|
__________________
.:: PoeticTerror.Com ::.
.:: FlashDevils ::.
.:: FlashFocus ::.
.:: GalaxyGoo ::.
.:: OrganicFlash ::.
Report this post to a moderator | IP: Logged
|
04-12-2006 12:41 PM |
|
|
|  |
 |
|  |
 |
JimmyPez
Awesome Devil

Registered: Dec 2005
Local time: 12:05 AM
Location: NY
Posts: 798
|
I tried to rework this code to do something else, maybe someone can help me.
Im using it to for my nav buttons (b0, b1, b2 etc) to load swfs with similar names (0.swf, 1.swf etc)
im using this code, but its not working
ActionScript:
for(var x=0;x<=10; x++){
var nav = ["b"+x];
nav.myX = x;
nav.onRelease = function () {
_root.gotoAndPlay(35);
_level0.myMCL.loadClip(this.myX, 20);
}
};
|
whats not working here?
Report this post to a moderator | IP: Logged
|
06-21-2006 04:35 AM |
|
|
|  |
 |
JimmyPez
Awesome Devil

Registered: Dec 2005
Local time: 12:05 AM
Location: NY
Posts: 798
|
I think I got it, I'll try it when I get home - Thanks Emo
Report this post to a moderator | IP: Logged
|
06-21-2006 02:57 PM |
|
|
|  |
 |
cluelessCoder
Little Devil
Registered: Sep 2006
Local time: 05:05 AM
Location:
Posts: 4
|
trying to apply above examples. got 24 thumbs, all of which should transform on rollover in the same way. they are thumb1, thumb2, etc
for(var x=0;x<=24; x++){
var whichThumb = this["thumb"+x];
whichThumb.onRollOver = function(){
whichThumb.brightnessTo(0,.3,"easeoutsine");}
};
shouldnt this work? what the missing link? thanks
Report this post to a moderator | IP: Logged
|
09-26-2006 06:47 AM |
|
|
|  |
 |
cluelessCoder
Little Devil
Registered: Sep 2006
Local time: 05:05 AM
Location:
Posts: 4
|
thanks a ton. for loops are MINE! 
Report this post to a moderator | IP: Logged
|
09-26-2006 01:42 PM |
|
|
|  |
 |
cluelessCoder
Little Devil
Registered: Sep 2006
Local time: 05:05 AM
Location:
Posts: 4
|
or not
what is wroong with me?
i think i've successfully duplicated my clips, but the _x position thing...
for(var x=1;x<=24; x++){
newThumbname = "thumb" + x
duplicateMovieClip (thumb1, newThumbname, x);
newThumbname._x = x*59;
};
Report this post to a moderator | IP: Logged
|
09-26-2006 05:12 PM |
|
|
|  |
 |
|  |
 |
wessel
Little Devil
Registered: Dec 2006
Local time: 05:05 AM
Location: netherlands
Posts: 2
|
| Delete thumbs and reload diffrent tumbs | Post #13 |
can someone help me i'am working with flash and i what to delete my thumbs and i want that the same thumbs are replaced by other thumbs from a different map
i hope that you can read my English i'am not very good in it
mood:
Report this post to a moderator | IP: Logged
|
12-02-2006 02:13 PM |
|
|
|  |
 |
| All times are GMT. The time now is 05:05 AM. |
 |
|
 |
|
|
|  |
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
< FlashDevils - Terms of use
>
Copyright, FlashDevils Community, 2002 - Flash Archive
|
|