Button w/in movie clip not working
I know this question has been raised before and it usually
just boils down to using the frame #'s and labels. But, even with
that it is not working.
I have a map of the US and when each state is rolled over I
would like a menu to appear - this menu is a list with several
options and all of the options are buttons. I have it set up so
that each state is its own MovieClip and each has an invisible
button over it for the hit area and the menu to appear. (i didn't
want it to be simply when it rolls over the state movie clip
because the hit would be square, covering other states and causing
a mess of pop up menus)
Anyway, the menu pops up fine, but the buttons within do not
work. Any ideas of what I'm doing wrong? Thanks Much!!!!
wi_mc.stop(); // wi_mc is the state movie clip
wi_btn.onRollOver = function(){ //wi_btn is the invisible
button
wi_mc.gotoAndStop(15); //frame 15 is where my menu resides
wi_btn.useHandCursor = false;
wi_mc.onRollOut = function(){
wi_mc.gotoAndStop(1);
Alright, I've made adjustments to how I've got it all set up.
I've made the menu it's own swf file, (seeing as how I'm going to
have 48 of them in total I figured it was less messy to have each
as their own file). Anyways... here's the current problem and I'm
hoping someone has a good explaination for why this would be
happening...
on my main file I have 2 invisible buttons - 1 is calling the
movie to load when rolled over and the other is calling the movie
to unload when a roll-out occurs. RollOver works great - fully
functional menu shows up. Roll out, however, is having some issues.
The invisible button is in the same location of the menu, same size
etc. so that when the user rolls away from this the menu should
"unload".
For some reason it's acting as if the hit area for the roll
out is off. I did a trace to find out where it's saying the rollout
areas are and the first is actually when I roll onto it, then only
again when i roll out from the left side of the graphic. I've tried
deleting the button and creating a new one but the same thing is
happening.
Any ideas for a very confused person trying to complete this
simple task of unloading a swf via rollout? MUCH appreciated!!!!
this.createEmptyMovieClip("ExternalSWFHolder",
this.getNextHighestDepth());
var SWFLoader:MovieClipLoader = new MovieClipLoader();
wi_btn.onRollOver = function(){
SWFLoader.loadClip("wi_menu.swf", ExternalSWFHolder);
wi_rollout.onRollOut = function (){
SWFLoader.unloadClip(ExternalSWFHolder);
Similar Messages
-
Button within a movie clip not working
Hiya,
I have a movie clip within my swf website that is basically
an icon that you roll over to produce the menu. The movie clip has
coding inside it to produce the rollover effect. This is as
follows:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
this.onRollOver = function(){
rewind = false;
play();
this.onRollOut = function(){
rewind = true;
Whilst this coding works fine for this movie clip, for some
reason the buttons within the movie clip that appear as you
rollover them will not work when pressed. I am trying to get them
to navigate the main timeline, i.e. coding as follows:
on (release) {
_parent.gotoAndPlay("home")
_parent should be correct, I've tried it without and with
_parent._parent however still it has no effect. From what I can see
everything should be working fine.
Is there some reason why buttons will not work within this
sort of roll over effect movie clip?
Thanks for your help.you can't assign mouse handlers to a parent movieclip and
expect a child movieclip to respond to mouse events: the parent
will intercept those events.
to remedy, either assign all your mouse handlers on the child
generation movieclips or use a hitTest() for one of the
generations. -
Re: Movie Clip not working in exported interactive PDF. Can anyone help?
I've imported a movie clip into an InDesign document, but when I've come to export it as an interactive PDF it isn't working. I've made sure the Button and Media box is clicked in the export options to include all. I've exported it as a flash file and that works fine, so I'm assuming everything i've done in InDesign is okay. Any ideas?
Im having a the same issue, i have 2 f4v files inplace and one SWF. And when I export to a SWF and bring it back into indesign to be exported as an interactive PDF it the 2 f4v and SWF files in it will not work.
-
Problems coding a button within a movie clip to navigate scenes
Hello there! I've got another probably noobish question to ask about CS6.
My goal is very similar to the one mentioned in this previously discussed forum question: http://forums.adobe.com/message/837995#837995 and also in this question http://forums.adobe.com/message/4172919#4172919
I am attempting to make a button inside a movie clip in my first scene go when clicked to the first frame of my second scene. I named the button's instance menu_button_1 and I believe Scene 1 and Scene 2 are the names of the scenes. (If they should have special names or instance names, I did not see where to type them.) Because of the similarities, I attempted to follow the suggestions on those pages. However I probably did some small thing wrong, (Or heck, maybe a huge thing.) which I what I'd like help with to find.
stop();
myButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(evt:MouseEvent):void {
gotoAndStop(1, "Scene 1");
This seemed to be what was suggested to enter. I attempted to modify it to work for me as well. This is what I typed for the button's action.
menu_button_1.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(evt:MouseEvent):void {
gotoAndPlay(1, "Scene 2");
(I removed the stop function because I have music looping in the movie clip that I want to play until the mouse is clicked.) (Also, I picked gotoandplay because I wanted scene 2 to start playing immediately when clicked rather than stopping.)
I tried variations, including "2" instead of "scene 2" and whatnot. I also tried linking it to differnet places just to see if that would work. It seems like it could link if I only asked for a frame within the movie clip itself, but it couldn't go to any other frames in scene 1 or scene 2. When I attempt, this message is displayed in the output:
ArgumentError: Error #2108: Scene 2 was not found.
at flash.display::MovieClip/gotoAndPlay()
at interactivestgermant_fla::menu_1/clickHandler()
It seems it cannot find my Scene 2. (It also cannot seem to find Scene 1 when I prompt it to do that.) I'm afraid I'm not sure of what I've entered incorrectly, though I'd imagine it involves how I typed the scene navigation. Should it have an instance name or something? I'd very muchappreciate a push in the right direction. If you need any more info I'll be happy to provide it. Thanks for the help! I very much appreciate it.I bet you're absolutely right. However I am not sure how I am misnaming it, as to my ametuer eyes, it seems to be entered properly into the properties box? It does show up as "menu" written in white over the keyframes and also in the properties slot. I can include some images here to help out in correcting me.
http://girlfoxgirl.deviantart.com/art/Flash-Help-1-395704638 This image shows my movie clip. This seems to be the problem it's having, identifying "menu." Did I do that incorrectly? It looks to be in order.
http://girlfoxgirl.deviantart.com/art/Flash-Help-2-395704633 This is inside of the movie clip named menu. You can see I did the same to name the button menu_button_1.
http://girlfoxgirl.deviantart.com/art/Flash-Help-3-395704627 This shows the action I gave to menu_button_1 in which I attempt to have it naviagte to Scene 1 frame 493.
http://girlfoxgirl.deviantart.com/art/Flash-Help-4-395704623 This shows where I'd like the button to go to. (It is hard to tell if that's frame 493 or 492. I figured that it should be ok either way and if this frame is 492 then it's easily changed once I get the darn thing working in general) (Also, I named the layer "peanuts." I tired entering the name "peanuts" as well but it didn't seem to work either, so I figured "493" is easier since I know that you can go to a specific frame by doing gotoandplay("scene 1" , #) and I'm not sure if it requires any additional stuff to go to a name.
http://girlfoxgirl.deviantart.com/art/Flash-Help-5-395704687 These are the errors I get. I totally agree with you- It seems very much to be an issue of getting it to recognize the "menu." However I am unsure where I named something wrong. Is this enough info to help you perhaps point out where that is? -
Problems with button inside draggable movie clip
I am building a click through presentation that has some small text in it. To maintain the design and allow for readability, I have added a zoom feature.
Here is the structure of the movie,
Stage - contains pages movie clip and forward/reverse click buttons for changing pages
pages_mc - contains 24 frames, one page per frame and buttons
There is a button at the _root level that uses a tweener to scale the pages_mc up to 170%. When this is clicked, it allows the pages to be dragged around the screen so you can look at different sections. When you click the button again, it returns the pages back to their original size stops drag.
My problem is, on the pages, there are buttons with links to external sites. Once startDrag has been invoked, I cannot touch the buttons inside the movie clip. Is there a way to make these buttons work?
I need the finished quickly so any assistance is welcome.
Code below
magUp_btn.onRelease = function() {
this._visible = false;
TweenLite.to(pages_mc, .25, {_x:-250, _y:-193, _xscale:170, _yscale:170});
TweenLite.to(magUp_mc, .75, {_alpha:0});
TweenLite.to(magDown_mc, .75, {_alpha:25});
magDown_btn._visible = true;
pages_mc.onPress = function(){
this.startDrag();
pages_mc.onRelease = function(){
this.stopDrag();
pages_mc.onReleaseOutside = function(){
this.stopDrag();
pages_mc.useHandCursor = false;
TweenLite.to(instr_mc, 1, {_alpha:100});
magDown_btn.onRelease = function() {
TweenLite.to(pages_mc, .25, {_x:0, _y:0, _xscale:100, _yscale:100});
TweenLite.to(magUp_mc, .75, {_alpha:25});
TweenLite.to(magDown_mc, .75, {_alpha:0});
this._visible = false;
magUp_btn._visible = true;
pages_mc.onPress = function(){
this.stopDrag();
TweenLite.to(instr_mc, 1, {_alpha:0});
I don't know how to turn drag off when I zoom out without using the onPress command, but I know that this is probably what is getting in the way of the button working?
Thanks!One option is to make the background of the pages be the draggable parts rather than the movieclips that contain the pages and buttons. That way, the buttons could be atop the background and not have their access blocked.
Instead of coding the pages_mc, you would essentially have the background coded for the drag...
pages_mc.bkgnd.onPress = function(){
startDrag(this._parent); -
Its been one month, my iphone 4's display is completely blackout and even its battery is not charging. I tried to restart my iPhone by pressing home and on/off button but it is also not worked. Now I'm in Nepal and here not even a single apple service center. What to do? Please help me.
You clearly did not notice that you have joined a USER TO USER COMMUNITY FORUM
This is NOT Apple ,Apple do not read nor do they therefore respond
So if you would like to wind your neck in ........................
try a reset of iPhone and then a restore,best, as new and if it then functions correctly try restoring with your backup -
My app store is not working. I followed instructions to hold wake/sleep home button....did not work, I went into settings, general, reset network settings....didn't work...now what?
Did you try to go to Settings > Store, tap on Apple ID, Log out and Login again.
What message do you get when you open the App Store? -
Radio button and associated functionality is not working!
Hi Pros,
I am facing the following problem:
1.I have an interactive PDF created in Acrobat 9 Pro.
2.PDF have few radio buttons, each radio buttons ahave assigned valus(eg: 1,2,3 etc)
3.I have a text box in which the value of selected radio button is displayed.
4.PDF is working fine on my machine.
5.Client is having Internet Explorer version 7.0.5 and Adobe reader:8.2.6
6.The radio buttons and associated functionality is not working on client's machine.
7.The text box shows '0' even if we a radio button with value 2 or 1 is selected.
What will be the problem? How can I fix this issue?
Please help.Thanks alot for helping me on this.
Thanks to u also ~graffiti -
I have downloaded the latest version of firefox and the navigation buttons in the browser will not work in any way. The "Back" and "Forward" buttons are completely un-usable.
Toolbar misbehavior could be due to a problematic add-on (e.g., theme or extension), or a corrupted settings file. Next time you upgrade -- and for security reasons, it is highly recommended -- try Firefox's Safe Mode to see whether you can pin it on an add-on or custom setting. You also could clear your toolbar settings.
More info on Safe Mode:
First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.org/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
Next, restart Firefox in [http://support.mozilla.org/kb/Safe+Mode Safe Mode] using
Help > Restart with Add-ons Disabled
In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
Does the toolbar work correctly?
More info on clearing toolbar settings: [[Toolbar keeps resetting]] -
Trying to connect buttons to a movie clip
Hi all,
I need step by step instruction on how to attech control buttons to a movie clip.
I imported the .MOV clip (a 3D rotation) into the library, and I would like to be able to control where the rotation stops, by use of a slider or clicking a button. Can some one please tell me how to do this in an easy way if possible?
Any help would be greatly appreciated so much.
Many thanks,drag your movieclip to the stage and assign it an instance name, say movMC. create your button and give it an instance name, say btn. you can then use:
btn.onRelease=function(){
movMC.gotoAndStop(your frame label or number here); -
"Photos" option button in icloud control panel not working
Photos option button in icloud control panel not working...it is not greyed out, and it is ticked, but clicking on it has no effect. Windows 8.
luvsack wrote:
DOES ANYBODY RESPOND TO THESE QUESTIONS EVER? I HAVE THE SAME PROBLEM AND CAN FIND NO ANSWER ANYWHERE! ANSWER THE **** QUESTION PLEASE!!!!!!!!!!!!!!!!!!!!!!!
Windows 7 64
Start your own thread, and please stop shouting, it is hard to read, and who wants that. -
Downloaded Movies suddenly not working. Appear to be running but screen blank. Music works OK
Hi Dingo1936,
That's unusal that downloaded movies would stop playing correctly. Try running through the troubleshooting article below.
Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
http://support.apple.com/kb/ts1718
-Jason -
what should i do my sleep/wake button on iphone 5 does not work properly it only works if i press on the left side of it and my iphone still on warranty i heard its a common problem
If there's a hardware defect and your phone is under warranty, bring it to Apple for replacement.
-
i dropped my ipad mini and the left side got dented .. so the volume buttons and the mute is not working anymore .... and when i am playing games the volume automatically goes up... i still have warranty .. so does apple replace a new one?
Steven ~ Welcome to the Support Communities. The following may be useful for next time...
AppleCare+ for iPad extends your coverage to two years from the original purchase date of your iPad and adds up to two incidents of accidental damage coverage, each subject to a $49 service fee. Note: AppleCare+ must be purchased within 30 days of the date you bought your new iPad.
iPad mini cases from Tech21
iPad mini screen protector from Tech21 -
The return button on my macbook is not working, any suggestions?
the return button on my macbook is not working, any suggestions?
By the way, if you are still interested, I found a solution. It's a bit crazy, but basically I have insulated the parts of the keyboard connector corresponding to the power button using some thin tape and then used a very thin wire going from the logicboard (where the test pads for startup are located) to my eject key, this way the original power button does not respond anymore and the eject key can be used as the power button, just like in the new Airs
I can provide photos if you want.
Maybe you are looking for
-
How to use a high power wireless-n usb adapter
I recently purchased a kinamax high power wireless-n USB 2.0 adapter to boost my wifi signal. The data range is 802.11n. The only problem is that I can't use the adaptor. The box says that the supported OS is MAC OS X. But when I connect the adapter
-
No Go! Why can't I find this in Help?
Vista Prem Elems 4.0: Happily editing away when this icon appears <ll> with a red slash / across (= No you can't!). Then I can't alter audio volume or move any clips. What causes this and how prevent it? Exit and start again puts it right -
-
What is the OBIEE help group email address?
Hi, I need help from obiee team for one question,but I can not find the email address in the forums.(the email address who answered some one's question is private) There is a image in my question which can not be showed in the forums,so I want to ask
-
What is the best compressor setting to use for DVD StudioPro ... when exporting a 720p 30 timeline from FCP for a project that will only be viewed in a standard def monitor?
-
SAP Netweaver Developer Studio Version Check
Dear All, We need a clarification on SAP NWDS version to be installed on client machine. We have standalone SAP NW 7.3 (Enterprise Portal) server. Its SP level is sp00. To develop and deploy portal applications, Which NWDS version we need to use. We