[F8] Easy Actionscript Button Help
alright, so im making this little battle system type thing kind of like adventurequest, (turn based), and im trying to put actionscript on the button that is saying, if input textbox ="word", go to and play (5). something of that essence. i have tried many things like doing it in an actionscript layer, but im not sure how to do it. im kind of a newb at actionscript. so basically i need code to but either on the button (if input textbox = "word", go to and play(5)) or on an action layer in a frame (if button released, and input textbox = "word", go to and play (5)). please help if you have this simple code. i think it is pretty simple, so i dont think it will be hard. i am just bad at acitonscript. thanks for any help. [the system is like a harry potter one, the player types in the spell, and then hits the cast button]
FlashKit > Flash Help > Flash General Help
Posted on: 03-18-2008, 06:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Easy ActionScript Q - Nested Button Navigation
I am trying to make this button point to a new scene.
Here is how the button is put together:
NavGigs (button) inside links (graphic) --> navLinks (movie clip) --> News (scene)
So down in the library, I opened up links, clicked on NavGigs, and assigned an action to it.
Here is the action:
on (release) {
gotoAndPlay("Gigs", 1);
}
on (rollOver) {
tellTarget ("movingTicket") {
play();
}
}
on (press, rollOut) {
tellTarget ("movingTicket") {
gotoAndPlay(14);
}
}
Now, the thing is, everything works except that first on (release). I'm trying to get it to go to scene "Gigs" and play frame 1, but it doesn't move at all.
To double check things, I dragged a new instance of the button onto the stage (not inside navLinks --> links) and assigned the appropriate action, and it worked perfect. So I'm guessing this has to do with the fact that this button has been nested far into the movie. How can I ActionScript my way out of this?
(I Guess) An Easy Button Question - How To Make A Function For A Button
Hi!
I have a little button problem. I have plenty of buttons in my presentation which should take the movie to different frame labels. But some of the buttons shouldn't be active from the beginning and they should have a different ("not active") color. Instead of setting enable = false; and color changes for every button, I tried to make a function and then call it. I put it in the first frame. It looks like this:
code:
/*** TRYING TO CALL THE FUNCTION ***/
_root.flowerButton.notActive(this._name);
/*** FUNCTION ***/
function notActive(nameofbutton) {
nameofbutton.enabled = false;
//color change...
}
I don't know if this script is alright or not, it simply doesn't work. I tried many combinations and put trace to the function, but nothing. It looks like I can't call a function for a button like this. Can anybody help me how to make it work? And I would really appreciate an explanation why this code doesn't work.
Thank you!
Poco
Easy Q About MCs And Actionscript
Okay, here is what I'm doing (I'm just playing around with Flash, learning some stuff): I've got a circular graphic, and I want when the mouse is over it to have some text slide out from under it. When ever the mouse leaves it, I want the text to slide back under. I'm trying to do this using the onMouseEvent command. here is the script that I have for the button.
on (rollOver) {
testmovie.gotoAndPlay( 2 );
}
on (rollOut) {
testmovie.gotoAndPlay( 11 );
}
The movie clip of the text is twenty frams, with frames 1 and 10 being stop commands so that the text doesn't come out until fram two and it doesn't go back in until the user moves off the button. When I test the movie, nothing happens. Also, there is not an 'a' like there usually is whenever you add an action to a frame. Any help will be greatly appreciated.
Easy Example With Actionscript
Hello, I'm using gnu/linx. I saw a package named mtasc, that it can compile actionscript code to a SWF file.
MTASC is the first ActionScript 2 Open Source free compiler. It can compile
large numbers of .as class files in a very short time and generate directly
the corresponding SWF bytecode.
Please I'd like to see an example of actionscript, having a simply pic like background, and some clip of audio (maybe with a button for play). I supose this should be easy.
Can someone teach me that. Thank's
Is There An Easy Way With Actionscript?
I have 7 buttons on one page and when you click any of them I want an animation to play and then have it go to that page. Is there an easy way to do this using actionscript instead of copying the animation 7 times with a different goto at the end of each?
Thank you,
Chris
Is There A Easy Way To Learn Actionscript?
Hello, I am new to flash 5 and have been using it to create very simple and basic swf files. Can anyone suggest a good resource for a newbie like myself to learn actionscript?
Any help would be appreciated.
Thanks
etoro1156
Easy Actionscript Problem
(im using Flash 5)
Well im making this game... everythings goin good... but i have one problem... i got the score to work but when the score reaches 3 i want it to gotoandPlay frame 2... can someone please help me??
I Appretiate any help
~Pete
Easy Actionscript For Navigation Help
hi all, easy question I am sure here.
I have a movieclip that has my navigation bar init that controls a cdrom based interactive.
What i want to know is if i tell my nav buttons to go to say....
on (release) {
_root.gotoAndPlay("weblink");
}
and when the playhead goes to "weblink" i have a few secs of animation.
How do i write a script that tells the button that if it is at a certain frame not to go and play said "weblink"
anyhelp would be awesome
cheers
Luke
Actionscript Transitions? Easy One... But Still?
Hi Hi! Ok, this one I'm sure is easy, but I can't find the answer because I don't know what to call it. I finally figured out Kirupa's transitions between external swf's (which is amazing THANKS OLDNEWBIE AND SOFISTIKAT!!!!). Now I'm trying to make transitions between different parts in my timeline, or movieclips.
ie: click on photos and photos fade in,
then click on contact, photos fade out
and contact fades in. Click on bio and
contact fades out then bio loads in. Click
on photos and bio fades out and photos fades in.....
etc. etc. etc.
I can do this a round about way with changing button actions and stuff and repeating things, but It seems overboard. Can anyone tell me the best way to
do this? You can see what I mean here if my explanation doesn't make sense:
http://www.greenday.com
THANKS!!!
ActionScript Question (easy)
Ok, I just started a platformer. Nothing great, this is my first real attempt at a game. Anyway, i'm having a very simple problem related to health.
1) How do I get my health to decrease when an enemy touches me? The enemy is a seperate movieclip and is animated inside the clip. It's instance name is enemy. My players instance name is enemy and the health is called 'health'
2) When my health reaches 0, I want to go to a certain frame.
All help will be appreciated
Shorten This Actionscript (easy)
I'm sure this is mega easy to you guys but I'm not entirely sure how to.
Can I shorten this code?
PHP Code:
btn1.filters = [myBevelFilter];btn2.filters = [myBevelFilter];btn3.filters = [myBevelFilter];btn4.filters = [myBevelFilter];btn5.filters = [myBevelFilter];btn6.filters = [myBevelFilter];
I do it this way a lot but I'm sure there is a way to shorten that?
Probably Very Easy Actionscript Problem...
i have 2 dynamic text fields.
one will have either nine 1's in them, eight 1's in them,
etc etc, all the way to zero 1's.
something like this "111111111" or "11111111" etc.
i want the other text field to be able to tell me how
many 1's are in the other text field using a switch statement.
so, if there are 8 1's, the other dynamic text field will
show me an 8.
can anyone help?
Really Easy Actionscript Prob
Hi,
Any ideas why this comes up as undefined in MX2004, but works in MX?
ActionScript Code:
onClipEvent (enterFrame) {
if (n < 500) {
_root.counter = _root.counter +1;
n = n++;
}
trace(_root.counter);
}
Easy Question: Actionscript Arithmetic
Here is the code in frame 1:
if (_parent._alpha < 0) {
_parent._alpha = 100;
} else {
_parent._alpha = _parent._alpha - 20 ;
}
trace ( _parent._alpha );
and here is the next frame:
gotoAndPlay (1);
Why am i getting this output?:
79.6875
59.375
39.0625
18.75
-1.171875
100
79.6875....
Shouldn't my output be:
80
60
40
20
0
100
80....
help
Propably Easy Actionscript Questions.....
I've got 2 actioscript questions that are propably related in the answers....
On my site i want to move the mountains on the background(very slowly) and in a loop... How do i do this... In a motiontween it wil get to big....
I want the fade in and fade out on the background made in actionscript... It's to big now How do i tell in actionscript that after 200 frames tha background has to apear and after another 200 frames it has to fade out again... And this in a constant loop....
You can see what i mean on http://www.heiny.tk
Thanks for your time
Moving MCs Around Using Actionscript (easy To Answer)
I don't motion tween stuff around much as I think it's a bit annoying. But I need to move an MC (with 100 easing if possible) using actionscript; from youe could say 'currentpos' to 'anotherpos'. Doesn't matter what currentpos is, the MC will be dragged all over the place, what matters is getting to where it needs to be. Also need actionscript to move it in and out so it gets bigger/smaller.
It's amazing, the gaps in my Flash knowledge. I'm glad no-one on this board knows I'm secretly Rob Cohn of SC Web Design.
If You Know Actionscript You Could Answer My Easy Question
I have made a mp3 player that loads external mp3's. I need to make it buffer for dailup connection though. I am not fluent in action script yet so maybe you can help.
Action Script needed=
getting if percentLoaded (variable)= 25% of the song loaded to goto and Play frame (43)
Here is the script that it is in:::
function loadFile() {
if (sound_1 instanceof Sound) {
}
_root.createEmptyMovieClip("holder", 1);
sound_1 = new Sound(holder);
vol = 100;
sound_1.setVolume(vol);
sound_1.onLoad = function(success) {
if (success) {
sound_1.stop();
} else {
clearInterval(checkProgress);
}
};
sound_1.onSoundComplete = function() {
loadStatus.text = "";
loadFile();
playing = true;
paused = false;
stopped = false;
dummy = 0;
sound_1Position = 0;
};
var loadUrl = checkField();
fileURL.text = loadUrl;
sound_1.loadSound(loadUrl, false);
progressBar._xscale = 0;
loadStatus.text = "loading streaming audio.";
checkProgress = setInterval(checkLoad, 50);
}
function checkLoad() {
var obj = sound_1;
var tBytes = obj.getBytesTotal();
var lBytes = obj.getBytesLoaded();
var percentLoaded = (lBytes/tBytes)*100;
progressBar._xscale = percentLoaded;
if (lBytes>=tBytes) {
clearInterval(checkProgress);
}
}
function removeSound() {
sound_1.stop();
delete sound_1;
holder.removeMovieClip();
loadStatus.text = "";
fileURL.text = "";
Selection.setFocus(fileURL);
}
function checkField() {
if (fileURL.text != "") {
return fileURL.text;
if (this.precentLoaded=25) {
gotoAndPlay(43);
}
} else {
if (songList.length == 0) {
initSongList();
}
return songList.shift();
}
}
thank you for your time
Patrick
Easy ActionScript Help - Nested Buttons
I am trying to make this button point to a new scene.
Here is how the button is put together:
NavGigs (button) inside links (graphic) --> navLinks (movie clip) --> News (scene)
So down in the library, I opened up links, clicked on NavGigs, and assigned an action to it.
Here is the action:
on (release) {
gotoAndPlay("Gigs", 1);
}
on (rollOver) {
tellTarget ("movingTicket") {
play();
}
}
on (press, rollOut) {
tellTarget ("movingTicket") {
gotoAndPlay(14);
}
}
Now, the thing is, everything works except that first on (release). I'm trying to get it to go to scene "Gigs" and play frame 1, but it doesn't move at all.
To double check things, I dragged a new instance of the button onto the stage (not inside navLinks --> links) and assigned the appropriate action, and it worked perfect. So I'm guessing this has to do with the fact that this button has been nested far into the movie. How can I ActionScript my way out of this?
Export For ActionScript Question: EASY
i have 4 images that I am making as Graphic Files labeled GRA_001 GRA_002 ...
their identifiers are image01, image02 ...
i unchecked export in first frame so that I can have a preloader in the scene before it... then scene two will have all the graphics... but the preloader will skip over scene two when the movie has downloaded....
how do i call up one the GRA files....
i have a MC that I have this code for:
onClipEvent (load) {
mcJpg="image03";
}
inside this MC is a MC label mcJpg for the image3 to load in...
but nothing happens... HOW DO I CALL UP ONE OF THE EXPORT FOR ACTIONSCRIPT GRAs?
thank a MILLION in advance,
manny
[F8] Easy Way To Convert Text To Actionscript
im working on a new game that will allow users to create their own levels and share via copy and paste.
when the map is create it presents the user with a few arrays for the level data.
Is there an easy way to just load the text with actionscript or would i have to parse everything?
Newbie Actionscript Question That Should Be Easy For A Pro
well i'm very new to the Flash and actionscript world. I have created a flash movie for my website and i have a pre loader for it but i would like it so that the flash movie doesn't start until it is fully loaded. Right now my preloader shows the progress of the loading but behind the preloader I see the movie starting to play. I get some freezing on the movie because its no fully loaded yet. I'm using actionscript 2 and here is the code that i'm using.:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object ();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}
myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}
myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
}
myMCL.loadClip("frontpage.swf","container");
any help would be good. remember you have to reply in lamers terms because like I said i'm very new to the actionscript world.
thanks.
usion
Easy Question For All You ActionScript Wizzkids
I have created the following Actionscript to control a 'Next Question' button. The idea is that it will choose a random frame to link to in the current scene (Part2).
nextQ_btn.onRelease = function (){
gotoAndStop("Part2", n);
n = Math.random()*1+3;
}
At the moment, when I click the 'Next Question' button, nothing happens. What's up with my script? My programming knowledge is very limited and this is just about all that it can manage!
The button works when I take out the n variable and put in a frame number manually.
Easy Actionscript Question For You Guys
Just trying to learn some actionscript from this book! There is this script
if (inputNumber % 2 ==0 ){
gotoAndStop("even");
}else{
gotoAndStop("odd");
}
}
I understand everything, and it works great. But what I don't get is, if you place "24" you obviously get "12" and it goes to "even". Ok that is fine.
But according to the script to me it looks like the actual number divided by 2 literally has to equal 0. Is it because it is impossible?
EASY One: Looping ActionScript Tweens
Hey guys, what's up? This should be a really easy question to answer...
I'm used to making tweens on the timeline, and by default, the mc loops continuously. Well now I'm making a tween strictly in AS, using the "mc_tween2.as" and "lmc_tween.as" libraries. How do i make my tweens play through, and then start over again immediately after they finish?
I'm simply trying to have a cursor/marker continuously fade/blink from alpha 100 to alpha 20 using on(rollOver).
I tried hunting for the answer in the forums, but had no luck, so please point me to a thread on this if one already exists.
Thanks so much!
-heather
ActionScript (probably Easy Error) Code
okay, the following code is for a movieClip called "ball"
it is basically a ball that moves around the screen when the user presses "up","down","left","right". and this part works okay
The added feature is that if the user presses the "a" or "A" key, the directions flip ro revers (i.e. left=right, up= down etc)
to do this i have created a variable called "one"
if variable: "one" is equal to "1", then the controls work normally (i.e. up=up, left=left etc) and if variable "one" is equal to "2" then the controls flip (ie up=down).
variable: "one" is changed value when the user presses the "a" or "A" key;
the once the movie clp enters frame:
if "one"=1 it should play function move1 (the usual moves) and
if "one"=2 it should play function move2 (upside down moves)
but this does not happen!
can anybody explain why???
Code:
var one=undefined;
watchKeyboard = new Object();
Key.addListener(watchKeyBoard);
function move1(){
if (Key.isDown(Key.UP)) {
this._y=this._y-5;
}
if (Key.isDown(Key.DOWN)) {
this._y=this._y+5;
}
if (Key.isDown(Key.LEFT)) {
this._x=this._x-5;
}
if (Key.isDown(Key.RIGHT)) {
this._x=this._x+5;
}
if (Key.isDown(97)||Key.isDown(65)) {
one=2;
}
};
function move2(){
if (Key.isDown(Key.UP)) {
this._y=this._y+5;
}
if (Key.isDown(Key.DOWN)) {
this._y=this._y-5;
}
if (Key.isDown(Key.LEFT)) {
this._x=this._x+5;
}
if (Key.isDown(Key.RIGHT)) {
this._x=this._x-5;
}
if (Key.isDown(97)||Key.isDown(65)) {
one=1;
}
};
this.onEnterFrame = function(){
if(one==undefined){
this._x=0;
one=1;
}
if(one==1){
this.onEnterFrame=move1;
}
if(one==2){
this.onEnterFrame=move2;
}
}
Easy ActionScript Syntax Question
I am very new to ActionScripting, and am attempting to create a menu with buttons that overlap, when the user scrolls over the button, the button needs to become fully visible, when the user moves the mouse out, it returns to previous state, i know that i should be using swapdepth, but i can't seem to figure out the syntax:
Currently two button instances exist
over and under, over is currently the button that is dominant.
Here's what i have set for the action pannel of the button named under:
on (rollOver)
{
_root.swapDepths(_root._over);
}
on (rollOut)
{
_root.swapDepths(_root._over);
}
The syntax example that macromedia flash offers is:
myMovieClip.swapDepths(target)
target The movie clip instance whose depth is swapped by the instance specified in myMovieClip. Both instances must have the same parent movie clip.
the things that confuse me are
1. how to reference the target, i thought i could just say _over, but that didn't work, I guess this has something to do with objects and object ownerships, so i tried _root, didn't work either, i've tried a lot of things
2. what value myMovieClip represents, how do i find out what that value is, is it the name of the file?
But like i said, I'm new to this, and it's greek to me, i used to be a programer about 10 years ago, but my career changed tracks, i want to get back in, but i'm way too rusty. Your help is greatly appreciated
in case any one wants to look at my fla i'm attaching it
If You Know Actionscript Thenyoucould Answer My Easy Question
I have made a mp3 player that loads external mp3's. I need to make it buffer for dailup connection though. I am not fluent in action script yet so maybe you can help.
Action Script needed=
getting if percentLoaded (variable)= 25% of the song loaded to goto and Play frame (43)
Here is the script that it is in:::
function loadFile() {
if (sound_1 instanceof Sound) {
}
_root.createEmptyMovieClip("holder", 1);
sound_1 = new Sound(holder);
vol = 100;
sound_1.setVolume(vol);
sound_1.onLoad = function(success) {
if (success) {
sound_1.stop();
} else {
clearInterval(checkProgress);
}
};
sound_1.onSoundComplete = function() {
loadStatus.text = "";
loadFile();
playing = true;
paused = false;
stopped = false;
dummy = 0;
sound_1Position = 0;
};
var loadUrl = checkField();
fileURL.text = loadUrl;
sound_1.loadSound(loadUrl, false);
progressBar._xscale = 0;
loadStatus.text = "loading streaming audio.";
checkProgress = setInterval(checkLoad, 50);
}
function checkLoad() {
var obj = sound_1;
var tBytes = obj.getBytesTotal();
var lBytes = obj.getBytesLoaded();
var percentLoaded = (lBytes/tBytes)*100;
progressBar._xscale = percentLoaded;
if (lBytes>=tBytes) {
clearInterval(checkProgress);
}
}
function removeSound() {
sound_1.stop();
delete sound_1;
holder.removeMovieClip();
loadStatus.text = "";
fileURL.text = "";
Selection.setFocus(fileURL);
}
function checkField() {
if (fileURL.text != "") {
return fileURL.text;
if (this.precentLoaded=25) {
gotoAndPlay(43);
}
} else {
if (songList.length == 0) {
initSongList();
}
return songList.shift();
}
}
thank you for your time
Patrick
New To Actionscript -- Need To Teach Easy Games To Kids
I use Flash for Web design, and am entirely new to actionscript. Despite this, I've been tapped to teach a one week, 1/2 day camp this summer called "Creating games in Flash." I'm madly cramming actionscript, but I think most of it is way too hard for most kids. Can anyone suggest 1 or 2 easy, yet not boring games I can learn to program myself and then teach the kids. Something that will impart the principles of designing games, yet be do-able? I'd be ever so grateful!
Time=$money$ Easy $50 For Actionscript Guru.
i'm creating a fairly simple drop down menu (right now it's xml, eventually it'll be from a recordset object from coldfusion/mysql) so far so good. What i need is somebody who's more proficient with actionscripted movement than I am who can fill in the missing piece(s) to my code.
so far i've created the menu by attaching dyn clips, created a variable which counts the clips, calculates the height and positions the clip up the appropriate ammount so that initially you can't see it. I need a function for the button that'll make the menu drop down. it'll need to take into consideration the height of my dynamically created drop menu. the movement should be actionscripted (obviously) and should incorporate a little easing to make it look smooth.
I imagine you'll have to use setInterval or something to evaluate how far that menu drops down (the dynamic height) but that is quite honestly beyond my skillset at this point!
I'm sure somebody out there has dealt with this before and wouldn't mind making a fast $50.00. PM me if you're interested. I will start with whoever responds first and work my way down from there until somebody comes up with a working solution. I can only pay through paypal so if you can't use paypal sorry.
Easy Actionscript Help? (Input And Dynamic Text Boxes?)
Hi.
In my scene 1 frame 1, I have a movie clip, "startupMC". Inside that movie clip is another, "logonMC". In the last movie clip is an input text box and a button.
Currently the button takes you to frame 2 of the main scene using this code:
Code:
on (release) {
_root.gotoAndPlay("2");
}
In that frame 2 of the main scene, I have a dynamic text box. How do i get whatever a person types in the input text box in the "logonMC" movie clip to display in the dynamic one in frame 2 of the main scene? I know it is something to do with variables but I'm not sure. Thanks a lot.
Super-Easy ActionScript Pause Timeline Loop
Its even less complicated than the subject for this post... Download the source if you want it even faster, or read my little explanation. I searched the web looking for a solution for this little problem, of pausing the timeline for a designated amount of time, as to not clutter my timeline with needless static frames, and it seemed everyone's solutions were too complicated. This is simple as pie. All you need is 3 frames, and a few lines of code.
Frame 1:
Code:
var delay = getTimer() + 3 * 1000;
All this is, is a variable called "delay" (or whatever you want to call it) that uses the built-in getTimer() function of flash, to obtain the current time. Then the + 3 * 1000; portion merely adds 3 seconds as the delay by multiplying the number 3 (which represents the number of seconds you want to delay) by 1000, which represents milliseconds, the unit of time measurment used by getTimer(). So to change your pause, you just change 3 to however many seconds you wish to pause the animation.
Frame 2: is empty
Frame 3:
Code:
if(getTimer() >= delay) {
gotoAndPlay(this._currentframe+1);
} else {
gotoAndPlay(this._currentframe-1);
}
This code prevents you from having to label frames and do any needless additional work. All it does, is checks if the current time is greater than or equal to the delay. If it is it moves the playhead forward, continuing the animation, if it isn't, it moves it back one frame (to empty frame 2, as to not reset the timer), and starts the loop again.
Easy peasy, nice and easy, light and breezy.
XD
This Should Be Easy(button In MC)
This should be easy but i is not working
Flash5 Movie
3 scenes
I have created a Movie Clip called links wich contains all the buttons to navigate the site.
in the movie clip I have 3 layers.
each layer contains a graphic symbol wich contains 3 buttons
I want to click on the button "project" and go to scene3
so I write the following
on(press)
{ gotoand play ( "scene3", 1);
}
This does not work...for some reason I see the Movie Clip reloading but nothing else.
I even tried
on (press)
{ _root.gotoandPlay("scene3",);
}
But no result....
something about nesting a button and changing a scens?
Please HEEEEEEEEELLLLLPPPP!!!!!!
Easy Button
I am just trying something out, nothing serious. I am making an animated button using tweening. It works for awhile then if you keep going over it then it stops tweening the color and just jumps from the initial color to the color it is supposed to tween to with no color tween. If that made any sense. I have attached an example.
Thanks
Easy Button FIx Plz Help :)
Hey, new question! probably a stupid one.....
i have a button, and inside that buton it has a gotoAndPlay(); command....
when its already on the frame that its telling itself to goto and play it skips to the next frame...
does anyone know how i can do like a
if(frame)=yes
than... do nothing statement?
please help!
this is the current code
on (release) {
gotoAndPlay(90);
}
need to make it so that if its already on frame 90, it doesnt skip to 91... see what im sayin?
Button + Going To An Url = Easy?
Hey,
this is probably an easy want, i just want a button. and when i click on it i want to go to an url.
I know how to make a button, and i can insert an action what i have now is:
on (release) {
getURL("http://www.google.com", "_blank");
}
but it doenst work yet, what do i have to add to make this work??
thanks, Wouter
EASY Button Question (for You...not For Me)
I have a movie (B.swf) loaded into another movie (A.swf). I am creating a "choose-your-own-adventure" where "A.swf" is the "base" and "B.swf" will change into movies "C", "D", "E", etc. as the user chooses different paths.
How do I code a button that will "Go To Next/Previous Scene" within "A.swf" so that it advances/steps back a scene to whatever movie is currently loaded into "A.swf" (obviously without effecting the scenes within "A.swf" itself)?
Thanks!
--Darcie
How Do I Do This EASY Animated Button ?
I am a begginner - no laughing..;-D
http://www.users.bigpond.net.au/mojito/yesmate.html
At the moment my elements are as such:
(1) MC "sliding thumbnail" has a graphic symbol (slides.jpg) and stop's in frames 7 and 14.
(2) An overall button "test" has a background graphic on Layer 1 - Layer 2 being the button states. The MC "sliding thumbnail" is placed in the Over state.
(3) There no other scripts except the stops.
I have successfully activated a the Movie Clip "sliding thumbnail" inside a button "test", by placing it in the Over state. So when the movie loads, my clip plays as the mouse is over the butto and my thumbnail image slides in from the right, and stops in the middle of my button, as instructed in frame 7.
What i would like to do, is On Rollout (& Release), Tell Target to GoTo frame 8, and play the remainder of my clip - whereby my thumbnail image will slide to the left and disappear. On Release, to go to URL.
HOW is this possible. I'm a little unsure how to acheive this effect.
Should the actionscript go......
(a) in the "test" button instance..? (rollout seems to present a problem if placed here ...) >>OR<<
(b) in the thumbnail image(slides.jpg)-as-button -inside-the-"test"button-instance? >>OR<<
(b) in the button background image-as-button -inside-the-"test"button-instance? >>OR<<
(c) none of these, you're completely off the mark , and plain misled.
I'll reply to your helpful replys..Thank you.
Easy Button Question
Hello, ive got a slight problem with buttons. Ive used a button from the common library, in the keys folder to use in my flash movie, but I cannot alter the function of the button, I have changed the color and size etc but when I try to place a function in the button it wont work. I just need to be pointed in the right direction, thanks for help, leo.
Easy Button Question... I Think....
I am using MX heres the problem. I made a button in fireworks, i copied each state and placed it in the movie i was working on and created the button as nav1 and its states Simple enough. Heres the problem i want to just be able to make changes to the text on the button i am working on. but when i do it changes all the buttons same with navigation it changes all the buttons instead of just the one. I tried renaming it and saving at as nav2 instead of nav1 for both but it still changes all the buttons. any one know how to change it so each button is its own seperate button as opposed to copies that change with the rest?
Button Question....EASY ONE
I have a move that has several buttons.....but I want the button to acces a frame in the root. Any ideas ?
Basically the root has 4 buttons which are movies...in those movies are other buttons....but I want the button to access a frame in the root. Only other option I can think of is to do a loadmovie and put them in there...but this option sucks and is evil.
Please any suggestions ?
Cheers
Easy Button Problem
I'm in flash 5.
I'm been trying to make a button for at least an hour.
One...single...friggin'... button.
What wish to achieve is, on rollover, a fade from black to white which sweeps horizontally from right to left to reveal the word 'button' in white.
When the mouse hovers over the button the word 'button' still being in white.
On rollout, a fade from right to left which fades the word to black horizontally.
Sounds simple. It should be.
BUT, it's all failing on me!! (This is where all the technical talk comes in)
I have used two movie clips; one called button1 and one called button2.
button1 is the fade in (using motion tweened masks) with a stop action at the start (to stop it playing straight away) and a stop action at the end (to stop it going black after it's finished playing)
button2 is the fade out which is exactly the same as button1 except that the mask is reversed and there is a blank keyframe at the beginning with the stop action on it (to stop the word appearing before I want it to)
I also had a hidden button with telltarget actions on which tell the movie to play button1 on rollover and button2 on rollout.
This all works fine...
...But ONLY the FIRST time it is rolled over and rolled out.
On the second attempt the area stays black. I even know why this is... it's because flash tries to play the movie clips from the last keyframe (where the last stop action is) and moves it onto the first frame which has the second stop action on.
After it's 'reset' it works once more...
...but then it stays blank again...
...then it works again...
etc etc etc.
It's totally annoyed me.
I can't see how this be fixed without getting rid of the stop commands and messing it all up...!
PLEASE HELP!!
Ollie.
Easy Flash Button Help
hi am having trouble making the rollover button appear and change colour within the dropdown movie clip.
This should be a breeze but i simply cannot get my head round it can anyone show me the light
1 Button But 2 Results ... Easy ?
This should be easy ... I need one button to do two things,
Press and release in UNDER 2 seconds = Result 1
Press and release in OVER 2 seconds = Result 2
I'm sure it is simple but I'm pulling my hair out.
Any help is very very very welcome
Thanks,
Flasshy
|