Quick Animation And Labels Question
I've set my site up in flash using labels. I have a animated banner that spells out the name of my site. I have inserted a stop action, but every time I click back to the "home" tab the banner plays. How do I get the banner to only load once, so when they hit back to home the banner is displaying how it appeared in it's final frame of the stop action?
Adobe > ActionScript 3
Posted on: 07/13/2008 07:25:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Quick Question About Labels
Hey guys, was just wondering if anyone knows how to stop a button automatically jumping to the next label if the button points to the label you are currently on?
i have a navigation whereby i have 3 labels buttons jump to, 1stpic ,2ndpic and 3rdpic. When its on 1stpic and you click on the 1stpic button again it goes directly to 2ndpic even tho the actionscirpt says
on(release){
this._root.m_container.gotoAndPlay("1stpic");
}
(the root/container thing is an external navigation setup that works fine)
is there a way of gettin around this does anyone know??
cheers in advance!
Leapin_leprechaun
Quick Question About Frame Labels...
We all know that you can give a frame on a timeline a label, for instance "myFrame", so that you can then move the playhead to it with myMC.gotoAndPlay("myFrame")
...but is there any way to return the label (is one is present) of the current frame in the same way that you can return the frame number using myMC._currentframe?
Cheers.
Frame Labels And Animation Question
How are frame labels used other that for my notes.
I am trying to add a button that goes and plays a frame label but i cannot get it to work.
on (release) {
gotoAndPlay("frame label");
}
is the code I am using. Do I have to declare the frame number too?
//like this??//
on (release) {
gotoAndPlay("frame label",1);
}
How can I get this to work correctly?
I have a MC with tween, labelled, frames. On frame 1 I have _stop, no tween, and on frames 2-25 (labeled) I have an animation, and then on frames 26 - 49 (labeled) I have an animation.
I wish to hit a button and play frames 2-25.
If I don't put _stop on frame 1 it loops continuosly with no control.
With _stop, it doesn't start, but it doesn't work at all.
What am I missing and how do I make more than one animation play on the same stage under control???
Please help...
Quick Animation Question...
How would i go about drawing lines that start at one point and animation into a figure. Just was playing with flash and couldn't figure it out. For instance... i want 2 lines coming from the top and bottom of the animation to form a box circle, where a new animation would be "created" and then the inside object would be animated. Like i wanna my animations to be introduced by the lines.
Sorry if i'm not clear, let me know if you need more specifications.
Jason
Quick Way To Reverse An Animation?
Often times I make an animation and want to have it go backward in reverse (for example, maybe I make a frame by frame jump upwards and then want him to come back down by re-using those same frames, but in reverse order), is there a way to easily just reverse everything? Or do I have to copy and paste each frame in reverse (which is what I've been doing). Just thought I'd post and ask if there were any built in features to let me do this faster.
Quick Script Help... For A Menu Animation...
Hey everyone,
I'm sure this is a simple one... I have a menu in a movie clip. When a button is pressed it starts an animation and sets a corresponding buttonId number (variable = buttonHit).
What I'm trying to do is to set up a checker at the end of the animation to see which button was hit and to go to the corresponding frame. Something like if buttonHit == 2 gotoAndStop frame 7. Better yet, to create an if statement that uses an equation. Something that says whatever the buttonHit # is, add 3 and go to and stop at that frame number.
Does that make any sense? I've been tinkering with it for hours now and can't figure it out.
Thanks in advance.
JSn
Quick Script Help... For A Menu Animation... (MX)
Hey everyone,
I'm sure this is a simple one... I have a menu in a movie clip. When a button is pressed it starts an animation and sets a corresponding buttonId number (variable = buttonHit).
What I'm trying to do is to set up a checker at the end of the animation to see which button was hit and to go to the corresponding frame. Something like if buttonHit == 2 gotoAndStop frame 7. Better yet, to create an if statement that uses an equation. Something that says whatever the buttonHit # is, add 3 and go to and stop at that frame number.
Does that make any sense? I've been tinkering with it for hours now and can't figure it out.
Thanks in advance.
JSn
Quick Timw To Flix Animation
thanx for the prompt reply and help. i tried downloading flix but couldnt run it as i didnt have the crack can u pls tell me a site where i can download a demo version or shareware which can be saved. Can u pls also tell me how to convert the quicktime movie into bitmap and then trace it in flash manually. i am really new to flash
thanx once again for the help
Quick Question About Animation Using Actionscript
Found this excellent Tutorial here on AS.org Animation using Actionscript
Can anyone tell me how I would implement this for multiple buttons and animations. i.e. In the tutorial it works great for 1 button and one ball, but what about 5 buttons and 5 balls?
Cheers and grassy arse
Stuck Animation On Quick Rollover
I have a button that on rollover, gotoandplays a movieclip. It works, however, if you mouse over the button too fast, the movieclip animation gets "stuck" on the wrong keyframe, i.e. the playhead doesn't return to the frame I've specified in the actionscript. I've heard this is a common Flash issue- what's the solution? Thanks.
Quick Question About Animation & Best Performance/practices
Just a quickie question here... I am throwing together a few quick animated segments (movieclips animated frame by frame, approx 30 frames or so) that will be applied as a mask and used for transitions. I have been having a hard time trying to decide/determine what the best way to handle the content on each frame would be... (maybe i should also mention, there will be approx 10-12 different animated sequences)
Should I leave the shapes as just raw shapes or should i convert each frame's content into a Graphic symbol?... What is easier on the end user's system's processor?... What will add more weight to the file size?... What's the proper way to handle such a scenario?... Is there a general rule? OR is it a case by case, designer by designer choice/preference?
Thanks in advance for any suggestions, advice, etc..
madzigian
Quick Question On Flash Animation Pricing.
Quick Question on Flash Animation pricing.
Hi all, just a quickly on how much it might cost me to hire an animator to build me a 350px X 300px X 30 second flash info film if I provide the key Graphics and a full story board.
While I could probably do it myself if I had the time to learn Flash as most of this will be based on simple fade in and out of images…
Many thanks
Mouse.
Quick Question - Need Quick Answer - Load Movie
If I load an swf movie into one mc named "mc1". and then I want to load the same swf movie into another mc "mc2", will the swf need to load again into mc2 or will it already be catched.
I am assuming yes ...
Thanks,
DRB
[Edited by funner on 06-14-2001 at 09:53 PM]
Best Way To Script A Quick-slow-quick Movement ?
Hi
I'd like to make a clip move across the stage like this :
- first it moves fast and then decelerates to a slow crawl for a short while then re-accelerates and moves fast to the end of its movement
what's the best way to do this ?
is it better to use mx transitions or intervals or another system ?
thanks
Quick Quick....masking Problelm
Hi everyone
Um facing a problem regarding masking
well, i know how to mask texts with objects that I CREATE like a circle, for example the masked layer has text & the mask layer has a circle that I DRAW USING FLASH...this if fine...it works well
My problem is my masking does not work when i the mask layer has an object that is imported, for example an imported heart instead of a drawn circle....it does not work at all....!!!!
What's the problem?? & How could i solve it??
Any help is highly appreciated
thanks in advance
Quick Question = Quick Answer
I have a movie with an animation on one layer. Just a motion tween over 5 frames. In this movie I also want to target a blank clip and have another .swf load into that clip.
I'm putting the loadmovie script on a blank frame in my actions layer (frame 1) telling the .swf to load into the blank clip.
nothings happening? any fixes?
Labels
Hi i have a problem here.
I am trying to have 2 person kicking a ball to and thro each other.
I will have a button on each of the person, so that when u click on it, they will kick the ball.
How I do it, is have the two person and the ball all to be a mc.
On the button, when the person clicks onto it, if the ball timeline is at a certain frame, it will play, else it won't.
But I am having trouble referring to where the ball stops(the frame label).
on (release) {
if (ball.stop("onetwo") {
_root.person.play();
_root.ball.play();
}
}
Also do I did to follow a IF with an ELSE??
*********
One more thing. I was loading one movie into another, how can I have the actions still playing??
thanks
Sushi82
Labels
hi
is it possible for actionscript to know if a frame exists with a paticular label?? so lets say I have a label called "john" on frame 60, is it possible to check if the frame with label "john" exists or not?
thanks
phil.
Labels
can i name 2 frames (diffrent scenes) with the same name?
Labels Gone
using flash mx 2004 i had standard labels on my radio buttons. i then use this main movie inside another so i can have an external preloader. everything worked fine, but i must have changed something, because now when i test it, the labels dissapear. When I test the main movie they are still there. But using the preloader they are gone. and when the movie is tested they still work the same, the labels just left. any idea as to what caused this?
How To Add Labels?
Sorry for stupid questions.
But how to add labels on frames in Flash MX?
Preloading Using Labels
i know how to preload using labels, however, if you have labels in movie clips and not in the main movie, how do u target or select them when doing the If Frame is Loaded actionscript? it doesn't show up in the drop down menu. thanx
Preloading With Labels
I already know how to make preloaders however i want to make a preloader with percentage increases (25%, 50%, etc.) I can learn that from tutorials online but the method i want to do that is with labels. If the label isn't near the preloading movie, you do not have the option to select it from the dropdown menu when you select what label you want for the "If frame is loaded ()"
Now what i'm asking is, i need to kno how to identify labels that may be within other movie clips and scenes. I know to identify movie clips you use ../(instance name) instead of the usual /(instance name). how do you do it for labels?
Also if how i'm doing it is impossible, plz suggest another way. thanx
Magnetic Labels
I wonder if any one might know where i could get a tutorial for these magnet tags such like the ones below.
http://www.rawfibre.co.uk/
many thanks
Labels To Text To Get Url..
Ok. I should know the answer to this question, but I fail to know it, at least at the moment.
Ok, Here goes:
I have a text field that offers the user to insert text. Say I have a label that tells the user to input their email address or someone elses. Then they can click on a button to Send the info.
Ok? So. inother words the actionscript would look like:
mailto:?????
How can I get Flash to set the mailto: and the users text from the text field together.
??
Thanks
Chad
Frame Labels
Flash 5 Question: In a short .swf, I am placing frame labels on 1 track, however, each time I insert a frame label, it converts the previous frame label to the same label. If I then fix the one that changed, it then remains correct. What am I missing?
Thanks!
How Do I? - Text Labels
I see Flash sites where text will appear (Scroll on/Fade on) when the user moves the mouse over a button. It the Fades/Scrolls off when the user rolls out! How is this done?
Any help much appreciated!
Frame Labels
I am using a Mac - can frame label names have spaces or should i use an under _ score?
for example in
on (release) {
_root.gotoAndPlay("label in scene")
is it ok to have the spaces?
Add Labels To Listbox
can someone help me with dynamically adding labels to the listbox companents??
thanks for the help
riyan
Scenes And Labels
what are some way to link to a specific scene and a specific label within the scene.
Labels And Variables
I'm passing a variable which holds a frame label to a function which tells a movie clip to go to that frame label.
Example:
aLabel = "section1";
function launchLabel(whichLabel) {
gotoAndPlay(whichLabel);
}
launchLabel(aLabel);
Flash is not reading the variable whichLabel correctly. whichLabel is passed as a string, but the statement gotoAndPlay(whichLabel); is reading whichLabel as undefined. Is there a way for the method "gotoAndPlay" to call a label using a variable?
Thanks,
Craig
Frame Labels
is there a way to address a frame label like you would a frame number? I'm making a radio and its a living nightmare for me to use raw numbers to advance to the next track. right now I've got this for the next track button
if (_currentframe > 1 && _currentframe < 8659) {
gotoAndPlay(8660);
}
and so forth to advance tracks.... each track has its own lable though... like "Song1" and then "Song2" . What I would like to do is say something like:
if (_currentframe > "Song1" && _currentframe < "Song2" - 1) {
gotoAndPlay("Song2");
}
how can I do that? Or if there is a better method can someone please tell me? this has been driving me nuts.
thanks in advance
--Metalguy
BarChart: Where Are Those Labels?
When you use the component BarChart and move the mouse over one bar you get a label that says:
Label: the label
Value: 50
I´m trying to edit that to tranlate "Label:" and "Value" but cant find where is that. Can someone help me?
Thanks!!!
Linking To Labels?
Is that possible? For example can I add an action to a button saying on release, go to a frame labeled HOME?
Thanks for your help.
Frame Labels
how do i add frame labels in MX....
stoopid ytes but i need to know thnx!!
Dynamic Labels
I'm trying to create a dynamic timeline without using labels.
Right now I have a series of labels counting up the timeline (next1, next2, next3, and so on).
I have a button with a "keypress" function following up the timeline referencing those label.
on (keyPress "<Space>") {
gotoAndPlay("next"+forward);
_root.square = 0;
if (forward<70) {
forward++;
}
Is there a way to make a dynamic label system that will creat it's own numbers and order? It's killing me to have to relabel those numbers in order to have my button follow along.
---- Frame Labels ----
hi hi,
can I use frame labels in actionscript?
Because I did like this ("infostop" is the name of the label):
on (release) {
if (_currentframe=="infostop") {
loader = 1;
gotoAndPlay ("infostop"+1);
}
}
and it doesn't work........
any solution?
Setting Labels
Hey,
I am trying to set a label to like a frame or w/e and as you can see in the attached file, it says to get it to say onFrame and all that but I can't get that. Where do you right click and add the action to get that. I keep getting AtFrame and it not workin! Help PLease!
Creating Labels
Already so far so good. I am reading " Sama Teach yourself Flash MX Actionscript in hours".
Flash has a neat feature to create labels, by using names instead of frames so if you need to move something you dont have to rewrite the script, but it doesn't tell me how to create labels.
Can someone help me with this or know of a good source to get the information?
Section Labels
Hi all,
I have made a map using flash and swift 3d. When a user rolls over a certain hotspot it makes the movieclip underneath play its sequence to make it look like a 3 shape rises from the map so they know where they are. What I want to do is when the user rolls his mouse over the hotspot they get a line from the mouse and at the other end of the line they get a word telling what the section actually is.
Could anyone gove me any indication as to how I could achieve this and how the actionscript could look.
Thanks Pixelmagik
Frame Labels.
Hi Peeps,
Trying to work out how to use frame labels in if statements. Is it possible?? I got something like this, but duh it dont work!! :
if (movieclip._currentframe < movieclip._("framelabel")) {
play();
}
Any ideas? I've never used frame labels like this and I got it all wrong. Maybe theres an easier way to do it so any help would be really good. I dont want to use frame numbers as i've got a lot of moving around to be done.
Cheers.
Steven.
Prevframe - Can This Be Done With Labels?
i have a scrolling text box with up and down arrows...code looks something like this:
on (press) {
_root.textclip.prevFrame();
gotoAndStop("1up");
}
on (press) {
_root.textclip.nextFrame();
gotoAndStop("2down");
}
instead of moving up and down just one frame or a certain # of frames...(nextframe (+ 5))...i want to move to the next and prev labels within the movieclip...is there an easy way to do this?
thanks
How Do You Make Labels
how do i make labels on a layer so that i can make goto commands to go to different labels? you know, the labels that have a little red flag icon. i've been searching through the flash help and can't find anything.
Rollover Labels?
Hi, i think i have seen a post for what i want before but i cant find it, so sorry guys for asking again.
I have 4 little pics..squares.
what i want to do is for, as you roll over each of them a little label pops up...but i can remember the little label attaching itself to the mouse and only comes up when its on the image and moves about attached to the pointer as long as its inside the area.
make sense?
thanks!
Labels Or Numbers In MC?
Hi,
thank you for reading this.
I am using frame labels for button actions in a movieclip. I tried with frame numbers and that doesn´t work. No problem with labels though.
I have seen here on the board that this is common. Now I´m just curious: does somebody know Why? Does Macromedia consider this a problem?
regards
ik.
New To Scenes And Labels
Ok, so I have made a bar that loads at the beginning of my movie using actionscript.
where do i go from here?? I know that I have to create scenes for different parts of my site but i dont know how to go about doing it!!!
May seem very simple but i need help with this to create my website.
How do i set up the scenes and labels that the actionscript recognises in the timeline e.g
a scene for "about me"
a scene for "my blog"
a scene for "art"
you get the idea, i want to have buttons that i have made on the first frame(the one displayed after the intro) link to other parts of my website.
I would appreciate all help email me at
shanekillian18@eircom.net
thanks
Scenes/Labels
Hi.
I am trying to do a very basic slideshow display in flash. the way it is set up is there is an initial menu page, where the user chooses a category to view the slides of, they click on the button, and the slide show begins. within the slide show, there are next/back buttons which cycle through the show.
functionality:
the menu page buttons, when pressed, jump the flash movie to a label within a seperate scene.
the next/back buttons jump to labels with that scene.
the code:
//the next button-
on (release) {
if (currentImage<totalImage) {
gotoAndStop(scene+"Load"+(currentImage+1));
} else if (currentImage==totalImage) {
gotoAndStop(9);
secondLoop = false;
}
}
//all this does is compare the current
//image to the total number of images,
//and then moves forward from there.
//any added complexity is for aesthetic
//reasons. the code is dependent on
//the variable "currentImage" being set.
//each label (i.e. scene1Load2) has an //action in the first frame to set the
//variable "currentImage".
currentImage = 2;
--
the problem:
The code works fine, the slideshow works fine unless the scene with the slideshow is not the first scene in the scene list. So all of my functionality works up until the point where i add the menu page, and then, no matter what is on that page, the code to set the "currentImage" variable no longer triggers when i use the next/back buttons. I have tested this rather extensively, and am certain that everything works when the slideshow scene is first in the list, and the variables no longer set if it is not. This seems to me to be most certainly a bug, but i am hoping that someone has run into this before and has a workaround that does not involve placing the whole movie in one scene, or creating seperate movie clips for each page.
thanks,
jkl
Frame Labels?
i really have looked everywhere, and i cannot for the life of me, figure out how to create a frame label!! pleeeease help!!!
-glam st. glam
p.s.
i'm using flash mx 2004
|