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




Movie Clips Acting As Buttons Can't Load Other Movie Clips



Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:stop();import flash.filters.GlowFilter;ar = [A, B, C];for(var z=0; z<ar.length; z++) {ar[z].onRollOver = rollover;ar[z].onRollOut = rollout;}function rollover() {this.swapDepths(0);this.filters = [new GlowFilter(0x333333, .20, 7, 7)];}function rollout() {this.filters = null;}This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z". What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!Text



Adobe > ActionScript 1 and 2
Posted on: 03/14/2008 10:26:38 AM


View Complete Forum Thread with Replies

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

Buttons Acting As Movie Clips
can u explain correctly

i think
u want to control button from other area ya


u can use the button as movie clip and can be control easily

I want my webpage to do something like this.
http://www.bonus4u.da.ru

There is search page index. But there are new windows opening other buton figures.

So how do I do this with my website to make it look like the geocities for the bonus icon.
I am n ot getting anything on my own.

Especially how clicking on the window opens another button layer.
for the hidden answer.

My website is at http://people.txucom.net/kicker
I want my website like the geocities. I am trying to hold it together.


I was told that I can make a one frame movie for the url page to unload a button. I will need another one frame movie for the new window that results from clicking on the first.
http://www.searchbadger.com/home.html will be the first window. All other button layers are revealed from clicking on this page's url. So I will need another frame to hold the new window.
How do I make a one frame movie
http://www.macromedia.com/support/fl...ts/get_url.htm
I think this explains what I want. I want a button to appear after someone clicks on the searchbanner window home.html and another button to appear after someone clicks on the new window with the search results.
Does anyone know how to program this
Please Help

In the macromedia document it says
If you are assigning the getURL action to a button, place the button in a new, one frame movie.
So does anyone know how to do this.
And with mine the second one frame movie should show the results of the first. Does anyone know how I would make both of these movies and run them together?

Buttons Acting As Movie Clips
I want my webpage to do something like this.
http://www.bonus4u.da.ru

There is search page index. But there are new windows opening other buton figures.

So how do I do this with my website to make it look like the geocities for the bonus icon.
I am n ot getting anything on my own.

Especially how clicking on the window opens another button layer.
for the hidden answer.

My website is at http://people.txucom.net/kicker
I want my website like the geocities. I am trying to hold it together.


I was told that I can make a one frame movie for the url page to unload a button. I will need another one frame movie for the new window that results from clicking on the first.
http://www.searchbadger.com/home.html will be the first window. All other button layers are revealed from clicking on this page's url. So I will need another frame to hold the new window.
How do I make a one frame movie
http://www.macromedia.com/support/fl...ts/get_url.htm
I think this explains what I want. I want a button to appear after someone clicks on the searchbanner window home.html and another button to appear after someone clicks on the new window with the search results.
Does anyone know how to program this
Please Help

In the macromedia document it says
If you are assigning the getURL action to a button, place the button in a new, one frame movie.
So does anyone know how to do this.
And with mine the second one frame movie should show the results of the first. Does anyone know how I would make both of these movies and run them together?

Movie Clips Acting As Buttons
I'm using Flash Pro 8.  I have a movie clips titled productsNav_mc that animates in several other movie clips that are acting as my buttons.  Inside my productsNav_mc I have my first mc (button) leather_mc.  Inside my leather_mc I have my text layer, an arrow layer that is tweened to move the arrow closer to the text on rollover- and back to the original location on rollout, my invisibile button layer, my label layer, and my actions layer.  The rollover tween lasts 15 frames and the rollout tween lasts 15 frames.  There is a stop action on the 1st frame, and on the 15th frame.  I put the actions on my invisible button (top most layer with content.)
CODEon (rollOver) {
    gotoAndPlay("rollover");

}

on (rollOut) {
    gotoAndPlay("rollout");

}

on (press) {
    getURL("http://www.tek-tips.com");

}

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Is It Possible To Create Buttons, That Load Multiple Duplicate Movie Clips ?
I have a scrolling area in which there are a series of buttons, and on each click of one of these buttons, i am trying to load the corresponding movie clip.

The problem is, that i would like to load a new one each time the button is pressed.

Is this possible, and if so ... How ?

- blessingz.

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

