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








Holding Down Mouse


how do I make it so that when the mouse is held down that it will keep fireing a bullet?

right now I use
onClipEvent(mouseDown){




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-24-2006, 12:05 AM


View Complete Forum Thread with Replies

Sponsored Links:

Holding The Mouse?
I made a button and i want it so that you click on it and it repeats the action until you let go.

Anyone?

Stwelin~

View Replies !    View Related
Holding Down The Mouse.
Is there anyway to make holding down into an "if" statement? I need to have an else attached to it.

View Replies !    View Related
Holding Down The Mouse
Is there any way of making something move when the mouse is held down on it (a button)? I am doing a custom scroll thing for my website.

Please Help

Benji

Btw, the code is as follows at the moment:

HTML Code:
on (release) {
intro.scroll -= 2;

}
For the Up Scroll Button. I want to change the (release) to something else, the behaviour that lets you hold down the mouse...

Thanks

Benji...again..

View Replies !    View Related
Holding Down The Mouse
Is there any way of making something move when the mouse is held down on it (a button)? I am doing a custom scroll thing for my website.

Please Help

Benji

Btw, the code is as follows at the moment:

HTML Code:
on (release) {
intro.scroll -= 2;

}
For the Up Scroll Button. I want to change the (release) to something else, the behaviour that lets you hold down the mouse...

Thanks

Benji...again..

View Replies !    View Related
Question About Holding The Mouse Button Down
heh, my second question in as many hours, please be kind : /

I want some code to execute every frame during which the left mouse button is held on a movie clip, is there some kinda handler like on(mouseHold) or something?

View Replies !    View Related
Holding Mouse Button Down To Scroll
if i wanted to make something move by holding the mouse down, what code do I have to use?

The code I am using now, which is just to zoom onto my MC. But I dont want to have to click over and over just to get it to zoom in, i would much rather just hold the mouse down

And also, would the same code work for scrolling my MC in different directions...such as:


ActionScript Code:
on(release) {
move._xpos += 20;
move._ypos += 20;
}

This is what I currently have for just the zoom buttons:


ActionScript Code:
on(release) {
zoom._xscale += 20;
zoom._yscale += 20;
}

View Replies !    View Related
On(press).... Holding Down Mouse, Continue Action?
Sorry guyz I had no idea what to title this thread!

I have a button and when the user clicks, a movie clip rotates 1 degree. I have an on(press) on the button.

Is there a way that, if the user holds down the mouse button, the mc will keep rotation, instead of having to click, and click, and click....?

Sorry if thsi is a dumb question.
Thanks!

View Replies !    View Related
Holding A Key ONLY Once
Hey freinds.

So how do I make a keypress event only act once, until you let go of the key, and then allows you to do it again?

help appriciated
thanks guys

View Replies !    View Related
Holding Down A Key
Hey I'm trying to set up my main character to use a shield as long as SHIFT is held down

if (Key.isDown(Key.SHIFT))
{

this.gotoAndPlay(7);


}

That is my code so far, but my character only goes to block and then goes back to his initial state, I would like him to keep the shield out front while SHIFT is held down.

View Replies !    View Related
Holding On A Frame
Hi everyone

I've put this code on a frame so it holds for a while before moving on.

count += 1;
times = 66;
if (count<times) {
gotoAndPlay (10);
} else {
}

View Replies !    View Related
Holding Sessions
I have a flash file linking through to a product on an e-commerce site.

Problem is it logs you out when you click the link.

So I'm guessing it is losing the session when you click through from flash.

Is there a quick and easy way to keep the session going so clicking from the flash file does not log you out?

Is there a way to embed a variable in the html which will be available to flash so that we can include it in the URL when something is clicked?

Thanks in advance.

Mike..
[Edited by Gambit on 10-16-2001 at 12:53 PM]

View Replies !    View Related
Holding Movie
Is there any way to hold a movie to its last frame so it doesnt completely stop the movie or start over???

View Replies !    View Related
Buttons - Holding Down
I've got a button that i'm using to scroll a movie clip which holds pages i load.

in the actions for the button, i've got :

on (press)
{
if ((contents._y + contents._height) > 540)
{
contents._y = contents._y - 50;
}
}

which all works lovely, but how do i get it to repeat that action if the mouse is held down, and also how do i make it wait a certain amount of time before each repeat, so it dunt go scrolling away like mad.

View Replies !    View Related
Movement On Holding Down Key
Hello, basically what i need to find out, is when i press and more importantly hold down the mouse on click of a button, i can move the object around the screen without continually clicking and getting RSI.

cheers

lee

View Replies !    View Related
Holding A Button Down
Is there a command for holding down a mouse button? I imagine if there isn't, there has to be a command somewhere that allows me to loop a command, for the very simple purpose of moving through a scene frame-by-frame...

on(????) {
gotoAndStop(prevFrame());
}

"Continue" doesn't work. I hope I'm not missing something obvious.

View Replies !    View Related
Holding Down Button
how would i make a button keep doing sumthing when ur holding it down say i have this code

code:
on(press){
somText.scroll +=1
}


how would i make so that when im still holding it down it still moves?

View Replies !    View Related
Holding A Button Down
Hiya in my website i have 2 arrows u can press to make the text move up and down (scrolling) but i was wondering if there was a type of script to keep it going down if i hold the button, insteading of having to keep clicking it?

Thanx, Kitz

View Replies !    View Related
Prevent Key From Holding
Hi all, i in a making of a small game,

Let say i need the player to press the space bar to shoot a bullet, but i dunwan him to hold down the space bar beacause this will casue the bullet to shoot continue, but instead i wanna the player to repeatly press the space bar (instead on holding). How can i script in this way that if the key is being hold, it will do nothin?

View Replies !    View Related
Stop Someone Holding Down Key
Hi,

I have a keyboard-bashing game, which uses this code to do the work:


Code:
onClipEvent (keyDown) {
bounce = false;
xscale = Number(xscale*1.008);
yscale = Number(yscale*0.992);
}
onClipEvent (keyUp) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
onClipEvent (keyDown) {
intCount++;
_level1.intTotalCount++;

if (intCount==1) {
loadMovieNum("sound2.swf",2);
loaded=math.round(_level1.getBytesLoaded());
if (loaded<1) {
loadMovieNum("countdown.swf",1);
}
}

if ((intCount==1)||(intCount==4)||(intCount==10)||(intCount==26)||(intCount==38)||(intCount==44)||(intCount==52)) {
singer.Play();
}

setProperty(singer.mouth,_xscale,((intCount/0.8)+65));
setProperty(singer.mouth,_yscale,((intCount/0.8)+65));

if (intCount==22){
loadMovieNum("sound2.swf",3);
}
if (intCount==28){
loadMovieNum("sound2.swf",4);
}
if (intCount==38){
loadMovieNum("sound2.swf",5);
}

if (intCount==32) {
singer.eyes.Play();
loadMovieNum("sound3.swf",6);
}

if (intCount>=24) {
setProperty(singer.eyes,_xscale,((intCount/0.8)+65));
setProperty(singer.mouth,_yscale,((intCount/0.8)+65));
}

if (intCount>=20) {
setProperty (singer, _xscale, (((intCount-20)/12)+30));
}

if (intCount==52) {
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
unloadMovieNum(6);
_global.intHelmets++;
_root.play();
}
}

It can probably be shortened and optimised, but I'm not worried about that now.

I basically need to stop someone from holding the key down which is obviously cheating!

I've found this code posted elsewhere on the forum, but my lack of actionscript knowlege means that I have no idea how to apply it:


Code:
controls = new Object()
controls.onKeyDown = function() {
if (Key.isDown(Key.SPACE) == true && spaceDown == false) {
moving = true
player.gotoAndPlay(5)
spaceDown = true
}
}
controls.onKeyUp = function() {
if (Key.isDown(Key.SPACE) == false && spaceDown == true) {
spaceDown = false
}
}
Key.addListener(controls)
Can anyone show me how to combine the two? I'm really crap when it comes to actionscript, so the simpler the better!

Thanks very much...

View Replies !    View Related
Holding Information
I want to make a high score list for my game, but I do not know how to make it so my website will keep the information. How do I do this?

View Replies !    View Related
Holding Down A Button?
I've been trying to write an Actionscript code that checks to see if a button is being held down. I've tried just about everything, so now I need the Internet to save me. It's probably pretty simple for someone who knows what they're doing.

Just to make myself more clear, it's an actual button on the screen, not a keyboard button. When it's pressed it loops some random commands, and when it's released it stops. That's about all I want to do.

View Replies !    View Related
Holding Down A Button
Is there some simple code that I can use if, for instance I want to have a button that is a counter, like a power button, that increases the longer you hold it?

Like if I hold down Button X, there is a steadily increasing value to the side, rather than repeatedly hitting Button X?

View Replies !    View Related
How Do I Get It To Respond To NOT Holding Down A Key?
Here's my code with the keys:

Code:
switch (evt.keyCode)
{
case Keyboard.RIGHT:
speed += 0.2
if (speed > 10)
{
speed = 10
}
level_mc.guy_mc. x += speed
level_mc. x -= speed
level_mc.guy_mc. gotoAndStop ("right")
break;
case Keyboard.LEFT:

speed -= 0.2
if (speed > -10)
{
speed = -10
}
level_mc.guy_mc. x -= speed
level_mc. x += speed
level_mc.guy_mc. gotoAndStop ("left")
break;
case Keyboard.UP:

speed += 1
if (speed > 10)
{
speed = 10
}
level_mc.guy_mc. y -= speed
level_mc. y += speed
break;
case Keyboard.DOWN:
level_mc.guy_mc. y += 5
level_mc. y -= 5
break;
default :(speed = 0)
level_mc.guy_mc. gotoAndStop ("idle")

}
The problem is, it doesn't stop at the "idle" frame like I wan't it to. And also, how do I get a text box to show a number variable.

View Replies !    View Related
How To Disable Holding Down A Key
Currently I'm using this kind of code to register key presses:

if(key.isdown(KEY.SPACE) && !moving){
moving=true;
player.gotoAndPlay(5);
}

then in the last frame of the mc player:
moving=false;

It works pretty good now but you can just hold the space down and it'll do the action kinda automatically. So I want it to only register one press of space then wait for the player to release it and after that wait for space to be pressed again.

View Replies !    View Related
Holding The Over State
Hi
Is there a way to make a button remain in it's over state using actionscript? I have a menu where I want to have the usual button highlights on rollover, but when a link is clicked it stays highlighted until another button is clicked - is that possible?

cheers

View Replies !    View Related
Holding The Over State
Hi
Is there a way to make a button remain in it's over state using actionscript? I have a menu where I want to have the usual button highlights on rollover, but when a link is clicked it stays highlighted until another button is clicked - is that possible?

cheers

View Replies !    View Related
Simulate Key Holding Down
Hi

I'm making a small flash game and I have a problem with my character when moving or slashing. When I hold the left key down, my character starts moving left. Now I want my character's legs to move while he going left, but when I hold the left key down, he performs only the first frames of the legs moving, then he goes back to the first frame and at the end, when i let the left key loose, he performs the movement of the legs completely.
I want to be able to check if a key is pressed. When this happens, I still want my character to move left, but I also want that his legs keep moving while he's moving left and right.

part of my code on the movieclip of my character:
onClipEvent (enterFrame){
if (Key.isDown(Key.RIGHT)){
_root.Ninja_mc.gotoAndPlay("Walk");
_root.Ninja_mc._x += speed;
}
}

Can anyone tell me how to check if a key held down for a certain time?

Thanx

View Replies !    View Related
Holding Down Left Click...
this is what i want to do...

i have a scroll bar.. you know how when you hold down the arrows on a scroll bar it continoue to hold....


this is what i have done...

frame 1 (Up button)
==================================
on (press, keyPress "<Up>") {
if (scroll>=0 or scroll<=_root.height) {
_root.webwindow.content._y -= 10;
}
}



frame 2
================================
gotoAndPlay(1);


so what have i done wrong? I know there is a logical error..~

View Replies !    View Related
Actions While Holding Down A Button
Hi. I have some buttons to control scrolling of an html frame. It works okay, but right now the behaviour is that it only scrolls after the user releases. This makes it kind of annoying if you want to scroll a lot because you have to keep on clicking. How can I make it continue to scroll when when the scroll button is still held down? I tried "on (press)" although that seemed to behave the same way as "on (release)".

View Replies !    View Related
Holding A State For A Button?
hi all, i have a basic problem with my button state. what i'm trying to do is have buttons, so that when someone clicks on one, it holds the over state (or down state).

so say i have 10 red buttons. when someone clicks on button 1, it turns green and stays green even if you move your cursor away from the button. but when you click on button 2, button 2 turns green and button 1 becomes red again. so no matter what, only one button will be green at any given time. and when in the green state, the button is no longer "hot" so you can't keep click it over and over.

i know how to do this with physical frames, but would really like to know how with actionscript.

many many thanks!!!

View Replies !    View Related
Is Macromedia, Holding Out On Developers?
Hello, I was on the phone with Macromedia yesterday, for some reason Freehand stopped working, not really sure why - neither was their tech support person. It used to work fine but suddenly stopped for no apparent reason...

Anyway, when I was trying to trouble shoot my issue, the technician said click this this and that, and I said the the option he had mentioned was not on my menu. He asked which version of Freehand I was using, and I told him 10. He then said oh, well mine (the technicians) must be newer than the one I was using. I asked how is that possible, there have been no updates that I have heard of. He proceeded to tell me that as issues arise, they are corrected and implemented for the same versions of software. I asked well where can I get patches, he then told me - you can't they are sold with new purchases. All of the bugs will be fixed in the next full release.

I was totally disgusted with this. I spent several hundred dollars for Studio MX and what - I can't have the patches unless I buy a newer copy?! This has lead me to this forum to ask - has anyone recently bought Studio MX that would be willing to give me, a registered user, a copy?

I really think Macromedia had better find a way to make sure that those of us who have supported their software and make our livings using it get "what we paid for", whether it means releasing patches or even offering a new upgrade CD for say $10 $20 dollars when modifications are made. Any thoughts??

View Replies !    View Related
Holding Drop Down Text
What I am trying to do is to some title text that pops out below/drops down from behind a black bar (at the top) once the user mouses over a button. Then, whilst the title text/header is still visible on the mouse over state, the user can then click on the button and a further drop down text box appears at the same time (both text boxes holding at the same time on mousedown). I have tried to put in stop actions, but the text keeps disappearing/flickering once the button changes different hit states.

I hope that makes sense to someone...?

Wei

View Replies !    View Related
Holding Down SHIFT And CTRL
Okay, so I want to make a button (can do that), but I want it to activate when ALL of the following conditions are true...

1. The user has the CTRL key pressed down (left CTRL or right CTRL).

2. The user has the SHIFT key pressed down (left shift or right shift).

3. Only when those two are met, can the user right CLICK on the button, and it takes them to frame x.

I've tried messing around with the action script myself, all to no avail

View Replies !    View Related
Moving Character Without Holding Down Key
hi

trying to do a remake of the classic "snake" game.

I am currently having trouble getting the snake to continuously move without holding down the keys.

I am using setinterval, but it seems to conflict with my function onEnterFrame

as far as i know, i need the onEnterframe in order for flash to keep checking if a new key has been pressed, but it also seem s to reset my setInterval

heres my code:

class Head extends MovieClip{

var speed:Number = 20;

function Head(){

}

function onLoad(){

}

function doMove(){
if(Key.isDown(Key.UP)) {
setProperty(this,_rotation, 90);
setInterval(up(), 500);
// _y -= speed;
}
else if(Key.isDown(Key.DOWN)){
setProperty(this,_rotation, 270);
setInterval(down(), 500);
//_y += speed;
}
else if(Key.isDown(Key.LEFT)) {
setProperty(this,_rotation, 0);
setInterval(left(), 500);
//_x -= speed;
}
else if(Key.isDown(Key.RIGHT)){
setProperty(this,_rotation, 180);
setInterval(right(), 500);
//_x += speed;
}


}

function onEnterFrame(){
doMove();
}

function up(){
_y -= speed;
}
function down(){
_y += speed;
}
function left(){
_x -= speed;
}
function right(){
_x += speed;
}
}


I tried to look at a few pacman actionscripts, but it only confuses me

any help will be appreicated

View Replies !    View Related
Components -- Holding Selected
I'm new to using components. What is the best way to get a component to hold its data? I have a multi-page form that contains many check-boxes, radio buttons, etc. I also have some elaborate action script that assignes values to variables and then when a page loads if a certain variable contains data then the matching component is selected.

Is there an easier way making the components hold their selected or not selected values? Do they have some built in method that does this, or is my method of assigning the values to variables the way to go?

Thanks.

_t

View Replies !    View Related
Need Code For Holding Down MouseDown
hi htere ppl,
i am currently making a game where the objective is to shoot enemies. ANd my character is holding a machine gun. However when i use the mouseDown code i have to keep on clicking with my leftclick. I need code so that my character can continusously shoot. here is the current code:

onClipEvent (mouseDown) {
_root.character.gotoAndPlay(2);
}
onClipEvent (mouseUp) {
_root.character.gotoAndPlay(1);
}

"character" is the instance name for the dude you play as. And Frame to is the frame where he is shooting. Help would be great!

View Replies !    View Related
Data Holding Objects
I would like to have Objects that contain a string and a number (and can easily be expanded to hold more). I thought about creating an external class file but that seems like a lot of work becuase all I really want is a struct. Can I create an internal object, or an list or array of default objects somehow? What would you guys reccomend?

View Replies !    View Related
[F8] Holding Textfield Values
I have a two frame movie. In the second frame I am dynamically creating some text fields. What I would like to do is when a user enters text into the text fields on frame two, if they go to frame one and come back to frame two the text will still be there. Can someone help me with this?

Thanks

View Replies !    View Related
Holding Shift While Pressing
Hi there,

I'm using Adobe Flash CS3 (Dutch version) with AS2.0 and am exporting to FlashPlayer 9.

When I create a MC on the stage and add the folowing code:

Code:
clip.onPress = function() {
trace("pressing");
};
You see the trac when you press the clip. No matter how much you move the mouse around while pressing.

However, when I hold shift while pressing the clip, the trace get's called quite often while moving the mouse over the clip.

Is this a feature or a bug?

Ps. Another think I noticed is that, while holding shift, the onRelease event get's triggered aswell.

Code:
clip.onPress = function() {
trace("press");
};
clip.onRelease = function() {
trace("release");
}

View Replies !    View Related
Holding Stage Position
I'm trying to make a photo gallery and constrain all of the image sizes to fit in the same window so I used the following code. The problem is the movieclip seems to get moved somewhere off the stage in the process even though a trace of the x,y position reveals the same location. Any tips on how to keep the top left corner of the image in the same place as it was before?

Code:
picture.loadMovie(image[p], 1);//attach actual picture to first level of movieclip
if (picture._width > picture._height)
{
smallNum = 200;
largeNum = picture._width;
}
else
{
smallNum = 200;
largeNum = picture._height;
}
// now resize the clip
var myScale:Number = smallNum/largeNum;
picture._xscale = myScale*100;
picture._yscale = myScale*100;

View Replies !    View Related
[MX04] Holding Down Keys
Hi there =]

I'm a bit of a newbie to flash, and I'm trying to create my first game.

Its a very, very basic 2D side scrolling shooter, in which the player has to jump and shoot birds out of the sky.

My problem is this, currently, its possible for the player to simply hold down the spacebar (shoot) and fire a continuous stream of bullets, and if they hold jump, the can easily kill everything on the entire screen.

Is there any way to stop this from happening? I've attempted this -


Quote:





function changeDelay()
{
delay = 0
}

if (Key.isDown(Key.SPACE))
{
if (delay==0)
{
_root.shoot(); //shoot function
delay = 1;
setInterval (changeDelay,1000)
}
}






But that doesn't seem to work! =/

Ive had a look around the forums, but I cant find an answer that helps!

Can anyone help?

Thanks in advance!

View Replies !    View Related
Variables Holding Old Values
I've got a project where there are main menus, sub menus and sub-sub menus. I have 3 classes. 1) ContentController, 2) MainNavigation controller and 3) SubNavigation controller.

Main links to Content and SubNavigation.

SubNavigation links to Content.

When you click a main button, the content changes, the sub links come out. Click a sub link, it's sub-sub menu expands. Click a main and the sub-sub and sub roll up and switch to the new main button section.

when I click a new sub button that comes out, the sub-sub navigation of the previous sections "out" button becomes visible and rolls up.

