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








Mouse Press And Hold On A Movie Symbol?


Hi, I'd like to know how to run a function when the user presses and holds down the mouse button on one of my movie symbols? I looked into listeners and event handlers, but I haven't been able to figure out exactly how I need to do this? Any and all help is appreciated. Thanks!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-20-2005, 03:51 PM


View Complete Forum Thread with Replies

Sponsored Links:

Mouse Press And Hold On A Movie Symbol?
Hi, I'd like to know how to run a function when the user presses and holds down the mouse button on one of my movie symbols? I looked into listeners and event handlers, but I haven't been able to figure out exactly how I need to do this? Any and all help is appreciated. Thanks!

View Replies !    View Related
Press And Hold Mouse Button To Rotate MC?
on (press) {
setProperty (_root.shape, _rotation, getproperty("/shape", _rotation)-3);
}

I am using the above coded to rotate a movieclip... I need it to be posible for the user to press and hold the mouse button down to rotate the MC and then stop when they release.... anyone got a suggestion.

Cheers

Ollie

View Replies !    View Related
Allow The User To Hold Mouse Down And To Move A Movie Clip
hello,

what is the code that allows a user to hold mouse down on a movie clip and then movie the object around?

just like drag and drop...

regards
rob
www.robdewell.co.uk

View Replies !    View Related
On (press)...and Hold?
Hi guys....

Anyone help me with this?..

http://web.wpclc.org.uk/Microscope.htm

How do I change the zoom button to so the user doesnt need to mutiply click the button to zoom in? Just click the button and hold it down?

Cheers!! Vector!

View Replies !    View Related
Press And Hold?
Hello,
I know the issue of rewinding your movie has come up before in these boards, however none of the solutions have worked for me. I am hoping to create a "rewind" button that you can click and hold (while the timeline plays backwards) until you let go and then it stops rewinding. Right now I just have it so that you have to keep clicking on it and it is just travelling to the previous frame, but it would be nice to have it so that you could hold down the mouse button and it would keep going to the next previous frame until you let go. Is this possible? I am also trying to do this across various scenes if possible. Thanks for the help in advance!!

Susan

View Replies !    View Related
On Press And Hold?
i have a button which when pressed i want it to move a mc:

on (press) {
_root.mc._x+=2
}

is there a way to keep repeating this action while the button is held down?

View Replies !    View Related
Press And Hold
I have some simple code to move an object when i press a button

Code:
on(press){
Chooser.list._x = Chooser.list._x - 5
}

how to i make it loop until i release the button? i want it to keep moving, rather than just moving once per click
-thanks

View Replies !    View Related
Press And Hold
Hello all,

I am looking to create a navigation to move the ball around the screen. (I've attached the file im working with)

What I'm looking to do is when you press on one of the directional arrows, the ball continuously moves instead of going in increments.

If someone could tell me a basic code to do this for one of the arrows or if someone knows a tutorial related to it. Either way this would be awsum.

Thanks in advance,
Ted Sczelecki

View Replies !    View Related
On(press And Hold) ?
I am using a button to move a text field's y values (i created scrollable text).
Right now the code looks like this for the button (its an arrow):

ActionScript Code:
on(press){
    if(detail._y - 10 > -65)
    {
        detail._y -= 10;
    }
   
}
But using this method, it only scrolls once if it is pressed and held. I would like it to scroll constantly if it is pressed and held. Like i want

ActionScript Code:
on(press)

  on(rollOver)
   { 
    //do the scroll
   }
}
but i cant do nested on's according to the syntax checker. Ideas?

Thank you much,
JJ

View Replies !    View Related
Press And Hold
is it possible to addListener using onMouseDown to a button? all i need is to be able to press and hold that button while the movieclip on the stage is doing the action. thank you.

View Replies !    View Related
Movie Clip Mouse Speed Control Depending On Mouse Press
Hi,
Please help me !
As iam developing a small ball game in flash, where i need to control the speed of the ball (i.e, to increase or decrease the speed of ball)when clicked on a button depending on mouse press .

I have done similar on key press but iam not able to do the same for mouse pressed.


Please help me out

Your help will be appreciated.