Fast Forward And Rewind Buttons To Control Movie Clips AND Main Movie
I am creating a software training movie in Flash (MX). The main movie has text, sound and animations directly on the main timeline, and also includes external swfs (video screen captures) that are loaded dynamically into a movieclip target.  

loadMovie("bkr_openpgm.swf", "mc_finvideo");

I'm not importing these videos because they can be quite large after importing (my video capturing software can export as swf and avi). I will never play more than one movieclip at a time (so I use the same movieclip to load all movies: mc_finvideo), and there can be many frames in between movie clips where there's only non-movieclip stuff going on on the main timeline.  After I finish playing a movie clip , I unload the movie from the movieclip using the following on the frame on the main timeline where the movieclip should end

mc_finvideo.unloadMovie()

I have play, pause, fast forward and rewind buttons on the main timeline that control the main movie just fine. The play and pause buttons also control the movieclip fine.

However, I'm having problems with the rewind and fast forward controlling the movieclip. The button logic works fine (moves play ahead or back 100 frames) UNLESS I click the rewind button at a point within 100 frames AFTER a movie clip has unloaded. Then (assuming the last movie clip was at least 100 frames long), the movie goes back to a frame where there should be a movie loaded, but of course there isn't, since the frame that loaded the movie clip wasn't hit.
Here's the code for the rewind button's on release event:

    intCurrFrame = math.round(_currentframe);
    intMCCurrFrame = math.round(mc_finvideo._currentframe);

    //if the movieclip is closer than 100 frames
    //  to the beginning, go back 100 frames
    //  otherwise unload it
    if ((mc_finvideo._currentframe - 100) > mc_finvideo._totalframes) {
            mc_finvideo.gotoAndPlay(intMCCurrFrame - 100);
    } else {
            mc_finvideo.unloadmovie();     
     }
    this.gotoAndPlay((intCurrFrame - 100));


The fast forward button is similarly problematic -- if I click fast forward within 100 frames of a frame where a movie clip will load, the frame that the movie fast forwards to has no movie clip playing because the frame that loads the clip was skipped over.

Can anyone help me make this work? (Maybe I'm going about this whole thing the hard way?)
I can post a sample fla if it will help clarify.

Thanks

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

Buttons In One Movie Loading Movie Clips In Another?
I am making a paper dollish project to experiment with loading movie clips and ran into a problem. The way I have it set up the "main" animation loads and a character is displayed. There is a button that when clicked loads a "picker" movie on top of the animation that allows the user to select a clothing piece. What I want it to do is when a piece is clicked the "picker" movie is unloaded and the clothing piece is loaded on top of the figure in the "main" movie. The problem I ran into was The load movie script in the "picker" didn't recognise the place holder movie clip in the "main" movie. I imagine that I have to specify which movie to load my "clothing" movieclip into. How is this achieved or is it even possible?

Effective Way Load Movie Into Movie Clips
Is there a effective way to load movies into MC's(movie clips) rather than using levels. For some reason, I try use the load movie action and the movies start to play before I want them too. I place a stop action on the first frame of the swf.file, but flash seems to be ignoring it.

First I use the load action in the frames before;

loadMovie ("tb.swf", "lb");

and the trigger frame where I want clip to start, I place this

with (_root.lb) {
gotoAndPlay (2);
}

For some reason, it loops. Do I have to have a blank keyframe or any keyframes on the movie clip? Does the MC have to have only one layer? How does the action know which layer to go to?

Tempe,Arizona

Load Movie/Unload Movie Clips
Hello all you learned people:

I am having diffuclty in getting information on how Loadmovie and unloadmovie scriptds work.

Here is what I am trying to do. I am developing some computer based training where I would like to have a menu of selections about the training to be taken so the student can navigate to each movie clip individually then return to the main menu.

I have gotten the Loadmovie script to work for one instance, opening only one movie so far but I am unsure how make the .swf file that is called unload and return to the main menu so the student can move on to another topic.

Any help in understanding how these work would be greatly appreciated.

Oh and I have looked through the tutorial on this site for this subject but it did not help much.

Thank You
Shungon

Buttons Within Movie Clips
I have been having awful problems with movie clips.
I have constructed a site that uses 7 scenes. it includes a preloader 2 animated movies and the menu. the menu consists of a monocrafts style menu, which has a scrolling nav bar which contains the option buttons. I have tried varies methods of actionscript to get the button inside the movie clip to goto whatever I point it at, no luck. I have used the new dots notation too. I really would appreciate any help or advice on this matter, I am at my wits end. I can supply the fla for the menu if it helps. thanks in advance

Buttons W/movie Clips
So.. after hours of struggling I managed to stick together a little button with a movie clip in it.. but it's still not perfect.
Does anyone know
1) how to make a movie clip NOT looping?
2) how to make it so there's a clickable square around the text - so you don't have to click just the letters themselves?