It's a variable that is holding the info.

I can clear the variable several times in multiple places along the path of the code, and when I trace it, the old variable still shows up. From nowhere.

My trace statements look like this:
main buttons are rolling up
subBtnIsOut == false
subBtnOutName == "";
Click event recieved on sub button
test if subBtnIsOut and what subBtnOutName is:
subBtnIsOut==true;
subBtnOutName==btn_strategy

Anyone know why?

Could it be that the main button class is creating an instance of the SubNavigation class and the main movie is creating an instance of the SubNavigation class?

And there are really 2 instances of the class out there?

HELP! The client says it has to be done in 2 hours. :(

View Replies !    View Related
AS Processing Holding Animation
Hi Everybody,

I'm having some problem with AS processing. My movie, firstly, load some variables from a PHP page. Once loaded, it gotoandstop to frame 2 and a lot of calculus are done with the variables loaded.

There are 2 problem. First one (and not much important) is that the objects on the stage only appears on screen after the AS processing, but when the process finish it gotoandplay frame 3. So, the objects are not visible to user, this is not so important because this frame is just a Load screen.

Second problem (real problem) is that the number of variables loaded have increased and the process are taking a long time to finish and sometimes appears a warning window saing that some script is slowing the movie and giving the user the option to Cancel process. This is a real problem because the process cant be stopped.

Has anybody any light? Thanks in advance.

If you wanna see what kind of movie it is, see the link below. Its a simple test page, look the lasts links in the page.

http://www.mrshp.shyper.com

View Replies !    View Related
Holding Instances In An Array
I'm working on a project where I have Multiple instances with the same actions.

Instead of typing out

btn1._visible = false;
btn2._visible = false;
btn3._visible = false;
btn4._visible = false;

Could I store these instances in an array so that I could minimize my code to something like:

btnArray._visible = false;

I've tried to do this but it seems to read the instances as strings instead. Someone told me that this was possible once but I forgot the solution.

Thanks for any help

View Replies !    View Related
On(release) Firing When Holding A Key?
I'm working on a ACAD flash system, and one of the functions is to draw lines. Now I'd like to be able to draw vertical/horizontal lines by holding a key down (i.e. Shift). But I'm finding that the system is detecting me releasing the mouse (I'm not) while I hold another key.

