Movie Clip Menu
Hello everyone, I followed a tutorial to have a movie clip work as an animated menu for a website. One of the functions is set up as follows:
function do_this() { this.gotoAndPlay("frame label"); gotoAndPlay("frame label"); }
So the animated menu is going to a specific frame in the movie clip while the site is going to the appropriate page. What I can't figure out is how to freeze the menu in the state that it goes to with this function so that it doesn't revert back once the mouse rolls out of the hit area. Does anyone know how to resolve this?
Thanks!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-24-2007, 04:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Menu/movie Clip
Hello,
I have a movie clip that contains all of my buttons that I have just dragged onto the main scene and has this script attaced to the company button.
on (release) {
loadMovie("company.swf", indexClip);
}
on (release) {
tellTarget ("_root.company") {
play();
}
}
on (release) {
tellTarget ("_root.news") {
gotoAndStop(1);
}
}
The buttons and everything work fine but the menu dissapers when I click on the same butoon twice. My question, is there any easy way to fix that problem?
Menu In Movie Clip
I am trying to create a menu that slides out every time you point the cursor over a specified area of the screen. To get the slide out motion I created a movie clip and placed it in a button. This works fine. Once I place buttons for the menu within the movie clip however, the hit areas from these buttons and the original button that causes the movie clip to slide out overlap and cause conflict (movie clip starts to loop). Can anyone please tell me the standard way of goin about here?
Thanks
Menu In A Movie Clip
hi,
I am making a flash site where my menu is in a movie clip. In most of the site i want the menu on top of everything else, but when preloading external .swf's i would like it to be behind the external swf's preloader. Is there a way I can do this somehow?
Thanks,
pjustice
[CS3] Menu In A Movie Clip
Im using cs3 and as 2.0. I am making a drop down menu and I put it in its own movie clip. I then put it in scene 1. What is the actionscripting for the buttons in the movie clip to control the main timeline in scene 1. Thanks for your time.
Menu In Movie Clip
I am trying to create a menu that slides out every time you point the cursor over a specified area of the screen. To get the slide out motion I created a movie clip and placed it in a button. This works fine. Once I place buttons for the menu within the movie clip however, the hit areas from these buttons and the original button that causes the movie clip to slide out overlap and cause conflict (movie clip starts to loop). Can anyone please tell me the standard way of goin about here?
Thanks
Using Movie Clip As Menu.
Hi, here is my deal, I have built my menu into a movie clip and I am trying to put action script on a button in that movie clip. I want the button to load another scene. I cannot figure out how to do it. Please Help.
t
Movie Clip Menu
I don,t know how to add links in menu's with movie clip added can anyone help me
Movie Clip Menu To Second Scene
I have a movie clip which is a navigation menu. One of the buttons would lead the viewer to a SECOND SCENE.
I have used tellTarget "/" but it doesn't work.
I would like the visitor to go from the first scene via a MC menu to a second scene. What Script to I asign to the relevantt button in the MC menu?
Thank you.
Javier
Movie Clip Menu Problems
i currently do not have a copy of the .swf or .fla available to me as i am not on my home computer (and it's not uploaded anywhere right now) but i'm having trouble and i hope i can find direction here.
i have 1 flash file with several scenes. i created a menu with buttons as a movie clip in the library. my problem is, when i place the menu movie clip on the stage, i can't get it to change scenes in the entire flash file. it is an active menu as far as mouseover effects, etc., but it just doesn't have any effect outside itself.
i hope for one, i explained this properly, and i also hope somebody out here can help me, i would greaty appreciate it.
Movie Clip Menu Problem
Hi,
I have a movie with several scenes. In scene 1 is a menu which is a movie clip. Within the clip I have a button that when clicked should jump to another scene in the movie. i have added this script:
on (release) {
_root.gotoandplay("scene2");
}
but the movie just does nothing....
Any idea why this wouldnt work, what am I doing wrong?
many thanks in advance
Movie Clip Menu Question
Hello,
Hope someone can help me with this question. I created a menu with mc's that have a onrollover and onrolloff states. The movie clip is a timeline broke into 3 keyframes with a stop in the middle. The fist half is the "onrollover" and the second half is the "onrolloff". When one of the movie clips is rolled on to the text slides to the right and when rolled off the text slides back to the original postion.
My question is, what does the code need to be that when the user clicks on the movie clip, the text locks in the slide(rollon) position (which is to the right)until another menu option is choosen? Basically locking in while the user is on a specific page. In which case the text well roll back to the original spot when another menu option is choosen.
Do i need another keyframe in the middle of both rollon and rolloff?
Is it code written?
I appreciate your help!!
Matt
Loading .swf Into Movie Clip Via XML Menu
I have a menu that calls the xml file pasted below. How can I make it so it loads the .swf files listed in the .xml file into a movieclip WITHIN my .fla file.
So, for example, my menu looks to the xml for what buttons to list. The menu items will each have .swf files assigned to them (as seen below). But I want these .swf to load into a movieclip titled "CONTENT" that sits next to the menu. Make sense? Can the xml file speak or send a variable BACK to the .fla?
XML CALLED BY MENU:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<links>
<link name="Main" ref="home.swf"/>
<link name="Pictures & Videos" ref="#">
<inLink name="Image Gallery" ref="pictures.swf"/>
<inLink name="Photoshop Tutorial" ref="photoTut.swf"/>
</link>
<link name="Programming" ref="xmlflash.swf">
<inLink name="XML flash tutorial" ref="xmlflash.swf"/>
<inLink name="Nightshot Noise" ref=" nightShot.swf"/>
</link>
<link name="Flash Games" ref="snakeFlash.swf">
<inLink name="Arkanoid Clone" ref="arkanoidFlash.swf "/>
<inLink name="Snake" ref="snakeFlash.swf"/>
<inLink name="The Cell" ref="cellFlash.swf"/>
</link>
<link name="3D Design" ref=" lightwave.swf">
<inLink name="Keegan DeWitt" ref="blender.swf"/>
<inLink name="3D Studio" ref="3dstudio.swf"/>
<inLink name="Lightwave" ref=" lightwave.swf"/>
</link>
<link name="LW Plugin" ref="tvplugin.swf"/>
</links>
Drop-down Menu Movie Clip
I have a drop-down menu, animated as a movieclip here (see portfolio)
CharlotteWelsh.com/indexNew
Currently the menu works where you click on the word portfolio to show the menu, but I would like it to be a rollover. I cant figure out the right combo of on Roll Over or on Roll Out to allow the menu to be open when over any of the buttons and closed when off ALL the buttons.
Movie Clip Menu Issue
Hi,
Just wondered if anyone could inform me as to why theis is currently not working. Im sure everything is correct and should work though
Heres the fla : http://www.horner.dsl.pipex.com/live...ene(small).fla
On the main page is a movie clip containing all my elements of a menu. Inside that movie clip is a movie clip called "show menu". When this is clicked i am wanting the timeline to play an animation in the holding movie clip.
Heres some code :"menupanel"= movieclip on root timeline
"showmenu" = movieclip inside the "menupanel" movieclip
Code:
stop();
this.showmenu.onRollOver = function () {
showmenu.gotoAndPlay("up")
}
this.showmenu.onRollOut = function () {
showmenu.gotoAndPlay("down")
}
this.showmenu.onMouseUp = function () {
menupanel.gotoAndPlay("show")
}
Really appreciate some input
Cheers
Tom
Sliding Menu As Movie Clip
I built myself a sliding menu following the instructions here:
http://www.kirupa.com/developer/flash8/slidingMenu.htm
I works great as a standalone swf, but when I use it within a movie clip (I tried it as a swf imported into a blank movie clip AND as its own movieclip within a movie) it just doesn't work.
I am very new to actionscripting - and I have no idea what I'm doing wrong.
Thanks in advance,
dpo76
[MX 04] Movie Clip Menu Problem
Hello everyone,
I followed a tutorial to have a movie clip work as an animated menu for a website. One of the functions is set up as follows:
function do_this() {
this.gotoAndPlay("frame label");
gotoAndPlay("frame label");
}
So the animated menu is going to a specific frame in the movie clip while the site is going to the appropriate page. What I can't figure out is how to freeze the menu in the state that it goes to with this function so that it doesn't revert back once the mouse rolls out of the hit area. Does anyone know how to resolve this?
Thanks!
How To Expand Menu From Movie Clip
I'm fairly new to flash and I'm learning basic actionscript, so I don't think this question will be too difficult for someone to answer.
I have a small animated movie clip. When I click on it, I want a horizontal menu to fade in and appear next to it. I thought the best way to achieve this would be to load the menu in a empty movie clip but I'm having trouble getting it to work. I'd appreciate it if someone could help me with the code or let me know if there is an easier way to achieve this.
This site uses a menu similar to one I'm trying to create (http://winnerssociety.org/). Thanks!
Massive3215
Menu (movie Clip) Won't Work In Netscape
my navigation isn't working in netscape but it works in explorer. the navigation is a movie clip that control the main timeline of the different scences. i've been using each of these codes on different occassions but they still won't work in netscape. what should i do?
*Codes that have been used:
on (release){
_root.gotoAndPlay(information);
on (release){
gotoAndPlay ("info, "information")
on (release){
tellTarget ("_root"){
gotoAndPlay ("info, information")
on (release){
tellTarget (_root){
gotoAndPlay ("info", "information")
on (release){
tellTarget ("_root.MenuMC"){
gotoAndPlay ("info", "information")
on (release){
_root.gotoAndPlay ("info", "information")
on (release){
_root.gotoAndPlay (info, information)
*info is my scene
information is my frame label
navigation movieclip instance is MenuMC
thanks
helen
http://www.helengriffin.com
Menu Linking To A Frame In A Movie Clip
I have a menu loading into an MC on my movie and the buttons are linked to certain frames in another MC.
e.g.
on (release) {
tellTarget ("pages") {
gotoAndPlay(1);
}
}
'Pages' is the name of the MC they should be linking to but when i click a link to go to it i get the error:
Target not found: Target="pages" Base="_level1"
What is it saying and how should i fix it?
Making A Movie Clip (my Menu) Appear And Dissapear
Okay, Im working on a project where there is going to be a simple menu bar appear at the top with some buttons on it. What they are wanting to happen is have it drop down into place from the top of the screen ONLY when you move your mouse up in that area and when you bring your mouse out of that area the menu slides back up and out of view... kinda like what was done on the Lana Landis website. http://www.lanalandis.com Im having to work out of flash MX 2004. Could anyone give me a clue on how to accomplish this? My menu is just one movie clip with buttons in it (if that helps.)
Thanks guys!
Ari.
Linking From Dropdown Menu In Movie Clip
Using Flash MX
Have a website with a dropdown menu held inside of a movie clip, accessing with tellTarget command.
What I need to do is link from inside that movie clip to a new scene....however I can't get it to work...
What I've got is...
on (release, releaseOutside) {
gotoAndPlay("hide");
}
on (release) {
_root.gotoAndPlay("gallery");
}
hide-frame label inside movieclip
gallery-scene name
All of the buttons are also grouped inside the movieclip if that has any effect on it (I wouldn't think it would)
Thanks
Justin W
How To Load An XML Dynamic Menu In A Movie Clip
Hey guys,
I've been working on getting a dynamic menu to work with XML and have found what I've been looking for... However, I'm trying to get the menu to load this way
code: funcion onLoad(){unloadmovie("menu_container");
loadmovie("menu.swf", "menu_container");
}
My problem is that the xml file isn't being read completely... Can anyone suggest anything? Thanks!
Scrolling Menu Movie Clip Nightmares
Hi
I posted this yesterday, but don't think I explained my problem to well. Basically I have a scrolling menu that scrolls left and right depending on the mouse position. I created my buttons as normal, and then place all my buttons in another movie clip that has the scrolling Action script in. My problem is that on my main scene I have 14 frames each with separate text articles. What I want to do is to click on one of the buttons in the scrolling menu which will then navigate to one of the frames that has text on within in the main stage. I beleive I need an _root or and _parent function but this doesn't seem to work when I tried. Can any please help as deadlines are approaching and I'm stuck.
Many thanks
[MX04] Movie Clip Menu Problem
Hello everyone,
I followed a tutorial to have a movie clip work as an animated menu for a website. One of the functions is set up as follows:
function do_this() {
this.gotoAndPlay("frame label");
gotoAndPlay("frame label");
}
So the animated menu is going to a specific frame in the movie clip while the site is going to the appropriate page. What I can't figure out is how to freeze the menu in the state that it goes to with this function so that it doesn't revert back once the mouse rolls out of the hit area. Does anyone know how to resolve this?
Thanks!
CS3- Collapsible Menu, Movie Clip Problem
Hi there!
hi mitch,
i have an expanding box menu going on right now, and am having trouble creating clickable movieclips within the masked area.
right now the actionscript that is loading the labels into the buttons is:
box_0.b_mc.myLabel = "PRINT";
box_0.display_txt.text = "Academy of Sciences";
box_0 being the main mc housing everything (the mask, hidden buttons, etc.) , b_mc is the button within that, and the display_txt is the instance name of the dynamic text field for the text "academy of sciences" to be plugged into.
when i convert "display_txt" into a movie clip with an instance name "sb_0", and try to plug it in that way, to make it clickable, nothing shows up.
i've tried doing box_0.sb_0.display_txt.text="Academy of Sciences", and nothing seems to be working to hide a movieclip behind the mask.
you have any ideas? am i missin something here?
here's the code with the array that sets everything up.
http://www.quiltmusic.com/code.png
http://quiltmusic.com/SITE.swf
rad.
thanks!!!
ryan
XML Calendar Menu With Details Movie Clip
I would like to load a movie clip that contains detail information that is rendered when a calendar date is clicked.
Exactly as laid out here: http://anthony-evans.com/tour.swf
My menu would be the dates on the left. The details would come from the same XML file that contains the dates.
Here is the XML format for the above URL:
Code:
<LINKS>
<title>Indianapolis, IN</title>
<date>6/3/06</date>
<url></url>
<info>Annual Indiana Christian Expo
317-770-7670
Indiana Christian News
3:00 p.m.
</info>
</LINKS>
<LINKS>
<title> Houston,TX</title>
<date>6/10/06</date>
<url></url>
<info>Hobby Center for the Performing Arts
281-669-7309
Theo Awards
</info>
</LINKS>
<LINKS>
<title> Waynesville, MO</title>
<date>6/11/06</date>
<url></url>
<info>Westside Baptist Church
573-774-6431
Brian Bond
</info>
</LINKS>
<LINKS>
<title> Arlington, TX</title>
<date>6/21/06</date>
<url></url>
<info>Ameriquest Field
Texas Rangers
</info>
</LINKS>
<LINKS>
<title> Edwards, CA</title>
<date>6/23/06</date>
<url></url>
<info> Edwards AFB (FFH Headlining)
661-810-8769
Ken Robinson
</info>
</LINKS>
<LINKS>
<title> Aliso Viejo, CA</title>
<date>6/24/06</date>
<url></url>
<info>Coasthills Community Church
949-362-0079
Sherri Alden
</info>
</LINKS>
<LINKS>
<title> Aliso Viejo, CA</title>
<date>6/25/06</date>
<url></url>
<info>Coasthills Community Church
949-362-0079
Sherri Alden
</info>
</LINKS>
<LINKS>
<title> Riverside, CA</title>
<date>6/25/06</date>
<url></url>
<info>Harvest Christian Fellowship
951-687-6902
Steve Wilburn</info>
</LINKS>
<LINKS>
<title>Dallas, TX</title>
<date>7/1/06</date>
<url></url>
<info>KLTY Celebrate Freedom</info>
</LINKS>
<LINKS>
<title> San Diego, CA</title>
<date>7/19/06</date>
<url></url>
<info>Marantha Chapel
858-613-7800
John Wickham</info>
</LINKS>
<LINKS>
<title> Bowie, MD</title>
<date>7/22/06</date>
<url></url>
<info>Victory Temple
301-352-0707
Olaide Daramola</info>
</LINKS>
<LINKS>
<title>Tallahassee, FL</title>
<date>7/25/06</date>
<url></url>
<info>The Urban Alternative Radio Rally
7:30 p.m.</info>
</LINKS>
<LINKS>
<title>Darien Center,NY</title>
<date>8/7/06</date>
<url></url>
<info>Six Flags @ Darien Lake - Darien Center, NY
800-461-4485
Kingdom Bound 2006
5:00 p.m.
Visit www.kingdombound.org for more info!
</info>
</LINKS>
<LINKS>
<title> Muskegon, MI</title>
<date>8/12/06</date>
<url></url>
<info>Unity Festival
</info>
</LINKS>
<LINKS>
<title> Greenbelt, MD</title>
<date>10/6/06</date>
<url></url>
<info>Martin's Crosswinds
301-927-5620
Emmanuel Covenant Church</info>
</LINKS>
<LINKS>
<title> Dallas, TX</title>
<date>10/14/06 - 10/15/06</date>
<url></url>
<info>Gateway Church
Visit www.gatewaypeople.com for more info!</info>
</LINKS>
Question
How do I go about creating the movie clip dynamically that will contain the details?
Stopping A Horizontal Menu Movie Clip At End
Old Flash user, new Flash scripter here... Be gentle.
I'm using the following code to move a menu back and forth on mouse over but I can't figure out how to stop it when it gets to the end of each side.
The mc dimentions are (9040w X 224h)
It's native coordinates on the timeline are (x= 4520.0 y=112.0)
My work space is 841w x 259h
Attach Code
_root.onEnterFrame = function() {
scroller_mc._x = scroller_mc._x + (0.5 * Stage.width - _root._xmouse) / 10;
}
Menu/movie Clip...image Follow
at this site on the right hand site... there are 3 menu options...with one white box that follows where your curror goes. i can acomplish this but the movie i make snaps the white bow back to the top...anyone know how this is done????? http://www.blitzds.com/relaunch.html thanks for the help
Preloader Disables Movie Clip Menu Bar
I am trying to create a simple preloader. I can get the preloader to work, but when my main page loads, the buttons on my menu bar do not work.
The menu bar is a movie clip in which each buttons loads a new swf EG:
stop();
loadMovieNum("home.swf",0);
I have tried several variations of simple preloaders, and the issue isn't my ability to create it - it's getting my menu bar to work with it. My main page originally had just one frame, with 3 layers. 1 layer for the background, 1 layer for the movie clip (menu), 1 layer for a logo button that sits on top of the background.
Has anyone had a similar problem, or know what the conflict might be? Thanks in advance.
Movie Clip Menu Problem - Help Would Be Great
I'm creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.
Now the menu bar is twice as WIDE as what is visible on the stage.
The only part you can see is the text 'menu' on a bar.
Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.
Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.
On the last frame i have the 'stop;' code
On the first frame I have this code:
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
if (this.hitTest(_root._xmouse, _root._ymouse))
{
rewind = false;
play();
}else{
rewind = true;
}
}
Now when i test my movie it it works fine when my mouse hits the bar BUT it doesnt stop!!!!!! and i just get this continous bar flying!!!
Please help it would be great all i want is for the bar to stop on frame 20!
If you are confused please look at the navbar on PRELOADIT
Cheers
Williby27
XML Menu That Launches Swf File Into Movie Clip
Hello,
I am trying to build an XML Driven Drop Down Menu similar to the one detailed in the tutorial in Kirupa.com. The difference is that instead of the menu item taking the user to another website I want it to launch a swf file in a movie clip. Basically, what I'm trying to do is build a training application where the user clicks a button (created from the XML file) and it starts a movie in a movie clip. Seems simple but I haven't been able to find anything on it. All the tutorials involving XML menus have the buttons launching URL's. Does anyone know of a tutorial or something that does something like what I'm after? Thank you
Menu/movie Clip...image Follow
at this site on the right hand site... there are 3 menu options...with one white box that follows where your curror goes. i can acomplish this but the movie i make snaps the white bow back to the top...anyone know how this is done????? http://www.blitzds.com/relaunch.html thanks for the help
Secondary Menu In Movie Clip Not Working
I have a movie clip that displays a menu of 5 options. If you mouseover one of the options, it goes to another label on the mc timeline and displays 3 more menu options. These menu options do not seem to be working at all. The cursor does not change into a hand and they are not clickable. The functionality can be seen at http://acuform.johnswidorski.com when you put your cursor over the "Processes" menu option.
I can make the fla available if necessary.
Thanks in Advance, John
AS3 - Custom Scrolling Menu For Movie Clip
Hi,
I have a project that I am trying to finish up. In this project is a movie clip (btn_movie) which has 18 buttons in it with only 9 showing on the screen at a time.
I am trying to create a custom scrollbar with just 2 buttons, an up arrow and a down arrow. I have it almost complete and works great until I get to the upper and lower scroll limits then it stops working. I know the line that is causing the problem
if (btn_movie.y < -142){
speed = speed* 0;
}
So when it gets to the -142 position, the speed of the scroll changes to 0. It will not start scrolling again when the opposite button is pressed. I have rattled my brain for the past 3 days straight (8-10 hours a day) looking on forums, looking at tutorials, etc. I am TOTALLY at a loss.
My code is as follows:
//scroll buttons
//up button
upArrow.addEventListener(MouseEvent.MOUSE_DOWN , scrollDownPress);
function scrollDownPress(event:MouseEvent):void
{
btn_movie.addEventListener(Event.ENTER_FRAME , btn_movieScrollDown);
}
upArrow.addEventListener(MouseEvent.MOUSE_UP , scrollDownRelease);
function scrollDownRelease(event:MouseEvent):void
{
btn_movie.removeEventListener(Event.ENTER_FRAME , btn_movieScrollDown);
}
upArrow.addEventListener(MouseEvent.ROLL_OVER , scrollDownRollOver);
function scrollDownRollOver(event:MouseEvent):void
{
upArrow.gotoAndStop(2);
}
upArrow.addEventListener(MouseEvent.ROLL_OUT , scrollDownRollOut);
function scrollDownRollOut(event:MouseEvent):void
{
upArrow.gotoAndStop(1);
}
//down button
downArrow.addEventListener(MouseEvent.MOUSE_DOWN , scrollUpPress);
function scrollUpPress(event:MouseEvent):void
{
btn_movie.addEventListener(Event.ENTER_FRAME , btn_movieScrollUp);
}
downArrow.addEventListener(MouseEvent.MOUSE_UP , scrollUpRelease);
function scrollUpRelease(event:MouseEvent):void
{
btn_movie.removeEventListener(Event.ENTER_FRAME , btn_movieScrollUp);
}
downArrow.addEventListener(MouseEvent.ROLL_OVER , scrollUpRollOver);
function scrollUpRollOver(event:MouseEvent):void
{
downArrow.gotoAndStop(2);
}
downArrow.addEventListener(MouseEvent.ROLL_OUT , scrollUpRollOut);
function scrollUpRollOut(event:MouseEvent):void
{
downArrow.gotoAndStop(1);
}
//Scrolling Buttons
var speed:Number = 3;
//Scroll Up
function btn_movieScrollUp(event:Event):void
{
btn_movie.y = btn_movie.y - speed;
if (btn_movie.y < -142){
speed = speed* 0;
}
}
//Scroll Down
function btn_movieScrollDown(event:Event):void
{
btn_movie.y = btn_movie.y + speed;
if (btn_movie.y > 0){
speed = speed* 0;
}
}
Any ideas would be GREATLY appreciated.
I also have another version where I use a tween to accomplish the same effect. The problem with it is when I press the down button, to scroll the text up, it works perfectly. When I press the up button, to scroll the text back down, it doesn't scroll, it just drops into the starting position. I am not sure if I have to creat a second tween to control this. I tried a second tween unsuccessfully.
My code for this is as follows:
//scroll buttons
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
var scrollTweenUp:Tween = new Tween(btn_movie, "y", Regular.easeInOut, btn_movie.y, -150, 10, true);
scrollTweenUp.stop();
//var scrollTweenDown:Tween = new Tween(btn_movie, "y", Regular.easeInOut, scrollTweenUp.position, 0, 10, true);
//scrollTweenDown.stop();
//down arrow button
downArrow.addEventListener(MouseEvent.MOUSE_DOWN , scrollUpPress);
downArrow.addEventListener(MouseEvent.MOUSE_UP , scrollUpRelease);
function scrollUpPress(event:MouseEvent):void
{
btn_movie.play();
scrollTweenUp.resume();
scrollTweenUp.addEventListener(TweenEvent.MOTION_FINISH, scrollUp);
}
function scrollUpRelease(event:MouseEvent):void
{
btn_movie.stop();
scrollTweenUp.stop();
scrollTweenUp.removeEventListener(TweenEvent.MOTION_FINISH, scrollUp);
}
downArrow.addEventListener(MouseEvent.ROLL_OVER , scrollUpRollOver);
function scrollUpRollOver(event:MouseEvent):void
{
downArrow.gotoAndStop(2);
}
downArrow.addEventListener(MouseEvent.ROLL_OUT , scrollUpRollOut);
function scrollUpRollOut(event:MouseEvent):void
{
downArrow.gotoAndStop(1);
}
//up arrow button
upArrow.addEventListener(MouseEvent.MOUSE_DOWN , scrollDownPress);
upArrow.addEventListener(MouseEvent.MOUSE_UP , scrollDownRelease);
function scrollDownPress(event:MouseEvent):void
{
btn_movie.play();
scrollTweenUp.rewind();
//scrollTweenDown.addEventListener(TweenEvent.MOTION_FINISH, scrollUp);
}
function scrollDownRelease(event:MouseEvent):void
{
btn_movie.stop();
scrollTweenUp.stop();
//scrollTweenDown.removeEventListener(TweenEvent.MOTION_FINISH, scrollUp);
}
upArrow.addEventListener(MouseEvent.ROLL_OVER , scrollDownRollOver);
function scrollDownRollOver(event:MouseEvent):void
{
upArrow.gotoAndStop(2);
}
upArrow.addEventListener(MouseEvent.ROLL_OUT , scrollDownRollOut);
function scrollDownRollOut(event:MouseEvent):void
{
upArrow.gotoAndStop(1);
}
function scrollUp(event:TweenEvent)
{
stop();
}
Once again, any help would be GREATLY appreciated.
Sound Stops When Menu (movie Clip) Plays
Hi there can anybody tell me what i'm doing wrong?
Here is the link
The problem is when loaded if you select 'change track' (about 1/3rd of the way down on the right) and play a track, once thats start playing you can hit close but as soon as you click on 'select track' again to choose another it stops the current track playing.
Here is the code i've used on the 'track list button:
on (release) {
_level0.containerTracklist.loadMovie("tracklist.sw f");
_level0.preloaderTracklist.gotoAndStop(2);
_level0.current_selection = "tracklist";
}
as you can see it loads up a separate swf for the menu and then here is the code for the buttons within the tracklist menu:
on (release) {myMusic = new Sound(myMusicMc);
myMusic.loadSound("http://www.binaryfinarydesign.com/newcv/track1.mp3", true);
}
The only thing i can think of is that its loading on the same level or something and the 'change track' menu is replacing the sound object?
I'd greatly appreciate any help.
Drop Down Menu (buttons Inside A Movie Clip)
Hi i'm trying to recreate this great nav that i swa a t www.pullcom.com.I hav got the drop down sort of working but when you click on it too much it gets confused and doesn't close.ethe button is inside a movie clip and the sub nav is inside another movie clip.I would really appreciate if you can help.Its for a major uni assignment thanks.
Highly Dynamic Menu: How Can I Load A Movie Clip Instead Of An URL?
That's the problem I've got right now.. in the Highly Dynamic Menu you can make links to external URLs, I mean, to other websites.. buy what I want to do is to load a MC, by clicking on one of the links that originaly drives you to an URL.
Do I explain myself? Please, if you can help me... I have to make it for a presentation in the University -_-
Dynamic Menu Creation And Duplicate Movie Clip
Hi,
I am creating a dynamic drop down menu. I bring in data using PHP into an array.
The menu will consist of Main headings and Sub headings that will appear when the Main headings are clicked.
The Headings are displayed within movie clips that are generated via duplicateMovieClip()
I have attached actionscript to the timeline of a movieclip and it loads and displays the Main headings with no problem.
On the one movie clip that I am duplicating, I have an on(press) action that is supposed to generate the Sub headings using the same duplicateMovieClip technique. This is where I run into trouble. I cannot get the Sub headings to generate.
Can you specify duplicateMovieClip() within the on(press) function of a movieclip that was already duplicated?
Would I be better off using attachMovie()?
Thanks!
Movie Clip Animation Loops On Drop Down Menu
I have created a drop down menu with an animation taking place within a movie clip called "drop". Long story short the movie clip loops. I tried putting stop actions in the mc but then my animation doesn't play. Can anyone tell me what I need to do?
drop._visible=false;
button.onRollOver=function(){
drop._visible=true;
}
button.onRollOut=function(){
drop._visible=false;
}
Problem With Navigation Menu- Movie Clip Stacking
Hi everyone-
I'm new to flash and having an issue with my navigation menu. I have 5 buttons on the left that when clicked call in a different movie clip from the right. Right now my code for each button looks like this-
Code:
btn1.onRelease = function() {
home.play(nextFrame);
if(home.getDepth( ) < web.getDepth( )){
web.swapDepths(home);
}
if (home.getDepth( ) < blog.getDepth( )){
blog.swapDepths(home);
}
if (home.getDepth( ) < radio.getDepth( )){
radio.swapDepths(home);
}
if (home.getDepth( ) < about.getDepth( )){
about.swapDepths(home); // Catchall if other conditions were not met
}}
I do this for each button and each is paired with a different movie clip. The problem is that once I have clicked a button and the movie clip comes out, if I want to click it again at a later point, it requires two clicks- first to remove the original movie clip, and second to bring it out again.
I want to eliminate that first click, by making it so when a button is pressed, all instances of that same movie clip disappear... so that way the navigation is smooth.
If anyone has any suggestions, I would really appreciate it.
Dynamic Menu Creation And Duplicate Movie Clip
Hi,
I am creating a dynamic drop down menu. I bring in data using PHP into an array.
The menu will consist of Main headings and Sub headings that will appear when the Main headings are clicked.
The Headings are displayed within movie clips that are generated via duplicateMovieClip()
I have attached actionscript to the timeline of a movieclip and it loads and displays the Main headings with no problem.
On the one movie clip that I am duplicating, I have an on(press) action that is supposed to generate the Sub headings using the same duplicateMovieClip technique. This is where I run into trouble. I cannot get the Sub headings to generate.
Can you specify duplicateMovieClip() within the on(press) function of a movieclip that was already duplicated?
Would I be better off using attachMovie()?
Thanks!
Full Movie Clip Not Playing On Menu Click
Hi!
I’m pretty new to FLASH .
I have a box transition that works when I test my movie, and everything starts from my “_about” frame. All’s good at first.
If I click a button/menu that returns back to my “About” section, then my box movie clip transition doesn’t play from start to end…I just see the last box, and that’s it. I don’t get the full animation.
I guess I don’t understand why the box movie clip works when the movie first plays showing / ending on “About”, then if I click the “About” button to replay that section and test everything…the box movie clip doens’t play fully.
Clicking the “About” menu item has the action script of: gotoAndPlay(“_about”
Thanks!
I Made A Collapsible Menu In Flash Using A Movie Clip I Attaced?
Plz Help, PLZ!
I made a collapsible menu in flash using a movie clip i attaced this following code to the buttons
on (release) {
_root.gotoAndPlay("Frame_Name");
}
And it will liink to the designated frame/scene, but if you were to click the same button a second time it would skip to another frame/scene. How do I prevent this from happening?????
Menu Made In Movie Clip - With Sub-section We Can Click On To Go To Another Frame
I would like some help about that:
I want to do a menu made all in movie clip (NO button). In this menu, when we click on one of the part (sub-section) of the button (which is a mc), we must go to another frame in the main scene.
It is working for the roll-over and mousedown for my button (with the _up, _over and _down labels). But it's not working then to put, i don't know, another movie clip inside with alpha 0 to make another onRelease and then gotoAndStop(20); ...
Here is the code I have in the main scene (first frame):
stop();
mon_clip_mc.onRelease = function() {
//this._root.gotoAndStop(20);
};
And here is the code I have in the first frame of the movie clip of the button:
stop();
I'd really appreciate some help! Thanx
Need Someone Good In Flash To Assign Links To A Movie Clip Menu
Hi
I downloaded a flash template but got stuck on assigning the links to the movie clip'navigation menu.
I tried to edit the .swf file in flash 8,but the menu does not show together with the header clip.The difficulty is that it is a movie clip and not a button so it does not allow getURL().
I followed this tutorial but it only applies on buttons and property panel shows each button as a movie clip
http://info.template-help.com/files/...sign_links.swf
If anyone feels can do it please let me know
thanks
you can get the files at:
http://www.templatemonster.com/sampl...d_template.zip
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
Menu Clip With Labels _up, _over And _down Containing Another Clip That We Can Click To Move To Another Frame
Ok, i have that code in first frame of my main scene:
stop();
mon_clip_mc.onRelease = function() {
mon_clip_mc.smenu1_mc.onRelease = function() {
_root.gotoAndStop(20);
};
mon_clip_mc.smenu2_mc.onRelease = function() {
_root.gotoAndStop(30);
};
};
I have "mon_clip_mc" on the main scene. Then, in that "mon_clip_mc" first frame code i only have a :
stop();
And in that "mon_clip_mc" i have the labels _up, _over and _down. At the _over label starts the movie clips "smenu1_mc" and "smenu2_mc". Those are the one i want to click on to go to frame (20) and (30).
As I did it, it doesn't work. Am I doing it the good way, is my code in the good place, should i use "hitareas", if yes, how ?
Thanks, i'm kind of lost...
|