Thanks & Regards
Zabi

View Replies !    View Related
Press And Hold Buttons....
Hi.

I gots me a small MC with two buttons: a scroll right button and a scroll left button. I have put scripts on each button so that when you click the right button it goes to the next frame of the MC and when you click the left it goes to the previous frame. The images i have tweened to move off the screen to the left as you play through the MC. So all is well and i have the MC with scroll buttons...

My only problem is that i can only scroll by repeatedly clicking the buttons. How do i script it so that i can click and hold a button for it to continuously scroll. And for the scroll left button to in effect play backwards through the MC's timeline.

Anyone know??
I have a feeling the solution is more complex than it should be given the scroll left key meaning the MC plays backwards.

Anyone? Maybe this can be done without a tween at all <shrug> but that is beyond my current knowledge of actionscript and flash.

cheers beers.

View Replies !    View Related
Scroll Bar(press And Hold)
How do I make so when I click and hold on a small MC, it moves another MC down or up, but keeps doing it while the mouse is pressed, but stopps when button is released. Just like regular windows scrolling.

I just need basic code, I can incorperate, only need to know the method. Basically I cant see where flash knows that the button is down, it can only detect when its been PRESSED, but not that the button is down. can someone show me basic code?

Thanks for all help

View Replies !    View Related
[F8] Press And Hold Button
I have posted about this some time ago but unfortunately did not have to time to follow up.

I need to create a button that reacts differently based on time. In the attached .fla I have code (created with a lot of help from Whiskers. Thanks!!!) that when the button is pressed and held for longer than 3 seconds it will bring you to frame 3 and when you press and release the button it will bring you to frame 2….sort of.

The problem I am running into is that 3 seconds after it brings you to frame 2 it will automatically bring you to frame 3. I can’t figure out how to stop this. Any help would be greatly appreciated.

View Replies !    View Related
Press And Hold Button
Hi,

Can anyone tell me how I can make a button which will cause one action if simply clicked and another if the mouse button pressed and held for more than say, 2 seconds?

My button simply has a hitstate which controls a movieclip with lightbulb which has two states - 'active' and 'inactive'. When clicked you can toggle between the two states, however I need it to bring up dimming controls when the button is pressed and held for a predefined time.

The code for the button is:


Code:
garage_lights_hit.addEventListener (MouseEvent.MOUSE_DOWN, garageLightsClick);

function garageLightsClick ( event:MouseEvent):void

{
if (this.garage_lights.currentLabel == 'active') {
this.garage_lights.gotoAndStop('inactive');

(root as MovieClip).garageLights = 'off';
}

else {
this.garage_lights.gotoAndStop('active');

(root as MovieClip).garageLights = 'on';
}

}
Any help, very much appreciated, am on a tight deadline with this

View Replies !    View Related
On Press And Hold Button ?
hey!
id like help with creating a button with the following functionality..
if u click it, it acts like normal.. and runs some script or sets a value or whatever.. but how do i do it so that if the mouse button is held down while on the button it would after 2 seconds keep runing whatever its told to do untill mouse button is released..

im making a volume controll button, and want it to by 1 click jump up 1 % in volume, but as this gets tedious to press , i want it to go up by 1 really fast if its held down .. thanks

View Replies !    View Related
On Press And Hold Button ?
hey!
id like help with creating a button with the following functionality..
if u click it, it acts like normal.. and runs some script or sets a value or whatever.. but how do i do it so that if the mouse button is held down while on the button it would after 2 seconds keep runing whatever its told to do untill mouse button is released..

im making a volume controll button, and want it to by 1 click jump up 1 % in volume, but as this gets tedious to press , i want it to go up by 1 really fast if its held down .. thanks

View Replies !    View Related
Loop Sound On Press And Hold
this._parent._parent.onRelease = function() {
mySound = new Sound(this);
mySound.attachSound("Click.wav");
mySound.start(0, 1);
play();
};

above is the code I am using, how do I modify it to loop the sound
while mouse is down and stop when mouse is up!

Thanks In advance!

View Replies !    View Related
Repeating Sounds, But Only When U Press And Hold A Button
how do i get a sound clip to continue repeating itself only when i press and hold on the button? for example; a scrollbar.

