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




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)



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-09-2007, 11:42 AM


View Complete Forum Thread with Replies

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

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?

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

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?

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

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.

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.

Still Pressed
how I write "if the button is still pressed" in actionsript. Like in scrollbars, if we keep finger on mouse button, it continue to scroll.

Max

Key Not Pressed
how can i tell if a key is not pressed. like :

on (keyPress "<Up>") {
this._y -= 10;
_rotation = 90;
}

how can i make this so instead of up no key.

How Can I Tell If No Key Is Pressed
what code can i make to find out if a key is pressed

Need MC To Act Like If It Was Just Pressed?
I'm trying to combine a few scripts that requires me to have a MC called but1 to "act" as if it was just pressed and released. Does that make sence, and is it possible?
(ITs a drag and drop script)

[F8] Pressed Key
I am having trouble doing an if statment with a key pressed down other than the defaults. I know how to do
key.isdown(left),
or right, or enter, or any of them, but how would I do a key like A or B or backslash?

Get Name Of Key Pressed
question, is there a way to use a trace statement to display the name of the last key pressed?

for example, I use this code to get the the keycode value:


Code:
trace(Key.getCode());
I get 65 in the trace window when I press the A key. What I'd really like to get the key name rather than the key code number.

thanks!

N7

No Key Is Pressed?
how do i tell flash to go to a certian state when neither of 2 keys is pressed?

see, i have this game and i need the charachter to go into a state of idleness when no key is being pressed. i also belive that this could be done with speed but i am a newbie.

here is the code.
PHP Code:



onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 6;
jumpheight = 12;
maxfall = -54;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (Key.isDown(Key.SPACE) && fall == false && jump == undefined) {
fall = true;
jump = jumpheight;
gotoAndStop("jump")
}
if (jump<>undefined) {
if (jump>maxfall) {
jump--;
}
_y -= jump;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= speed;
gotoAndStop("left")
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
gotoAndStop("right")
}





if you need more information just ask

Pressed?
on (press) {

trace(film1._y);
if (film1._y<=62)
{film1._y=330}
else{
film1._y-=20;
}
}

is there a way that I can easily make it so that the user can just keep the mouse down? and do the script/?

No Key Is Pressed?
how do i tell flash to go to a certian state when neither of 2 keys is pressed?

see, i have this game and i need the charachter to go into a state of idleness when no key is being pressed. i also belive that this could be done with speed but i am a newbie.

here is the code.
PHP Code:



onClipEvent (load) {
fall = false;
_name = "circle";
jump = 0;
speed = 6;
jumpheight = 12;
maxfall = -54;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (Key.isDown(Key.SPACE) && fall == false && jump == undefined) {
fall = true;
jump = jumpheight;
gotoAndStop("jump")
}
if (jump<>undefined) {
if (jump>maxfall) {
jump--;
}
_y -= jump;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= speed;
gotoAndStop("left")
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
gotoAndStop("right")
}





if you need more information just ask

Keep Doing Something While Button Is Pressed?
i'm trying to do a scrolling window thingy and i have a up and a down button. when the user hits the up button it goes up one. but i want it so that when he hits the up button and keeps his mouse button pressed, then i want it to continue scrolling up.

right now all it does is scroll up one line until you click the up button again. i want to be able to *click* *hold until desired position* *release*.

any help? thank you,

~jimmy.

How Do You Tell If Button Is Still Pressed Down ?
I need a script to perform as long as the button is still being held down by the user.

I have a function set up to keep performing as long as a value is true. . .so far, so good.

so,. . . how does actionscript detect if button is still down ??

thanks a bunch!!

Darin

Sound When Key Pressed
How do I make a sound called "gong" (without the quotes) play when the key G is pressed?

Pressed Button
i have a button with the following actions

on(press)
gotoAndPlay (_currentframe + 1)

all the frames in the mc have a stop action in them. what i want is that when the button is pressed, every frame will play as tthough there where no stop actions in them, but you would also have the option to look at every frame and then click to go to the next one. i should also say that the mc is looped (there are like 30 frames, if you click next, or continue pressing button, it will go to frame 1 and then continue from there).

do i need to use a function for this?

Detecting Any Key Pressed
I need to know to detect any key pressed that is on the keyboard.

Stopping A Mc When Key Is De-pressed
G'day Guys

I have created just a simple file where you use your arrow keys to move a character around the scene..

When each arrow key is clicked then it loads a diff frame in teh character mc which has a movie clip of it walking inside.

So if you look at the file what I want it to do is top stop playing each of these movie clips once the key has been depressed (is that a word?) when the key is up again anyway. so basically he won't be walking on the spot

isometric.fla

Thanks

Steve Rat

Check If Key Is Pressed?
Hello,

I have a Flash Movie where in 2 different moments i need to ckeck if the key 1, 2, 3 or 4 is pressed and then take some action. I used some code which senocular mentioned but i am having problems.
Can someone help me out and tell me how to fix this, either by using this code or using another one...


I used the code on http://proto.layer51.com/d.aspx?f=838
I placed this on main timeline in Actions Layer:


Key.addListener(Key);
Key.onKeyDown = function(){
var dwn = String.fromCharCode(this.getAscii());
if (dwn.length) this.broadcastMessage("onKey"+dwn+"Down");
}


There were to places where i wanted to check is a key is pressed: in MC1 and MC2 both placed in main timeline.

So in MC1 i placed this code in Actions layer:

Key.addListener(this);
this.onKey1Down = function(){
_root.MC2.gotoAndPlay("start");
}


And in MC2 i placed the following code:

Key.addListener(this);
this.onKey1Down = function(){
_root.MCFast._alpha=100;
}


What seems to happen is that when flash is in MC2, and i press 1 both actions take place:
_root.MC2.gotoAndPlay("start"); and
_root.MCFast._alpha=100;

Can u tell me what is going wrong?
I am not very familiar with some lines in this code.
I allready readed some info to try to solve problem and to create what i describe here but until now i had no success.

Please, can someone help me out?

Thank You a Lot
Miguel

Display A Pressed Key
hi, I´m still new working with flash. I'm using Flash MX and would like to make a small interactive program for my 2 year old.

He recognizes some letters, and I would like to build a simple movie that displays a letter each time he presses a keyboard letter.

Example: if he presses "A" we would see an big A on screen. I built a simple movie of fade in letter, but don't know how to make that letter change according to the key pressed on the keyboard.

This small program is just the begining of a project of educational programs that I would like to include in my son's web page www.tiagonline.com so any suggestions are also welcome.

Thank you all for your help
msereno

Button Still Pressed
I my scrollbar, how the text can scroll when I keep my finger on the mouse button.

Max

Keep Button Down After Pressed
Sounds easy right? I have a menu made out of buttons. All I want to happen is after the user presses the button I want the button to stay in the down state instead of popping back to the the up state.

I'm fairly new so please go easy with the description.

If Certain Button Pressed
I need to write some AS in MX to say

"any navigation button".onRelease = function() {}

i have 5 navigation buttons:

home_btn
services_btn
sites_btn
contact_btn
links_btn

How do i call this Function when one of these buttons has been released?

Keep Button Pressed
Hi folks,

How when you rollover a button controlling some scrolling text the text will keep on scrolling untill you remove the cursor..
I've tried all sorts of code but it still does not work..

Thanks Ivorsmallun.....


Quote:




Don't knock it untill you've tried it...

Which Button Is Currently Pressed?
i have 4 buttons that set variables. but 1, on release, _root.but=1, etc...in another movie clip, or whereever, how can i determine which button has been pressed without using multiple "if _root.but=="1"" statements? thanks...

A Button I've Already Pressed
how do i make a button a different color that i've already pressed?

Detect Key Pressed
hey hi guys!! does anybody know how to detect wich key was pressed from the keyboard? i know if i put a textbox i could see the letter but the case is that i have a jukebox and i want to know what key or action does the coin device

Need Script For Still Pressed
I have a large graph that extends beyond the stage. I need a way to scroll it right and left. I was going for a slide bar but I gave up. Now I have 2 buttons. Right and Left. I have made the graph into a movie clip and named it main. I have gotten them to work but I have to keep pushing the button repeatedly. Does any one have a script that if you hold the button down it will keep moving?

My script now is:
on (press) {
Speed = 3
main._x = speed;
}

Button Already Pressed
Have you seen those sites that have numerous buttons...but once you press on it shades a little differently, this way you know you already pressed that one.

How is this done ?

thanks

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