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




Random Scene Selection



Hi Guys and Gals,

Is it possible to have a movie once it reaches the end of scene one to randomly play any of the other scenes that are in the movie?

This is driving me mad, I tried a random array in the gottoandplay(randomscene, 1) but the error says it must be contained in quotes.

TIA
Arakis



FlashKit > Flash Help > Flash MX
Posted on: 08-02-2002, 05:51 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Random Scene Selection
I am currently making a flash file which needs to randomly jump to one of 3 scenes

basically scene 1 is played and then must goto either scene 2,3 or 4 randomly

I was wondering if this is possible with some actionscript ?

Thanks in advance
welly

Random Scene Selection - With A Twist
Hi i am trying to select a random scene (out of 4 scenes)

I have got this to work by when user clicks on a button action sends them to a random frame eg frame 10-13. each frame has a goto and play scene action on it!

This works well, however!

I want it to randomly choose from firstly 4 scenes. then when one is chosen, i want it to choose randomly from the 3 unchosen scenes, and so on untill all 4 scenes have been chosen. Then it must be able to choose from all 4 scenes again.

Please help me !!!!!
I need this for a University assignment! My tutors cant help me!

Thanks

Sequential Selection Vs Random Button Selection
I am missing something here. I have several buttons associated with several movies. When the buttons are selected in sequential order they play the appropriate movies

When the buttons are selected out of order (in random fashion) the selected movie does not play.

Any solution is appreciated

Code snippet follows:

//When button1 is selected bluemovie plays and then when button2 is selected pinkmovie plays
// However if button2 is selected before button1 pinkmovie does not play.


button1.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip1);
function startClip1(event:MouseEvent):void{


bluemovie.play();



button2.addEventListener(MouseEvent.MOUSE_DOWN,sta rtClip2);
function startClip2(event:MouseEvent):void{

pinkmovie.play();

}
}

Scene Selection
This is way dumb but I cant find it. Where do you go to change scene. For ex. I add scene 2 how do I get back to scene 1. Thanks David

Scene Selection
OK, so I've been working on my cartoon for a few months now and I want to put in a DVD type of scene selection in the preloader. I made the buttons and copied the frames for the animation and put it into a movieclip which I put into the over stage on my button. I have 6 buttons total, however the preloader is now 1 meg and that is way too big. Most of the frames being copied have a lot more scenery/animation than the 600x300 window displays and that's what is bogging down everything.

Does anyone know of a way to take a handful of frames on many layers and make a little button/MC so to speak which would display what is only in the visible part of the stage without copying them over?

Automatic Scene Selection - HELP
I have multiple scenes, in the first scene you can select the order in which to display the rest of the scenes. So lets say you can select from Scene "a", "b", and "c", you can select "b" to display first than "a" and than "c". so when you get to the end of each scene it will automatically go to the following scene chosen by the user. I am using a function, but its not working cause flash asks that the scene be a quoted sting, which makes sense, but how else can i do this?


Code:
function nextScene(whichOne){
gotoAndPlay(whichOne, 1);
}
obviously when you use any of the goto's and you choose a scene it has to be a quoted sting, but in the function the parameter will be a variable that will contain the string, and when a function is invoked, that variable is solved before the statement is carried out, so when it is executed it will be a quoted sting.

I got it all down, the only thing i am missing is a way to have it go from one scene to the other :-/
PLEASE HELP.

Combo Box Scene Selection
hi all,

i'm creating a scene where the user selects an item from a combo box then clicks the 'go' button and the project moves to the selected scene.

i've searched tutorials but cannot find anything for this, its more than likely staring me in the face but can anyone guide me on this one.

all help well appreciated

Combo Box Scene Selection
hi all,

i'm creating a scene where the user selects an item from a combo box then clicks the 'go' button and the project moves to the selected scene.

i've searched tutorials but cannot find anything for this, its more than likely staring me in the face but can anyone guide me on this one.

all help well appreciated

FLV Cue Points - Scene Selection
I have an FLV file which plays back using the playback component.

I have added cue points into the FLV file.