i'm not sureif this can be done, i reckon it should be able to.

cheers

View Replies !    View Related
Continuous Movement Of Movie Clip X,y On Mouse Press
I have a movie clip called "one" The size of the clip is 2100px by 1500px. The flash movie (fla) stage is 700x500, so it obviously isn't all visible. My challenge is have arrow buttons at the bottom of the movie that, when clicked will move the movie clip, "one" across the stage. I would like to have the buttons function so that as long as the left arrow, for example, is in the down position, the movie will continue to move across the stage. Thanks in advance for your help--miramont

View Replies !    View Related
How To Get A Flash Movie Symbol To Stretch With The Mouse, Across Frames
Hey,

I am using frames on my website. I have an animation of "liquid" in a container, I am trying to get the liquid to raise when the mouse moves up, and lower when the mouse moves down, it must be limited to raise by a certain number of pixels ie. it wont raise higher than 68 pixels. I am also trying to make it raise slower when the mouse moves slowly, and fast when the mouse moves faster. Is this possible, and if so how would I do this ?

Thanks

Doomsday

View Replies !    View Related
Help With Bullets Hold Mouse Down ?
hey .. im in the making of a alien invaders type game .. and i wanna input an upgrade after level 3 .. like u can purchase it or something .. i wanna have it upgrade to rapid fire .. like holding the mouse down .. but i cant seem to figure out how to make it fire by holding the mouse down.. the code i have says _rootonMouseDown = function .. so why wouldnt that repeat the action .. ? im baffled ne help would be apprieciated .. heres the link to the game so far..

http://img46.exs.cx/my.php?loc=img46...vaders2223.swf

also if it helps heres the code im using

//-------------MOUSE CLICK----------//
_root.onMouseDown = function() {
// duplicate the bullet mc
attachMovie("bullet", "bullet"+bulletNum, bulletNum);
// set the coords to the mouse clik
eval("_root.bullet"+bulletNum)._x = _root.defender._x;
eval("_root.bullet"+bulletNum)._y = _root.defender._y;
// increment the bullet number
++bulletNum;
// if more than 5 bullets , start again at 0
if (bulletNum>5) {
bulletNum = 0;
}
};

View Replies !    View Related
Mouse Hold Popup Menu?
Hi, I am new to the scene and wondering if anyone can point me in the right direction. I want to create a popup menu that will appear anywhere within my screen just by holding down the mouse button for a few seconds. I cannot find anything that has already been done. Does anyone have examples or know some good pointers on how to make this work.

Thanks in advance.

