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




Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.



I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-20-2001, 05:51 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Targeting A Frame Label In A Movie Clip...
Hi. I hope someone responds to this, because I'm going crazy--its such a simple concept, and I can't get it to work.

I have a button on the main timeline in which I am attaching code directly on the button itself. When the button is pressed (on release) I want it to play a frame within a movie clip, either by calling a frame label within the movieclip, or by a frame number within the movie clip. This movie clip exists at the end of the main timeline, and has a timeline of its own, with its own movieclips embedded inside.

Basically I am creating 3 buttons on the main timeline that can jump to different parts of the .swf (as "shortcuts")--and the last 2 buttons need to jump to a specific part on a timeline within the movieclip.

Can anyone help me with my stupid problem? Could you tell me how I would write this code, directly on the button?

so far, I have:

on (release) {
gotoAndPlay ("framelabel");
}

and this doesn't work. I tried using frame numbers, and I also tried targeting the movieclip before the "gotoAndPlay" part, but it is not recognizing the movieclip. for instance:

on (release) {
movieclip_mc.gotoAndPlay (n) -->I tried using a frame label, and a frame number, but both don't work

So, how do I tell it to play from something within the movieclip? Am i making sense? if you know what I'm trying to do, and you might have a solution, I'm all ears!

Thanks,
miss_bono

Movie Clip Button: Cannot Play A Frame Label
I am making a simple web site for a friend, and everything is running peachy keen up to now. But this web page is not only something my friend asked me to do, but a learning experiance for myself. My problem is as follows:

The web page I created requires me to use a movie clip as a button, however I am not educated enouph to make the MC button able to play a specific frame label. However the script works when I place it in an ordinary, boring button. Here is the current script that doesn't work, and thank you for your time.

on (release) {
if (Proc = False) {
if (CurrentSection != "Home") {
}
}
gotoAndPlay("Home");
}


Edit: The MC button works when I make it go to an external web page through the gotourl thingy.

Button Within A Movie Clip Not Linking To Frame Label?
I have created a menu that is an animated movie clip within Scene 1. I have created several buttons on the menu. I am trying to link those buttons to frame labels which are also in Scene 1. I am using the following actions with Flash 5.

on (release) {
gotoAndPlay ("Scene 1", "Home");
}
This is doing nothing but closing my menu. Is there a trick to allowing buttons within movie clips to include these actions? (telltarget?) Please let me know ASAP if you have any answers.

Flash Button To Take Movie Clip To The Next Frame Label Instead Of The Next Frame
I am trying to figure out how to create a button to take a movie clip to the next Frame Label instead of just to the next Frame. I have a slide show that I am working on with a fade effect from picture to picture. When I just use the nextFrame script it will literally take you from frame to frame on the fade in. Is there a script that will allow you to go to the next (or previous) Frame Label from where the movie was stopped?

Any help is greatly appreciated!

Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,

I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.

on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);

}


Thanks!

Stu

Button Inside Of A Movie Clip That Goto's A Frame Label
heh, ok i have (as the title implies)
a button that is inside of a movie clip, and an action connected to te button that is suppose to "go to and play" the frame label (which is on the base/main) scene NOT inside of the movie clip. make sense?

what i have is

on (release) {
gotoAndPlay ("base", "music");
}

on the button.

the names are correct
--------

i can do the exact same thing OUTSIDE of the movie clip (put a button on the main stage and have it goto a label) but it just closes the movie clip when i put the button into the movie clip and try it.

thanks in advance for the help!

Root Timeline Button That Goes To A Label Frame In A Movie Clip
Hi im new to this forum and new to AS3.... What im trying to do is :

i got a button with the instance name of english_btn .... when clicked... i want to gotoAndPlay frame label Tree_MC into my movieclip Tree_MC

Thx a lot

Root Timeline Button That Goes To A Label Frame In A Movie Clip
Hi im new to this forum and new to AS3.... What im trying to do is :

i got a button with the instance name of english_btn .... when clicked... i want to gotoAndPlay frame label Tree_MC into my movieclip Tree_MC

Thx a lot

Root Timeline Button That Goes To A Label Frame In A Movie Clip
Hi im new to this forum and new to AS3.... What im trying to do is :

i got a button with the instance name of english_btn .... when clicked... i
want to gotoAndPlay frame label Tree_MC into my movieclip Tree_MC

Thx a lot

Button Within Movie Clip Not Linking To Frame Label On Scene 1
Hi

I am using Flash 8. I have created a button with the instance name "painting_1" which is within a scrolling movie clip called "work_scroll". I want the button when clicked to link to a frame labeled "painting1" which is two levels above it on Scene 1.

So it breaks down like this: Scene 1 / scrollpane_work / work_scroll / painting_1 (the button)

I have gone to work_scroll selected the button "painting_1" and added the following actionscript:

on (release) {
_root.gotoAndStop ("Scene 1", "painting1");
}

This does nothing. Please could someone tell me what I'm doing wrong?

Thank you.

Need 'if Frame Loaded' For A Separate Movie Clip
I would like tell a movie in a different level to go to frame 2. The problem is, I load the movie and then immediately tell it to go to frame 2 and it doesn't execute the last part of it (it gets loaded, but doesn't go to frame 2).

This is the sequence:
level 10 is loaded (first frame is blank, I don't want it seen yet),
when level 10 is loaded, I would like it to go to frame 2 (which isn't blank)

Does anyone know how to tell another movie to go to a particular frame?
... or does anyone know how to use the ifFrameLoaded for a different movie level? (tellTarget won't allow an 'ifFrameLoaded' command inside of it).

thanks in advance,
tracee

From Movie Clip To Frame Label ?
I have a button within a movieclip, and I'm trying to send it to a frame label, but it just will not let me...

how can I do this....

it is all contained in one scene...

please help fast..>!!!!!!!!!!!

Call Frame Label From A Movie Clip
The problem is that I want to call a frame lable on my main level from a movie clip. How do I do that?

Thank you in advance

Jump To Frame Label Within Movie Clip
Hey Guys,
I'm stumblin' through flash at the moment and have hit a problem that I cant seem to work out myself so I hope you guys have an idea.

I have a movie clip on one frame that is an image viewer in which small graphics can be clicked and larger versions can be viewed.

The larger versions of the graphics are all in another movie clip with frame labels at the start of each image display.

I need to click on one of the smaller graphics, move the main time-line on one frame(to display the movie clip with the larger images in it) and go directly to a frame label within that clip.

So I thought that 'on press' I could move the time-line on one frame to display the movie clip, and 'on release' could tell it to go to specific frame labels within that movie clip. Seemed pretty logical.

I'm trying to use this at the moment but know I'm missing something. Any help would be greatly appreciated.

on (press) {
_level0.nextFrame();
}

on (release) {
_root.mc_intimages.gotoandPlay("pic1");
}

**where 'mc_intimages' is the instance name of the movie clip that displays when I move the time line on one frame, and 'pic1' is the frame label within that clip it needs to go to.

Thanks to anyone advance for any help given.

B

Goto Frame Label Within Movie Clip
Hey Guys,
I'm stumblin' through flash at the moment and have hit a problem that I cant seem to work out myself so I hope you guys have an idea.

I have a movie clip on one frame that is an image viewer in which small graphics can be clicked and larger versions can be viewed.

The larger versions of the graphics are all in another movie clip with frame labels at the start of each image display.

I need to click on one of the smaller graphics, move the main time-line on one frame(to display the movie clip with the larger images in it) and go directly to a frame label within that clip.

So I thought that 'on press' I could move the time-line on one frame to display the movie clip, and 'on release' could tell it to go to specific frame labels within that movie clip. Seemed pretty logical.

I'm trying to use this at the moment but know I'm missing something. Any help would be greatly appreciated.

on (press) {
_level0.nextFrame();
}

on (release) {
_root.mc_intimages.gotoandPlay("pic1");
}

**where 'mc_intimages' is the instance name of the movie clip that displays when I move the time line on one frame, and 'pic1' is the frame label within that clip it needs to go to.

Thanks to anyone advance for any help given.

B

Need Movie Clip To GotoAndPlay Frame Label In Another
Hi Guys,

I have a button inside a movie clip that, on release, want to go to a specific
framelabel in another movieclip which is nested in the main timeline. Basically
I have a simple nav menu mc on the main timeline, which contain 4 mcs (each one is an animated link). I want to, as an example, click on "design_mc" and have it goto a framelabel on another mc that is on the main timeline. The framelabel is within this mc, not on the root timeline. I tried telltarget but it
doesn't seem to work. As an added note, the 4 mc text links are not directly on the timeline either - they are in a single menu mc. Any thoughts?

Chris

Listener For Frame Label In Movie Clip
I'd like to create an 'addListener' that will trigger an action when a certain movie clip reaches a frame label in that clip. Is this doable? (I've never used 'addListener' or listener events).
Thanks for any help.

Call A Frame Label In Another Movie Clip.
Hello everyone,

I'm trying to goto a frame label from within one movie clip, into another movie clip.

For example, the structure is like this:

MovieClip called 'allButtons'

inside this clip, there are three movie clips with buttons in them, called 'buttonOne, buttonTwo, buttonThree'.

Now, say I'm inside the movieclip 'buttonOne', which is inside the 'allButtons' clip. I want to goto a frame label within 'buttonTwo' called 'buttontwo'.

How do I do this?

I've tried:

Quote:





on (release) {
buttonTwo.gotoAndPlay("buttontwo");
}




it doesn't go anywhere. I know if you are calling the main time-line from within a button, you use the _root. distinction, but I can't figure out a way to call a framelabel from within another movieclip. Hopefully this isn't too confusing, please let me know if you need any clarification.

thanks so much!!

-md

GotoAndStop Frame Label In Different Movie Clip
Hi!

I'm having a problem with this one...

On my main timeline, in frame one, I have a movie clip called "mc" (for sample sake)
Inside that movie, I have a frame "playme"

On frame two of the MAIN timeline, I have another movie clip. Inside that movie clip I have a button where I simply want the action for it to gotoAndStop to the mc to frame "playme"

I've been able to figure out much more complicated _root/_parent/_level0 scenarios before, but for some reason I cannot get that second button to go to the mc"playme" frame.

I've tried:

this.mc.gotoAndStop("playme");

this._parent.mc.gotoAndStop("playme");

and basically about 9,000 other versions, none of which work. If I put the button on the main timeline(stage) of course it works. So it's a path thing.

I'm sure this is simple but if ANYONE can help me it would be much appreciated. The swf file that I am using will be using this same scenario several times throughout.

THANKS!

Suz

Targeting A Frame In Another Movie Clip
flash MX,
I have several movie clips, each in a different scene.
with three buttons in each movie clip:

"Back", "Contents", "Forward"

I am having trouble going to the last frame in another movie clip in previous scene using the back button, This is what the code looks like:

on (release) {
_root._Edge2.gotoAndPlay("E2");
}
I have also tried gotoAndStop this does not work either

I have no problem with the forward because I just sent it to a label on the main time line.

the movie clip has an instance name of _Edge 2
Can someone please help

Can't Target A Frame Label Or Frame Number Within Movie Clip
Hi guys,

Can't for the life of me figure out why this is not working:

if (_currentframe==82) {
homefade_mc.gotoAndPlay("fadeup");
design_mc.gotoAndPlay("design_fade"); - this one is fine
}

- the first gotoAndPlay should be going to the homefade mc and then going to the "fadeup" frame label and play from that, but instead it does nothing. Any clues?

Chris

How To Using Frame Label From A Movie Clip To GotoAndStop To Stage Frame?
I have a 100-frame movie clip, a_mc, on the stage.
I want it automatically gotoAndStop at a certain frame, labeled as "about", on the stage (root level).
How should I do?
(AS3 version please...)

I know how to do this from a root to control a movie clip only.

Urgent::movie Clip Help Jumping To A Frame Label
I need help with my actionscript because I am unable to embed movies and then once they are finished playing have the script take me to the main timeline and play a new movie or play a new frame label.

Here is the layout of my movie:
In scene 1 I have frames 1-9 labeled "why" and frames 10-19 labeled "experience."

Under the "why" label, there are two layers, each containing a movie clip: "background and "why." Once the "why" movie clip is finished playing, I want to have the movie start playing at frame 10, labeled "experience."

I tried putting the following script at the end of the "why" movie:
stop();
gotoAndPlay("Scene 1", "experience");

but all that does is play my movie -- the background and why clips play, but then the why clip repeats over and over again instead of stopping and jumping to the main timeline's frame 10, labeled "expereience"

Can someone help me quickly please.....I'm working on a project that I need to move ahead on ASAP. Thanks so much.

Go To A Specific Frame Label In An External Movie Clip
Can someone tell me how to load an external movie clip and go to a specific frame label? I followed Macromedia's tech notes for using "with" but am missing something.

Here's what I have:

on (release) {
loadMovie("external.swf", target_mc);
with ("external.swf", target_mc){
this.pages.gotoAndPlay("thelabel");

}
}

Targeting Frame In Movie Clip...help Needed Please
hi

i have a movie on the main time line that contains my buttons and another movie on the main time line called "text", in the text movie i have a frame called "siteinfo"

what actionscript do i need to appl to my button to target "siteinfo" and make it play..???????

thanxs in advance

Targeting Frame In External Movie Clip.
Hello,

I have Movie_A I want to load Movie_B frame 20 into Movie_A and only frame 20. How would i script this?

Thank you, Douglas

Goto Frame Label In Main Timeline From Movie Clip
Hi..
Could somebody point me in the right direction.

I have a buuton in a movie clip that I need to point at a frame label
on the main timeline.

I am using :-

on (release) {
removeMovieClip(dultanMC);
_root.play("Scene 1", "myframelabel");
}

It does not go to "myframelabel" but to the first frame of the
main timeline.

I've tried gotoAndPlay ("Scene 1", "myframelabel");

that just removes movie and does not redirect.

Please could somebody advise.

Targeting Frame In Separate Movie
I am trying to target a frame (or label) in another movie file. When they click on the button it loads another movie, but I need them to go to a specific frame. Is there code that I can put in my first movie to load the other move and target the frame?

Thanks

Cant See Button Label In Movie Clip
I got a problem here.. may be easy to those who know.. Ok, first i got a main stage with the navigation to load a main movie clip containing all the contents on different frames.. I wanted to put a button on each of these frames of the movie clips to navigate to the last frame of this movie clip which is like a summary.. But when i put on these frames, i can see the proper button with the label on the stage.. But when i run the movie, i cant see the label anymore on any of the frames..

I got save the button as a symbol in the library. When i drag the button on the main stage, it works fine.. Can anybody who knows please help? Thanks..

Targeting A Movie Clip On A Button...
Hi,

I have a movie clip on a button's "up" state that I'm trying to target so that after the button is released, the movie clip will go to frame 1 and stop -- I've named all the instances on the pathway to the button's movie clip, but I can't seem to be able to target it with the targeting tool; the movie clip on the button is not represented.

Should I not be using movie clips on buttons that I want to target?

Thanks,
-Todd

Targeting A Movie Clip Within A Button
trying to set a movie clip as visible
the movie clip is within a button

tried using
setProperty( _root.example.button.movieclip, _visible, true)

checked export for actionscript on the button

when previewing it has a whinge about the linkage identifier

**Warning** The linkage identifier 'button' was already assigned to the symbol 'button', and cannot be assigned to the symbol 'button', since linkage identifiers must be unique.

there is only one button with this name and identifier

had this problem before and only just realised it's because it's a button
never had that problem when exporting a mc for actionscript

if i can't give the button an identifier, how am i to target a mc within the button to turn it's visibility on and off?

help greatly appreciated
weston

Movie Clip Button Goes Back To Previous Label
Is there a way to have a back button go back to the previous frame label without having specific names, just "previous label". I have a lot of labels on the movie clip timeline, and it would be a lot easier.

Thanks everyone.

Targeting Movie Clip Inside Of Button
I have a movie clip that is inside of a button. I have action script asigned to the button. I can't for the life of me figure out the path to the movieclip to tell it to gotoAndPlay(); I thought it would just be button_instance_name.movie_clip_instance_name.goto AndPlay(frame);
But that is not working. Is there something I should know about targeting movie clips inside of buttons.

Thanks

Targeting Embedded Button In A Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:

this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}

That works fine.

Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:

this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}

