How Do I Make A Movie Loop Once.....
so im trying to get a loop to play the first frameuntil i is greater than 2.so on the first frame Im increasing the value by 1i++;then on the last frame Im putting a if then statementthat if i is less than 2 replay, else goto and stop at the next framevar i = 1if (i < 2 ){ gotoAndPlay(1);}else{ gotoAndStop(361);}now I kinda know whats happening when the second code excecutes its resettingvar to 1, so my question is, how do I say once this movie has played once, stop the second time?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-04-2008, 02:47 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Make One Element Loop Without Making Enitre Movie Loop?
i'm trying to make one element continue looping without making the entire movie loop... here's what i mean..
i have a layer that i've name actions which i've asigned a stop(); to at the end of the animation. but i want the red pulsating dot to continue looping/ animating ... to give you an even better idea, here's the swf file...
http://www.push1.com/roster_art_gal.swf
cheers!
How Do I Make The Movie Play Instead Of Loop?
Hi, my problem is that when I play my movie and it comes to a button, i have to right click and press play too stop it from looping in every scene. How do I stop my movie from looping? Please tell me! Thanks - Devilz0
( Pogodude_2@yahoo.com )
How Do I Make Movie That Dosnīt Loop
not familiar with flash at all...
but have flash mx...
a banner was created, then handed to me... all I need to do is stop the animation at the end...
How To Make A FLV Flash Movie Loop?
I'm less than a newby with Flash. I've done some rudimentry stuff with it and I even built Flash pages using Templates but I'm pretty much ignorant about the real workings of flash.
Here's my problem:
I have a client wanted that a flash movie in his website. I lucked out and found a QT clip that he liked and wanted to use. I imported it into flash with Flash 8. All was fine.
Then the client wanted me to add music to the movie. I lucked out and found a free sound loop that he liked and edited it to fit the QT clip I had. I used QT Pro to add the sound to the movie clip because I couldn't figure out the way to get the sound and movie looping in sync in Flash. So that worked out fine too.
Before doing this I asked the client if he didn't want a mute button or vol control he said NO.
Now, that the website is live and he's getting complaints about the sound -- why do people want to put music on a web page? I tell 'em no all the time but they don't listen to me -- Now I have to add a volume control.
So, in my limited knowledge I dug around and found that if I made the SWF into a FLV file in Flash 8 that I could add sound controls etc to that file. So I did that and it worked just fine.
Here's my problem, I need the 16 sec. movie clip to contantly loop. It did so before I made it an FLV file with flash movie controls. But now it starts automatically, rewinds automatically and then just sits and waits for someone to hit the play button.
I did a search here before posting and I did find someone else with this question, but the Action Script answer that was provided was above my competency level. I don't know how to add to or edit the Action Script. I've not even been able to bring that script editor up in Flash.
I sure would appreciate some "bonehead" answers of how to do this.
Thanks so much.
Using Actionscript To Make Sound Loop On Movie Start
the sound plays once then stops for good. I made a button that plays and loops but it wont at the start of the movie.
how do i achieve this? i bet its a simple 2 line script but i cant get it work. im using flash 8
oh and if theres time, id like to know how to keep the sound playing when you start the movie over.
How Do I Make This Movie Clip A Loop In The Mask Layer
Hi, please show me how to make this movie clip a loop using actionscript in the mask layer. Sorry the attachment is not working so I can't attach the flash file.
Basically I have two layers for main timeline; the first layer is for background and the second layer is for mask. Inside the mask layer there are two layers.
I put 6 different images side by side inside the movie clip and the movie clip is masked. I used this actionscript for the movie clip. I get to see the image slides to the left. When it reaches to the 6th image, it cuts off but I want this continues as a loop. How do I achieve this?
Quote:
onClipEvent(enterFrame) {
speed = -2;
this.x += speed;
}
Thank you.
Movie Clips In For Loop Onlydisplaying In 1st Loop
Hi there! I'm new at this so excuse if I'm being stupid.
I'm creating a game which I'm looping through an array and inside the loop I'm playing clips. The clips display only the first time the loop is being run. Here is the actionscript. PLEASE SOMEONE HELP ME... I'M DESPERATE!!!
code:
on (release) {
var myClips = new Array("Fletter", "Lletter", "Aletter", "Mletter", "Eletter");
var myClipsNewName = new Array("mov2", "mov3", "mov4", "mov5", "mov6");
var myClipsValue = new Array (10, 11, 12, 13, 14);
var cnt = 0;
for (var t = 0; t<4; t++) {
for (var i = 0; i if (cnt == -1) {
cnt = 0;
}
var temp = myClips[cnt];
attachMovie(myClips[cnt],myClipsNewName[cnt], myClipsValue[cnt]);
updateAfterEvent();
trace(myClips[cnt]);
if (i == Total-1) {
myClips.splice(cnt, 1);
myClipsNewName.splice(cnt,1);
myClipsValue.splice(cnt,1);
if (cnt == myClips.length) {
cnt = 0;
}
break;
}
cnt = cnt+1;
if (cnt == myClips.length) {
cnt = 0;
}
}
}
}
edit: jbum added as tags
How Do I Make A Loop?
Hey guys, I'm really new to Flash I just purchased it the other day. I need some help on our to create a loop. I have put in a blue background and then drawn a large aeroplane infront of that, and i need to get the illusion that it keeps on flying along, therefore i need to loop it so it plays the same frames over and over, until i decide to make some action.
Thanks alot.
Can Someone Make This A For Loop?
code:
URL000 = "<u>" + desArray[0] + "</u>";
URL001 = "<u>" + desArray[1] + "</u>";
URL002 = "<u>" + desArray[2] + "</u>";
URL003 = "<u>" + desArray[3] + "</u>";
URL004 = "<u>" + desArray[4] + "</u>";
URL005 = "<u>" + desArray[5] + "</u>";
URL006 = "<u>" + desArray[6] + "</u>";
URL007 = "<u>" + desArray[7] + "</u>";
URL008 = "<u>" + desArray[8] + "</u>";
URL009 = "<u>" + desArray[9] + "</u>";
URL010 = "<u>" + desArray[10] + "</u>";
URL011 = "<u>" + desArray[11] + "</u>";
the list could get longer.
Make An Flv Loop
hey, i just started playing flv's, and since i have to get something up tonight, i thought i'd just use the mediaDisplay component to play it. When i get some time I'll play around with how to control it with AS.
anyhow, i have it playing fine, however, i can't figure out how to get the video to loop. anyone know how to do this? i can't find an option in the component. my swf is 1 frame, and there isn't a stop, and i set my swf to loop.
thanks in advance.
ty
Please Help Me Make This Flv Loop.
how can i loop this video?
Attach Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-image: url(bkg10.jpg);
}
.style5 {font-size: 10px}
.unnamed1 {
background-color: #FFFF33;
}
.unnamed2 {
background-color: #FFFFFF;
}
.style10 {
background-color: #FFFFFF;
font-family: "Times New Roman", Times, serif;
font-size: 24px;
font-style: italic;
}
.style19 {background-color: #FFFFFF; font-size: 10px; }
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
<script src="AC_ActiveX.js" type="text/javascript"></script>
</head>
<body onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');">
<p> </p>
<p align="center">
<script type="text/javascript">
AC_AX_RunContent( 'classid','clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B','width','682','height','460','codebase','http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0','controller','FALSE','src','primslideshow.mov.flv','type','video/quicktime','bgcolor','#FFFFFF','border','0','pluginspage','http://www.apple.com/quicktime/download/indext.html','autoplay','true' ); //end AC code
</script><noscript><object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="682" height="471" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">
<param name="controller" value="FALSE">
<param name="type" value="video/quicktime">
<param name="autoplay" value="true">
<param name="src" value="primslideshow.mov.flv">
<param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
<embed width="682" height="471" controller="FALSE" src="primslideshow.mov" type="video/quicktime" bgcolor="#FFFFFF" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed> </object></noscript>
<br />
Edited: 01/17/2009 at 04:08:14 AM by kristin1224
How Do I Make This Loop?
So I used the following tutorial to load an external image:
http://www.kirupa.com/developer/mx20...slideshow2.htm
but I only have two images I want to load and I want to loop back to the first image when you press the next button.
How would I do that?
Thanks in advance
How Do I Make Frames 11-x Loop?
ok at the end of my movie i want it to keep on blinking my name not starting all over. How do i do that? its on frames 11- something(x)
Is It Possible To Make PrevFrame(); Loop?
I have a bitmap sequence in a movie clip. This mc has the following code:
onClipEvent (enterFrame) {
if (_root.direction==-1) {
prevFrame ();
}
if (_root.direction==0) {
stop ();
}
if (_root.direction==1) {
nextFrame ();
}
}
On the main timeline I have this mc with 3 buttons that calls the above code: prevFrame, stop or nextFrame.
eg.
on (rollOver) {
_root.direction = -1;
}
I have also set my variable on my main timeline: direction=1
In my mc I have added a gotoAndPlay(1) on my last frame so that the mc can repeat. This works fine. My problem is when I rollover the button that reverses (prevframe) the mc. It prevframes fine until it gets to frame 1 and stops. I want it to continue prevframing but I can't get it to work.
Any ideas?
How Can I Make A Delay Within A Loop
im facing a problem.. and i hope some1 has faced it but solved it..
what i want to do is :
1- create a box. - thats the easy part!-
2- i want that box to change its alpha from "lets say" from 10 to 50.
but i want to be able to watch the alpha while it is beeing
changed - as in motiontween -.
what i did is that i created the box.. and using a loop that changes "x" which is the alpha degree of the box.. but i only see the final result..
so i thought i'll make a delayer that takes 1 sec. every time it executes the loop.. but the player halts till that time is over.. and i see the final result again..
CAN ANY! HELP ME...........PLEASE
Make Code Loop
Is there a way to make actionscript code repeat itself in Flash 5?
Basically, I have a movieclip that I want to run some code, and then loop round and run it again, indefinatly. What is the trick?
----
Back in the old days of Basic you could do something like this:
10 print "hi"
20 goto 10
Is there a similar process to 'goto' in Flash 5 actionscript?
Make A Sound Loop
Hi, i'm using Flash 5, i putted this code :
s = new Sound();
s.attachSound("mySound");
s.start();
to play a sound, but how can I modify that code so it plays continuously, or loop 5 or 6 time?
thx
Im Trying Make A HitTest With A For Loop
Im trying make a hitTest with a for loop with a list of three walls But my charater is not moving. I have put a break in there and it is not breaking out. How do I make this work thanks. Here the code. I also attached the file.
onClipEvent (enterFrame) {
var xd = 0; // direction of movement
var yd = 0;
if (Key.isDown(37)) {
xd = -10;
}
if (Key.isDown(38)) {
yd = -10;
}
if (Key.isDown(39)) {
xd = 10;
}
if (Key.isDown(40)) {
yd = 10;
}
// check if there is a collision with the target coords
list = ["walls", "walls1", "walls2"];
for(i=0; i<list.length;i++) {
if (this._root[list[i]].hitTest(_x+xd,_y+yd))
{
// if not, make the adjustment
_x += xd;
_y += yd;
}
with (this._root[list[i]]) {
if (_currentFrame == _totalframes) {
} else {
nextFrame();
}
}
break;
}
}
How 2 Make A Random Loop?
Hi group
I want flash to pick randomly any of the following numbers:2,3,4,5
Now if say flash picks the number 1 (which I dont want), how do I make it repeat the process until it picks a number from the said list.
Heres where I'm at so far
frame = int(Math.random()*5)+1;
if (frame==1){
// now what?
}
Any help would be greatly appreciated
Cheers
Vic
Just some background
What I want is for flash to pick a random number from that list, lets say 3 and then it will jump to frame labelled 3 in that movieclips timeline.
[CS3] AS3 - Make Sound Loop
Hey I'm using this code to play/stop a sound in my flash movie, but I can't figure out how to make it loop. What do I need to do?
Code:
import flash.media.Sound;
import flash.media.SoundChannel;
status.text = "Chimes Off";
playButton.addEventListener(MouseEvent.MOUSE_DOWN, playChimes);
var chimesSound:SoundChannel;
function playChimes(e:MouseEvent):void{
if(status.text == "Chimes Off"){
var chimes:Chimes = new Chimes();
chimesSound = chimes.play();
status.text = "Chimes On";
}else{
chimesSound.stop();
status.text = "Chimes Off";
}
}
Can You Make Variables In A Loop?
I'm still kinda new to Actionscript but I'm trying to do something like this:
for (i=0; x=i; i++) {
// make a variable
var name + i = array[i];
}
Could that be done?
Thanks!
[AS] For Loop To Make This Picture
Hi, I'm trying to use for loop to make this menu system to show my photos....just wondering if it's possible to make it, here's my code, it only can duplicate and make it horizantally seperated, but can I use for loop and tell these clips to look like this?(the yellow boxes are the menus which I want them to arrange like by for loop)..
here's my code
ActionScript Code:
for(i = 1; i <= 3; i++){
duplicateMovieClip(box, "box" + i, i);
boxes = "box" + i;
_root[boxes]._x += 60*i;
}
it only makes 3 of them horizantally sit next to each other, but what I wanted to do is to make it look like the graphic above, thanks a lot for your time and help..
How Do I Make An Actionscript Loop?
In the old days of programming the ZX spectrum it was soooo easy...
Code:
10 for a=0
20 input a$;
30 if a$="Kryo" goto 70
40 a=a+1
50 print "Access Denied"
60 if a=3 print "Login failed!!!"; else goto 20
65 end
70 print "WooHoo!!!"
80 end
Ahhh the memories...
Anyway, I have an object on the stage which i want to move to a certain location, when it reaches the location it needs to go back to its original coordinates and repeat the movement. S'all good until it attempt to put it on an onRollOver button.
I thought...
Code:
//First frame actions...
function move() {
if (_root.obj1._x<100) {
_root.obj1._x += 5;
}
if (_root.obj1._x>=100) {
_root.obj1._x = 0;
}
}
Code:
// Button actions...
on (rollOver){
move();
}
How do i go about infinately repeating the move() function?
How To Make A Time-loop Skrip (or Something Else)?
Hi i made two eye's in a flash movie. both eyes cloes and oben in a animation (30 frames in the timeline). if someone moved with the mouse into my movie som other stuff happend, but if no one movies in the movie nothing happend. and so i want to make the animation in a loop. but first after 30 seconds or so.
is there someone who knows a toturial how to write a skript with loops a part in the timeline after a defined period?
Script To Make Sound Loop
Hi
I have a soundclip that I had imported into Flash and am trying to use scripting to make it loop.
Can anybody tell me how?
Thanks
How Can I Make Proper Music Loop?
i have a problem, i use COOL EDIT 2.0 to make music loops and turn the wave file into mp3. When i have done this and reopen that music file something very strange happened!! the program inserted silence in mine loop!! the beginning and the end of it has a short period of silence!!
Can someone help me with this? i dont know what im doing wrong here!! ( in wave its working good though.. but i want to reduce file size...)
Make Random Sound Loop
i'm using this AS to load external mp3's and play a random one:
code:
mp3urllist1 = new Array("aphex_loop.mp3","boards_loop.mp3", "suv_loop.mp3");
mp3Player = new Sound(this); // create a sound object to hold mp3
// loads streaming mp3
function loadRandomMP3(sndlist){
// random number between 0 and highest array index
randomSoundNum = Math.round(Math.random() * (sndlist.length - 1));
mp3Player.loadSound(sndlist[randomSoundNum],true);
}
loadRandomMP3(mp3urllist1 );
This is all working fine but each of the sounds is a loop but i cant seem to be able to make them loop because the loadSound function seems to have a shed load of arguments already passed to it.
Could someone help me make the sounds loop please.
How Do I Make My Music LooP? Cant Get It To Work..
Hi..
I Created a one frame scene, in the beginning of my site, and threw a piece of music in there.. The music plays fine, througout the page, but it just wont loop.
http://www.datacomm.dk
I have tried everything.
How do i make the MP3 loop?
[F8] Using A For Loop To Make Rollover States
hey guys
i have a number (24 to be exact) of movieclips on my stage. i want to make rollovers for all of them and rather than writing out 24 lots of rollover code, i figured you must be able to use a for loop to do this. so, so far i have:
Code:
for(var i=1; i <= 24 ;i++){
}
duh the movieclips on the stage have the instance names 'wedge1' .. to 'wedge24'. but now i'm stuck as to what to write inside the for loop. for example, how would i set the alpha of the movieclips (currently 0) to 100 on rollover?
hope someone can help me out thanks!
emma.
How To Make PlaySound Behavior Loop ?
I added a "play sound" behavior to a button. only thing is it only plays once. how can I make that loop over and over.
here is an example:
http://www.zunskigraphics.com/KOR/index.html
also, the song there now is about 5 min. long, just to show the client. I intend to use a small sound loop; 20 or 30 sec. at the most, but need to figure out the "loop" part.
thanks for the help!!!!
- Lance
How To Make Sound Behavior Loop ?
I added a "play sound" behavior to a button. only thing is it only plays once. how can I make that loop over and over.
here is an example:
http://www.zunskigraphics.com/KOR/index.html
also, the song there now is about 5 min. long, just to show the client. I intend to use a small sound loop; 20 or 30 sec. at the most, but need to figure out the "loop" part.
thanks for the help!!!!
- Lance
Make Streaming Audio Loop?
Below is the action script i have added to 4 buttons in a flash movie called "sound".
Each button loads a small sound clip. The AS works, no problems, but now I need to make the streaming sound loop... Thats when I have hit a stump in the road....
AS for each button:
ActionScript Code:
on (release) {
//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_karizma1',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.karizma1 = new Sound(this._parent.BS_karizma1);
} else {
this.createEmptyMovieClip('_karizma1_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.karizma1 = new Sound(this.BS_karizma1);
}
_global.Behaviors.Sound.karizma1.loadSound("http://www.dj-karizma.com/karizma1.mp3",true);
}
Really could use some brain power on this mid week crisis...lol
thanks as always!!!
ZG
Make A Nice Do Loop With Some Movieclip
Right now I just feel
I have some moveiclip
Code:
mc1
mc2
mc3
mc4
mc5
I like to make then visible or hide with ._visible=true/false
Insted of make a new line of every movieclip I like to use a loop but
"mc" + i +".visible=false" dont work ( I now is look crazy but I have to try )
How Do I Make The FLVPlayback Component Loop
hello,
working with the FLVPlayback component to loop a animation and i dont see any where in the parameters to select this, i am sure this is an easy fix i just dont know where to look.
thanks
Using CreateTextField In A Loop To Make A Table
Hi, I have been looking all over and through my book trying to find a way to make a table of textfields. I have 3 arrays that are received through a pearl script and need to make a table to display the 3 arrays. The size of the arrays will always vary so the table needs to be able to adjust to the size.
I was thinking of something along the lines of
this.createTextField("title_text", this.getNextHighestDepth(), 10, 10, 300, 100);
title_text.multiline = false;
title_text.wordWrap = false;
title_text.text = title;
title_text.setTextFormat(title_fmt);
I have tried doing it inside of loops using the number of the loop as the title for the textfield when creating it but then I cannot find a way to reference it and assign the .text to it.
Any help would be great, or if there is a different command to use that would work better than createTextField, I am still pretty new to flash and actionscript.
Thanks in advance.
Help With Actionscript To Make Movement To Loop
Hi, I am doing a really simple flash piece and was wondering if someone could help me real quick...all I want is my circle to go across the page and to keep looping. My circle is moving great with this code:
onClipEvent(enterFrame) {
speed = 9;
this._x += speed;
}
what do I add to make it loop? Thanks!!!
PLEASE HELP : How To Make A Loaded Mp3 Sound Loop?
hey every1,
I wanted to know who to make a loaded mp3 song or sound loop, the script which I'm using right now is pretty simple...
on (release) {
mySound = new Sound();
mySound.loadSound("music.mp3", true);
}
How To Make Animation Loop At Intervals.
I've got this flash movie about 20 seconds in length.
I want this to play, then stop, and play again after 10 minutes, then stop, then start again after another 10 minutes so it plays continuous every 10 minutes.
Do i use setInterval() for this?
And if so, how do i do it? I dont really no much AS, so if someone can help me that would be great.
Thanks.
How Can I Make A Loop Of Movieclip For Video?
can anyone tell me what's the easiest way for making a loop for videos (or images) coming from a xml file?
i have a list of videos that needs to be loaded into movieclips...but i m not getting hw to make a loop for the videos?
please help ...
thanks in advance...
Make An Thumbnail Scroller Loop?
I have this scroller of thumbnail images, but it stops scrolling when the images run out!
is there a way to make it so it loops around and around???
here is the code i used to make it scroll,
Code:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
|