I would like to create buttons that will go to the specified cue points. So If someone clicks on a button, it takes them to that part of the video. (kind of like a dvd scene selection menu).

Is this even possible? How would I go about doing it?

Thanks!

Scene Selection When Loading Movie
How do you call to a specific scene which is loaded on
a seperate level...

I can not seem to get my button to work with a movie
that is loaded on another level.

LoadMovie("blah.swf",2);

Is their a way to just call to the scene within this one line of code????

Fredsega@telocity.com

Running Animation After Scene Selection
Hi

I want to run a animation after I pres a button to go to antoher scene.
How can I do this???
I really tried alot. If anyone knows please tell me.


I have made in flash 5 scenes. Every scene starts with a video and a menu that's slides in from the side. The menu consists of 5 buttons each link to another scene. I used the goto and play script.
I you press a button then first the menu should slide away out of side before going to the chosen scene.


If anyone knows how to do this please let me know.

greetings Alastair

[F8] Timed Intervals Between Scenes And Scene Selection.
Hello all,

I am currently using Macromedia Flash Basic 8.

Let me start by giving a reference as to what I’m trying to achieve. If you go to http://www.bestbuy.com/ and view their flash movie on the main page, this is exactly what I’m trying to do, but have been running into some trouble. They have 4 scenes that play continuously with timed periods at the end and they have 4 buttons that can jump to any of the scenes. I currently have this actionscript at the end of each scene:

stop();
var interval:Number = setInterval(function ():Void {
play();
clearInterval(interval);
}, 10000);
}

This code gives me the time I’m looking for in between each scene without creating a ton of frames, but I can’t figure out the code for the scene selection buttons to go to the specific scene, kill the timer, and stop that scene from playing to the next. Can someone help me? And I hope I described my problem well enough.

<mod edit> Please post your question only once as per the rules. - gerbick (supermod)

Random Mc Selection
My actionscripting skill are terrible! Pls help....

I think this should be a fairly simple bit of code, but when it comes to 'random' I get v confused.

Basic idea:
Create a 'quote's ticker' which draws in random quotes and scrolls each upwards accross the stage.
*This is not drawing in text from an external file.*
The 'quotes' are simply saved as mc's in the library name news01, news02 etc. Each mc also has been exported for actionscript with suitable identifiers ('news01_mc', etc).

Each of the 'quotes' mc's are drawn into another mc called quotesTicker_mc.

Is there any way of randomly drawing into this clip one of the 12 quotes mc's, have it scroll up the page, then (once vanished off the top) the ticker_mc loops back to the beginning and grabs another random quote and starts all over again??

If there is a tutorial I have missed which I could draw some actionscript from I would very much appreciate a point in the right direction. I have searched a few sites as well as this and have come up with nowt suitable.

Thanks...