The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.

Thanks!

Targeting Embedded Button In Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:

this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}

That works fine.

Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:

this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}

The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.

Thanks!

Targeting A Button Ionside A Movie Clip
Help, I have a simple button that is inside a movie clip which is on the main timeline. I would like when you roll over the button, it loads a .jpg on the main timeline. I have looked at all the threads, and nothing seems to work for me. The movie clip is myClip, and the button inside is myBut. The GirlA.jpg will be loaded into myHolder. Any ideas

Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.

in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)

I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a

I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)

thnx

Button In Movie Clip Not Activating Label On Main Timeline Help Please
i have created a movie clip containing a sroller using actionscript, in this movie clip in this there is a another movie clip containing the pictures and buttons on separate lavers (the bits that scroll)

i have set up one instance of the button which has a onrelease gotoandplay action to scene1, (frame label) project 1

this should move the main timeline to the label and trigger another movie clip, but dosent can anyone shed any light on this

regards jason

i would be more than happy to email the flash document if someone is prepared to take a look

Targeting Multiple Button Or Movie Clip Instances
OK, I have a movie clip and a lot of buttons within that i wanna disable when one of those buttons is clicked!
Since I don`t wanna disable them one by one, I wanna know how to do it all at the same time!

i used the following code and put it in a function named buttons() and then I call that function with onRelease handler but something is obviously not right!
I named the buttons from btn0 to btn10.

for (var i=0; i<10; i++){
var btn=eval("btn"+i);
_root.movie_mc.btn.enabled = false;
}

btn0.onRelease = function () {
buttons();
//some other code
}

Targeting Button Inside (attach)movie Clip
im trying to get a button working that is inside a movie clip.

the movieclip is given a linkage identifier (container_id and name as container_mc) as it is inside the library and not on the stage.

The movie clip has three buttons inside it.

I have the following code on each of the button

Code:
_root.containerBase_mc.scrollUp_btn.onRelease = function() {
trace("scrol upn");
};

this.containerBase_mc.scrollDown_btn.onRelease = function() {
trace("scrol down");

};
this._parent.containerBase_mc.close_btn.onRelease = function():Void{
trace("close me");
}
as you can see my desperate attempts to get this working

none of the trace actions work...
any help?

thank you.

Having A Button Inside A Movie Clip To Move The Root Movie To Another Frame?
i dont know much about actionscripting so explain to me in simple terms...

i have buttons inside a single movie clip and i want to have each button (when clicked or rollover-ed) move the frame header of the main (root) movie to another position. what actionscript does this require? and will each button actually be "clickable" since they're all encapsulated in ONE movie clip??


thanks

When I Click On A Movie Clip I Need The Movie Clip To Goto And Play Frame 2
i have created a movieclip and draged it on to the stage i tryed used on mouse down then tell target goto and play but that ment when ever the mouse clicked any where, how do i tell in to only play when i click on the movieclip ?

Targeting A Nested Movie Clip From Within The Movie Clip
Hi all,

I am making a quiz game for which my requirement is like this :

I have a nested movie clip in the main timeline instance name which is like this

mcimg1 > img1 > imgg1 > imggg1

I have a button in imggg1 on which I want to play from the 2nd frame of movie mcimg1.

I can directly do it with tell target and then targeting teh mcimg1, but I have kept 10 instances of mcimg1 and given them instance name like mcimg1, mcimg2..... etc.

How can I solve this problem. I was trying to get the instance name of the main movie (i.e. mcimg1.....10) on clicking the button and then tell target.

but I am unable to do so.

Kindly help me out..

thanks in advance

Link To Label In Timeline AND Label In Movie Clip
help i'm confused...

ive got a big movie clip on the stage
[its a map which might help u imagine it...]

i have a navigation
which links to various points [labels in the timeline] of the movie clip
as it moves around the stage...

can i also link to various labels within the movie clip at the same time
from the same button

if this doesnt make sense
please ask me to explain it differently
rather than just ignore me

thanku

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

Link From One Movie Clip To Specific Frame Within Another Movie Clip
Hello,
I've been working on this problem on and off for weeks now, and am hoping I could get some assistance, as it is driving me batty and my deadline is quickly approaching. Here is the basic setup:

I am creating a Flash webpage. I created a Flash movie with 6 frames, with a movie clip on each frame, each movie clip being a single page of the website. What I would like to do is have button within one movie clip (say a button in the movie "contact" which is frame 5 of the main movie) link to a frame within another movie clip (say frame 3 called "project3" within the movieclip "portfolio" which is frame 2 of the main movie).

With all my efforts, I am only able to get the button to go to and play the called movie clip at frame 1, and no other frame number or label.

I have tried codes such as the following:

on (release){
this._parent.portfolio.gotoAndStop("project3");
}

on (release){
_root.portfolio.gotoAndStop("project3");
}

... and countless other options, but nothing seems to work. I would greatly appreciate any assistance with this matter. For the record, I admittedly do not know much Flash and am learning most of this on my own with a small base knowledge from a design class I took years ago using UltraDelv! Please let me know if I need to go into further detail.

Cheers!

Target Empty Movie Clip And Movie Clip Frame
I'm loading a random movie, reading in Shared Object data.
If the Loaded movie has been viewed playing it's 2nd frame.
How can I load the movie into an empty movie clip and target its 2nd frame?
Is it just a syntax issue?


Code:
filename = ["flashMovieA.swf", "flashMovieB.swf"];
path = "flash/";
i = filename.length;
k = Math.floor(Math.random()*i);
// get object if none just play
mindSO = SharedObject.getLocal("mindControl");
// Scan the mindSO for values
for (a in mindSO.data) {
trace(a+": "+mindSO.data[a]);
// if previously viewed play second frame
if (mindSO.data.movieName == filename[k]) {
// here is my targeting issue
loadMovie(path+filename[k], movieHolder_mc);
movieHolder_mc.movieName.gotoAndPlay(2);
} else {
// play whole movie
loadMovie(path+filename[k], movieHolder_mc);
setSOData();
}
}

How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.

Can anyone help, or give me a link?

Thanks
Dennis







Attach Code

//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};

Movie Clip Button Frame
I've made a movie clip button and it has a rollover, rollout state and a hitarea which all work fine however when i add a onRelease state for it to gotoAndPlay("frame") its kinda screwed up.

typical code looks like:


Code:
this.home_btn_mc.onRollover = function() {
home_btn_mc.gotoAndPlay("_over");
}

this.home_btn_mc.onRelease = function() {
gotoAndPlay("contact");
}
when i click on a button it plays the rollout first then it goes to the frame i want, i want it to just jump to the frame and it also stops the animation in the frame its jumping from playing which i want to fix.

Copyright © 2005-08 www.BigResource.com, All rights reserved