I'd be grateful for any help. ^__^

Movie Clips As Buttons? Help
I have a scrolling menu. I need to use a Movie Clip as a button... Can it be done using, on clip event? How can I set the rollover?

Buttons In Movie Clips
I have a button in a movie clip that I want to go outside the movie clip to scene 2 then a fram label. Just need the code. Thanks

Buttons In Movie Clips
I have created a symbol with movie clip behaviour. Within this symbol I have placed some instances of a button I made. However, no matter what action I try to make the button do, it won't do it. That is, I can't change any of my variables, or jump to a different frame in my flash movie, etc.
It works fine if I place the button straight into my flash movie, but inside a movie clip it doesn't seem to work.

This may be a stupid question, but can anyone help me?

Buttons And Movie Clips
hello everyone, this is my first posting, My question is this:
I want to make buttons on my homepage that brings up another screnn/menu when you rollover it. Then when that screen is up be able to insert more rollovers within that screen that came up.
I can do this by making the button a button symbol, then in the over state I make it a movi clip. It works the way I want it to look, the movie clip plays when I rollover the button. I want to add more buttons within that movie clip and continue down into other MC's etc... My problem is when I move my mouse cursor off the button the movie clip goes away until I roll over again. I have put the stop script in the movie clip and that works, the movie clip plays and stops. How can I keep that movie clip on the screen for my mouse cursor to move around and select other buttons within that movie clip?
anyhelp would be great, thanks

Movie Clips Or Buttons (Maybe?)
I would like to have a button start a movie clip and the same button to stop it, while the main movie continues to play.....Thanks

Buttons Within Movie Clips
Hi chaps.

I have two movie clips on the main stage. Clip one has a button inside it, which should trigger clip two....but it doesn't.

I've tried:

on (press) {
tellTarget ("_level0/cliptwo") {
gotoAndPlay (1);
}
}

and:

on (press) {
_root.gotoAndPlay("cliptwo", 1)
}

also:

on(release){
_root.cliptwo.gotoAndPlay(1);
}

None of these work and nothing happens. Any suggestions?

MOVIE CLIPS IN BUTTONS
I've got text, which I've then transform into a button.
After I made a little movie clip of the same text but with a fade (blue, which is the original color to red). I'm trying everything to put the movie clip into the "over" frame of the button but it just won't work...

There telling me that a symbol can't be put with another symbol...

All I want is a nice look to my buttons...
I want them to fade nicely not just one color to another once the mouse is over the button!!!

If anyone can help me, PLEASE DO!!!

Thank you...

Alex

MOVIE CLIPS IN BUTTONS
I've got text, which I've then transform into a button.
After I made a little movie clip of the same text but with a fade (blue, which is the original color to red). I'm trying everything to put the movie clip into the "over" frame of the button but it just won't work...

There telling me that a symbol can't be put with another symbol...

All I want is a nice look to my buttons...
I want them to fade nicely not just one color to another once the mouse is over the button!!!

If anyone can help me, PLEASE DO!!!

Thank you...

Alex

MOVIE CLIPS IN BUTTONS
I've got text, which I've then transform into a button.
After I made a little movie clip of the same text but with a fade (blue, which is the original color to red). I'm trying everything to put the movie clip into the "over" frame of the button but it just won't work...

There telling me that a symbol can't be put with another symbol...

All I want is a nice look to my buttons...
I want them to fade nicely not just one color to another once the mouse is over the button!!!

If anyone can help me, PLEASE DO!!!

Thank you...

Alex

HELP WITH BUTTONS IN MOVIE CLIPS
Ok i'm not very experienced with movie clips but i've made one and put a button inside of it but it won't work why?

