Show Same Movieclip From Different Buttons
Hard to explain, I know this is pretty simple to do but my brain is melted at this point.
I basically have created a NavBar using:
onClipEvent (load) { this.NavText = "nameOfButton";
Using dynamic text and hardcoding button names in AS for each Nav button.
Now, I want all instances of this button to start a movieclip at a specific location. I'm trying to do this essentially: (in pseudocode):
on (release) { Load Internal MovieClip; MovieClip.x = 300; MovieClip.y = 300; Play MovieClip;
Simple stuff eh? Pardon my brain = jello problems.
Thanks!
Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-11-12
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movieclip Does Not Show Up
I have a flash scene with several movie clips in it. IF I run through the scene in flash everything shows up. But if I do a test movie, several items do not appear. I can't figure out why. Can someone please give me and idea as to why they would show up in flash if I do and enter and run through the movie but not if I do a test movie.
Show Movieclip Twice
I'm working on a project for which I want to display a movieclip created by actionscript, with content added using actionscript twice.
I have my main movieclip, and I want to display a scaled copy of that. What would be the best option? Is there some way to duplicate a movieclip with all it's contents?
How To Show Hide MovieClip
I am trying to do in as 3.0 what I routinely did in as 2.0 with no success. All I need to do is roll over a button and show a movieClip and hide the movieClip when I roll out. A little sample code would be greatly appreciated.
Thanks,
Al
MovieClip Won't Show On Stage
So, I'm creating a "critter caretaker" which is basically a stripped down Tamagachi for a class. However, for some reason I can't for the life of me get the movieclip of the critter to show on stage. No matter what I do it just won't show up.
I also am not sure why, but I'm getting an error regarding my buttons.
"Implicit coercion of a value of type Class to an unrelated type flash.display:MovieClip"
Explanation of this and how to fix it would also be much appreciated
I'm attaching the files being used.
The FLA file is too big to upload, however the rest of the .as files are included. If you could take a look and let me know if you see a problem. All the movieclips are exported, etc.
Thank you!
Button = Show Movieclip?
Hi
I am making a mp3 player, and i would like to have a "lamp to flash"(movieclip if posible) when i pause the player. My action script is until now this:
ActionScript Code:
var vol = new Sound();pause.onPress = function() { if (vol.getVolume() == 100) vol.setVolume(0); else vol.setVolume(100);};
Please help, thank you.
Bonna
Movieclip Show/hide
Well, this is quite simple, and i once understood and more important was able to make it work! ()
How do i show and hide a moviclip?
example
on (release) {
What.to.do?
}
Thanks in advance!
-JPAG
Button = Show Movieclip?
Hi
I am making a mp3 player, and i would like to have a "lamp to flash"(movieclip if posible) when i pause the player. My action script is until now this:
ActionScript Code:
var vol = new Sound();pause.onPress = function() { if (vol.getVolume() == 100) vol.setVolume(0); else vol.setVolume(100);};
Please help, thank you.
Bonna
Movieclip, Like A News Show
Can anyone help me?
I need to do a movieclip that has this aspect:
- a down to up movement, with dinamic content inside, like the infos that the aeroports have, showing the information of the arrived plane, the hour he will arrive, that kind of things.
I now that Euronews (tv) have this kind of template, showing the weather and other infos.
I've allready search for a template, but i haven't find anthing .... for free, of course
I'll wait for something, a tip .
How Can I Show A Custom Url In A Movieclip On My Site
I've got a little problem, I hope someone can help me.
How can you load a url you entered in a inputtextbox in a movieclip? So you can open a other page you entered the url of in te textbox on your site, but mij page must stil be opened. I hope someone can help me with a sollution of my problem.
Is It Possible To Show Percentage Loaded For A Movieclip?
hi all
i have this code
onClipEvent (enterFrame){
totalKbytes = _root.background.getBytesTotal()/1024;
loadedKbytes = _root.background.getBytesLoaded()/1024;
percent = loadedKbytes/totalKbytes*100;
_root.percentText1 = int(percent)+"%";
}
which im trying to use to show the percentage loaded of 'background', a fairly large image inside a movieclip on the main timeline. i was using this script before to load in external swfs and it worked fine. now im not too sure how to set it up, i tried several ways but without success. can anyone give me a few pointers.
thanks
Text Won't Show Over Movieclip In Background
I am running into a problem I haven't had before. I have a movieclip that is for background pictures that animate in on my site. I want to have the text for each topic animate in as well over the pictures in either the same movieclip or in a separate movieclip. I have tried setting both ways up, with the text being converted to a symbol and then motion tweened. Either way, the text does not show up, even though it is layered above the pictures. What could I be doing wrong?
Hide & Show MovieClip OnRollover
Hey all,
Im new to the forums and yes youve guessed it, i have an AS 2.0 SNAG!
Basically i want to make a movieClip appear as my cursor when i rollOver another movieClip.
So if i have a movieClip as a grey box of 100x100 called areaClip and when i roll my mouse over this movieClip i want another movieClip called pointerClip to appear, ofcourse when i rollOut i want the pointerClip to dissappear/hide/remove completely.
I have the code working to show the clip, but its removing it which is causing me problems.
=====
on (rollOver){
Mouse.hide(); // hides mouse cursor
duplicateMovieClip(this, "pointerClip", 0);
this._parent.pointerClip.startDrag(this);
}
on (rollOut){
this._parent.pointerClip.stopDrag(this);
Mouse.show(); // shows mouse cursor
this._parent.pointerClip.removeMovieClip();
}
=====
It look like ive got it correct, but trust me its not working at all. Ive got an instance of the pointerClip just of the main stage and it duplicates it when i rollover the areaClip becuase i want to indicate a visual cue to the user when rolling over this area.
If anyone has an alternative way of showing this maybe some other methods becuase im kinda new to actionscript, i was hoping that like lingo there would be some sort of visible invisible method. I dont think this should be too hard. Maybe createMovieClip() is an alternative? Maybe delete the pointerClip on rollOut?
Thanks all for reading and any help will be much appreciated.
Reply ASAP
Hax
Making Something In A Movieclip Show Above Its Layer
i have a thing in a movie clip that i want to come up infront of something on my main thingy
layer lay out:
Layer 1:what i want the thing to become infront of
Layer 2:Area Of MC
the thign i want on above layer1 is on a separate layer in my MC
any ideas?
Show TimeCode On A MovieClip. Getting Desperate
I have a simple movie clip that runs a certain number of frames....i am playing it at 30fps....now I can display which frame it is on out of total frames using _currentframe and _totalframes....and I have it working along with a slider....Now i am trying to convert frames over to minutes and seconds so the display will show 0:39 / 1:15 instead of 48 / 600...keep in mind i need it to work with the slider too....I attached a sample fla file....any help would be greatly appreciated...
Show Hide A Movieclip With A Listener?
Hi,
wondering if you can give me an example of a show/hide a movieclip with a listener. That is, i was planning to have a boolean flag variable showSubMenu and if it's true the submenu will be visible and if false it's hidden???
Movieclip Rollover Effect Disables Internal Movieclip Buttons
Is it possible to have a movieclip rollover effect with another movieclip inside of it that is able to be clicked and do what it's scripted to do?
Let me try to get specific...
Movieclip 1 -- Has www.kirupa.com/developer/mx2004/button_effect.htm applied
Inside of Movieclip 1 --> Buttons that appear visible when you rollover the menu (it comes out of eases into view)
These buttons inside are not being allowed to be pushed because from what I can gather, the complex rollover is not allowing anything to be activated except the rollover effect.
So here's a diagram:
Rollover Movieclip 1 --> Eases it's bottom part up revealing 4 buttons --> These buttons when clicked are supposed to do an action --> Buttons cannot be activated for some unknown reason.
Can anyone help me out? I'm out of ideas after working on this for the past hour or so. If you need any extra info or materials, let me know; I'm sitting right here working on this problem haha.
-Indecisive
Only Buttons Show Up
I've created a calendar for my school using Flash with two buttons that help navigate from month to month. When I view and export the movie in Flash it works fine. After I embed it into dreamweaver the buttons are the only thing that initially show when the page first loads. After a button is used the calendar appears. But, why can't you see it from the initial loading of the page? Please help, I've have been researching this for days and can not figure it out.
thanks
the pages link is at http://maya.dadeschools.net/cal.htm
Buttons Show Through Everything
Why do buttons show through things, even when they are on a lower layer? For instance, I have a button on one layer, then on a layer above that I have a bitmap or a symbol or anything...but I can still rollover and click the button beneath? What can I do to prevent this?Thanks in advance.
Show/Hide MovieClip On Menu Click.
Greetings....
I am curious i have several MovieClips containing images lined up in specific positions I want to show and hide these on a mouse click for instance
Menu-> Hair Eyes
^-Long ^-Green
|-Short |-Red
Say I click the Long button in hair i want to unhide Movieclip "longhair_mc". Is there any easy way to go about this in Flash CS3(AS2 or 3 is an option whatever works)?
MovieClip Slide Show W/Dynamic Captions + XML
Anyhelp anyone? This is the closest thread I came to achiving this..
but no fla to see visuals while creating in the process..
any help?
http://i61.photobucket.com/albums/h7...deShowinMC.jpg
http://www.gotoandlearn.com/forum/vi...asc&highlight=
AS3 - Movieclip Doesn't Show Hand Cursor
I have a class that allow you to rollover and rollout the movieclip. I just can't get the arrow to change to the hand cursor when it rolls over the movieclip. I have tried mouseChildren and useHandCursor which doesn't change anything.
Code:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class NavButton extends MovieClip
{
public function NavButton()
{
this.addEventListener(MouseEvent.ROLL_OVER, dim);
this.addEventListener(MouseEvent.ROLL_OUT, bright);
}
private function dim(event:MouseEvent):void
{
this.alpha = .75;
}
private function bright(event:MouseEvent):void
{
this.alpha = 1;
}
}
}
Show And Hide Buttons
Hello,
I was wondering how you can script a code to show only buttons that has a text field associated with it?? ex. i have 10 dynamic text fields that pulls an external txt file which is place directly underneth a button with an alpha of 20. If their is not txt file present pulling from a dynamic field i dont want the buttons to show.
please advise,
johnny
Buttons Show Through Movieclips
How do I solve this? I have a movieClip which appears in the layer above some buttons in a movie. When I roll the mouse over the movieclip, it detects the button underneath, show the cursor hand and you can press it. How do I make it so you can't detect the buttons through the movieClip?
Show/hide Buttons
hi. i'm trying to create a portfolio with a gallery of images. there are two buttons, to go to the previous and the next image in the gallery. i've used arrays and it's all working ok so far.
i've been trying to use an if statement so that when the user reaches the last of the images in the gallery, the 'next' button disappears (as there are no more images!), and when they go to the first image in the gallery, the 'previous' button disappears. i have got this to work, except that the buttons do not reappear when the user scrolls through to another image in the gallery. here's the code i've been using:
//Tunisia Gallery
var TunisiaNumArray:Array = ["Tunisia 1.jpg", "Tunisia 2.jpg", "Tunisia 3.jpg", "Tunisia 4.jpg", "Tunisia 5.jpg", "Tunisia 6.jpg", "Tunisia 7.jpg", "Tunisia 8.jpg", "Tunisia 9.jpg"];
var TID:Number = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
btn1.addEventListener(MouseEvent.CLICK, TButton1);
function TButton1(event:MouseEvent):void{
TID < TunisiaNumArray.length-1 ? TID++ : TID = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
TunisiaTitles_mc.nextFrame();
if(TID == 8)
{
btn1.visible = false;
}
}
btn2.addEventListener(MouseEvent.CLICK, TButton2);
function TButton2(event:MouseEvent):void{
TID < TunisiaNumArray.length+1 ? TID-- : TID = 0;
var TunisiaImage = new Loader();
this.addChild(TunisiaImage);
TunisiaImage.load(new URLRequest(TunisiaNumArray[TID]));
TunisiaImage.x = 0;
TunisiaImage.y = 0;
TunisiaTitles_mc.prevFrame();
if(TID == 0)
{
btn2.visible = false;
}
}
can anyone explain to me what i'm doing wrong here?!
thanks
PS: i tried adding an else to the if statements, along the lines of:
else
{
btn1.visible = true;
}
and the same for btn2
but it didn't work
[CS3] My ScrollPane Won't Show It's Buttons.
Hello everyone,
I got a small component problem. I made a movie clip with text and pics and installed it in a scrollPane on my stage. Everything shows up fine except for the buttons. The text scrolls with the mouse control (scrollDrag, true), but
the buttons aren't there. In the Parameters I have the vScrollPolicy on and everything that pretains to it on true also. I have switched everything on and off, and still no buttons. Can anyone help with this one.
You can view my project by going to www.mataleaocs.com
then go to "The Arts"
Thanks
Omar
Show/hide Buttons
I'm currently working on a sort of spot the difference game where you'll need to spot the 5 differences.
it' works with buttons that are on top of a difference and as you click them they disapear.
As soon as you've found all the difference you're redirected to another page.
Now all work's fine except for the fact I'd like to be able to show the differences alredy selected, so people will have an idea about the differences they've discovered. The only thing is I haven't got the slightest idea on how to call those images/movie clips
Any idea on how to call up images are welcome... Here's the code I got on my buttons
Code:
on (release) {
_root.score = _root.score+1;
Button1._visible = false;
}
on (release) {
if (_root.score==5) {
getURL("","_blank");
}
}
I Don't Want Background Buttons To Show Through My Mc
Hey all, this should be a simple question but I don't know the answer. I have a movie clip that moves on top of a button. I don't want the button's functionality to show through. I don't want the cursor turning to a pointer when it shouldn't. What's the best solution?
Movieclip Buttons Inside Of Movieclip Buttons
I followed the tutorial for creating animated buttons and have also created them in your mp3 player tutorial, but when I have a button inside another button I get nothing on the rollover, like its not even there!? Any ideas?
Input Text Inside Movieclip Does Not Show (flash 8)
i got a problem.
i want to use input text inside a movieclip within my main scene, but somehow if i test this, it does not work. if i put "normal" text everything is fine. but if i put input text, it wont work...
i would really appreciate any solution to this problem.
thanks guys
Help With Making A Slide Show With Buttons
I'm actually really interesting in wrestling figures and people on another bored that I go to make shows with their figures just like on TV. They use flash and add music for effect and whatnot. They also use buttons for going page to page. Here is an example of a wrestling figure show. http://www.kblackwell.net/fcw If you follow the links you will find the show.
Anyway I looked through the tutorials here and I find them way to hard to figure out. I was wondering if anyone could give me a fairly simple explanation on how to make the buttons work and go from page to page. I currently have Flash MX. Oh and how to maybe add in the text. You just have to click the view episode buttons
Thanks in Advance
Script For Slide Show Buttons
hello-
working on a project using good old flash 4- i've got a slide show of about 20 pixs-the duration is 10 frames each pix. i need to write code for the "BACK" button- so that when the button is clicked it will set the playhead back to the preceeding 10 frames.
i.e.- if it's on the second pix- it would send the playhead back to frame 1 etc. is this a tell target kinda issue? not sure how to attack it. -and obviously i'll have to figure in the rest of the frames too. any help will be much appreciated.
thanks!
Publish Won't Show My Form Buttons
Help,
I am new to Flash and this is driving me crazy. I am trying to make a tutorial with a movie and a form. The one in the link is working fine, but i made some changes and now when I publish the movie on my desktop I can't see the form dropdown menu, radio buttons, etc. What am I doing wrong?
Roll Over One Button To Show Possible Buttons
I am using flash MX to make a website.
I need help on making a button that when roll-over, some possible buttons (roughly 3 to 5) will appear next to it.
Can anyone help me to use the simplest way to get the effect done.
[F8] How To Hide And Show Thumbnail Buttons
Hi there,
Can someone please help me with the F8 actionscript needed for an image gallery I’m building?
The gallery consists of the usual small thumbnail buttons; however, when a particular button is in the overstate I want all the other buttons to be hidden; revealing a larger thumb directly underneath. Is it better to build this with buttons or MC’s? I’ve included a small test file for demonstration purposes.
Thanks in advance.
Hide And Show Scroll Buttons?
I have a dynamic textfield that displays text using LoadVars. Some of the texts are longer than what fits in the textfield and my problem is that I dont want the scrollbuttons to be visible when the text fits in the textfield. But I want them of course to show up when needed. Anyone have a nice solution to this problem? Maybe count the characters that fit in the dynamic textfield?
Unload Clip And Show Buttons
I have a movie that loads another video. When it goes to video by hitting button
below I can hide buttons underneath.
When I unload the movie, I need the buttons to show up again and clickable.
I added the onEnterFrame, but makes no difference.
Can someone help as to how I can bring the buttons back when movie that was loaded is unloaded?
script........
onEnterFrame(_root.VideoBtn.enabled._visible = true);
VideoBtn.onRelease = function(){
loadMovieNum("video.swf", 10);
VideoBtn._visible = false;
};
Thank you in advance.
Side Show Controlled By Buttons Help
I would like to create an intro like the one below:
http://www.autosofnaples.com/index.htm
I have imported the image and made it into a graphic simbol.
I tween the image.
But I dont know if that is the right thing to do.
Can anyone help me?
Thank you
Show Default Cursor OnMouseOver Buttons?
Can someone please tell me how I can make the default mouse cursor (pointer) not to be changed to a "hand" when mouse is over on a button???
I've tried all the javascript that I know, none of them worked.
Thank you very much.
Flash Buttons Dont Show Up In All Browsers
Hello,
It has been awhile since I used flash. I am pretty well versed in 3d studio max, photoshop, premiere, illustrator. I get by in dreamweaver, but am not what I would call proficiant in it.
I use dreamweaver MX, flash 8 , all the PC's I tested my page on had security set to MEDIUM.
I publish to make a swf file and a html file, default ,I think. There is a Radio button that makes it use flash version detection. I used that. I edit the html by adding a table,(1x1), at the begining of the page and drag the flash module/icon into it. I do this to make it center up better.
I did all the design,( not much design ,it is a simple page), from home.
I made an intro with Flash4D.
I made a simple flash page consisting of a banner and 2 animated buttons.
I did all uploading to site from home.
It all works fine from either PC I have at home.
It works fine from the laptop I use at work.
I work in a small strip mall, we are all on the same network, all PC have security set to mediuim.
When I try to view the page from any other PC in the strip mall , they all display the Flash4D intro just fine, but when they go to my simple page I made they can not see the 2 orange, animated buttons.
The banner does display.
Anyone know why this is happening?
here is a link to the intro http://www.animationlab.net/jet_intro.htm
or just go to the problem page directly at
http://www.animationlab.net/test.htm
Thank you for taking time to read this
On Rollover, Fade Image Out, Show Buttons Behind.
Please take a look at this URL below and roll over the button to the far left to see my problem:
http://www.richard-stelmach.co.uk/wheater/
I'm using this script on an invisible button to control the movie clip:
ActionScript Code:
on(rollOver){
works.gotoAndPlay("roll");
}
on(rollOut){
works.gotoAndPlay("off");
}
"works" is the name of the movie clip with the fading image inside and also the secondary buttons.
As soon as you rollover the buttons that are revealed (Performances for example), the "on(rollout)" script is activated on the invisible button because it sees that the cursor is over the hit area of the secondary buttons.
ANY help would be MUCH appreciated.
Invisible Buttons Are Active In FLA And Don't Show Hit Area
Hi, every single invisible button in my FLA shows a hand icon when I
mouseover them and i'm given none of the usual options when I
right-click them. Also, they don't show the usual light blue hit spot so
I don't know exactly where they all are.
This happens even with new buttons I create...
Please Help!!
thanks,
Kristan
Using Flash MX
Hide Buttons When Movie Loads And Then Show
I have a movie that loads another video. When it goes to video by hitting button
I can hide buttons underneath.
When I unload the movie, I need the buttons to show up again and clickable.
I added the onEnterFrame, but makes no difference.
Can someone help as to how I can bring the buttons back when movie that was loaded is unloaded?
Thank you in advance.
Attach Code
onEnterFrame(_root.VideoBtn.enabled._visible = true);
VideoBtn.onRelease = function(){
loadMovieNum("video.swf", 10);
VideoBtn._visible = false;
};
XML Slide Show With Next And Prev Buttons On Top Of The Pics
Hello all
I've been banging my head on the wall about this and it's all my fault really but that's neither your faut or mine. The point of the matter is I sold my idea but i can't figure it out. I need a Cross Fading XML slide show but with the Next and Previos btns on top of the pictures. the client doesn't want them on the side or below Any help would be Awsome thanks so much
A Scrolling Menu To Show More Squares (buttons)
Hello everyone, any kind of help with this would be greatly appreciated as I'm not really sure what I'm doing so I need to be spoon fed I'm afraid.
I'm testing out things and thinking of using this as like a submenu, I want to make the menu of squares that are in a movieclip (these squares are buttons).
And they can be as many as needed, the high of the box and mask they're in is 30x370 and they are 20x545.
I've placed two buttons outside the movie clip, these are supposed to make it so you can hoverover/click (undecided) to make them move up and down so you can check out the other buttons.
I have no idea how to do this lol so I've supplies this .fla with everything I've done on it so far.
I tried using something like this.x- =50 but it didn't work at all and that was just a quess lol
Movie Buttons Don't Show In Mozilla, Opera...
For some reason, a button I have on my flash app isn't showing in Mozilla based browsers (FF, Netscape) or Opera, but it shows fine in IE6. As far as the app goes, it works perfectly in all three browser engines with the exception of my button. I even have four radio buttons that show in all three engines, again, just not the button.
Is there a fix to the problem? I've googled it, but I really haven't been able to find an answer, and I didn't see anything related when I searched these forums.
It is a button from the component list... would that be the problem?
I may have to build my own and try it that way... not sure why that only hit me just now... lol
Either way I'd like to know if there is a way to make the button component show in Mozilla and Opera, and if there are other components to look out for with the same issue.
Show Text & Launch File On Scrolling Buttons
Hi,
I've kinda "re-newed" my Flash5 dreams...(translation: i'm back to square one ...of making silly questions
Anyway, I've managed to make the scrolling menu work (with a little help from peeps here, please see attached fla file) However, after all the excitement of making it work, I'm still stuck with the following:
a) How do you make each of the "scrollbuttons" show text at the end (or the beginning of the scrollmenu) on mouse-over rather than at the top?
b) And now for the more important thing...how do I make each of the buttons launch a particular file (in my case, an AVI file)??? when I clicked on them?
Please feel free to make your replies as specific as possible coz I've totally lost going about it...
TiA!
|