View Replies !    View Related
Rotate Image On Mouse-hold
Hello,
I tried the great tutorial Object VR in Flash by Tim Murray (http://www.flashkit.com/tutorials/3...r-989/index.php) where I can easily rotate objects. Now, the object always rotates when I go over the image sequence. Do you know the coding, that it just turns when I press and hold the left mouse-button?

Thanks a lot...
Michael

View Replies !    View Related
[Q] Rotate With Mouse Hold And Drag
Hi
I have a simple symbol (a beam) ..
I want user can click on it and hold mouse down and when he drags mouse my symbol can rotate. I mean for example if I drag mouse top or bottom my symbol rotate CC or CCW. I mean like a disk user can rotate it with mouse.

thanks in advance

View Replies !    View Related
How To Repeatly The Function While Mouse Button Is Hold Down?
I have created a function that do things for me. Then I created a button with the script like this..

--snip--
on(press) {
functionMe();
}
--snip--


I realize that "functionMe()" is only called once when I press and hold down the mouse button. How do I get the "functionMe()" to be repeatly called while the mouse button is hold down??

Thanks...

View Replies !    View Related
How To Repeatly The Function While Mouse Button Is Hold Down?
I have created a function that do things for me. Then I created a button with the script like this..

--snip--
on(press) {
functionMe();
}
--snip--


I realize that "functionMe()" is only called once when I press and hold down the mouse button. How do I get the "functionMe()" to be repeatly called while the mouse button is hold down??

Thanks...

View Replies !    View Related
?symbol That Follows Mouse But Is Stopped By Other Symbol?
basically what i need help with is im trying to make a symbol follow the mouse, but i need the symbol to only move in a cirtain area, like have a box surrounding it so it cant get out...

View Replies !    View Related
On Mouse Press Load Movie To Level 5 And Unload Movies From Level 6.7.8.9 ?
on mouse press Load movie to level 5 and unload movies from level 6.7.8.9 ???

Ok here is the deal
I have 5 Music files I created 5 seperate flash movies for them

As it stands now I have

Track1 load to level 5
Track2 load to level 6
Track3 load to level 7
Track4 load to level 8
Track5 load to level 9

The problem is how I script that if I press track 1 to unload level 6,7,8,9 so only level 5 track playing

Or if I press Track 5 to unload movies level 5,6,7,8

This is what I done so far
http://eclipse.ebportal.com/bluenotejazz/index.html

If u press on track1 and after on track 2, Track 2 will just upload new flash file on top of track 1.


Now I am not good with this but, this is what I tried
This is as code stands

on (press) {
stopAllSounds();
loadMovieNum("flash/track1.swf", 5);
play();
}

This is what I was trying to do for TRACK 1

on (press) {
stopAllSounds();
loadMovieNum("flash/track1.swf", 5);
play();
}
on (release) {
unloadMovieNum(6,7,8,9);
}

---------------------------------

Of course for Track 2 this would be

on (press) {
stopAllSounds();
loadMovieNum("flash/track2.swf", 6);
play();
}
on (release) {
unloadMovieNum(5,7,8,9);
}


ETC

Pls some help need it here and its URGENT !!!

View Replies !    View Related
[F8] Key Press To Mouse Press
The code below is a sample i want to change to onMousePress from keyPress. my attempts have not worked. come someone give me some pointers?


rat


PHP Code:




fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
Stage.scaleMode = "noscale";

stop();

// use spacebar to re-draw screen

var canvasArray = new Array();

for (var p in this) {
    var curCanvas = this[p];
    if (curCanvas instanceof MovieClip) {
        canvasArray.push(curCanvas);
    }
}

pressSpacebar = new Object();
pressSpacebar.onKeyDown = function() {
    if (Key.isDown(Key.SPACE)) {
        for (var i=0; i<canvasArray.length; i++) {
            var curCanvas = canvasArray[i];
            curCanvas.drawCanvas();
        }
    }
}
Key.addListener(pressSpacebar);

View Replies !    View Related
Mouse Trailer Effect For A Symbol Vs. A Mouse
i am trying to create a trail behind an object - like a mouse trailer. i have found many mouse trailer scripts but do not know what to adjust so that it will follow an object/symbol versus the mouse movement....thanks for you help....here is the script that i was gonna use....

//initialization
d=1;
speed=10;
ssize=10;
dif=60;

//create sample
_root.createEmptyMovieClip("sample", 16000);
with(_root.sample){
lineStyle(5, 0x0, 70);
moveTo(-10, 0);
lineTo(10, 0);
moveTo(0, -10);
lineTo(0, 10);
}

//hide sample
_root.sample._visible=0;

//duplicating clips
_root.onMouseMove=function(){
duplicateMovieClip("sample", "start"+d, d);
_root["start"+d]._x=_root._xmouse+random(dif)-dif/2;
_root["start"+d]._y=_root._ymouse+random(dif)-dif/2;
_root["start"+d]._width=ssize;
_root["start"+d]._height=ssize;
mColor=new Color(_root["start"+d]);
mColor.setTransform({rb:random(256), gb:random(256), bb:random(256)});
_root["start"+d]._visible=1;
_root["start"+d].onEnterFrame=function(){
this._alpha-=speed;
if(this._alpha<=0) removeMovieClip(this);
}
d++;
}

View Replies !    View Related
Mouse Press / Mouse Down Performance
I seem to be having a little difficulty with the performance of an onMouseDown handler. Basically the app runs fine with the odd mouse click here or there, but as soon as a user presses the mouse rapidly the _xmouse and _ymouse values don't appear to be upated correctly.

The app wide onMouseDown handler is basically just:


Code:
public function onMouseDown():Void
{
if (_xmouse>=0 && _xmouse<=STAGE_WIDTH)
{
bMouseDown=true;
}
}
The app then simply checks for bMouseDown in the run/onEnterFrame loop, moves a pointer based on current _xmouse and _ymouse values and then resets the bMouseDown to false. It appears that the x and y values of the mouse pointer aren't updated as fast when a load of rapid mouse clicking goes on, but I'm not 100% sure. The performance of the rest of the app remains constant - i.e. it doesn't seem to be effected by the rapid mouse clicking - just the x/y mouse coord update.

If anyone can shed some light on this I'd be grateful!

Cheers


edit: using flash 8, MTASC, FDT and sweat

View Replies !    View Related
[MX2004] Movie Symbol As A Button Symbol
I have a scrollout menu for my flash movie, but each of the buttons have to be movies symbols. I try to attach:

on (release) {
gotoand stop(4)
}

But I get the error that this script only works for buttons. Anyone able to lend some assist? I suck at actionscript. ;p

View Replies !    View Related
[MX2004] Movie Symbol As A Button Symbol
I have a scrollout menu for my flash movie, but each of the buttons have to be movies symbols. I try to attach:

on (release) {
gotoand stop(4)
}

But I get the error that this script only works for buttons. Anyone able to lend some assist? I suck at actionscript. ;p

View Replies !    View Related
Mouse Click + Key Press?
I'm trying to use a button on my site that you can only open (for novelty, not security) by holding down "`" and clicking. Is this possible? I tryed this:


Code:
on (release, keyPress "`") {
getURL("http://www.mysite.com/mypage.php", "_self");
}


But, either the click OR the keypress opens mypage.php. Is there a way to say ONLY with release and the keypress to getURL? Thanks for any help!

Brando

View Replies !    View Related
Mouse-button-press
hello,

I´ve made a button. Every time I push it I want a piece of graphic to start move, and it does. My problem is that it only moves when i press the mouse button down...then it stoppes. I want it to move all the time while I keep the mousebutton down...can someone please help me with this!?

I´m not an expert at coding so please keep it simple, if you want...

thx / jan

View Replies !    View Related
[F8] Hold Last Frame Of Intro Movie
Hello,

You can find the file that I am referring to here:

http://goteama.com/temp/lindsey/layout3/layout_3.html

Hopefully you will see a hint of the intro movie, a white "L", before the site builds and your in.

I want the intro movieclip to stop on the last frame, hold there and wait for the first 15 frames of the movie to load.

The movieclip itself has a stop action on it's last frame, and frame 2 of the main timeline has the following action on it:

stop();
if _framesloaded == 15 {
gotoAndPlay("build")
}

What currently happens is that the movie clip starts playing and then as soon as the first 15 frames are loaded it jumps.

Any help would be appreciated.

Aris

View Replies !    View Related
Array To Hold Movie Info
Hey. I've got a little slideshow with back and forward buttons. I have a simple variable called index which holds the number of the current movie. Here is my code:


Code:
var index:Number = 1;

_root.back.onRelease = function() //back button
{
if(index == 1) // rollback to the last image if click back at first image
index = 5;
else //else go back one image
--index;

// Load movie depending on index
loadIndex(index);
}

_root.forward.onRelease = function() //forward button
{
if(index == 5) // rollback to the first image if click forward at last image
index = 1;
else //else go back one image
++index;

// Load movie depending on index
loadIndex(index);
}

function loadIndex(index_param)
{
switch(index_param)
{
case 1:
{
_root.holder.loadMovie("chair.swf");
break;
}
case 2:
{
_root.holder.loadMovie("wire.swf");
break;
}
case 3:
{
_root.holder.loadMovie("broken_gate.swf");
break;
}
case 4:
{
_root.holder.loadMovie("fence.swf");
break;
}
case 5:
{
_root.holder.loadMovie("under_bridge.swf");
break;
}
}
}
What I want to do, is store the movie path names in an array, so that I can change loadIndex() to look something like this:


Code:
function loadIndex(index_param, movie_array[])
{
_root.holder.loadMovie[index_param];
}
For example, if index_param is 1, the chair movie will get loaded. Sorry about the array syntax but I'm use to using C++ so I don't know how to code a lot of things in actionscript.

Thanks!

View Replies !    View Related
Movie Only Plays When I Hold Down Button Why?
Button a, when pressed triggers a few things. I triggers a mask to tween in to uncover some text. But the movie will only play as long as i have the button pressed .. Why is that????? ITS SO ANNOYING

thanks in advance

k

View Replies !    View Related
Movie Only Plays When I Hold Down Button Why?
Button a, when pressed triggers a few things. I triggers a mask to tween in to uncover some text. But the movie will only play as long as i have the button pressed .. Why is that????? ITS SO ANNOYING

thanks in advance

k

View Replies !    View Related
DETECTING MOUSE PRESS WITHOUT USING BUTTONS
I am having a problem with a touchscreen presentation created in flash 4.
the touchscreens are being used in the reception area of some high_class clinic,
the client wants them to reset to an intro screen if no one uses them for a period of 5 mins
i have managed to find an actionscript time delay but need to find a way of detecting a MOUSE PRESS / RELEASE, without putting a huge blank button over the whole screen (therefore rendering all the buttons beneath , completely useless) or having to add tell target actions into EVERY button in the WHOLE presentation.

if anyone out there can help it would be much appreciated

View Replies !    View Related
Action On Key (keyboard Not Mouse) Press
I want to skip to a certain frame in my movie when the user presses a certain key. No mouse actions involved at all!

Is this possible, if so how?

Thanks for the help...

View Replies !    View Related
Continous Scroll On Mouse Press
I guess the subject says it all.
I wanna know how to keep text scrolling when the mouse is kept pressed..instead of pressing it everytime to go to the next frame of the text movie !
Thanks
Sam

View Replies !    View Related
Mouse Press And SwapDepth Functions Please Help
ok so i have this flash program thing, which you can view here:

http://texstyles.net/flipchart.htm

(wait a min to load)


and i need to add something for when you click the box, not only does the chart itself change color, but a label is displayed underneath the buttons

i have all the labels done, as images.




and here's my code so far:


Code:
b1.onPress = function() {
original.swapDepths (0);
}

b2.onPress = function() {
c1.swapDepths (0);
}

b3.onPress = function() {
c2.swapDepths (0);
}

b4.onPress = function() {
c3.swapDepths (0);
}
b5.onPress = function() {
c4.swapDepths (0);
}
b6.onPress = function() {
c5.swapDepths (0);
}
b7.onPress = function() {
c7.swapDepths (0);
}
b8.onPress = function() {
c8.swapDepths (0);
}
b9.onPress = function() {
c9.swapDepths (0);
}
b10.onPress = function() {
c10.swapDepths (0);
}
b11.onPress = function() {
c11.swapDepths (0);
}
b12.onPress = function() {
c12.swapDepths (0);
}
b13.onPress = function() {
c13.swapDepths (0);
}
b14.onPress = function() {
c14.swapDepths (0);
}
b15.onPress = function() {
c15.swapDepths (0);
}
b16.onPress = function() {
c16.swapDepths (0);
}
b17.onPress = function() {
c18.swapDepths (0);
}
b18.onPress = function() {
c19.swapDepths (0);
}
//b19.onPress = function() {
//c20.swapDepths (0);
//}
b20.onPress = function() {
c20.swapDepths (0);
}
b21.onPress = function() {
c21.swapDepths (0);
}
b22.onPress = function() {
c22.swapDepths (0);
}
b23.onPress = function() {
c23.swapDepths (0);
}
b24.onPress = function() {
c24.swapDepths (0);
}
b25.onPress = function() {
c25.swapDepths (0);
}
b26.onPress = function() {
c26.swapDepths (0);
}
b27.onPress = function() {
c27.swapDepths (0);
}
b28.onPress = function() {
c28.swapDepths (0);
}
b29.onPress = function() {
c29.swapDepths (0);
}
b30.onPress = function() {
c30.swapDepths (0);
}
b31.onPress = function() {
c6.swapDepths (0);
}

b41.onPress = function(){
c41.swapDepths(0)
}

i tried doing like undeneat c1.swapDethps (0); l1.swapDepths(0); but it kept messing up

l1 is label 1, and etc.

View Replies !    View Related
Mouse Press Vs Keypress Issue
I have a conflict between a mouse click action and a key press action. I have a button (type:button) which is triggered using an onRelease function on another layer but within the same mc. When I use a mouse to click the button and trigger the event it works fine, but when I tab through the various fields to the button and use 'enter' to trigger the action it does not respond correctly. I have tried using a keyDown event to correct this, but it had no effect. How can I get this button to have the same response whether the mouse or the enter key triggers it. I doubt it is necessary, but here is the onRelease and onKeyDown code:

Code:
loginBtn.onPress = function(){
sendLoad.login = true;
sendLoad.user = user.text;
sendLoad.pw = pw.text;
sendLoad.sendAndLoad(_global.filePath1, receiveLoad, "POST");
}
loginBtn.onKeyDown = function(){
sendLoad.login = true;
sendLoad.user = user.text;
sendLoad.pw = pw.text;
sendLoad.sendAndLoad(_global.filePath1, receiveLoad, "POST");
}
Any suggestions would be appreciated. Thanks in advance!

View Replies !    View Related
Program Mouse Wheel Press
I know the turn of the mouse wheel can be programed in AS3.0.
Can the press of the mouse wheel be programed in AS3.0?

View Replies !    View Related
Rotate Movieclip On Mouse Press
HI all,

Please help me to achieve this.

I have attached my fla. I want rotate the mc by Mouse drag. But its get some of the jerk, So plz find out my fault and give the solutions

Please.... Its very urgent....

Regards,
Suresh J David

View Replies !    View Related
Force/Override Mouse Press
I am unable to think of a suitable search term relating to this problem and have spent hours researching it already...

So my problem relates to the lack of rollOver functionality for htmlText asfunctions. I am looking for an AS2 work around and have read a number of interesting ideas but devised a potentially simpler one myself.

This is the part I am struggling with - I want to be able to make Flash think that the mouse is pressed when it is not.

My idea is to create a repeating onEnterFrame function which for a split second makes flash think the mouse is pressed and would trigger buttons AND asfunctions as if it really were a user made press. I can add a variable to declare it is not a user made mouse press and trigger a rollOver version of the asfunction... this would mean all onRelease functions would need to check for the declaration but that shouldn't be too bad to impliment.

Any thoughts and possible work arounds would really be appreciated.

View Replies !    View Related
Random Keyframe On Mouse Press
Sorry for asking a stupid question, I couldn't find any answers while searching the forums.

The problem is - say i've got 10 keyframes, each keyframe has a picture on it. I want it to randomly pick a keyframe when the user clicks the mouse (each keyframe will have a stop command)

Its for a teacher so she can ask the pupils questions about the image, they wanted it random.

Thanks for any reply.

Cheers

View Replies !    View Related
[F8] Actionscript 2 Hold Last Frame Of Intro Movie
Hello,

You can find the file that I am referring to here:

http://goteama.com/temp/lindsey/layout3/layout_3.html

Hopefully you will see a hint of the intro movie, a white "L", before the site builds and your in.

I want the intro movieclip to stop on the last frame, hold there and wait for the first 15 frames of the movie to load.

The movieclip itself has a stop action on it's last frame, and frame 2 of the main timeline has the following action on it:

stop();
if _framesloaded == 15 {
gotoAndPlay("build")
}

What currently happens is that the movie clip starts playing and then as soon as the first 15 frames are loaded it jumps.

Any help would be appreciated.

Aris

View Replies !    View Related
Radio Button / Movie Clip Value Hold?
Hello, Can anyone give me some direction??

I've basically got a movie clip working as a radio button with rollovers etc...
It's coded to work with the same clip side by side using if statements.
There are various pages on different frames with radio buttons on each page.

What i would like to happen is that when I change between frames that the radio buttons hold their values from the previous frame.....so when they are revisted they are still the same value until changed again.

Should I add listeners, or boolean values via a global variable to achieve this.
I guess it's a true / false solution, but I'm not quite there yet.

It would be great if someone could point me in the right direction

Many thanks
tight lines

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