Movie Clips + Buttons
I am trying to make a movie + i want it so when i click on a guy's body part t blows up. I either need a button that will stop after it has been clicked on so the part will stay white so it can't be seen, or a movie clip that plays itself when clicked on. Please help.

Buttons In Movie Clips
I know this must have been answered more than 1000 times. But I am not getting it. I have a movie clip in scene 1 frame 1. In side the movie clip I have a button.
I want that button when clicked to go to scene 2 frame 1.
All it does right now when clicked is play the movie clip. This is in Flash MX. If this is not clear please visit http://www.mymaze.com to see what I mean..
Thanks james
james@mymaze.com

Buttons In Movie Clips
I need some help!!
I have put a button in a movie clip, but i don't know how to make the button in the movie clip, skip to a frame in the actual scene. I need the instance in the scene to remain a movie clip and not a button!!

Also a have some code on a button to start a scene which makes a random number! Is it possible to make the code run without the users having to click on a button!!

Thanks!!!

Movie Clips Vs. Buttons In MX?
I have seen that one of the preferred methods of coding in MX is to have everything Movie Clips and that way all the code can sit on an "actions" layer and not on the objects themselves.

To that end, it seems as if the button object doesn't need to be/shouldn't be used anymore. I can see a point for still using buttons since the 4 behaviors are built in, but I can also see the point of starting from only movie clips and having absolute control and flexibilty.

Any thoughts/comments/suggestions would be greatly appreciated.

Movie Clips That As Buttons? How?
I am using Flash MX and I am wondering how to make a movie clip act as a button and link it.

thanks

Movie Clips & Buttons
I have a movie clip that stops at certain locations and continues the animation when a button is pressed. Is there a way to get the entire animation to play through once and then go be button-activated w/o having to copy my entire frameset?

Also, I'm using the actionscript below on a menu button in one movie clip symbol to Level 0 frame 2 and play another movie clip symbol. It works fine unless the button is pressed again and then from frame 2 it goes to frame 3; if pressed again it goes back to frame 2. Is there a way to disable the button on frame 2 only so it doesn't do that?

on (release) {
_root.gotoAndPlay(1);
}

I'm trying to keep all my movie clips in seperate symbols for organization.

-=FP=-

Movie Clips And Buttons
I have on my main stage a button ("Products") which has a drop down list on mouseover. the list is buttons embedded in a movie clip. i dragged it onto "Products" Over part of the button. once i get off of the "Products" button and roll down the list, it all just flashes off and on quickly like it is replaying something over and over...until i get back to the "Products" button, then the list stays stationary.

<<whew>> anyone have any solutions? i'd be sooo grateful. i've been battling back and forth changing between making them buttons, or mc's...toying with most of the action scripts! ARGH!

Movie Clips And Buttons
I have on my main stage a button ("Products") which has a drop down list on mouseover. the list is buttons embedded in a movie clip. i dragged it onto "Products" Over part of the button. once i get off of the "Products" button and roll down the list, it all just flashes off and on quickly like it is replaying something over and over...until i get back to the "Products" button, then the list stays stationary.

<<whew>> anyone have any solutions? i'd be sooo grateful. i've been battling back and forth changing between making them buttons, or mc's...toying with most of the action scripts! ARGH!

Thanks for any help.

Buttons And Movie Clips
Ok, I have a simple fla file. It has one scene. Two movie clips. I'm using a movie clip as my menu. Therefore it has a bunch of buttons inside of it.

BUT for whatever reason, none of the buttons will work. I have the on release goto scene and play frame 5 code there, but when i put it together the button just blinks.

Is it just that I can't embed buttons into movie clips?? I'm hoping it's not that simple...so if you know what i'm doing wrong I would greatly appreciate some help!

thanks!
~hodge

Buttons In Movie Clips
i have a button with these actions:

on (rollOver) {
holdup._alpha = 100;
}
on (rollOut) {
holdup._alpha = 0;
}
on (release) {
_root.pause._x = 665;
}

this button in in the movie clip "pause" and "holdup" is a message that should show on the mouse over, right?

any help would be great.

Movie Clips To Buttons, How Is It Done?
Howdy, I am trying to design a interface for a cd -rom i am making, anywho, the Fla source i have is made into these movie clips with smart clips in each as sub menu titles, and i'm trying to make them buttons, how do i do this?
I want them to open up new windows on the stage when clicked.

