Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








[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..




Ultrashock Forums > Flash > ActionScript
Posted on: 2003-12-24


View Complete Forum Thread with Replies

Sponsored Links:

Loop The Picture
Hi there,
Im new to this forum so dont know if this is the correct spot..... what I want to know is if anyone can tell me a bit about continuous looping images and maybe give a link to somewhere that might help me.

Im not an actionscript/flash expert but can get my way around it so first of all Id probably want to know if this is possible....

I want to have individual images that scroll left to right and run continuously. On rollver the scrolling will stop and a box with an image description will lower from under that image. Obviously on rollout the scrolling image starts again.

Has anyone done this and if so could you drop me a couple of hints.....please!

Jeremy

View Replies !    View Related
Picture Band Loop Scripting-help
Hello, I've used the script below to create a looping affect on a thin band of pictures going left or right. It works great but here is my problem. I only want the pictures to move when the cursor is over the pictures and not the whole movie. If anyone can help it would be great. Here is the script that is part of the picture band.

--------------------------------------------------------------------------
// initialize
onClipEvent (load) {
percent_increment = .020;
addstrip2 = false;
}
onClipEvent (enterFrame) {
// this is it! only one line of code!
this._x += (_root._xmouse-350)*percent_increment;
// now, in order to have a seamless strip
// you have to tell the movie (1)when to duplicate the strip and (2)whether to put it on the right or left side
// when moving left...
// add strip2 to the right side of the strip if the strip is less than 0
if (this._x<=0 && this._x>=-this._width) {
// only add it when addstrip2 is false otherwise it will contiually add strip2
if (addstrip2 == false) {
this.duplicateMovieClip("strip2", 1);
addstrip = true;
}
// position strip2
// subtract 1 cause the border will look wide when it's put next to the other border
_root.strip2._x = this._x+this._width-1;
_root.strip2._y = this._y;
}
// once the strip has moved off the screen(left side),take it and put it on the right end of strip2
if (this._x<=-this._width) {
this._x = _root.strip2._x+this._width-1;
}
// when moving right... (same code as moving left but checking for different positions)
if (this._x>0 && this._x<this._width) {
if (addstrip2 == false) {
this.duplicateMovieClip("strip2", 1);
addstrip = true;
}
_root.strip2._x = this._x-this._width+1;
_root.strip2._y = this._y;
}
if (this._x>=this._width) {
this._x = _root.strip2._x-this._width+1;
}
}
---------------------------------------------------------------

Cheers,

MellowFellow

View Replies !    View Related
Automatic Vertical Picture Scrolling In A Loop
Hi everyone,

Can someone of you please help with creating a movie clip which scrolls automatically (without mouseover) a large number of pictures (more than 50) vertically and in a loop?

I think that I'll need help with the 2 following things:

1. When I wanted to position the 50+ pictures in my Movie Clip object I encountered the first problem, which is that THERE IS NOT ENOUGH PLACE!!!
->Within an or the Actionscript is it possible to call all my pictures? or how can I make it with such a large number of pictures?

2. I'm new to Actionscripting and don't have knowledge in an other OO-Programming language, so I really don't know how to write that code or to adapt a similar code example? I really wanted to do it by myself, but unfortunately I'm lacking the needed time as the guy I promised to do his site does need his site online asap!!

If you could help in this or any of this, I would be very grateful.

Thanks in advance.

Cheers

View Replies !    View Related
Drawing Picture Frames Inside The Loop
Hi Guys

I am killing myself with this loop and nothing...
Now I am trying to draw a frame for each picture that I load in the loop... and my problem is that I can not get the position (_x, _y) for my frames...(they are loading outside the Holder_mc).
I just added a new var for the frame outside the loop, and I scripted a new code inside the loop to call a function that draws the frames and return a clip...
This is my code below, do you guys know why is drawing the frames outside the Holder_mc ?? I attached the frame movie clip into the Holder_mc.... I really do not understand !

var Holder_mc = this.createEmptyMovieClip("holder", 1);
Holder_mc._x = 100;
Holder_mc._y = 500;
var loadMe:MovieClip;
var frame:MovieClip;
var startX:Number = 0;
var startY:Number = 0;
var mc_width:Number = 70;
var mc_height:Number = 45;
for(i = 0; i < numberOfPics; i++) {
loadMe = Holder_mc.createEmptyMovieClip("gready_" +(i+1), i+1);
Holder_mc.attachMovie("frame", "frame_" + (i+1), i+2);
Holder_mc.frame = drawFrame(Math.random() * 0xFFFFFF, mc_width, mc_height, startX, startY);
loadMe._x = startX;
loadMe._y = startY;
startX += mc_width + 5;
var MCL_listener:Object = new Object();
MCL_listener.onLoadComplete = function(target_mc:MovieClip) {
target_mc.onPress = function():Void {
trace(target_mc._name);
}
}
var MCLoader:MovieClipLoader = new MovieClipLoader();
var picToLoad = "ready_"+(i+1) + ".jpg";
MCLoader.addListener(MCL_listener);
MCLoader.loadClip(picToLoad, loadMe);
}

function drawFrame(color:Number, width:Number, height:Number, x:Number, y:Number):MovieClip {
var depth:Number = this.getNextHighestDepth();
var clip:MovieClip;
clip = this.createEmptyMovieClip("clip" + depth, depth);
clip.lineStyle(1.5, color, 100, true, "none", "square");;
clip.lineTo(width, 0);
clip.lineTo(width, height);
clip.lineTo(0, height);
clip.lineTo(0, 0);
clip._x = x;
clip._y = y;
return clip;
}

View Replies !    View Related
How Do I Make A Picture Appear From Nowhere?
Hi,
a couple of days ago, I started working on my new web site, where the banner and the menu should be in flash. Now there's a little problem: I am a real noob in Flash! And I need your help! So that's what I want to do: (please look picture http://vlada.freehostia.com/images/v1_0_0_1.jpg)
1. I would like the logo-picture, and the two Slogans appear from nowhere (I know, it sounds stupid, but that's what I was told to do) and
2. add a hover character to my menu (you know, like an animated line, which underlines the word, when you hover the mouse)

Could anyone please tell me how to do it? What methods should I use? I would be very grateful for your help :)

Regards,

AlexLink to the template picture

View Replies !    View Related
How Can I Make A Picture Pan Out Please As So...
Hello,

Can anyone direct me to a guide or a tutorial please as to how to make a picture pan out within a confined area.

I've seen this effect used quite well here:

http://www.alpinehomehealth.org

Any help or advice is greatly appreciated

View Replies !    View Related
How Would I Make A Picture Slider?
Hi, I've been asked to come up with a box which contains pictures that slide through, from left to right continusouly, but when I put the cursor in the middle of the box the images stop, but when Imove the cursor to the right or left the images slide faster, and in the opposite direction, so if the cursor is at the left side the images will scroll to the right, and vice versa.

View Replies !    View Related
How To Make Picture Transparent?
how to make picture transparent?

View Replies !    View Related
How To Make Picture Gallery?
I just tried to do a picture gallery.But It has to have around 21 pictures.In 3 sections(this is around 7 pictures per section)

I would like to look like file 1. It must have 21 buttons (on which when you click to see the picture bigger) on the same window,now there are only 13.
Could you please help me to do?
here is the link of the FLA file
http://w02.easy-sharing.com/115120/i...sLR5WKQ7/1.zip

View Replies !    View Related
Im Trying To Make A Random Picture Genarator
I need some help does anyone have the action script?

View Replies !    View Related
To Make A Picture Scroll When Rolled Upon
hi peoples,
i was wondering if anyone could help me out on this, u know when youve got a long strip of pictures or images, and when u roll over them they slide to one side or to the other, i was wondering how this was done if anyone could help i would really apreciate it, thanx to all, take care
sante

View Replies !    View Related
How To Make A Picture Sliding Menu With...
Hello

I'm trying to make a picture sliding menu. I found a lot of different examples but every one was controlled by the mouse; if you move the mouse to the right, the sliding menu movies to the right.
I want to control it with a button on each side and the movement to be smooth. I mean, I can make the sliding menu jump to either side, but not with a smooth movement.
Anyone with an idea to make this work??

EDIT: To be a bit more exact: when you push the left button, the sliding menu moves one item(picture) to the left and the same goes for the right button

Regards
Fahlsten

View Replies !    View Related
How Can I Make A Picture Look Like Its Pouring Water?
I have a picture and i need to know how to make it pour water.
Its simular to this one

Does anyone have any iades?
Thanks for your time
~Gabor

View Replies !    View Related
How Do I Make A Picture Grid In Flash 8 Or AS?
Hi,

I am trying to find a helpful tutorial on how to create a Flash movie for a website. This movie will include a video of a person and images in the background. I want to learn (though a tutorial) how to create a grid of images and be able to click and image and have it flip over. An example of such a movie can be see at http://www.wachoviaretirementguide.com/
Just click the Build button once the Flash movie loads.

Thanks in advance!

View Replies !    View Related
Make Picture Appear Black And White: Is This Possible?
Hi all,

Simple question:

I am building a portfolio site for an artist, and as of now, have a main picture panel with a thumbnail slide menu.

My current version is a mess right now, split over several files as I work to program the 500+ images. But it is similar in functionality to the miniusa site

So, when the cursor is over the thumbnail, it shows in full color and the rest of the time they are darkened (simple black 30% alpha)

However, Mr. ArtistDude has requested that instead of the thumbnails just darkening, they appear black and white / grayscale.

Is this possible? There is no friggin way I'm making another entire set of thumbnails in black and white and doing a mask that way, so I'm hoping there is some easyish way I'm unaware of.

Thanks!

View Replies !    View Related
How Can I Make A Flash Picture Animation
Hi I havent used Flash before however want to get into it. I would like to start by building a picture animation and link as on the bottom of the page http://www.islandrealestate.com/index.cfm stating Roatan Real Estate. It looks easy. I would be happy if someone can let me know how to do this or forward me a tutorial which can help me.

View Replies !    View Related
How To Make A Picture Based Listbox?
ok its kinda confusing so bare with me, i wanted to make something like this:

http://www.kirupa.com/developer/mx/listbox.htm

only when u click which one u want to see, and it shows the caption for the one u selected, make it show a picture with an option to open the fullsized picture in a seperate window with a caption under it. Can someone teach me how to do this?

View Replies !    View Related
How To Make Text Field With Picture Within
how to make text field with picture within like that

pic pic pic | txt txt txt
pic pic pic | txt txt txt
pic pic pic | txt txt txt
pic pic pic | txt txt txt
----------- txt txt txt
txt txt txt txt txt txt
txt txt txt txt txt txt
txt txt txt txt txt txt

thanks

View Replies !    View Related
How Do You Make A Picture Move On Rollover
Hi, i am having a problem, I have a picture that appears from the left, and then a set of buttons from the right, when the user rolls over a button, i want the picture to move left. Would anyone know how i would go about doing this?

View Replies !    View Related
How To Make A Picture Based Listbox?
ok its kinda confusing so bare with me, i wanted to make something like this:

http://www.kirupa.com/developer/mx/listbox.htm

only when u click which one u want to see, and it shows the caption for the one u selected, make it show a picture with an option to open the fullsized picture in a seperate window with a caption under it. Can someone teach me how to do this?

View Replies !    View Related
How To Make A Picture Randomly Drift All Over Stage
I want it to drifting all across the stage like in a tween. Anyone able to help me with the actionscript code? Thanx a lot.

View Replies !    View Related
How Would I Make A Fire Effect That Stays On A Picture?
I would like to know how I would go about making a fire effect around this image that moves around like a real fire (like it grows in size in some places and gets smaller and changes back and forth).
Thanks
Drew

View Replies !    View Related
Using Flash To Make A Animation Picture To Censored
Does anyone knows whether Flash can do a picture with a tween motion that make the picture censored? Or this precedure must do frame by frame?

View Replies !    View Related
Make A Picture Follow Mouse Clicks
I was wondering how to make a picture move to a location where the mouse is clicked. I need it to be animated though, not just reappear in the new location.

View Replies !    View Related
How Do I Make A Picture Or A Image (or More Than One) Follow The Mouse Around?
How do I make a picture or a image (or more than one) follow the mouse around in Flash MX?

View Replies !    View Related
How Do I Make A Picture Gallery With A Small Filesize?
I have absolutely no idea how to make a decent picture gallery with a small filesize (it would include over 20 pictures, all with a filesize of over 250 kb...)

could someone help me on this one?

or does any1 have a tutorial on this? because there is no tut on this on flashkit.com ...


thnx

View Replies !    View Related
How Could I Make It Look Like The Mouth In A Picture, Is Moving/talking?
I'm sure you get this a lot, heh. I was just currious if there is some sort of tutorial anywhere for this type of thing.

View Replies !    View Related
Spinging Motion And Make A Picture Look Like Its Being Drawn
how can i for excample have a picture of a wheel spinning round in same place?

Also

how can i have a background looking like its being drawn?

Many Thanks

View Replies !    View Related
How Do You Make This Effect (shimmer/bend Picture)?
I have no idea what to call it, but how do you do the page transition on this site (http://www.sivuplay.com/sivuplay.htm) by LiquidChrome.net? Can anyone help me out? Thanks!

View Replies !    View Related
How Do You Make This Effect (shimmer/bend Picture)?
I have no idea what to call it, but how do you do the page transition on this site (http://www.sivuplay.com/sivuplay.htm) by LiquidChrome.net? Can anyone help me out? Thanks!

View Replies !    View Related
How To Make Picture Album With Button Controls?
I'm trying to find out how to create an album of four pictures that you can advance with a button (like a media player button) to the next photo, or go back to the previous photo by clicking a button on the bottom of the frame. Any Ideas where I can find a tutorial out there? Or can somebody show me how?

View Replies !    View Related
How Can I Make A Picture Viewer That Loads External Jpg Files?
I have started importing text from external TXT files into my flash movies, and I find that very handy as it is very easy to update the information on my flash pages that way.

Now I'd like to do the same with JPG files. I've tried that loadMovie("mypic.jpg","viewer") thing, but it didnt work for me. Is that only for Flash MX? I'm a Flash 5.0 user, so I hope not.

The best thing would be if the flash movie could autodetect all JPG files in a directory, and make their names into variables that can be loaded and displayed.

But my main problem now is displaying the external JPG file, so if the autodetect thing is too complicated dont bother with it. thx

View Replies !    View Related
Can Flash Make An Effective Random Picture Generator?
How can I make a random picture generator from flash?
If you could, I would ask for the script with instructions, as I'm totally new to scripting.
Would appreciate it lots.

View Replies !    View Related
Can Flash Make A Picture Of A Music File? That Squiggly Line...
I want flash to make a picture of the mp3 file. That squiggly line that represents the sound. Like on this page http://www.declan-software.com/japan...shots_djfc.htm

Can Flash do it or do I have to take pictures of every sound file in a sound editor to get that picture?

Glen Charles Rowell

View Replies !    View Related
Whats The Script To Make A Picture Blurry Or Faded Or Semi- Tranparent?
whats the script to make a picture blurry or faded or semi- tranparent?

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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>&nbsp;</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

View Replies !    View Related
Make FLV Loop
Is there a way to make an flv file loop?

View Replies !    View Related
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

View Replies !    View Related
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)

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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;
}



}

View Replies !    View Related
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.

View Replies !    View Related
How Can I Make This Loop Seemless?
ive gone through loads of tutorials, but just cant seem to get this loop to be smooth

added my fla for someone to look at thanks

View Replies !    View Related
After You AttachSound, How Do You Make It Loop?
OK, I know how to use attachSound to load a sound clip and then use start to get it to play. But how do I tell Flash to loop the clip continuously?

-= Dave= -

View Replies !    View Related
[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";
}
}

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved