Simple Action Script Not Working
Ok, So I am recently new to flash and have been working well. Well I tried to make a flash light (Flashlight by Justin A ) (located in the movies) and I created everything the way i saw it and it did not work. It seems very simple but I guess I am not doing something right. COuld someone help me. I am using Flash MX and I am on a MAC.
Help l8ndagame, Myron
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-01-2006, 02:20 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Simple Form Action Not Working?
I have a simple form action placed into a flash form. I created a flash movie with a single text box and a submit button and have it working just fine except if you place a single qoute in the text box and submit the search, it then throws an error when it returns the asp page. Besides that the search function works fine in both IE and NN. I have tried to replace the single qoute with the following inside my flash code:
searchstr = searchstr.replace("'", " ");
searchstr is the variable I am using in the flash text box.
No go. The following is the flash code:
(on the submit button)
on (release) {
getURL ("/browse/browse.asp", "_self", "POST");
searchstr = searchstr.replace("'", " ");
}
I have also tried using a javascript fscommand and the replace() function in my asp page for the single quote issue and it worked great on IE 5.5 but not netscape. When you try to submit the search in Netscape nothing happens,Not sure why? This is the code I used in the asp page inside my fs command code: args = args.replace("'","")
Does netscape not support replace()? Any help or tips would be great. Thanks in advance
Simple Button Action Not Working - Why?
K, I am kinda new, but I was testing my knowledge on action scripting and this one does not make sense.
the most basic of movies, a button and a text field. 3 instances of the button, "clik" "clik1" and "clik2"
All this movie does is play for 10 frames, stop and the button action causes the movie to continue to play until the end, very simple.
instance of button called clik1 is in the stopped frame 10, if I go the actions of that instance and put in this exact code. ( I am using normal mode - less chance of spelling errors )
on (release) {
_root.clik1.onRelease = function() {
_root.play();
};
}
what happens when I test the movie is that it will not play unless I click the button twice.
however, if I put this code in an action layer on scene 1 at keyframe 10 it works fine.
stop();
_root.clik1.onRelease = function() {
_root.play();
};
Am I right in assuming that the code for the button is evaluating 2 releases instead of 1 and it should work if i do this for the button actions.
on (release) {
_root.play();
}
[F8] Simple Button Action Not Working
I have been traveling for the past year, and it seems that I have forgotten quite a lot a bit about Flash.
I try'd to make this really basic thing with 2 buttons that change the text in a dynamic text field when you click on the button. The first(green) button works just fine, and changes the text and moves to the other frame which contains the red button. But that red button doesn't work at all...., it just wont move back to the startframe?
Code:
trace('start');
green.onRelease = function () {
trace('starttext');
status_txt.text = "eerste klik";
gotoAndStop("endframe");
}
red.onRelease = function () {
trace('endtext');
status_txt.text = "tweede klik";
gotoAndStop("startframe");
}
stop();
trace('done');
Stupid Simple Action Not Working
This is like flash basics and its not working for me I dont know why and ive done this command before anyway im trying to make my button tell a mc to goto the butthead frame
this.buttheadbtn.onPress = function() {
_root.clear.gotoAndPlay(butthead);
}
Simple GotoAndPlay Action Between MCs Not Working Need Urgent Help
Hi all,
started running into a problem on this site Im making.
please somebody have a look.
http://www.pixeladdict.dk/IDHair.fla
Go to: Layer "menu" --> menu symbol --> last frames --> doubleclick "Mud Wax" symbol and check out the AS.
ActionScript Code:
on (press) {</p>
<p>_parent.forside.gotoAndPlay ("out");</p>
<p>}</p>
<p>
What the **** is wrong here?
thanks so much.
pxa
EDIT: File apparently gets made into a *.doc, so just rename to fla after download. Thanks
Simple Action Script Isn't Working And I'm Stumpted
I'm having serious problems with action script and i can't work out what is wrong.
I've set up my layers and frames for the page and they're fine, and i've put the new layer (named it "actions") at the top of them all. Now i've put the stop(); command in on that layer but when i play it it just doesn't stop.
I'm pretty positive everything in the timeline is set up correctly so i'm wondering if i have to tween anything? Or sync it?
My hand in date is tomorrow and if can't even get the simplest command to work how am i going to navigate an entire application before my hand in tomorrow? Eek.
Here is a screenshot of my timeline...
(URL address blocked: See forum rules)
Simple Button, Needs Simple Action Script
Hi there,
I have made button in flahs mx. The over state of this button contains a short movie clip. My prblem is that I would like the button to remain on the down state on release (ie. once the user has released the mous button)instead of just going back to the over state as it does at present. Ideally I would like the button to go back to the up state on a second click.
I have pulled most of my hair out trying to put together the right bits of action script that would help me do this but to no avail, and having no time to learn action script properly I don't think I'll get there anytime soon on my own. Can anyone help me, pretty, pretty please ~?
Trace Action Not Working
Is there any basic reason why Trace would not work anymore?
I ususally use Trace a lot in my coding to see what's happening, but I can't get it to come up at all anymore. Could there be something turned off that's not allowing it to show results?
Button Action Not Working
Hi All,
I have a Movie Clip which have a button in it. This movie clip is placed on Scene. The button has a action to "go to next scene".
But, things are not working.
Can I have solution for this.
Regards
Sailesh
Action Script Not Working
i have a preloader, in scene 1. In scene 2 "main movie" i want it to stop so the user can press a button to enter, or to proceed. But it just goes to my movie, even tho i have a stop command, i used this action script from the flash kit tutorials, i've been at it all night, can some one please help me???????
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
Button Action Is Not Working
can any1 help, i have a navbar created that is placed in a movie within a movie.im tryin to on press go to scene, the action script im using @ the moment is:
on (press) {
_root.gotoAndPlay("matters");
}
its doin my head in.
cheers for yr help !!
nick..
Trace() Action Not Working?
Allright, I posted a week or so ago and couldn't get it working then either. Since then I've replaced my hard drive and operating system and upgraded to MX 2004. The d@mn thing still dont work.
The "omit trace actions" is not checked.
Even a simple trace("hello"); in a otherwise entirely blank document wont work. I've attached a test file.
What the heck is my problem? Thanks.
Action Script Not Working....
Notice that when you view my temp site that all the buttons/clips work fine. http://www.thebestmexicanexpress.com/TBME.html
MENU = works
CATERING = works
CONTACT = works
Now, it you go up and click on 'Find Us', you'll see that it works fine too. Now, here's the problem... after clicking the 'Find Us' if you go back to any other button/clip, the movie for 'Find Us' will not reset. I have the following action script for the buttons...
[This is the script for the green flag]
on (release) {
gotoAndPlay("pulldown");//happens when the flag pulls down
_root.FlgWhtClip.gotoAndStop(1);
_root.FlgRedClip.gotoAndStop(1);
_root.AboutUsClip.gotoAndStop(1);
_root.FindUsClip.gotoAndStop(1);
}
All of my buttons/clips use this same syntax with only slight modification. Please tell me where I'm going wrong.
GotoAndPlay() Action Not Working ...
Hi guys I have a movieclip on the stage called screen1_mc
Basically screen1_mc itself consists of a tweened animation which starts on frame 2 and ends at frame 20.
Frame 1 of this tweened layer is blank.
In this movie clip on the first frame of actions layer i have a stop() action. Then on frame 2 i have a blank keyfame and then on the last keyframe i.e 20 of the actions layer i also have a stop().
Now the problem is in the main movie(which consists only of one frame) when i put the following script in the actions layer:
Code:
screen1_mc.gotoAndPlay(2);
It does not work..instead its just like i used the gotoAndStop(2) action. As it just STOPS at frame 2 of the moveiclip..instead of playing the mc animation.
However if i use the following code instead it DOES work:
Code:
button_mc.onRelease = function():Void{
screen1_mc.gotoAndPlay(2);
}
Any ideas why this is happening? Thanks in adavnce
Action Script Not Working?
Hi can anyone see why this actionscript isn't working?
I'm trying to learn action scripting by taking apart example movies and looking through the script. I have used a decompiler of the following movie to take a look but as soon as I decompile it no longer uses the random words. Only the word 'falling text' which is written in the movie clip?
If anyone could take a look and help me out i'd really appreciate it,
Thanks, James
http://www.sitepoint.com/books/flash...s/example6.php
[CS3] Action Script Not Working?
I'm trying to create a simple website intro screen where an animation will play and the user clicks a button to enter the site. When I debug the site in Flash and click the button, I get a security warning message saying that my application is attempting to communicate with internet site: (here it lists my site). Which seems to mean that the button is working. When I launch the site in Explorer however and click the button, it does absolutely nothing. Here is the action script I am using(v 3.0):
btnEnter.addEventListener(MouseEvent.CLICK, callLink);
function callLink(event:MouseEvent):void {
var url:String = "http://www.pms4pms.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}
Any help would be greatly appreciated!!!!
Oh...I have an animation created by someone else that I import to flash from an FLV. I have created another layer with my button and action script attached to it. The button is on the last keyframe, at the end of the animation.
[CS3] Stop Action Not Working
here is my problem
I made a site in Flash CS3. I put in my stop actions in stop();
Uploaded it and the stops are not working. But if you highlight the URL in the address bar and hit enter, it will reload and stop where my stop actions are. Why is this? And how can I get it to do it the first time?
Another thing, if it matters. I uploaded the html, jpeg, AC_RunActiveContent and the swf files..
here a link to the site:
www.aaronrphotography.com
Action Command Not Working.
okay, so i fiugred out how to use "if" case statements for a movie clip that is a dynamic button.
now the only problem is that when i use the "if" statements on my movie clip, it doesn't make the button kill the sound like it's supposed to.
i'm not sure what is conflicting with what.
here is how i have it set up:
on the movie clip i have this to see if the audio is on or not and to tell the movie clip to go to a certian frame:
Quote:
onClipEvent (load) {
if (_root.firstSound = "true") {
_root.audioButton.gotoAndPlay(1);
} else {
_root.audioButton.gotoAndPlay(3);
}
}
that works just fine and dandy.
here's what i have for make making the sound stop and having the MC make it look like it in it's "off" state:
Quote:
on (release) {
_root.firstSound.stop("firstSound01");
}
on (release) {
gotoAndStop(3);
}
just so i'm making it clear, the code that is posted above is on an invisible button within the MC. i'm not sure if that matters or not.
the overall odd thing is that the MC was working in turning off the sound before i put the case statment in there. now, the case statment works, the button goes to it's off state, but it doesn't turn off the sound.
any suggestions?
Stop(); Action Not Working
hi, sorry to bother you all again. Im working on a game where you destroy bricks with a ball. I defined a variable 'score', this represents the number of bricks on the screen.
On each of the bricks, i put this script:
_parent.score --; //decrement score, so each time the ball hits a brick the 'score' will countdown .
basically, I want the game to proceed to a new level on a different frame when all the bricks have disappeared. so inputted:
onClipEvent (enterFrame)
{
if (_root.score ==0)
{
gotoAndPlay(4); //the frame where the new level is
}
}
I've put a stop(); action on the frame, but when all the bricks disappear and the event is called upon, it plays passed it without stopping.
Could anyone suggest why?
thx a heap
Action Command Not Working.
okay, so i fiugred out how to use "if" case statements for a movie clip that is a dynamic button.
now the only problem is that when i use the "if" statements on my movie clip, it doesn't make the button kill the sound like it's supposed to.
i'm not sure what is conflicting with what.
here is how i have it set up:
on the movie clip i have this to see if the audio is on or not and to tell the movie clip to go to a certian frame:
Quote:
onClipEvent (load) {
if (_root.firstSound = "true") {
_root.audioButton.gotoAndPlay(1);
} else {
_root.audioButton.gotoAndPlay(3);
}
}
that works just fine and dandy.
here's what i have for make making the sound stop and having the MC make it look like it in it's "off" state:
Quote:
on (release) {
_root.firstSound.stop("firstSound01");
}
on (release) {
gotoAndStop(3);
}
just so i'm making it clear, the code that is posted above is on an invisible button within the MC. i'm not sure if that matters or not.
the overall odd thing is that the MC was working in turning off the sound before i put the case statment in there. now, the case statment works, the button goes to it's off state, but it doesn't turn off the sound.
any suggestions?
Simple Action
Someone please help!! How do I set the actions for a swf to play and then automatically got to my homepage??
I inserted the swf into dreamweaver...and it plays great...but I had to put a "stop" action so it wouldn't loop over and over. But how do I get it to play, stop, and then automatically go to my homepage without sticking a separate button that says "enter".
Anyone please help! I know it's a simple fix!!
Janet
Simple Action Help
Please help someone!! How do I assign actions to my swf to play, stop, and then automatically go to my homepage?
Theis is what I did and it doesn't work..the movie just plays and stops:
stop()
get url(www.flowees.html)
Help!!
Simple Action Help
Someone please help!! How do I set the actions for a swf to play and then automatically got to my homepage??
I inserted the swf into dreamweaver...and it plays great...but I had to put a "stop" action so it wouldn't loop over and over. But how do I get it to play, stop, and then automatically go to my homepage without sticking a separate button that says "enter".
Anyone please help! I know it's a simple fix!!
Janet
Please Help W/ Simple Action
i have a newsletter.
i have a button with this code.
Code:
on(release){
message = "submitting...";
this.loadVariables("newsletter.php","post");
}
i have an mc w/ this:
Code:
onClipEvent(load) {
this.gotoAndStop(1);
}
on(rollOver) {
this.gotoAndPlay("s1")
}
on(rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
message = "submitting...";
this.loadVariables("newsletter.php","post");
}
the button w/ the code works (submits email for newsletter subscription) but not the mc.
can someone please help and explain to me why?
thanks in advance
Very Simple Action - I Just Don't Know It
i have a stop action in my main timeline. There is a movie clip there that opens. At the end of the movie clip, it stos and the screen says - "Click anywhere to continue"
When the user clicks, the mc ends and I want the main timeline to start up again.
I put together a sample movie to show what I mean. My movie is WAY too big to upload. Look at the oval movie and I flagged the frame where I need help. I hope this makes sense!
Thanks sooooooooooooooooooo much!!!!!
POST Action Script Not Working
What I'm trying to do here is get variables from my flash posted to a .cgi.
The 3 variables in flash, one is on the stage, the other two are in separate movie clips on the stage. I created a submit button on the stage with the following script:
-----------------------------
on (release) {
loadVariablesNum ("http://rogerk.firstlink.com/cgi/source.cgi", 0, "POST");
}
on (release) {
loadVariables("http://rogerk.firstlink.com/cgi/source.cgi", _root.contents, "POST");
}
on (release) {
loadVariables("http://rogerk.firstlink.com/cgi/source.cgi", _root.aboutus, "POST");
}
-----------------------------
The variable from the main stage works fine, but it's not working for the two in the movie clips, is it these scripts that are bad or should I keep looking in the clips for a variable typo or something???
Menu (Action)button Not Working
Hello!
Can anyone have a look at the following file and try to give me the solution to this: I want to link this button to http://www.google.com.. and not spoil the effect..
Feel free to use the button for your own project,
Thanks in advance!
*urgh* Action Script Not Working Right ...
So i'm trying to make a photographic website, what my goal is, is that when the user runs the mouse of the image, it will pop up in the middle of the screen in a larger format. I have my thumbnails positoined where I want them, and I have tried ti make them each a graphic, button, and movie, but they will not let me add any action script? I don't know why! And then i'm not sure what action script I am supposed to use to create what I am looking for. Any help will be GREATLY appreciated! thanks so much!
Action Script Not Working In Flash 7
Hello all. I have some actionscript working only when I export as flash vs 6, and I need to export at vs 7. Here's the scripts I'm using. Any reson why it's not functioning when xported as vs 7?????
factor = 300;
Movieclip.prototype.sway = function() {
if (this.xDiff == undefined) {
this.xDiff = this._x-_root.content.barre.drag._x;
}
if (Math.abs(_root.content.barre.drag._y-this._y)>0) {
this._y += (_root.content.barre.drag._y-this._y)/(this.xDiff/factor);
this._x = _root.content.barre.drag._x+this.xDiff;
} else {
this._y = _root.content.barre.drag._y;
}
};
Action Script Not Working In Next Frames
Hi,
I have multiple mc's that are animated by motion tween one after the other.
On the top layer in the first frame I have some actionscript for every mc triggering the movie to stop and show some text information if one of the mc's is clicked.
What is very strange is that this actionscript is working only for the first mc.
As soon as the next mc comes up nothing happens anymore...until the movie gets back to the first frame.
The AS goes all the way through the movie though...
Is this normal???
Scroll Bar Action Script Not Working
I've created a scroll bar for my website and I got the external text to load with no problems, but now I can't get the scroll bar to work.
I'm working with MX ('04) educational version.
A lot of the resources I go to talk about an insertable scroll bar in the components area that's supposed to make scroll bars as easy as they can get. I don't have that option in my components area and I'm not sure how (if possible) to add it. So I turned to my Action Script for Designers by Doug Sahlin (Wiley Publishing, Inc. 2002). My scrollbar is hand-made and the book pretty much says that it's supposed to be individual buttons nestled in movie clips that are then put together in another movie clip to make the physical scroll bar. I've followed the book as closely as I can and this is what I've gotten from it:
onClipEvent (enterFrame) {
if (clicked) {
eval(this._parent);
_root.ScrollText.scroll+=1;
_root.CompSlider.slideBar._y+=5.5555555;
if (_root.CompSlider.slideBar._y>=100) {
_root.CompSlider.slideBar._y=100;
}
}
}
I've checked for syntax errors and there are none.
Could somebody please tell me what I'm doing wrong and how I can find a way to do it right?
[F8] Help With Swap Depth Action... Almost Working
Can someone please take a look at the attached movie? I want the button on the top (1959) to swap places with the button on the bottom (1958) on rollover and return to it's place on rollout. It all works but instead of returning to it's depth after initially rolling over, it stays on top. Any help is greatly appreciated. Thanks.
Mouse Action Not Working When Loaded Into A Mc
In a movie, I have a 3 frame actionscript sequence that works beautifully when you drag the mouse...but when I load this movie as an external movie into a mc in a parent movie...all action is lost.
startDrag("/mouse", true);
n = 1;
/:flowon = 0;
setProperty("/dtemplate", _visible, false);
----------------------------------
if (Number(/:flowon) == 1) {
duplicateMovieClip("/dtemplate", "dust" add n, n);
n = Number(n)+1;
}
----------------------------------
gotoAndPlay(_currentframe-1);
...this mouse activity relies on 2 separate mcs, "dtemplate" and "mouse".
the code on "mouse" is...
----------------------------
on (press) {
/:flowOn = 1;
}
on (release) {
/:flowOn = 0;
}the
the code on "dtemplate" is in 3 frames...
// Initialize particle
dx = getProperty("/mouse", _x);
dy = getProperty("/mouse", _y);
setProperty("", _x, dx);
setProperty("", _y, dy);
setProperty("", _visible, true);
// Initialize X and Y velocities
vx = (random(3)-1)/5;
vy = (random(3)-1)/5;
// Set number of loops particle will live
life = 50;
-------------------------
// Get current position and add XYVelocities
curx = getProperty("", _x);
cury = getProperty("", _y);
setProperty("", _x, Number(curx)+Number(vx));
setProperty("", _y, Number(cury)+Number(vy));
// Alpha is dependent on proximity to death
ap = 100*life/90;
setProperty("", _alpha, ap);
setProperty("", _xscale, ap);
setProperty("", _yscale, ap);
// Eratic behavior closer to death
vx = Number(vx)+Number((random(21)-10)/ap);
vy = Number(vy)+Number((random(21)-10)/ap);
// Reduce particle life
life = life-1;
if (Number(life)<0) {
// Life counter is up, remove particle
removeMovieClip("");
stop();
}
----------------------------
// Repeat until particle is dead
gotoAndPlay(_currentframe-1);
-----------------------------------
Thank You if anyone can help
Button Double Action Not Working
Hi, I have several btns in a movie script which is then placed on the main timeline. With this part of the script the button works:
on (rollOver) {
gotoAndStop("AboutUs");
}
When I add this second part, the button stops working totally.
on (release) {
_root.gotoAndPlay("Home", "AboutUs_H");
}
Both these lines make up the following script:
on (rollOver) {
gotoAndStop("AboutUs");
}
on (release) {
_root.gotoAndPlay("Home", "AboutUs_H");
}
Am I asking too much? Or just in the wrong way?
On(release) Action Not Working As Planned =(
Hey everyone, first time on this forum for me! i was wondering if you could help me with a simple problem which has been buggin me for ages. I am trying to create a little website in flash. i created a movieclip which acts like button (by using on(rollOver, rollOut etc) but i would like the on(release) action to tell it to go back to the scene1, frame 1 (in the _root menu i believe its called?) once this button has been clicked. i have tried the following:
on(release){
gotoAndPlay(1)
}
on(release){
gotoAndPlay._root(1)
}
and then i added a label ("Home") to that particular frame in a different layer (the label layer) and tried this code:
on(release){
gotoAndPlay("Home")
}
on(release){
gotoAndPlay._root("Home")
}
And everything else i try just tells me there are some kinds of error lol. Any help and guidance would be very much appreciated! thanks
Abs
Action Script Link NOT WORKING
This is odd and I hope someone can provide me with an answer. I am using actionscript within my flash file to open other HTML file within my site. I have done this many times and have never had a problem. Now, my actionscript links work on my server when I am viewing my live site, but the actionscript will not work when running my site from my C Drive. Has anyone had this issue or have an answer on how to fix it? Maybe I need to change an IE 6 setting.
Action Button Not Working Correctly
I have a website file that out of the blue decided not to work when someone clicks on the about tab. The three main pages are loaded as the same scene, and the other two work, but not that about page. Any ideas?
Edited: 12/02/2008 at 10:42:51 AM by fareforce
Pause Action/ Loading Swf, Not Working, Please Help
I have a main movie, with a keyframe and an action with this code that another user gave me to pause the frame, and then load an external swf on level one, and it pauses, but doesn't play or go to and play when the pause should be finished, any ideas?
Here's the code on the keyframe of the main movie.
stop();
offset = 2;
timerInt = getTimer();
initialTimer = timerInt+offset*1000;
onEnterFrame = function () {
currentTimer = getTimer()-initialTimer;
if (currentTimer>=timerInt) {
play();
}
};
Thanks very very much!!!
Button Action Script Not Working
Greetings Forum,
Can someone pleeeease help me with this problem???
I have a flash movie clip with a button whose action script is not working.
I am trying to load a php page into the browser with this button. The php page contains data that needs to be displayed. This data is in a field, in a table, in a mysql db.
There a five variables that I use on this php page and after going through several tutorials I know I am suppose to load these variables into the flash movie and then somehow pass them to the action script for the button that calls the php page.
I have tried, in vain to make this work but I can't seem to do it.
I know someone in this forum knows how to fix this or at least tell how to.
Here is my as for the movie...............(when the movie loads)
_root.loadVariables("&employer_id=$employer_id&s_n _email=$s_n_email&email=$email&email2=$email2&comp any=$company&resoption=$resoption");
and here is the as for my button.........
on (release) {
getURL("jobseekeroptions.php",0,"GET");
}
jobseekeroptions.php is the page that I am trying to get to display what is being pulled from the mysql database.
Since jobseekeroptions.php is kind of long I will post only the part of the script that pertains to my problem......................
<table border='1' cellspacing='0' width='100%'>
<tr><td>
<hr color='#000066'>";
$_GET['$company'];
$_GET['$resoption'];
$row = mysql_fetch_object($result);
{
echo "
$row->company<br>
<table border='1' width='102%'>
<tr>
<td>";
//This is a field in a table of mysql database
//This field holds a text page - resume_options.php
$row->$resoption;
echo"
</td>
</tr>
</table><br>";
}
echo "
<hr color='#000066'>
I know it is something simple that I am missing here. Any help will be greatly appreciated. Thanks
Pause Action/ Loading Swf, Not Working, Please Help
I have a main movie, with a keyframe and an action with this code that another user gave me to pause the frame, and then load an external swf on level one, and it pauses, but doesn't play or go to and play when the pause should be finished, any ideas?
Here's the code on the keyframe of the main movie.
stop();
offset = 2;
timerInt = getTimer();
initialTimer = timerInt+offset*1000;
onEnterFrame = function () {
currentTimer = getTimer()-initialTimer;
if (currentTimer>=timerInt) {
play();
}
};
Thanks very very much!!!
Very Simple Action Script
I'm looking for a simple action script that will move a movie clip from one spot to another (I only want to change it in the Y direction... X would stay the same) If at all possible, I'd like to have the distance the MC moves to be random, so it will change each time. What I'm trying to do is create a streaming effect with the "Matrix Tutorial" that someone on here has wrote (The Matrix thing simply takes 2 numbers (1,0) and changes back and forth from 1 to 0 randomly)
The effect I'm going for is to have several instances of the clip start outside the stage area (on the top) and then fly down across my movie randomly. I'd like to have several instances of the MC do this, if it all possible?
Thanks,
SIMPLE Action Help Needed..
OK, so I've designed basic websites before, using Dreamweaver, and have decided to use Flash to make a CD-ROM cataloging all the issues of a magazine company I work for. I had drawn a background image that I wanted. ALL I want to do is have a row of letters on the bottom as buttons. You rollover a letter, and see a list of issues for that letter, and when you CLICK the letter, that list stays there, in a specified area (like a big white box i made in the background. Then, THAT new text is ALSO clickable to see the specific article. I thought that this would be REALLY easy, just basic, click-this-get-that, sorta thing...aint workin! I made all 26 buttons fo the letters, have them all under a "menu" symbol. my problem is getting the Actions to work so when you click on the button, the list pops up in the white area. (kind of hard to explain without pictures!). I'm sorry this got very long, but I've been racking my brains for TWO weeks trying to figuer this out. ..please....PLEASE, can someone help!? email me ANYTIME! thoth037@aol.com
will
Simple Action Script
How much different is the action script in MX from the script in Flash 5? I'm rather new to action scripting and wondering if texts on Flash 5 would be applicable to MX.
Thanks in advance.
Simple Action Script Q.
I was wondering if there is a way to change the transperency of a movieclip by using actionscript and a button. say the movieclip is called 'clip'
Reset Action For AS? Simple, I Think?
In this interactive game I'm creating I need to figure out how to refresh/reset the "AS memory" so it doesnt' know it has already gone through the set of actions and buttons before.
Anyone know what to do?
dwyermm7
|