Getting Frame Labels From Root
I have a button in a movie. On that button it calls for OnClick, goto and play label "transition"
The problem is that the transition label is on the root of the scene, so when you click the button (which is inside a movie), it doesn't know to look for that frame label at the root of the movie. It only looks inside that button its self.
Is there an easy way to make it so goto and play frame labels will look for that label in any part of that scene?
Thanks.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Targetting Frame Labels On The Root
Hi Everyone
In Flash MX I'm trying to target a frame by it's label on the root from a loaded movieclip. Now I know you can just go _root.gotandPlay("framelabel"), but what I want to do is to be able to dynamically change the name of frame label. Let me explain - I've got a movie with four "series" (let's call them a, b, c, and d), where each "series" is 3 frames on the timeline (so a starts at 1, b at 4, c at 7, etc). Each "series" is divided into three sections of one frame each. Each of those three frames is labelled "seriesname1", 2 or 3 (so in a it would be a1, a2, a3, in b it would be b1, b2, b3, etc.). I hope you're all still with me.
Now, each series loads the same movie onto the stage in the second frame, and after that movie has played, I want a button in it to go back to the first frame on the root timeline (in series a I want it to go back to a1, in b I want it to go back to b1, etc). Again, I know I can just put in _root.gotoandPlay("a1") or _currentframe - 1, but what I want to do is figure out what "series" I'm in and do it dynamically, something like (although this is invalid actionscript I think you'll get what I mean):
var scenename = _root._currentframe.framelabel;
//get the name of the series
seriesname = scenename.substr(0,1);
//where I want to go
var newscenename = seriesname+"1";
//go there
_root.gotoandPlay(newscenename);
I hope that makes sense. What I'm missing is that I don't know how to retrieve the frame label (I don't think that framelabel is a property of a frame).
Can anyone help?
Thanks
Ben
Targetting Frame Numbers Instead Of Frame Labels
Does anyone know if there's a way to target frame numbers in another movie or movie clip?
I want to be able to scroll backwards and forwards in one timeline by dragging a handle in another movie clip.
I know you can target frame labels but I don't want to have to label every frame.
¨
[Edited by caution:flammable on 02-19-2002 at 03:36 PM]
Frame Labels And Frame Numbers
Hi -
I am looking for a way to correlate a frame number with a frame label
For example if I wanted an action to occur untilt the movie hit the frame label I would ideally be able to do somethign along the lines of:
do {
play ();
} while (_currentFrame != "label name");
This does not seem to work, but I am hoping that this is close to something that will.
Obviously, I can put an action to stop the clip in the labeled frame, but I only want it to stop there under certain conditions . . .
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!
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?
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
Frame Labels
how do i add frame labels in MX....
stoopid ytes but i need to know thnx!!
---- 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?
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.
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
Frame Labels
I am working a project (already developed) which has many frame Labels. all with hard coded links in the buttons (ie gotoAndPlay "LabelName") is there an easy way where I can use something like nextFrameLabel previousFrameLabel to jump along and back through the timeline?
Or does anyone have a better method?
Frame Labels Please Help
Hi there, I can't seem to get anyone to help me! I have my site right? now each page is a Scene. (I know I know, I shouldn't use scenes) Everyone tells me that I should use Frame labels, thats fantastic, but when I try to go make them I don't even know where to start so my site will work. I'm going to throw this computer out the window pretty soon....please help...Ive been trying to make these links work for three days now.
[MX] Frame Labels
I am trying to follow this tutorial:
http://www.flashkit.com/tutorials/In...-532/more3.php
Which will create scrollbars on my flash website.
My problem is that when it asks me to put in a frame-label of 'load' it seems to label frames 1 and 2, not just 2. Am I missing something or does this always happen? My concern is that I asks me to make more frame labels soon after 'load'.
Also, when I add ActionScript, why is it when I click Frame 2, the ActionScript from Frame 1 is there? Should there not be a blank field for Frame 2?
Thanks.
Frame Labels
hi, is there any way to tell what frame label a movie clip is currently on, or can you only use the numeric _currentframe?
Frame Labels Help
In a previous post I asked how to "unload" a particular scene when another scene was called into play. It seemed a bit unpractical, so instead I have tried using frame labels. Sounds easy enough right?
ARRRGH!
So I've assigned the Instance Name that the clip itself is under "Pictures", and have labeled the frame "hb" So the actions that I have applied to the button as seen above, should play the clip, but it doesn't. The interesting thing is, it will play text if I place some on the "description" layer, just not the 'graphical clip itself. What's going on??
Frame Labels
Can you not have a frame label using numbers?
I have a button going to a frame label and when I use words, it works but when I change it to numbers (which is want to use (years)) then it doesn't.
It doesn't make sense as to why it won't take numbers.
[CS4] Frame Labels
Am amending a flash file that worked perfectly in CS3.
On amending and testing in CS4 all of the frame labels in particular scenes cannot be found. They are all on the timeline but when testing the swf I get:
ArgumentError: Error #2109: Frame label testLabel not found in scene testScene.
at flash.display::MovieClip/gotoAndPlay()
at test_fla::MainTimeline/test_click()
If i replace with frame number it works. If I change back to frame label I get same error.
Anyone else had this problem and fixed it?
Frame Labels
I need a code in action script 3.0 that allow you to go to next frame label and the previous without arrays naming each of the labels. These actions will be controlled using and a previous/next button. I need the most simplistic way of doing this..
Where Are The Frame Labels In CS4?
CS4 is pretty great so far except the panels are a bit buggy. Does anyone know where the frame labels are located now? Can't find them anywhere. I opened an old file that has them and I can get to them in CS4.
Using Frame Labels
I want to use buttons to move the play head from one frame label to the next on the main timeline.
I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Intro_fla::MainTimeline/Intro_fla::frame6()
What am I leaving out. It was so simple in AS2.
there are three buttons with instnce names: InArticleBnt, InVideoBnt, backBnt
there are three frame labels: intro, video, article
// The buttons listeners
InArticleBnt.addEventListener(MouseEvent.CLICK, article);
InVideoBnt.addEventListener(MouseEvent.CLICK, video);
backBnt.addEventListener(MouseEvent.CLICK, intro);
//the button with the labels I want them to go to.
function article(event:MouseEvent):void {
this.gotoAndPlay("article");
}
function video(event:MouseEvent):void {
this.gotoAndPlay("video");
}
function intro(event:MouseEvent):void {
this.gotoAndPlay("intro");
}
Frame Labels
Firstly I have a main swf file called index.swf which calls in other swf files:
_root.body.loadMovie("fscommand/home.swf");
I am trying to code the main file to call in the new movie at a particular frame label.
Is this possible.
Cheers
Frame Labels In MCs
hi, is there a way to use _Up, _Over, and _Down as a frame label in an MC to act as the button states?
Frame Labels
ok so just a simple question. im creating a siple site in flash and have all my navigation and buttons on Frame 2. can anyone tell me how i can put buttons into different frame labels? heres my problem
like i said i have all my buttons on frame 2. im creating a real estate site and i have to have a couple links like HOME ABOUT BUYING SELLING CONTACT, the thing though is that in the BUYING and SELLING frames i want to add more sections and links but only on these 2 other parts of my site. when i code it though my movie plays over and ver and over non stop. heres my coding...
frame 1
my preloader
frame2
home_btn.addEventListener(MouseEvent.CLICK, onHome)
function onHome(event.MouseEvent):void
{
gotoAndStop("home");
}
about_btn.addEventListener(MouseEvent.CLICK, onAbout)
function onAbout(event.MouseEvent):void
{
gotoAndStop("about");
}
etc....
etc...
and i put my link im trying to get to in a different frame here but the movie plays over and over again
Frame Labels
Firstly I have a main swf file called index.swf which calls in other swf files:
_root.body.loadMovie("fscommand/home.swf");
I am trying to code the main file to call in the new movie at a particular frame label.
Is this possible.
Cheers
Frame Labels?
I am trying to make a menu but I can not get some of my buttons to work. For example: The frame label where I want one of my buttons to go is "Contact Us" This is the action I put on the button:
on (release) {
gotoAndPlay("Contact Us");
}
The frame label is on the main stage
I have my button within a movieclip and the movie clip with another movie clip.
Does anybody know why it doesn't work?
Thanks
Frame Labels
This question is soo simple and I did this before but dont remember...
But how do you put a frame LABEL on a frame??
(embarrassed to ask this)
Frame Labels...
Last edited by erdubya : 2003-10-09 at 16:52.
How do I reference a frame label inside a symbol (not the instance of a symbol)?
Confusion:
I can reference the frame NUMBER inside the symbol but when I put a label on it, it doesn't work.
I have a symbol called oval.
frame 1 (label: odd) has a funny shape.
frame 25 (label: oval) has an oval.
frame 45 (label: peanut) has a peanut shape.
I have a shape tween b/w each keyframe.
I drag an instance of oval onto the stage and attach this action to the instance:
-----------------------------------------
onClipEvent (load) {
gotoAndPlay("oval", 25);
}
this works perfectly...but when I change the frame number (25) to the frame label (oval) it doesn't work...
------------------------------------------
onClipEvent (load) {
gotoAndPlay("oval", "oval");
}
How can I reference the frame by the frame label?????
Thanks a bunch!
Going Back Frame Labels.There Is A Better Way?
Hello
I would like to know if there is any simple way to make this. I have made
several presentations where you have the posiblity to go back and forward
with the keyboard (i.e. you press the key left and you go previous label).
I've made this manually every time, changing the actions in each button.
There is a better way to do this?. In director, for instance, you have the
behaviour of "go to marker" and everything is solved.
Thanks in advance.
Problems With Frame Labels
I'm using a script like this -- _parent.gotoAndStop("14"); -- in a multi-scene presentation. I'm just trying to go down to a main timeline and over to a frame label. Only thing is, that command sends it to the 14th frame, back in a previous scene.
Can anyone tell me why Flash doesn't recognize ("14") as a frame label?
THANKS!!!!
Ben
Variable Frame Labels
I need to know if you can put variable in a frame label so you that if you change a variable in the first frame of a scene that the frame labels will refelect that.
Also can you do this for scene names???
Frame Labels Into Variables
Using the following code I am attempting to assign myMovie's current frame label to myVariable.
myVariable = _root.myMovie._currentframe;
Navigation W/Frame Labels
Please bear with the complexity of this (maybe it's not quite as complex as I think)
Summary: multiple framed environment (Java/Flash/HTML), user clicks button, title of page scrolls in at top (top frame), the document is displayed in the bottom frame. I have a help button that gives tutorials based on the button clicked. What I want to do is, once the user clicks on a button, e.g., dogs, Dog Title above scrolls out (and stays), the .html file loads below, but if the user wanted to know how to take care of the dog, they would click the help button (in the top frame;same as all other buttons(main Nav)) and the help button would replace the current html with the applicable help tutorial html. I tried targeting the frame labels (which are located on the main timeline..the problem is, I realized this won't work because the frame labels only indicate the start of the scrolling title text -- it stops 19 frames later (total 20 frames) Now that I have confused all of you and myself, here is my shot at the scripting, which doesn't even come close.
HELP please!!!! =) thanks!!
script on help button: In summary, on release, if current frame label is "x", getURL "blah blah blah blah", "main"
Do I have to add the extra frames to the current label? I'm lost, and feel like a LOSER!!!
HELP again!!!
Frame Labels To Numbers? :-)
does anyone know of a way (or if it is possible) to translate a frame label into a frame number?
I need to do this in a scene I am working on where I forward on by doing gotoAndPlay("some frame label") ... but when I return I need "some frame label" + 1 really...
any ideas?
_root Frame Labels
Am trying to command the _root layer to go to a specific frame lable using a varible to define where it should go but unfortunatly its not talking properly i also have a a lot of if statments as there are 16 possibilities from the menu.
when a button is pressed on the menu it sets a root variable (nextplace) to the frame lable name ie "profile"
_root.nextplace=profile
then on the root a mc plays to its end and goes through the if statments
with (_root)
if _root.nextplace==profile
gotoandplay "profile"
}
}
until it reaches profile then it needs to go to the frame lable in the root "profile"
any suggestions
Advancing To Frame Labels
Ok all you flash Gurus out there. I need help with ActionScript in MX. Now I am a flash "Designer" not a "scripter" so please bare with me.
I basically have a slide presentation. It is a self running presentation with graphics and sound. It needs to have previous and next buttons on it. The problem is how do you get the buttons to go to the next (or previous) frame label. I tried making an array but it goes to the first slide in my array. How do you capture the current position of the timeline and make it jump to the next (or previous) frame label.
Now i know the hard way of doing it. Make a button for each slide. But I have over 70 slides. There has to be a better way in actionScript.
Frame Labels In Symbols
i created a movie clip symbol, and gave the first frame a label.
Now how do i play this from my scene1 level?
I created a button which should start the movie clip, but in the actionscript normal mode the frame label from the movie clip doesn't appear.
Go To Random Frame Labels - Help
What I want to do is tell a specific MC to go to a random label each time the MC enters a frame. I have a stop on frame two, then a button that tells the movie to go back to frame 1 (to reset the random function).
(it's a scratch off ticket that gets reset)
I can't find any good documentation of random AND labels. Thoughts for me?
What Happend To Frame Labels- In MX?
Hello :
I think I probably have an easy one here for you. I used flash 4 quite a bit-- and liked using frame labels in controlling my movies. I now have MX and I can't figure out how to put a label on a frame. Did they change the name of the "labels?"
Thanks for the help!!
Frame Labels Or Numbers?
I have a mc that executes:
code:
_root.content.gotoAndPlay(_global.newContent);
where for example _global.newContent = "010"
this is meant to send the playback head to the frame labeled "010"
for some reason actionscript doesn't view the 010 as a label but rather as a number.
Can I get around this in some way so that the above action actually sends the playback head to the label?
Thanks,
K
Specifying Frame Labels When Using LoadMovie
Hi People!
Does anybody have any idea of how to target specific labelled frames when using loadMovie.
So for example (in pseudo code):
Load 001.swf into my current movie using my mc "moviePlacement" as a target and then inside 001.swf go to the frame labelled Page04.
Is this possible?
If so, can someone tell me how, you'll be a lifesaver!!!
Cheers
Deadhands
Any Way To Print All Frame Labels?
Is there a way to get all frame labels (for instance to the Output Window) so I could print them on a paper?
It would save valuable time because I have a LOT of labels in multiple .sfw's.
Going To Variable Frame Labels
Let's say I want to send an MC to a frame label that is specified by a variable.... for instance, if I have frames called "cat", "dog", "bird" if I have a button that sets var MyAnimal = "dog" can I then say something like:
MC.gotoAndStop("[MyAnimal]");
if so, exactly how do I phrase it?
Smartclips And Frame Labels
OK. i've got a smartclip which has within it button with a variable text field. I am wanting to put another variable so that onRelease, it will jump to a frame label within the current movie clip. so how do i write a variable for goto frame?
Dynamically Set Frame Labels?
While my flash file is running, I'd like to be able to use ActionScript to change the label of the current frame.
Is that possible? How?
Help Reguarding Using Frame Labels
Hi,
I'm a graphic design graduate doing a portfolio site in flash MX.
I have one major problem. On the main movie time line I have labels with designated content contain in movies on them. Profile, Contact etc.
I have a movie that is the interface that I wish to remain throughout. Within it are the main buttons,and all i'm trying to do is send the playhead to the frame labels of content and play the movies on them.
What actions should I be attaching to my buttons?
TIA, Duane
Frame Labels And Actionscript?
Alrighty...
I am trying to learn basic actionscripting so i am making a basic flash movie. For some reason (in the attached file, scene=mike, frame=MH, actions in frames above) when i assign the frame "mike" the button MTH (labeled HOME) works, but when i assign the frame "MH" it doesnt work... why?
If i wasnt specific enough about the location of all this just tell me and ill give better directions.
Using Frame Labels In My Control Bar.
Hi guys,
Basically i have a control bar.. Erm.. Like control panel which plays my flash movie.. With play, stop, next and back buttons. I am using frame labels to determine which section to skip and fall back to. But i have no idea how to script it. The idea is similar to _nextframe and _prevframe but i need to make it go next frame label, prev frame label.
Thanks in advance!
Help With Buttons Using Frame Labels
Hi - Newbie here...
I've placed a movie clip on my stage, which has another movieclip inside it, which has 3 buttons inside it.
My code on my actions layer in the main time line is the following...
------
menuload.menutext.button5.onRelease = function() {
gotoAndStop("Start");}
menuload.menutext.button6.onRelease = function() {
gotoAndStop("help");}
menuload.menutext.button7.onRelease = function() {
gotoAndStop("contact");}
-------
I'm using labels instead of frame numbers as I've read this is better. The problem is the buttons work fine if I'm going forward in my main timeline, but if I try going backwards, by clicking the 'button5' for example when I'm on the 'contact' frame, it doesn't go to it. I even tried changing to frame numbers to see if it was that but it didn't work.
Any help appreciated.
|