Attached is a .fla file where you can click and drag a box.

Don't worry about posting "oh you should use startDrag()" and whatnot. The architecture of the actual application makes such things not feasible. This is just a test .fla.

The code is here:
ActionScript Code:
on (press) {
this.onMouseMove = function() {
trace('Mouse is moving');
this._x = _root._xmouse;
this._y = _root._ymouse;
};
}
on (release) {
this.onMouseMove = null;
trace("Mouse released");
}
on (releaseOutside) {
this.onMouseMove = null;
trace("Mouse released");
}





So yeah, as you run it and drag the object around, you see a lot of "Mouse is moving", but if you press and hold any key, you'll also notice the "Mouse released" as well.

Thoughts?

View Replies !    View Related
AS Processing Holding Animation
Hi Everybody,

I'm having some problem with AS processing. My movie, firstly, load some variables from a PHP page. Once loaded, it gotoandstop to frame 2 and a lot of calculus are done with the variables loaded.

There are 2 problem. First one (and not much important) is that the objects on the stage only appears on screen after the AS processing, but when the process finish it gotoandplay frame 3. So, the objects are not visible to user, this is not so important because this frame is just a Load screen.

Second problem (real problem) is that the number of variables loaded have increased and the process are taking a long time to finish and sometimes appears a warning window saing that some script is slowing the movie and giving the user the option to Cancel process. This is a real problem because the process cant be stopped.