Random Selection
Hello;
I'm creating a quize but I have a problem.
I have 10 MCs in the Library (I didn't put them on the stage) and tree main MC in the Stage .. I want to select three MCs from those 10 MCs randomly and attach them to the main three MCs on the stage randomly too.

so I have to do two random select :
1- when I select from the library .
2- when I attach the selected three MCs to the stage.

Anyone can help me with this Please .

Random Selection
Hi guys

How can i place a script that would choose different symbols or mc's by random, eg i load a frame and it chooses one mc out of ten by random selection, how can this be done?

Random Selection
Hi All
There are times when you just cannot find the solution, and I have tried so please can anybody help me with some coding.

My new project is to produce a football cup draw in flash starting with 80 teams in Round 1, then 40 teams in Round 2 leaving 20 teams to join another 44 teams in Round 3, Round 4 32, Round 5 16, Round 6 8, Semi-Final 4, and Final with 2.

N0 of teams 124, when Round 1 is played a random number is attached to each team thus leaving a winner to go forward into Round 2. In the event of a tie them teams will a recieve a furthur random number attached untill there is a winner. And so on until there are just 2 teams in the final that will eventually produce a winner. Hope I am making sense.

What I need is a random selection code that will place each draw in two text fiekds. I have used
<code>var randomPick:Number = Math.round(Math.random()*80);</code>
and used a trace to output a number which works but I need to get these number (teams) into text fields.
Can I use XML data?

I use Flash 8 AS2 or 3.

Any help to start me off would be much appreciated.
Bern

Random Selection Of A Frame In A MC?
Hey y'all, is it possible to take a MC with 100 frames, each w/ a stop action, and have it goto a random frame number each time that mc is loaded? Have no idea how to do this, but I'm pretty sure it's possible.

Thanks

xissue

Random Selection Of Pictures ?
ok i have a movie clip made up of 5 frames in total, on each frame there is a diffrent image, now how can i randomly show the images in a constant random order rather than the clip play like.... frame 1, frame 2 ect

Hope u can help

Random Number Selection
I need a random value between -200 to 200.
Not sure how to code this. I know how to get a random number between 0 - 200.

random(200);

what about negative numbers too...??

Cheers people.

Regards Bruce

Random Image Selection
I need my flash movie to randomly cycle through 3+ background images upon refresh. Any suggestions?

Thanks

Random Movieclip Selection
Hi,

I'm working on a game in which men will be running out of a house (the user will be grabbing the men and dropping them back into the house), but...I suck.

I'd like to have 10 assorted "men" (movie clips), and have flash randomly decide which "man" to play on stage. That would be fairly simply, except that I want many of these guys onstage at any given time (so I can't just have flash randomly choose between keyframes, each of which has 1 different guy onstage). And I've found code for creating random movements of snowflakes and things like that, which I suppose I could use except that I want all these "men" to have the same point of origin onstage and then run (randomly) offstage from there.

Can anyone help me figure this out? I hope this post makes sense.

Thanks, you people rock.

Random Picture Selection
Hello everyone..

Does anyone know how to do random picture selection on a flash page so that each time it loads it selects one from certain amount on web page?

thanks in advance for your help.

peace

Random Button Selection
Hi,

I have a movie with 16 buttons.
Each button plays a sound clip in it's "over" state.

I'd like to have a new button that when the user clicks, it will "play" (mouse over??) the 16 buttons in a random order.

Any idea how I can go about this???

Thank you,
paris

Non-repeating Random Selection
I've been using the below script to select a number at random to play various frames that I've listed in the array. I would like however to set up a non-repeating selection. For example the numbers are selected but none are repeated until the array is exhausted. Then the cycle starts again. Real new to Flash. Thanks!

Wendell




var aLabels = new Array("start", "eyeblink", "start", "timturn", "eyeshift", "start", "eyeblink2");
{
var nRandom = Math.floor(Math.random() * aLabels.length);
gotoAndPlay(aLabels[nRandom]);
};

Random Track Selection
random track selection
I have an mp3 streming into my site when it loads using the following code on the first frame of the movie

myMusic02 = new Sound();
myMusic02.loadSound("http://www.markwaterfield.com/music/out of osaka.mp3", true);

this works fine but I have been trying to find a way to put a selection of mp3s on line and randomise the code it so it starts with a different one each time and then selects another when the first is is finished.
Can anyone help at all?
Thanks a lot
mark

Random Image Selection
I was reading through the previous posts and found a way to sort an array of images randomly, but how is it possible to select a random image from an array and return that selection as a string? i think i almost have it, i just dont know what to puf in place of the "sort" comand


Code:
var randomImagArray = ['images/1.png', 'images/2.png','images/3.png','images/4.png','images/5.png','images/6.png','images/7.png','images/8.png',];
randomImageArray.sort(randomSort);
function randomSort() {
return random(1);
}



can someone help me out with this? and if this isnt the best way to do it can you tell me how?

thanks a lot


Chris

Random Variable Selection
Hi! I'm new in this forum. I have a question. I have a text file named "Facts.txt" and I'm storing my variables in there. Example:
&S1="This is string 1"
&S2="This is string 2"
etc..
I load my variables into my document by writing loadVariablesNum("Facts.txt",0).
That's fine, I have a dynamic textfield with the "fact" variable assigned, I want that when my animation is running, It choose randomly a string and show it into the "fact" textfield.
The number of variables in my text document will change so I can't put a "select" procedure.

