Require Buttons To Be Pressed In Sequence
i have an idea that i have no idea how to execute...it's a quick game at the entrance to a site that requires users to click buttons in a certain sequence in order to gain access. what do i need to do in order to require the proper sequence? any help?
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-29-2004, 06:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
My Buttons Require Double Clicking When On A PC, Why?
I just recently uploaded my updated website to the server and now I am finding out all the quirks that need to be fixed.
Please check out my website to see what I am talking about: www.brendasepanek.com
The outer frame of my site is done in Dreamweaver and the inner WHITE rectangle are flash movies.
1. when clicking on MOST of the buttons within my flash movie it action does not begin until you click TWICE but only on a PC. why does that happen and is there a way for me to fix it so it begins on the initial click without changing out it is viewed on mac? some good examples of what i am talking about are when you click on the PORTFOLIO page, then the PRINT page and click on the various samples. The initial click requires a double click and after that it seems to be normal allowing just a single click.
2. since you took the time to view the site, i am curious as to how long it took the portfolio page to load, in particular the PRINT and WEB page.
I am very new to flash so if you reply, try to make the answers easily understood thanks for your help!
After 4 Buttons Have Been Pressed..
In the attached file I need to reveal some text (end_text, frame 2) after the user has clicked all 4 of the bar chart blocks. What is the best way of doing that?
No Buttons Pressed
I know the command to go to another frame when you press a keyboard key is:
on (keyPress "<Down>"){
_root.gotoAndStop(2)
}
(so with this example press down key you go to frame 2)
But what is the actionscript if no button is pressed and you have to goto frame 10
(the frame has a 3 second movie clip. If the player doesn't press a button within the length of the movie clip it goes to a game over screen)
Buttons When Pressed Twice - HELP
On my test site www.pullman.co.nz/dda/test/index I have a flash site with a menu top left. If i press the same button twice in a row it does not go tot he correct fame - i.e. when the images button is pressed it goes to the frame "images" but when you press it again when it is already on the "images" frame it goes to the frame "intro". Any help would be appreciated.
D
Getting Buttons To Do Stuff When Pressed.
This is what I want to do: When a button is pressed, something is displayed. For example, if there are 10 buttons labelled A-J, if J is pressed, a thing (text box or text box converted to button) with text corresponding to J is displayed. I've been searching for hours on how to do this in the Flash help stuff but everything I try doesn't work .
Buttons Will Go To The Next Area If Pressed Twice
Hello all.
I am a designer who is trying to learn Flash on the go. I have made a flash site but it seems to have a slight problem. When you click on one of the nav buttons on the left, if pressed twice, it seems to advance to the next arewa instead of just replaying the movie for that button.
The actionscripting is pretty basic:
Home button:
on (release) {
gotoAndPlay(5);
}
Portfolio Button:
on (release) {
gotoAndPlay(15);
}
About Button:
on (release) {
gotoAndPlay(25);
}
Contact Button:
on (release) {
gotoAndPlay(35);
}
I tried naming the movie clips and setting up the actionscripting that way, but it simply wouldnt work. On the timeline, each frame (5,15,25,35) has a stop action attached to it.
Am I missing something?
Thanks for the help.
Pressed Buttons Problem.
I am creating something where I need a MC to show once all 8 of the buttons on my current frame have been pressed. I am pretty sure you use an array to create it, but I cannot seem to get it to work. any help is appreciated.
So, in a nutshell, no MC until you click all 8 buttons.
P
Disabling Buttons Once Pressed
Hi,
I'm another newbie getting started with Flash 5. I think I'm making some good progress on the basics thanks to kirupa.
I was wondering how to ghost a button once its been pressed and how to reactivate it later with the press of another button or after the movie clip it is linked to has finshed?
I'm sure there are many ways to do it... I can't work them out just yet... whats the easliest one ?
Thanks.
Xcom
Detecting Order Of Buttons Pressed?
(Flash MX)
Is I have a standard menu of buttons, is there a way to use actionscript to record which buttons have been pressed? I have animations that correspond to buttons, but they are dependent on which button was pressed last.
For instance, I have a little title bar which will change according to the page, like "Page 1" or "Page 2" (I'll replace them with real titles). If a person is on page one, and clicks the button to go to page two, I want the "Page 1" title bar to shrink, then regrow as the "Page 2" title bar. I know I could do this by making a bunch of separate animations for all the transitions possible (from page 1 to page 2, page 1 to page 3, page 2 to page 3, etc), but I'm trying to figure out a more efficient way to do it. Any ideas?
Buttons Created Dynaimcally, - How To Tell Which One You Pressed?
I have some dynamically created buttons in the content of the scrollpane component !
The code i from frame 1 in the content movieclip:
for (i=0; i<_root.data4.length; i++) {
attachMovie("lilleven", "bat"+[i], i+(_root.data4.length)+2);
setProperty("bat"+[i], _x, (i*85));
if (i == 0) {
myColor = new Color("bat"+[i]);
myColor.setRGB(0xff0000);
_root.teksten = _root.data4[i].tekst;
}
attachMovie("lilleven", "att"+[i], i+2);
setProperty("att"+[i], _xscale, "40");
setProperty("att"+[i], _yscale, "30");
loadMovie(_root.data4[i].image, "att"+[i]);
setProperty("att"+[i], _x, (i*85));
setProperty("att"+[i], _y, -21);
_root.scrollholder.scrollpaneholder.refreshPane();
}
stop();
It creates the content for the scrollpane actually 2 different grafixs, - the bat and the att.
I works perfectly, but the "bat"+[i] is a button, - because I want the user to be able to select one of the clips and then get some information about it.
So I have a picture, with a button on top, - it works fine too, - BUT...
How do I assign any actions to a button that's dynamically created??
And how do I find out which button in the scroller I have pressed??
Regards
Godowsky
After 6 Buttons Are Pressed Jump To A New Frame
Firstly thanks for everyones help on these forum I have been able to achcieve loads considering Im a complete noob.
I have made a spot the differece game as you may have seen in another post. I have all the invisble buttons on one frame. When the button is pressed it reveals a correct answer, that button also then becomes inactive so you can not turn the answer off.
I have 6 buttons in total btn1 - btn6
How do I write the code so that after all the buttons have been pressed it jumps to a finsihing frame.
I am also working flash 7 mx2004
Thanks in advance.
Foo
After 6 Buttons Are Pressed Jump To A New Frame
I have made a spot the differece game as you may have seen in another post. I have all the invisble buttons on one frame. When the button is pressed it reveals a correct answer, that button also then becomes inactive so you can not turn the answer off.
I have 6 buttons in total btn1 - btn6
How do I write the code so that after all the buttons have been pressed it jumps to a finsihing frame.
I am also working flash 7 mx2004
someone suggested the below but I'm sure how it works
Create a root variable, _root.buttons_pressed = 0;
Then, in each button onDown actionscript, _root.buttons_pressed++;
Finally, you'll want to reset the counter when you enter the new frame,
again setting _root.buttons_pressed = 0;
Thanks in advance.
FooText
[MX] Menu Help - Detect When Other Buttons Pressed
hey everyone, i've got a problem that i'm hoping someone can help me fix. my fla file will be attached below. (its not the greatest looking thing but i just need to understand how to do what i want it to). i've got a navigation menu at the bottom of my stage with 2 movieclips. each movieclip has an instance of a button inside, a motion tween of a _alpha graphic flying in, and text to distinguish each button.
my problem #1: on the stage when you hit 'home', it'll fly in, but when you hit 'schedules' next, that will fly in too, right over anything i would have placed on 'home'. i'd like to prevent that by maybe having an outro animation (like a reverse of the intro animation) that can check whether another button was pressed before playing & when its completely off the stage, to play the next content corresponding to the button pressed.
my problem #2: i dont like how everytime when on the stage, i press the 'home' button or 'schedules' button multiple times, that they keep replaying the animation. i'd like it to know that its already been pressed & doesnt need to play again. i have a feeling this problem might be an easier one to figure out but i'm drawing a blank with it.
any ideas people?? i'd really appreciate any help you can provide, if you want to modify the fla please feel free. its very important that i get this resolved as soon as possible, preferably before the weekend. thanks in advance!
-Dantai
[MX] Menu Help - Detect When Other Buttons Pressed
hey everyone, i've got a problem that i'm hoping someone can help me fix. my fla file will be attached below. (its not the greatest looking thing but i just need to understand how to do what i want it to). i've got a navigation menu at the bottom of my stage with 2 movieclips. each movieclip has an instance of a button inside, a motion tween of a _alpha graphic flying in, and text to distinguish each button.
my problem #1: on the stage when you hit 'home', it'll fly in, but when you hit 'schedules' next, that will fly in too, right over anything i would have placed on 'home'. i'd like to prevent that by maybe having an outro animation (like a reverse of the intro animation) that can check whether another button was pressed before playing & when its completely off the stage, to play the next content corresponding to the button pressed.
my problem #2: i dont like how everytime when on the stage, i press the 'home' button or 'schedules' button multiple times, that they keep replaying the animation. i'd like it to know that its already been pressed & doesnt need to play again. i have a feeling this problem might be an easier one to figure out but i'm drawing a blank with it.
any ideas people?? i'd really appreciate any help you can provide, if you want to modify the fla please feel free. its very important that i get this resolved as soon as possible, preferably before the weekend. thanks in advance!
-Dantai
How To Fire A Functio If Any Buttons Are Pressed?
yea I'm still working on that damn senocular thing!...
Well my idea was to fire a function onPress on any of 3 buttons(pude,teppe,pande). So in my naivety I made a array of the instances and thought I could put it in a onPress = function.
The three buttons traced ok when pressed, but nothing happend with the pressForNext function...(in the code below)
Any ideas will be met with kisses..
ActionScript Code:
bleach = function(file){
var buttons:Array = Array([_root.pude , _root.teppe , _root.pande]);
//container.gotoAndPlay(2);
trace (buttons);
playFade = function(){
this.gotoAndStop(this._currentframe + this.speed);
}
loadFade = function(){
var lod = this.fader.contents.getBytesLoaded();
var tot = this.fader.contents.getBytesTotal();
if (lod && tot && lod == tot){
this.speed = -1;
this.onEnterFrame = playFade;
}
}
pressForNext = function(){
this.speed = 1;
delete this.onPress;
}
container.onFadeOut = function(){
this.speed = 0;
this.fader.contents.loadMovie(file);
//images.push(images.shift());
this.onEnterFrame = loadFade;
}
container.onFadeIn = function(){
this.speed = 0;
buttons.lenght.onPress = pressForNext;
}
container.gotoAndStop(container._totalframes); // straight to onFadeOut
}
pude.onRelease = function(){
bleach("pude.jpg");
}
teppe.onRelease = function(){
bleach("teppe.jpg");
}
pande.onRelease = function(){
bleach("pande.jpg");
}
Flash Menu Buttons Flicker When Pressed
I created a menu from an image that I sliced up in Photoshop CS2 then took those images into flash 8 and created a rollover effect then took those buttons and put them into a webpage to create a menu.
The problem is that when I run the webpage and press on the any of the menu flash buttons all the buttons disapear and all you see are black boxes where the buttons were and then the buttons re-apear. It looks terrible. Is there anyway to smooth out the process?
Thank You
Keeping Track Of Buttons Pressed To Assign New SO Value
k - I'm establishing a SO whose value I'm changing on button press.
I have 17 buttons I access via one function in my Actions frame:
ActionScript Code:
// Establish SO
nowPlaying="frame_1";
frameMeter ();
function frameMeter (){
var so:SharedObject = SharedObject.getLocal( "soframeMeter", "/" );
so.data.currentState == undefined ? 0 : so.data.currentState;
so.data.currentState.clear;
so.data.currentState = nowPlaying;
so.data.currentState.flush; // Write/store SO value to user HD
trace(so.data.currentState);
}
// Here's my Button Call (thanks to silentweed for assistance)
_root.controlPanel.mcMenu["Btn_"+1].enabled = false;
for(var i:Number=1; i<=17; i++)
{
_root.controlPanel.mcMenu["Btn_"+i].id = i;
_root.controlPanel.mcMenu["Btn_"+i].onRelease = function(){
_level0.makeActive(this.id);
this.enabled = false;
}
}
// I need to keep track of which button has been pressed
// and based on the result assign a new value to my SO
I was looking at at the possibility of testing for which button is disabled from within my button call function, i.e.
ActionScript Code:
if(["Btn_"+i].enabled == false){
// Assign new SO value
so.data.currentState.clear;
nowPlaying=i;
trace(nowPlaying);
so.data.currentState = nowPlaying;
so.data.currentState.flush; // Write/store SO value to user HD
trace(so.data.currentState);
}
But after testing, and really thinking about it "i" is not defined in the Button action.
Any advice?
Flash Menu Buttons Flicker When Pressed
I created a menu from an image that I sliced up in Photoshop CS2 then took those images into flash 8 and created a rollover effect then took those buttons and put them into a webpage to create a menu.
The problem is that when I run the webpage and press on the any of the menu flash buttons all the buttons disapear and all you see are black boxes where the buttons were and then the buttons re-apear. It looks terrible. Is there anyway to smooth out the process?
Thank You
Most Efficient Way Of Showing 'pressed' State Of Buttons In An XML Men
Ok, that's not a great title. Let me explain.
I quite often have to create portfolio sites which have a list of projects on the lefthand side. When each project is clicked the relevent content is loaded into the main screen. I'm now moving towards creating such sites where the menu content is XML driven.
What I want to know is, what is the BEST way to do the old radio button style thing where the clicked button changes state (eg. colour) and the when another button is clicked, it returns to it's up state.
I've done this before, when I've created the buttons manually, by creating a 'clicked' variable that can either be true or false for each button, the value of which is changed when a button is clicked. The problem with this (I think) is that it relies upon me knowing how many buttons I have, and if this is driven by XML that is going to get messy.
What I'm after is a very simple, self contained method of setting a button's state when it is clicked (no problem), but then 'unclicks' when any other button in the menu is pressed.
Hope this makes sense!
Thanks in advance!
How Can I Get Button Pressed From Dynamically Generated Buttons?
I have generated a series of buttons using this:
Code:
duplicateMovieClip(sign, "sign"+z, z)
while still inside the loop that is creating the buttons I can get to each sign:
Code:
_root["sign"+z]._xscale = 240;
etc.
So, once the signs are on the stage - how do I determine which sign is clicked?
Code:
on (press){
trace(this._root.sign)
}
results in this ..._level0.sign... instead of say, ..._level0.sign0...
obviously because there is no loop.
Trying to access _name does the same.
Thanks
Charles
Detecting Buttons Pressed And Writing To Text File?
Hi
I am looking for a way to track the path that users take through my site. I was wondering if there is a way to write details of the order that buttons are pressed in to an external text file?
I suspect this would require PHP which i know a very small amount of. I'm not really sure where to start.
Any help would be greatly appreciated.
thanks
Blinking Buttons In Sequence
I am building a calculator simulator in Flash CS3 using Action Script 3. I would like to demonstrate how to solve a problem by "blinking" the correct button sequence on the calculator. I can "blink" one button now by adjusting the alpha setting of a rectangle symbol over any key. I did this by creating a new timer set for 1000 ms and creating a listener for the TICK event.
I adjust the alpha setting, start the timer, wait for the Tick and adjust the alpha again. This works fine for one button. However, I need to blink a sequence of buttons at one-second intervals to demonstrate how to solve a complete problem.
I'm having trouble coming up with the right steps to blink a sequence of buttons at one-second intervals. Can anyone explain the right way to do this? Thank you for any help.
Playing External SWF's In Sequence W/out Buttons
I posted this as part of another thread a while back, and someone suggested that I post it again, as it would be good to know, especially for those that have to work with files created in Swish, Viewlet Builder, an other software that exports SWF files.
Here is the question:
I have a main timeline with a preloader movie clip, an intro movieclip, then an external SWF is loaded that was created in Viewlet Cam. I can not edit the ActionScript in this file, and I want an outro movie to play when this external SWF is done playing. How would one go about doing that?
Also, do you think it would be possible to decompile an SWF created in something other than Flash, and then be able to edit it in Flash?
Thanks in advance for any suggestions.
Disable A Sequence Of Buttons Using A Loop
Hi
I have a sequence of buttons with instance names btnSquare1, btnSquare2, btnSquare3, btnSquare4 etc all the way to btnSquare16.
I need to disable all of these buttons.
Is there a way i can do this using say, a for loop rather than typing
btnSquare1.enabled = false;
etc 16 times.
Any help would be greatly appreciated.
Apply One Function To Sequence Of Buttons?
I've created a function that loads the thumbnail that corresponds to the picture and it works fine;
function loadThumb(){
thumbLoader.loadMovie(this._name+"_t.jpg");
}
I have 200 buttons named sequentially (b1, b2, b3, b4 etc.)
Do I need to type out each button individually to apply the function, like this:
b1.onRollOver=loadThumb;
b2.onRollOver=loadThumb;
Is there a better and faster way to write this code?
Any help or ideas would be great.
Buttons Connected To Animation Sequence
I've been really racking my brain trying to figure this out.
Does anyone know of a tutorial or script that connects buttons to an animation sequence as done on http://sksantos.com. It looks like the movies and button movements are done with SetInterval, but I can't figure out how to restart the animation sequence from a button once it is press.
Any clues will be greatly appreciated.
Playing External SWF's In Sequence W/out Buttons
I have a main timeline with a preloader movie clip, an intro movieclip, then an external SWF is loaded that was created in Viewlet Cam. I can not edit the ActionScript in this file, and I want an outro movie to play when this external SWF is done playing. How would one go about doing that? I've looked for tutorials and posted to other forums, but still don't have a solution.
Thanks in advance for any suggestions.
Keeping Button In Pressed State Untill Another Is Pressed
Hello,
I got the following code from another post on the forums and was wondering if you could give a newbie some help?
original post is here:
http://www.flashkit.com/board/showth...ghlight=button
The code follows from that post follows:
//at _root level
_root.selected = 'none';
//on the button
on(rollOver) {
this.gotoAndStop('_over');
}
on(rollOut) {
if(_root.selected==this._name) {
this.gotoAndStop('_over');
} else {
this.gotoAndStop('_up');
}
}
on(press) {
this.gotoAndStop('_down');
if(_root.selected != 'none') {
x = eval("_root." + _root.selected);
x.gotoAndStop('_up');
}
}
on(release) {
_root.gotoAndPlay('some_frame');
_root.selected = this._name;
this.gotoAndStop('_over');
1. What are the variables that i need to change other than the "some_frame"? Do I need to change "this._name" to the instance name?
2. The first part of the code that says:
//at _root level
_root.selected = 'none';
where do i put this? Does it just go at the first frame of my button layer?
If anyone has a working sample of this could you provide it?
my not working test is attached.
Thanks SO very much for your time.
Click Buttons In Sequence --> Play Movie
Greetings!
I have a virtual phone of sorts in flash, with a movieclip (acting as a button) for each number on the phone. I want a movieclip to play (*ring!*) when a fixed phone number sequence is clicked on the phone by the user.
I have searched extensively and have played with some code, but to no avail..
Thanks!
Loading Buttons Into Movie Clips In Ordered Sequence?
I originally posted this in the 'Scripting & Backend' forum, but thought I'd try over here too as it's busier, and this is likely more about Actionscript than anything else anyway;
Here's a brief run down of something I need to do... I wonder if anyone has any suggestions on how best to do it. The simplified version is as follows;
I have 5 buttons labelled 1, 2, 3, 4 and 5. They are 30x30pixels and each in a seperate swf file called button1.swf, button2.swf and so on.
I need to load these buttons into a main flash file called main.swf. In this swf I've placed 5 empty movie clips with the instance names slot1, slot2, slot3, slot4 and slot5.
I can load the buttons into these slots very easily by using;
Code:
loadMovie("button1.swf", "slot1");
loadMovie("button2.swf", "slot2");
loadMovie("button3.swf", "slot3");
loadMovie("button4.swf", "slot4");
loadMovie("button5.swf", "slot5");
That of course works fine, but here's where it gets more complicated. I have php based admin tool that the client can use to choose which buttons are to be added to main.swf. So they can opt to have any or all of them appear as they like. This tool will generate a URL with the info about which buttons are to be included, sort of like this;
Code:
http://www.mysite.com/admin.php?button1=yes,button2=no,button3=yes
etc etc
Now I can probably make the Flash file read that url somehow and show only the buttons they've opted to display (haven't really sorted that out yet actually) but what I need is not only that but somehow to make it so that if they choose button1, button 3 and button 5 (for instance) that those three buttons will appear in the first three slots of main.swf
I can't have buttons 1, 3 and 5 show up in slots 1, 3 and 5... I need them in 1, 2 and 3... all grouped together. If they select all five buttons, then all five slots will be filled. If they select just button 4, then it needs to go into the first slot in main.swf
Not sure how best to go about this and I'm open to any suggestions.
Sorry for the long post, I just wanted to be clear about everything.
David
How To Make Image Sequence Moves On Buttons Mouse Over?
Can anyone please please please help me through the mouse over effect on buttons that changes the background image on the banner. I don't know how to do that at all. I would be highly obliged if anyone help me through this.
Sample link here: www.emedianow.com
Loading Buttons Into Movie Clips In Ordered Sequence?
I posted this over at Flashkit recently but thought I'd add it here as well in the hopes of getting this sorted out.
Here's a brief run down of something I need to do... I wonder if anyone has any suggestions on how best to do it. The simplified version is as follows;
I have 5 buttons labelled 1, 2, 3, 4 and 5. They are 30x30pixels and each in a seperate swf file called button1.swf, button2.swf and so on.
I need to load these buttons into a main flash file called main.swf. In this swf I've placed 5 empty movie clips with the instance names slot1, slot2, slot3, slot4 and slot5.
I can load the buttons into these slots very easily by using;
Code:
loadMovie("button1.swf", "slot1");
loadMovie("button2.swf", "slot2");
loadMovie("button3.swf", "slot3");
loadMovie("button4.swf", "slot4");
loadMovie("button5.swf", "slot5");
That of course works fine, but here's where it gets more complicated. I have php based admin tool that the client can use to choose which buttons are to be added to main.swf. So they can opt to have any or all of them appear as they like. This tool will generate a URL with the info about which buttons are to be included, sort of like this;
Code:
http://www.mysite.com/admin.php?button1=yes,button2=no,button3=yes
etc etc
Now I can probably make the Flash file read that url somehow and show only the buttons they've opted to display (haven't really sorted that out yet actually) but what I need is not only that but somehow to make it so that if they choose button1, button 3 and button 5 (for instance) that those three buttons will appear in the first three slots of main.swf
I can't have buttons 1, 3 and 5 show up in slots 1, 3 and 5... I need them in 1, 2 and 3... all grouped together. If they select all five buttons, then all five slots will be filled. If they select just button 4, then it needs to go into the first slot in main.swf
Not sure how best to go about this and I'm open to any suggestions.
Sorry for the long post, I just wanted to be clear about everything.
David
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.
How Do I Make Buttons Stay "on" When Pressed.
I'm a newbie so please be kind.
Okay, so I have 3 movie clips (button1_mc through button3_mc).
I want each button's alpha to be 60% or so and be 100% during .onRollOver.
However, after the user clicks on one of the buttons I want that button to remain at 100% alpha, unless the user chooses a different button. That button would then stay 100% alpha, untill a different button was pressed.
I believe this can be done with a for loop but I just don't know where to begin.
Jpeg Sequence Export - No Sequence
Hi,
I am trying to export a short flash movie via the "export movie" "jpeg sequence" which then I can use in Final Cut Pro. I was able to do it once, but now I have spent the whole day and every time I try to do it Flash MX only exports one jpeg.
Any help apprechiated.
Jpeg Sequence Export - No Sequence
Hi,
I am trying to export a short flash movie via the "export movie" "jpeg sequence" which then I can use in Final Cut Pro. I was able to do it once, but now I have spent the whole day and every time I try to do it Flash MX only exports one jpeg.
Any help apprechiated.
Help Require
Hello,
I am beginner in flash and I would like to know how to give link to entire flash banner using XML file. However, I would like to mention that, I am already using an XML file in the flash for the dynamic text. I want to insert the link on the entire flash. Can anyone help me asap?
Best Regards
Parthiv
Require Help With Navigation...
I'm having problems with building a navigation and am wondering if any of you might be able to help me out.
I have an index.html and I want that to:
Detect Flash and update if needed and check the resolution.
The reason for that is I want the pages that will be opened after that point be adjust according to each users resolution.
The page after index.html called main.html I wish for it to be a "clean" window without any browser buttons, not even a button to close it.
The only thing that should be in main.html at first should be my main menu-bar.
Which later on will open new windows with a submenu, those windows will need to be resizable, and dragged around along with being a bit transparent and a few other things but I am not to that point yet but that is to give a general idea of what I want it to be.
The main problem at the moment is opening a new "clean" window with my flash menu-bar that is adjusted to the end-users resolution.
I have seen tutorials on how to detect Flash and update but none that also checks for resolution and then goes to the next screen.
I wouldn't mind if a click action to go to the next page is needed for correctly adjusting the resolution.
I have attached the menu-bar .fla to this message.
Require Assistance
hello everybody,
I have created my website and uploaded it ,I can browse it easily in Internet explorer but when I am trying to browse it in Opera i am unable to do so??? i.e. I am getting problem while browsing it in Opera.
Problem are following:
1. when i open a new page of my site it's content are not jastified properly.
2. site navigations are created in flash. But when i open a new page, navigations are working but when i scroll down the page and then again scroll up that page, page navigations are not working. all navigations are SWF files. If i press refresh button it's working.
My questions:
1. How can i align the content of a page?
2. If ther is any flash actionscript to slove this problem for SWf files?
Kindly assist me in this matter....Urgent!
Regards,
ChandraniProblem are following:
Require Help On Preloading
Can someone help me out on how to preload a flash movie
i read all the tutorials but im kinda slow so any assistance would be greatly appreciated
Arrays For A Beginner: Require Example
I need to do an array: load many pictures in to an html page via flash. Each time the "next" button is pressed, a new picture will then load. (we have over 20 pictures per page, so preloading is not practical).
Though I am intelligent designer i am a poor programmer, so if I have an example I can copy and modify the script. The tutorial I saw was oriented to programmers so was too complicated for me.
What Effects Require Most Resources?
Hi, noob here,
Trying to determine what type of flash effects require the most resources from a users computer, a low-bandwidth users computer.
I am designing many animations, but would like to minimalize certain effects if I know they will be taxing on a slow computer.
I'm thinking that maybe zooming, or scaling, might be resource-intensive. Not certain.
Thanks for any help.
jbonham
How Can I Require Flash Player 9
Hi,
My website does some bizarre stuff with scroll bars if the user is not using flash player 9. How can I require the installation of flash player 9 before entering the site?
Thanks,
Alex Kirkwood
Which Flash Player Do I Require?
I have a computer in which there is no flash application installed. But I want to play a swf file in it. How can do so? I am not sure which flash player I need to install. Is anyone having any idea?
Thanks,
xShanky
Simple Tweens Require More CPU In FF2.0 Than IE 7
Hey,
Check this out: GONE!
In FF 2.0, the simple little dragon moving around and getting a little blur will at times run my CPU up to 22%. In IE 7, the CPU never goes above 11%.
I have also noticed this before, but I though it was because I upgraded to F9. However, I think FF 2.0 doesn't handle Flash as well at FF 1.5. I don't know....but I do remember tweens being smoother in FireFox just a couple of months ago.
The code to make the animation you see consists of some a basic onEnterFrame to move the dragon and an setInterval at 25 milliseconds to give it the slight blur.
Has anyone else notice performance problems in FF lately?
Does ExternalInterface Require AllowScriptAccess=always?
I keep reading all over the place people stating "make sure that you have allowScriptAccess set to 'always'" when referring to ExternalInterface usage. Problem is, I'm a little confusedm because as I understand the documentaion, allowScriptAccess is irrelevent most of time:
1) The examples in the Flash documention for EI exclude any mention of allowScriptAccess
2) The documentation of allowScriptAccess makes no mention of EI, only fscommand and getURL
3) My understanding is that the default value of allowScriptAccess is 'sameDomain', which should mean unless you are doing cross domain scripting(not even sure what that mean, calling getURL to an external domain with javascript?), you don't need explicitly set anything else.
From the docs:
"always" permits scripting operations at all times.
"never" forbids all scripting operations.
"samedomain" permits scripting operations only if the Flash application is from the same domain as the HTML page.
The default value used by all HTML publish templates is samedomain.
Regardless, everyone seems to be saying that you need allowScriptAccess set to 'always' to get even the most basic same-domain ExternalInterface examples to work. I would like to hear the reasoning behind this. Thanks!
Actionscript 3 Sound Help Require
Hello all experts,
I am facing a very weird problem.
I have single fla file which has a sound on first layer.
Now I want to set the volume of this sound on any button click.
!!! MAIN MOTIVE IS CONTROLLING TIME LINE SOUND WITH ACTION SCRIPT 3 !!!
|