Has anybody any light? Thanks in advance.

If you wanna see what kind of movie it is, see the link below. Its a simple test page, look the lasts links in the page.

http://www.mrshp.shyper.com

View Replies !    View Related
Holding A State For A Button?
hi all, i have a basic problem with my button state. what i'm trying to do is have buttons, so that when someone clicks on one, it holds the over state (or down state).

so say i have 10 red buttons. when someone clicks on button 1, it turns green and stays green even if you move your cursor away from the button. but when you click on button 2, button 2 turns green and button 1 becomes red again. so no matter what, only one button will be green at any given time. and when in the green state, the button is no longer "hot" so you can't keep click it over and over.

i know how to do this with physical frames, but would really like to know how with actionscript.

many many thanks!!!

View Replies !    View Related
Getting The Holding Html File's Name
i have the same .swf file on 1.htm and 2.htm
how do i have the .swf file check if its being embed into 1.htm or 2.htm so it could change its contents accordingly? _url gives me the location of the .swf file, as in http://www.domain.com/flash.swf , i need to get the html file holding it

is it possible? can anyone help? thanks a lot

View Replies !    View Related
Library Objects Holding Me Up?
Alrighty, I'm a little frustraited.

I know how to make a preloader work when loading swf's.

I even know how to make a preloader work in my current project.