Can anyone help me with this please?

Thank you
PS: I'm learning English so I apologize for my horrible grammar

Random Frame Selection
I have a graphic set to swap single frames. Inside the graphic, I have 10 movie clips each on a different frame. I would like to implement some sort of actionscript that would choose a random frame of the graphic to play during the movie. Can anybody suggest how I might go about doing this? I'm using Flash MX 6

Thanks in advance. If more explanation is needed, please let me know.

Simple Random Selection
Hi guys,

I have six external flash video files, i need to load one in and have it playback. The selection needs to be random or in order, but never the same file.

The files are located in a folder at the sites route.

Its my first post and I am quite new to Flash, using Flash 8 Professional.

I look forward to hearing from you,

Ray.

Random Image Selection
Hi

I have an array which contains the names of images(more than 5). I want to choose 5 images at random to display, without repetition. I can get it to choose 5 images but not without repetition. Can someone please help me?

Random Selection From Three Choices
i need to be able to make a random selection from three choices. Basically i'll have three seperate .swfs (probably named "1.swf, 2.swf, 3.swf") and also three separate mp3 files (probably named same way).

The container .swf will have a function which will probably make a 'random' selection from the three .swfs of which one to load and also make a 'random' selection from one of three mp3 files to load.

no clue how to do this (the random part). can anyone help?

Random Function Selection
hello,

I am trying to get a random MC to play every 15 seconds. Using setInterval.

Here is my code >
What seems to be incorrect is that the setInterval doesnt seem to be collecting the function which starts the MC.

function car1(){
car_mc._x = 1130;
car_mc.tween("_x",-300,4,"easeinSine");
}
function car2(){
car_mc._x = 1130;
car_mc.tween("_x",-400,4,"easeoutSine");
}
function automob(){
var ran:Number = Math.ceil(Math.random()*2);
car[ran]();
trace (ran);
trace (car[ran]);
}
setInterval(automob,15000);

Multiple Random Node Selection
I am trying to figure out how to populate a load of dyn text fields with data taken from an external XML file. I can bring in the XML and populate etc... but it random thing that's throwing me.

I know a fair bit about XML and flash, but I'm not clever by any means! Does anyone know of any good sites that might help - or indeed does anybody know the answer!

Gryllsie

Random Selection Of Tell Target Movies
How can I randomly select one of 4 tell target movies?
(Flash MX Actionscript)

Random Selection Of 4 Tell Target Movies
How do I randomly select 1 of 4 tell target movies?
(Flash MX Actionscript)

XML MP3 Player Help With Random Selection Corresponding To Buttons
So this is a bit of an unusual problem. I am building an XML based MP3 player. I'm fairly inexperienced with Actionscript, so I copied the code from a friends music player.

The code works great - but the player I am making also has 'highlightable' buttons for each song. It is easy enough to get these buttons to highlight when clicked. However, when first opening the player, it opens a song randomly but obviously the song's button is not highlighted.

Is there a way to have the player highlight the corresponding button when opening?

The cop-out solution would be to just have it open the first song every time. But the random selection could really make returning to the site a new experience.

Here is the code I'm using for the XML player. Does anyone have any suggestions?

playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text = name;
} else {
this._parent.display_txt.text = "loading...";
}
};
this.sound_obj.onSoundComplete = function() {
(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfiles[song_nr], songname[song_nr]);
};



that's it... thank you,

Aaron

A Selection Of Blocks Random On Stage
maybe someone can help me a little with a function for this:

i have a number of movieclips. let's say 20.
every movieclip contains one black block - and they're all different in size.

i want to put them one by one in random order on the stage until the space on the stage is filled like this:
http://www.kulsdom.com/newstoday/blocks.gif

in other words: when only 4 movieclips fits on the stage it shows 4 movieclips, when 8 movieclips fits... etc etc

and i don't want them to overlap each other...
how could this be done?

Random Selection Of Tell Target Movies
How can I randomly select one of 4 tell target movies?
(Flash MX Actionscript)

