Creating A RANDOM Start Up Page For My Flash Movie...
I have a movie that contains 5 pages and a menu barthat jumps from each page.by default the movie stops at page 1 due to the current time line stop( ) ;command set in the page 1 cell.how can i change the stop ( ) ;so that it stops randomly at either page 1, 2, 3, 4 or 5 (cell 1, 2, 3, 4 or 5)help truely appreciated...
Adobe > ActionScript 1 and 2
Posted on: 12/05/2006 08:46:57 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Creating A Random Start
Hello,
I have three different texts I would like to have randomly selected to appear on frame one of the MC they're inside of. I thought if I used dynamic text inside the MC I could have an actionScript randomly call one of the three texts to appear in the dynamic text window, but I'm having trouble with the script. Here's a start though it isn't functioning (I've attached the .fla):
txt1 = "first text appears here";
txt2 = "second text appears here";
txt3 = "third text appears here";
var i:Number = Math.ceil(Math.random()*3);
mc.mc_text = eval("txt"+i);
Perhaps a simpler design without the dynamic text could have texts 1-3 inside the MC on frames 1-3, and when the MC loaded, a script could randomly direct frame 1, 2, or 3 to be the starting frame. Again, I'm not sure how to script the random function...
Any help would be appreciated. Thanks,
Llyfre
Creating A Flash Game, Buttons Pressed = Play Movie Clip, Stuck On How To Start
Hello All, as it's Christmas time, the time of goodwill to all, I thought now would be the best opportunity to post this 'plea for help'. Don't worry I'm not asking you to create it for me I'm just looking for a 'heads up', or for (metaphorically speaking) someone to show me the door so I can walk through it.
Basically I need a wee bit of help on what I actually need, how I need to go about creating it, where I need to put it, and so forth.
Feel free to call me 'stupid' or 'moron' throughout this thread as I have accepted that in doing something like this is completely beyond my capabilities, but hey, if I get a step in the right direction I may just pull it off.
---------------------------------------------------
Right I'm basically trying to create a penalty shoot out game, where the gamer has the best of 20 penalties to score a goal.
What I planned to do goes a little something like this.
Game loads
Screen pops up, saying "blah blah blah welcome, instructions, blah blah blah"
"Please enter your name" (User enters name in a text field, this is stored)
"Please enter your team" (User enters team name in a text field, this is stored)
"Please choose difficulty" (dropdown list of either 1. Easy, 2. Medium, 3. Hard)
User then has to press 9, and the title screen goes away and the game starts.
Scoreboard at the top of the screen, a goal, a ball and a keeper on the game screen.
Scoreboard states how many penalties taken (starts at 0) and how many scored (starts at 0).
The user has the option of pressing 1,2,3,4,5 and 6 (this is where the football will go, e.g. 1 = bottom left, 2 = bottom middle, 6 = top right etc)
The user makes their choice and presses the button.
A random number is generated between 0 and 10. if difficulty is easy then any number between 1 and 9 is a goal, if difficulty is medium then any number between 1 and 7 is a goal, if difficutly is hard then any number between 1 and 5 is a goal.
Lets say the user pressed the number 4
if it is a goal then play movie clip goal4 and add 1 to the penalties taken and add 1 to score.
if it is a miss (e.g random number is 8,9 or 10) then play movie clip miss4 and add 1 to the penalties taken and 0 to the score.
Once the penalties taken = 20, then end the game.
THE END
---------------------------------------------------
Sorry if that's bored you to death, feel free to ignore it and get on with your lives whilst I wake up in a ditch somewhere on xmas day due to not being to create this simple game as I didn't know where to start etc, and spend the rest of my life on the street corners begging for money to feed my drug habit and gambling addiction.
In all seriousness though, have a merry christmas everyone and have an even better christmas if you actually help me out.
Random Flash Movie On Page
I have a flash movie that says ENTER SITE>>>, before people can get into the main page, i have like 15 movies to place there and i want them to be played randomly everytime someone enters the site, how do i make this, kind of like the Flash banners in this page, they are always placed randomly...
Thanks....
Creating A Flash Movie That Overlaps Part Of The Rest Of The Web Page When You Rollov
I am fairly new to flash and was wondering if someone could help me to find a tutorial or tell me how to design a flash movie that gets bigger and looks like it is coming off the stage. It overlaps some of the rest of the web page that is done in something other than flash. A lot of the movie trailers that are done in flash have this effect when you mouse over them. Any help would be greatly appreciated and I hope you can understand what i am asking in my question.
Thank you
Creating A Partialy Transluscent Flash Movie That Will Play Over A Html Page.
I would like to know if anyone can tell me how to make a flash movie be transluscent over a html page. For example: You go to yahoo.com and you see this partialy transluscent flash banner expand itself over the html page. You can still see the yahoo text and links in the back of the expanded banner. I'm sure you have seen this effect many time at yahoo and many other sites. Just how do they do it?
Loading A Movie (within A Movie) & Assigning A Random Start Frame
Flash 5
Hello everyone.
After taking almost a year off from web programming Im relearning flash :0
I haven't gone past the basics with Flash 5 and have a couple projects coming up.
The routine I wish Flash 5 to do should be something simple to explain I hope for a vetrin user.
1) Flash Movie A (180 x 60) loads Flash Movie B (60x60) into left most space (say slot 1) and then randomly tells Flash Movie B to start at a particual frame (random(8). Each frame is a simple image with an actionscript Stop; command).
2) Flash Movie A fades in 1st Flash Movie B at slot 1.
3) Flash Movie A loads another Flash Movie B in the middle space (slot 2) and once again randomly tells Flash Movie B to starts at a particual frame (random(8) (just a static picture like in 1).
3) Flash Movie A fades in 2nd Flash Movie B at slot 2.
4) Flash Movie A loads another Flash Movie B into the far right space (slot 3) like the others (tells Movie B which random frame to start at).
5) Flash Movie A fades in 3rd Flash Movie B at slot 3.
My feeble mind is having a problem telling:
1) Where to tell Flash Movie A to position each load of Flash Movie B.
2) How to tell Flash Movie B I wan't it to start at a random frame.
I have the fade in and fade out set
also.... slightly more complex.. Does anyone have experience in doing somethnig similar to this and setting a variable to define which random numbers were selected for each slide so they will not repeat. (i.e. after loading slot 1 it will also define 'slot1' at the same time it creates that random number for slot1 and so on).
TIA
Dan
Start Movie On A Random Frame?
I've seen similar posts to this - but none really accomplish what i want - which I hope is fairly simple.
I have a simple movie that is a series of pictures fading in and out. Each picture begins at 10% opacity, goes to 100% and then back to 10% and then the next picture... and so on.
I've labeled the beginning frames of each picture as "a" through "v" (792 total frames)
Can I put a script in the first frame which will start the movie on a random labeled frame each time the web page is refreshed?
I'm just above beginning with actionscript. I'm using Flash MX.
Thanks.
Random Sound Clip At Start Of Movie... Possible?
hey, is it possible to use somekinda actionscript to randomly load say, from 3 MP3 clips (either exterior or interior) at the start of a movie, like a preloader?
would be nice.. just havn't seen it done before.
Start Movie Clip Instances At Random
i have a movie clip of a rotating wind turbine that i want to be used in a field of turbines.
the problem is that when i put the turbines onto the stage they all run at the same speed with the blades all turning together which doesn't look natural.
how do i get them to turn at different start times (not necessarily different speeds)?
Start From A Random Frame When Movie Loads..
Hello to all!
Let's cut to the chase... I have a flash movie where I would like when it loads to take the user to a random frame specified by some numbers... Say I want the movie to start either from frame 14, or 54, or 79; there should be a way to put all these numbers into variables and I guess call them randomly using Math.round() function but how I put it at the gotoAndPlay() funtcion so the movie will go at the frame from the specified random number?
Any help will be very apreciated!
Random Start Point In A Looping Movie
Hi all-
I have created a Flash movie that loops. The animation is a simple frame by frame animation with a few tweens here and there. My Question is this: Is there a way that the movie can start at a random keyframe everytime the page is visited? Any help would be greatly appreciated.
[MX04] Random Number Generator Tells A Movie Clip To Start
I have a movie clip. In it i am trying to get a dynamic text box to constantly generate random numbers. When it finds a certain number i want it to make a movie clip play.
I am using:
onClipEvent (enterFrame);
_root.randomtext = random (10);
If (_root.randomtext == 4)
gotoAndPlay ("start clip");
}}
The problem is the text box will sometimes generate only ONE number or none at all. Please help.
Random Start Of Flash
I am totally new to this and need some help.
I have a flash that contains a number of pictures. I want it to show a random picture on each load/reload of my pages on 3 places. I have tried some of the downloads and tutorials and help files, but still don't get it to work.
Here you can see what I mean www.iggnorge.com . The flash is to be put on the top of the page replacing the .jpg I have there now.
Any help is appreciated.
Flash 8: Random Start With Control
I have a simple movie were I load one picture after the other with an alpha motion tween in between. I load the external pictures into a movieclip. I want to use this to promote six differemt blogs on my site. But it doesn't look so dynamic as it always start with the same picture, I have tried an Action script to start the movie on a totally radom keyframe. And it works but often leaves the movie white for a while in the beginning since it starts without loading a picture if it doesn't starts on a keyframe with the loading ActionScript.
So - to get to the point... How can i get my movie to start radomly on keyframe 1 or 100 or 200 or 300...?
(HUGE) How To Go About Creating A Flash Site From Start To Finish
Hi, all.
Sometimes i find myself questioning whether i'm going about a flash site the most efficient or streamlined way. So, I'd like to explore different ideas behind the Process of completing a flash website from start to finish.
For example sake. How would you complete this site:
Imaginary Client Asks:I need a killer flash website with 4 pages.
-Home Page
-About Us Page
-Photo/Sound Gallery
-Contact PageBe as descriptive and as possible of your process and perhaps even why it may be better than other processes. (Maybe some ways save time, limit rework, or spurn creativity, i dunno)
I'll share my own soon once i have a good chance, i just had the idea so i came to post it.
Creating A Random Psychedelic Movie
Hi there! I have been trying to figure out how to make a psychedelic movie for quite some time now, but can't figure it out. What I'm trying to create is kinda like what you'd see on the screen at a Grateful Dead show. You know, with all the wierd trippy colors moving and changing shape. I have no idea where to beging with this. Any help would be great! I'd like to make it randomly change. Thanks in advance =)
Random Movie Clip Creating
I need help making a game where a object is randomly created (or duplicated if I put the movie clip at one of the sides)
Here is a good example of random movie clip creating or duplicating.
http://www.freeworldgroup.com/freega...ic4/index.html
Plz help
Creating Random Words Using Movie Clips?
Hi
I have been making a memory game, where words are shown to the user. Once they have memorised the words they go to the next screen where the words that they have memorised are shown. They then have to drag each word into a "correct" place and a "wrong" place. I now want to edit it so that I can use two arrays one for correct words and one for wrong words. I want to generate random words from each of these arrays. I have sort of worked out how this is possible to do but using dynamic text, but am I correct in thinking that the whole dragging the words thing is not possible with dynamic text. (I may be wrong though, I am quite new to flash). Are you able to do this with movie clips, or can anyone advise me on how it would be possible to do this?
Thanks
Peter
CCNA, Cisco Qualified Specialist
Flash Start Page Has Missing Graphic
Does anyone else see this? The "Start Page' that is displayed after launching Flash Professional 8 displays a white rectangular graphic in the upper left-hand corner that covers up the red banner. The graphic is all white excpet for the reddish-orange flash "F" symbol. It's as if it is downloaded because there is an instant before it is displayed that I can see the Flash Professional banner that's underneath. Not really a functional problem but somewhat annoying to look at. How can I fixt this?
To Not Reload From Start Flash Animation On Web Page
Hi,
I've done a nice flash animation which is in fact an ad banner.
This banner should be displayed on my customer website in each pages.
However, in order to be sure that customers of my client will see the
whole flash animation, i would like to be sure that it's not reloaded
from the first frame.
is there something like a frames counter which can be memorized by PHP
pages server ?
i mean on page welcome.php, my banner will be displayed.
let's say that after few seconds (35 frames for example), the customer
click on a link "prices.php".
on this prices.php page my ad banner is once again displayed, but i
would like to make sure it starts from frame 36 for example, and not
from frame 1.
how can i do that ?
thanks a lot,
RAF
Synchronizing Start Of 2 Flash Movies In A HTML Page
Hi,
I have built an HTML document and inserted 2 seperate flashmovies. My question is, how can I synchronize the start of both movies so that they start at the same time when they are both done loading. They differ in filesize (20kb and 80kb), so right now one movie starts playing slightly earlier than the other. Not good.
I know it can be done with fscommand's and javascript, but unfortunately I don't know how. I'm not very good at scripting. Can someone help me? Or is there a standard script I can download somewhere?
Thx.
Rico
Start Flash Once Entire Html Page Is Loaded
How can I tell my flash file to either load after all the other images on my page load, or have the flash file "play" after all the other images have loaded?
Please tell me where a tutorial is or how to look up specific instructions.
Currently the flash movie starts before most of the other images load.
Thanks.
Looking For A Code To Make The Flash Animation Start At A Random Key Frame
I have a image slideshow set up on a time line. Each image is on a different layer and I am looking for a code to make the flash animation start at a random key frame every time the page is loaded. Here is a link to the site I am working on:
https://jag-designs.sslpowered.com/u...ood/index.html
Thanks for your help!
Help With Creating Web Page With Flash
Okey. I want to make a web page with flash.
I got flash two-three weeks ago so I don't know so extreme much, but I know how to handle actionscripts and things like that.
I want to make a page with a scroll window and links up to that. I have made a flash movie with a scroll window that works. But I don't know how to get several pages inside that.
That may have sound a bit weird......
Take a look at this page:
http://www.pepsi.no/
It's the norwegian page for Pepsi.
How can I get something like that??
With menu's and stuff....
Is there any tutorial that explain how to get something like that. Then I don't mean the effects, but the text window.
I'm no expert so I don't know.
Somebody know anything??
When Creating A Flash Web Page?
Hello,
I'm attempting to create my first Flash web page so I can display my design portfolio.
Is there a preferable size for the main page? For example is 650 pixels wide a good starting point. I will have things broken up in that 650 box - it is not just one big flash file. Also, does anyone know of a good way in Flash to display artwork (i.e. slide show or scrolling show)?
I don't want to get too fancy, but I do have quite a bit of finshed artwork that I would like to display. Any help/suggestion are greatly appreciated.
Thanks,
mdeluise
[CS3] Creating A Flash Bio Page...
Hello,
I am new to flash and one of my clients wants to create a bio page that looks similar to the one on the link below.
Instead of a map it would be an image of a group of people, and when you clicked on a particular person a bio of that person would pop up. So that you do not navigate away from the current page you are on.
I am just looking for some insight on how involved this would be and any direction to tutorials that may help.
http://www.christiansurfers.com/index.php
Thank you so much! Any advice is much appreciated.
Creating A Flash Page
Hi
I have a few questions regarding flash pages:
Is it ok to create hole pages in flash? I mean from a to z?
Is it better to use different frames or different scenes for sub pages?
Or is it best to use only one frame and make the hole thing is AS?
how do yo do it? tips are wellcome...
regards
Creating An XML Page In Flash MX, Help Please :@)
Hi guys,
Im trying to create a flash movie which can 'edit itself'. II beleive it is called a simple online content management system. i only want to use Flash and XML to aheive this. My thinking behind it was- To create a flash movie in which in one frame the user can enter the specific text they require into a text field and the image number they wish to be seen on this page (which will load dynamically using XML into flash), once the user has enetered these detaisl and proceeded this would dynamically write a new XML page to store this data which obviously can later be changed at the users discretion.
I hope I explained what I hope to achieve ;@)
I have intermediate experience in both Flash and XML and am keen to get this working (part of my final year project for my degree to get higher marks hehe) so far I cannot find any usefull information in any tutorial book from the library so Im looking at you guys here ^^
Any help or pointers in the write direction (such as tutorials or examples) to let me know if this can be acheieved and how would be fantastic.
Thx for any help, much apprechiated
Creating Random Quotes For Flash MX
Hello everyone,
Does anyone know where I can get some codes that will allow me to randomly display quotes (text) to a dymanic text field. I am pulling the data from a .txt file and I am using Flash MX
There is a tutorial in the tutorail section but I was not able to get it to work. I think it was for Flash 4 or 5
Thank you
Rewind, Pause, And Start Start Buttons For Base Movie And External Mov
I'm lost...
I have a base movie that contains three buttons (Rewind, Pause, and Start)
The code for the rewind button that sends the base movie to frame 2 which is set to play and then reloads the external movie (images/4_24.swf). works perfectly and is shown below.
on (release) {
gotoAndPlay(2);
}
on (release){
function test(){
_root.createEmptyMovieClip("container",25);
loadMovie("images/4_24.swf", "container");
container._x=15;
container._y = 95;
}
test();}
My question is does any one know how to now pause both the base and external movie with the pause button and then start both movies again with the start button???? Some how I need to control both movies with these three buttons.
Code for play button is ---
on (release) {
play();
}
Code for pause button is ---
on (release) {
stop();
}
Thank you MJR
Creating Random Flash Image Grid
I'm trying to create a 3x3 grid that would grab random JPGs each image would then have to link to a particular page.
img1 img2 img3
img4 img5 img6
img7 img8 img9
These images are not necessarily nicely squared to fit 9 to a page (like above) but may take up two rows at different times.
img1 img2 img3
img4 img5
img6 img7
Does anyone know where I can find a tutorial? EVerything i'm finding is to load single random images and searching "flash xml grid" gives me examples of excel type flash grids.
Thanks.
Creating A Flash Marquee That Fills A Page
My goal is to make a marquee with the words: "Great Stuff!".
What I want it to do is just keep coming on the screen from one side until it passes through and never ends. I want one line going right, and one going left, basically alternating marquees. The words are basically just repeating endlessly and heading two different directions.
I know this has to be done using actionscript but I need help with the code, I don't know how to do this and I need it for a personal project. I really appreciate any help here and I think it should be rather simple to do...
Thanks everyone.
Creating A Flash Marquee That Fills A Page
My goal is to make a marquee with the words: "Great Stuff!".
What I want it to do is just keep coming on the screen from one side until it passes through and never ends. I want one line going right, and one going left, basically alternating marquees. The words are basically just repeating endlessly and heading two different directions.
I know this has to be done using actionscript but I need help with the code, I don't know how to do this and I need it for a personal project. I really appreciate any help here and I think it should be rather simple to do...
Thanks everyone.
Creating A Page Layout Application In Flash
Ok, I'll try to explain this as best as I can...
I'm trying to create a web based application that acts very similarly to an InDesign or Publisher. It won't be near as complex, all I need to do is be able to create rich text boxes, and image boxes, and edit the contents of these boxes.
While that soaks in, I'll try and describe the class structure that I've come up with so far (I 've already written a display application that can read the xml and draw a screen, I'm just trying to create/edit screens now)
Code:
IMAGE_OBJECT (extends SCREEN_OBJECT)
SCREEN -> SCREEN_OBJECTS ->
TEXT_OBJECT (extends SCREEN_OBJECT)
Both IMAGE and TEXT objects contain params for x, y, width, and height. I want the edit application to support zooming the canvas, editing rich text, image uploading, etc. Basically I need as much functionallity as possible without being rediculous.
This is just a small portion of the overall application, but the screen editing portion is all that I'm worried about now, as the project is still in prototype phase.
So... does anyone have any ideas on where to start with this? I'm having a hard time wrapping my head around the concept.
Aaron
P.S. - Hi everyone! Wow, it's been a long time since I've been around here, hope to be around a lot more in the future.
Help Creating A Flash Menu That Controls An Html Page
S'up, I'm new here so I'd first like to say: hello, I'm glad to be a part of your guys forum
On to the question,
I'm trying to create a flash navigation bar to navigate my html page. I want the flash menu to be 'aware' of what html page it's on, i.e. the menu button linking to a page will be grayed out if you're already on that page. I've seen info for this assuming we're linking thru an entirely flash webpage, but that it is not the case for me.
As an example, i found this website to use a flash navigation bar like what i want: http://www.sia.org.vt.edu/welcome.php
See how his navigation buttons change color on rollover, and then change color again/become disable to show you which page you're currently on?
I've scoured the web looking for how to do this, and i've found out that you need this code in your html,
<param name="flashvars" value="yourvariable=value" />
flashvars="yourvariable=value"
but, how do i get ActionScript to read that value, and use it to determine which button to disable?
thanks in advance for all your guys help
Random Flash Home Page
Can someone tell me how to make it so that every visit to (or refresh of) a home page displays a different movie from the last time? I've seen it before on this site www.tonyandguy.co.uk
But how is it done?
Anyone Out There Know Of A Good Tutorial For Creating Password Protected Flash Page?
Hey Everyone,
How are things going today. Fine here, except that I would like to create a password protected section on a Flash website that I am creating utilizing Usernames and passwords for multiple users.
I found a tutorial here on kirupa.com, but it only uses a single password. Does anyone know of a tutorial for what I am looking for or could you help me out by telling me how to adjust the tutorial on Kirupa to suit my needs.
If anyone out there can help or if you have any suggestions, please feel free to contact me ASAP.
Thanks,
Kelly
Random FLASH Movies On 1 HTML Page?
Is it possible to have random Flash Movies being loaded on a webpage?
You can already do it for graphics (gif banner) but I do not know how to do this with a flash movie.
Example:
My frontpage has a FLASH movie, each time when a visitor loads my page a different movie should appear.
Anybody got a clue?
[MX] Random Flash Intro Page Generation?
I have 3 flash intros for a website and I need to generate a new look each time a person visits this site. Also if a person refreshes then also I need to have a new intro out of the three.
Is it possible? Can I do this using flash or does it need to be done using a scripting language?? Any ideas and help is greatly appreciated.
Creating A Start Menu
I'm having a problem here, just don't understand why it is not working.
I assumed that the Idea was simple:
one button on stage, when clicked, opens a list of buttons and when one of those is clicked, an action is carried out.
I have all the tweens made, so in theory, the animation should work. I have the main button (start) set to control the show/hide of the main button plate:
ActionScript Code:
on (press) {
gotoAndPlay("this.plate",8);
}
which should play the animation and show the buttons (frame 16 of the movieclip "this.plate" which also has stop(); in the actions)
All of the animations work the same way. the button performs 2 actions, when on frame 1 tells flash to play frame 8 and when on frame 16 tells flash to play frame 17 (which then loops back to frame 1 and waits stop(); )
problem:
The first menu worked until I added the submenus and now for some odd reason (debug and output give no errors) if I click the "start" button, nothing works.
I have 6 sub menus, all are separate movieclips with instance names. the clips are named plate2 through plate 7 (plate is the main buttons movie clip in the parent level)
here is the .fla Uses flash 8
any help appreciated
Py
Cursor Disappears In .aspx Page When Using Flash Movie On Same Page
Dear friends,
I am facing this problem when I am using .swf file on my sites login page, there is 2 text box of User Name and password and submit button it is all are web controls, i want cursor at user name control when user comes to login page but it is not showing there but when I remove the .swf file from the login page then default cursor comes there, please help me.
Creating 10 Random Circles With Random Colors
hi folks.
I´m trying to write a simple function: create 10 circles (with random coordinates) and the circles should have random colors.
How can I assign the random colors? Is there an AS function that can help me?
|