The problem is that my preloader starts at 92%.

I already know it's due to the fact that I'm loading my whole project before the preloader shows up, what I don't know is how to fix it.

My project is a textEditor. It loads everything from library objects (i.e. Toolbar, Textareas, etc.,) I have a single include statement for a .as file. And I have a single swf that gets loaded as a background image 'if' the particular page has a background image.

I have my preloader graphic on frames 1-4, a new keyframe is at frame 2 and 5. All my working code is on frame 5. The only code before frame 5 is the code for the preloader.

How do I set up my linkage or whatever so the the preloader will work correctly?

My mc's won't show up when called if I uncheck the "export at first frame" box under linkage and DOING SO STILL DOES NOT fix the preloader?

Can anyone help me?

View Replies !    View Related
Holding Variables In Text Documents
I have a text box set to dynamic text, and a variable name of "TextField1." On the first frame of the movie ( the only frame) I have a "set variable" action:

TextField1 = "Text goes here";

This works. However, I would like to control this variable via a text document. My plan is to have the copy writers update text within this text box via a text document at a specific URL.

Can you help?

Rich

View Replies !    View Related
Variable Holding Frame Values
i have this on a button:
on (release) {
myframevar = 11;
_root.xvariable.gotoAndPlay(47);
_root.yvariable.gotoAndPlay(50);
}
and then i have
_root.gotoAndStop(myframevar)
on the last frame of the longest movie clip. for some reason this does not take me to frame 11. can someone please explain what i did wrong and how to fix it.
i'm using flash mx

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