Random Selection Of 4 Tell Target Movies
How do I randomly select 1 of 4 tell target movies?
(Flash MX Actionscript)

Random Selection Based On Frequency?
I have an array of 20 strings.
I have to randomly select 1 of them, the problem is that it needs to be based on it's frequency...

Each string has it's own frequency, which is a value out of 10000, that it should appear.
(More than 1 value can have the same frequency, though.)

The lower the frequency, the less likely it is that it will be chosen.
Eg:
some of the values would have a frequency of 1/10000 (so not very likely to be chosen)
some would have a value of 1000/10000 (more likely to be chosen)

So there are only 20 values, I can hardcode the string values and frequency for each one in my app.
I can easily select a random one, but I have no idea how to start with the frequency issue.

The frequencies for each string will all add up to the total frequency amount (10000).

So, I need to select a random string, but the decision has to lean more to a certain values.

HELP: Random Selection Of Specific Frames To Start MC
Hi,

i posted this about a week ago and am still having trouble. I have 5 MC's on a timeline. I would like the movie to randomly select which frame to start from each time someone visits, but from a selected group of frames.

For ease, lets say I need the MC to start on either frames 5, 10, 15 or 20 at random. Someone posted this script:

// pick a random number and store it in the variable "randomnumber"
randomnumber = random(4);
// Make some if statements

if (randomnumber=1)
gotoandstop(5);
else if (randomnumber=2)
gotoandstop(10);
else if (randomnumber=3)
gotoandstop(15);
else if (randomnumber=4)
gotoandstop(20);

but it seems incomplete and doesn't work... PLEASE HELP!

much obliged...

Easy Random Frame Selection (no Repeats)
I have searched for the past hour on this topic and still have not gotton the answer I need. I have a movie. It has 18 frames. I would like the user to click on a button and when they do, be taken to a random frame within these 18. When they click again, another random frame will appear. No frame can be repeated, and when all the frames have been used, then I need the user to be sent to the 19th frame. Using what I learned in this forum, I have set up an array in the first frame of the movie:

code: Mytrans = new Array(1,2,3,4,5,6,7,8,9);

The button has the following:

code:
on (release) {
num = Math.floor(Math.random()*Mytrans.length+1);
targframe = Mytrans.splice(num,1);
gotoAndStop(targframe);
}


It sort of works, but still repeats, and obviously does not have the code to jump to the final frame.

Any ideas???

Pause / Random Element Selection Problem.
Hi. i'm not really very advanced in actionscripting but i tried to do this 3d movement with a short pause each time some image come to front. what it does now is that it's working perfectly just you have to click on some image to get to movement to continue. How do i get the movement to go on without having to click on the image? and it should also keep a short pause each time an element comes to front.

Thanks for the help!

The code that I have is like this.

// create a scene movieclip to contain all 3D elements
// and center it on the screen.
this.createEmptyMovieClip("theScene",1);
theScene.width = 1000;
theScene.height = 800;
theScene._x = 600;
theScene._y = 190;
theScene.depth = 1; // variable to control depth placement

// defines function to set the target of the cameraView
// when you select the star (onPress)

selectStar = function(){
cameraView.target.x = this.x;
cameraView.target.y = this.y;
cameraView.target.z = this.z;
}

// this is the function for displaying the star onscreen

displayStar = function(cameraView, focalLength){
var x = this.x - cameraView.x;
var y = this.y - cameraView.y;
var z = this.z - cameraView.z;
if (z < 0){
this.z += 5000;
this.x = 1500-Math.random()*6000;
this.y = 0;
x = this.x - cameraView.x;
y = this.y - cameraView.y;
z = this.z - cameraView.z;
}
var scaleRatio = focalLength/(focalLength + z);
this._x = x * scaleRatio;
this._y = y * scaleRatio;
this._xscale = this._yscale = 100 * scaleRatio;
this.swapDepths(Math.round(-z));

};

// define array to hold the objects in the scene
objectsInScene = new Array();