Here's the link to the source file i used from flashbuttons.com

http://www.flashbuttons.com/opsMenus.html

it's menu 13


thanks to anyone that helps me out.

Simp

Buttons & Movie Clips
I have a button and above the button is a MC that fades out a box when you rollover the button. I need 12 of these buttons,(I cann't just copy and paste the one button...) because each button has to open up a different MC. Instead of making 12 buttons and 12 MC's is there a better way of doing this?

Movie Clips As Buttons
i fllowed a macromedia tutorial and tried to test it but it says that mouse commands can only be used with buttons. the thing is that i have an invisible button in my movie clip instance that contains the actionscript and it still doesn't work.
any help would be great.
ps i'm using flash mx

Movie Clips As Buttons?
Just wondering if you can use a movie clip in the same way as a button. For example, I have a movie clip that I want to go to the next frame when the mouse is over it (similar to how a button would go the the mouseover frame. However, I haven't been able to do this with actionscript.

What's the actionscript for a movie clip to give it the same functionality as a button?

Thanks for any and all help!!

Movie Clips As Buttons?
Just wondering if you can use a movie clip in the same way as a button. For example, I have a movie clip that I want to go to the next frame when the mouse presses it. However, I haven't been able to do this with actionscript.

I know I could simply place an invisible button in the mc to give it the same functionality but I would like to use the mc only.

What's the actionscript for a movie clip to give it the same functionality as a button?

Thanks for any and all help!!

Buttons In Movie Clips
Hi all.
First time on flashkit. Feel a bit of a thickie for not knowing something that seems pretty simple.
I've got some buttons inside a movie clip which should send you to different scenes only they don't work. Can someone sort out my heirachial nightmare.

Many thanks.

Buttons Within Movie Clips
I'm creating a navigation system. When the user presses a "menu" button, a slider with buttons (i.e. "home", "aboutme" etc..) slides out.

The slider is a movie clip, and contains the various buttons ("home, "aboutme"...)

My problem is that I'm not sure how to get the main movie to go to the relevant frames when the buttons (within the slider clip) are clicked. Putting in Actions for these buttons e.g. on (release) { gotoAndPlay(23); }, seems to only be a goto for the frames within the slider movie clip and not the rest of the movie.

Does anyone know any methods/ code to allow the buttons to control the position of the main movie and not just the movieclip they are within?

Cheers,

Ben

Buttons As Movie Clips
How do you get a movie clip that uses onClipEvent, and on(release) functions to act as a button and execute an "over" state? I have this button with and onClipEvent(load), and an on(release), and I want it to have an over state, and it doesn't seem to be working...

Dave

Movie Clips In Buttons
Heya, Im currently working on trying to do cool buttons for a navigation flash. On my UP part of the button I have placed a movie clip, which then goes on to take over everything. I wanted a seperate animation clip to take place when you roll over the UP animation when the curser reaches the OVER postion. How ever the fist clip for some reason stays as it when ever I role over and the animation on the OVER never occours, Ive placed it on a seperate layer and that didnt help. So I tested with a big circle instead of an animation, now any part of the circle that does not have the UP animation on it does appear, but for some reason the second the curser hits the UP animation it goes again, any help ?!?!?!

thanks in advance
Gordon

Cant Use Buttons Within Movie Clips - MX
This may be really dumb, but Im sick and tired of trying to figure this out on my own.

I created a rollout menu..on rollover, gotoandplay clip(2)...u get the idea. The problem is, i have buttons within the clip that rolls out. I created instances for the buttons, but I still cant get flash to recognize a click. I threw a trace in there, I got nodda.

Any ideas??? Im sure its simple, but what can I say...Im a rookie!

Buttons& Movie Clips
hello... i have a little question..
i want to make a button that when you do the roll over a movie clip starts playing.... but what i dont know how to do is when i do the rollout on that button the movie clip stops... what i want is when i do the rollover the movie clip starts and doesnt stop till the complete movie clip is done,
thanks alot mail

Buttons And Movie Clips
I have some buttons in a movie clip, but they don't seem to work. When I have the button out of the clip, it works fine. In the movie clip, nothing happens. What's going on?

File is attached.

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