// loop through and create 10 stars randomly in the scene
var p = 5;
for (i=1; i<=6; i++){
attachedObj = theScene.attachMovie("star"+p, "star"+String(p)+String(i), theScene.depth + String(p));
attachedObj.x = 350 - Math.random()*1000;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);
clearInterval(p);
}

var n = 4;
for (i=1; i<=5; i++){
attachedObj = theScene.attachMovie("star"+n, "star"+String(n)+String(i), theScene.depth + String(n));
attachedObj.x = 550 - Math.random()*500;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);
}


var m = 3;
for (i=1; i<=4; i++){
attachedObj = theScene.attachMovie("star"+m, "star"+String(m)+String(i), theScene.depth + String(m));
attachedObj.x = 250 - Math.random()*500;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);
}

var j = 2;
for (i=1; i<=3; i++){
attachedObj = theScene.attachMovie("star"+j, "star"+String(j)+String(i), theScene.depth + String(j));
attachedObj.x = 250 - Math.random()*500;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);
}

var k = 1;
for (i=1; i<=2; i++){
attachedObj = theScene.attachMovie("star"+k, "star"+String(k)+String(i), theScene.depth + String(k));
attachedObj.x = 450 - Math.random()*500;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);
}

for (i=1; i<=1; i++){
attachedObj = theScene.attachMovie("star", "star"+i, theScene.depth++);
attachedObj.x = 250 - Math.random()*500;
attachedObj.y = 0;
attachedObj.z = i*500;
attachedObj.onPress = selectStar;
attachedObj.display = displayStar;

objectsInScene.push(attachedObj, attachedTextObj);

}



cameraView = new Object();
cameraView.x = 0;
cameraView.y = 0;
cameraView.z = 0;
// set a target object in the cameraView to represent the positions
// the camera is easing to in its movement
cameraView.target = new Object();
cameraView.target.x = -20;
cameraView.target.y = 0;
cameraView.target.z = 500;

//if (cameraView.target.z = 500) {
//cameraView.target.z = cameraView.target.z - 500;
//}


// define focal length
focalLength = 400;

// function controlling the camera ease and all displaying
// for objects in the objectsInScene array
easeToTarget = function(){
// ease each camera point to its target point
cameraView.x += (cameraView.target.x - cameraView.x)/5;
cameraView.y += (cameraView.target.y - cameraView.y)/5;
cameraView.z += (cameraView.target.z - cameraView.z)/5;

// run the display function for each object in objectsInScene array
for (var i=0; i<objectsInScene.length; i++){
objectsInScene[i].display(cameraView, focalLength, alphaRatio);
}
};

theScene.onEnterFrame = easeToTarget;

Random Frame Selection Syntax Error
var frameArray:Array = new Array(23, 1, 34, 18, 27, 31, 42);
function randFrame():Void{
var whereFrame:Number = Math.floor(Math.random()*frameArray.length
)
_root.gotoAndStop(frameArray[whereFrame]);
frameArray.splice(whereFrame, 1);

(There is a syntax error in this script. What is the error?)

Selection Prototype? - Restrict Selection In A Specific Area Of A Textfield?
Hi,
Does anyone know how to restrict selection in a specific area of a textfield? I am making a shell emulator and I want to keep users from selecting anything except the current line of text.
~Dev

Random Scene
Hi there ppl, i have this code now.

on (release) {
gotoAndPlay("Scene 2", 1);
}


But instead of going to Scene 2, i want it to go to Random scene... how can i do that?

Random Scene
Hi all,

I need a little help. I need that when i push the button, i have to go to random scene from 2 to 7. Or like from 7 to 14. ( i need to go like 6 or 8 or 11 etc..)

I made a script to go to random frames :

on (release){
what_number = Number(random(10))+1;
tellTarget ("") {
gotoAndStop(_root.what_number);
}
}


Anyway please tell me a scrip that click on a button and go to random sceen, thank u

P.S sorry for bad english

Random Scene
I want to make a flash file that when started, chooses random scenes to open. Each scene will consist of an image fading in, holding, and fading out.

How would I do this? (I need step by step instructions, I have not used Flash CS3 before)

Random Scene
I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

Copyright © 2005-08 www.BigResource.com, All rights reserved