Buttons In A Movie Not Working With Scenes?
Hello Everyone:
I know the subject line sounds weird. but this is the scenario:
I have 2 Scenes: Scene 1 and Scene 2.
In Scene 2, I created a movie clip with some buttons like
link 1 | link 2 | link 3 | back to Main |
so these are all buttons inside a movie clip called mov1
The back to Main button inside the movie clip is supposed to go back to previous scene. I had some code like
on (release) {
gotoAndPlay("Scene 1", 1);
};
but It did not work. After tearing my hair and ****ing the computer for a bit, I deleted the back to Main button from the movie clip and created a separate button on Scene 2 (as apposed to a button on a movie clip and using the clip on scene 2) called "Back to Main" right next to Link 3 and same code as above and It works!!
I don't know why this happens? Any idea why?.
Thanks!!.
Jeyyu.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 05-24-2003, 03:33 AM
View Complete Forum Thread with Replies
Sponsored Links:
PLEASE HELP ME Working With Scenes, Buttons And Movie Clips
I'm new to flash although I think I'm catching on pretty well, I've run into a problem.
I created a scene "scene 1", with a stop action for it to stay on the first frame... and inside my scene- first frame- I have a movie clip.
Inside the movie clip there is a button.
When I press the button I want it to go to a specific frame in my movie clip and also to go to the second frame in my "Scene 1".
For some reason I can attatch the action to the button to play within the movieclip the desired frame,
BUT
I can't get it to go to frame 2 in Scene 1.
Can someone help me figure out how to do this??? I would really APPRECIATE THE HELP!!! THANKS!
View Replies !
View Related
Scenes Rolling On, But Stop Action Prevents Buttons Working...
More newbie problems! I have managed to get my scene buttons functioning on my website, but they only function while the scene is loading. I have used stop action to stop the scenes from rolling on, but this also stops the buttons from functioning once the scene is loaded.
So the question is... how do I code my scenes so that they stop when they are loaded, and have buttons that function (ie am then able to click a button to move to another scene).
Any suggestions would be very much appreciated!
Fio
View Replies !
View Related
Scenes Rolling On, But Stop Action Prevents Buttons Working...
More newbie problems! I have managed to get my scene buttons functioning on my website, but they only function while the scene is loading. I have used stop action to stop the scenes from rolling on, but this also stops the buttons from functioning once the scene is loaded.
So the question is... how do I code my scenes so that they stop when they are loaded, and have buttons that function (ie am then able to click a button to move to another scene).
Any suggestions would be very much appreciated!
Fio
View Replies !
View Related
Movie Clip Actionscript Working Across Scenes
Hi all,
I've got trouble making a movie clip button play a frame in another scene. I am using the script:
_root.Play(kitchen);
but it's not going to the first scene of the movie, it's looking for the kitchen frame label within the scene it's already in.
Can anyone tell me how to make it go to that label in the first scene?
View Replies !
View Related
[CS3] Actionscript Not Working Between Scenes On Movie Clips
Hi everyone,
I'm creating a website and I'm having some issues with Actionscript. My goal is for the navigation tabs (movie clips) to drop down when rolled over and return to their original position on rollout. This is my Actionscript 2.0 code on the movie clips:
PHP Code:
on (rollOver) {
gotoAndPlay(2);
}
on(rollOut) {
gotoAndPlay(11);
}
This works fine on the first scene. However, when I navigate to a different scene, this exact same code does not work. The odd thing is it only works on the very first scene of the site, no matter what it is (ie, if I move "Scene2" to the very first position, it works, but if it is the second scene it doesnt). I've got some navigational code on these movie clips that executes just fine no matter what scene I'm currently in.
I'm baffled as to what's causing this. Any help would be appreciated.
View Replies !
View Related
Buttons In A Movie Link To Other Scenes
I am really stuck so any help would really be appreciated!
I am using Flash MX.
My navigation is comprised of buttons in a movie...I can not get the buttons to link to other scenes when I drag my navigation movie into a scene. The only way I can get the buttons to work is if I put the navigation keframes in every scene and do all my coding in the scene.
I want to be able to drag the navigation movie into scenes and have the buttons within that movie link to other scenes.
Please help!!!!!
Visit http://www.cashcowmedia.com/CCM.html to see the site I am working on. Have also attached an fla file that haas my navigation movie.
Thank you!!!!!
View Replies !
View Related
Movie Clips Buttons Within Scenes
Can you navigate scene to scene with buttons located within a movie clip?
I have about 6 scenes total. On one scene I incorporated a portfolio gallery. Within it I have a MovieClip that has about 4 buttons. I would like to have each of them point to other particular scenes. I used about 5 different scripts and none seem to work.
I will be more than happy to send you the file... I know its easier to view it than to try to explain it.
View Replies !
View Related
My Buttons Are Not Going To My Scenes In My Movie. I Don't Know What The Probem Is.
My buttons won't work. Even my college teacher can't figure it out so I am turning to you guys. Yes I did try some tutorials online, but they didn't seem to work. My fla is located here: http://buffalo.edu/~hb8/dms155 and it is the only fla in the directory. The fla uses the xml files and both folders, but that shouldn't cause problems if you want to edit the fla. Please help me because this project is due this Sunday and I spent many hours on the animations. My teacher is no help to me. Thanks to anyone willing to have a look-see!
View Replies !
View Related
Buttons In A Movie Link To Scenes
In my Flash MX my navigation is contained in one movie comprised of buttons. What I can't figure out is how to get the buttons contained in that movie to link to scenes. The only way I have been able to get the buttons to link to scenes is to take the buttons and individually place them in the scenes... I want to have the navigation in one movie with the scene links so that I can just drag that navigation on to the scens. Any help would really be appreciated, I am stuck!!!
I have attached my fla file for reference.
View Replies !
View Related
Movie Clip Buttons And Scenes
How would I go about making my movie clip button link to different scenes in a flash movie? I've tried the on release function, but I think it's looking within the movie clip itself for whatever scene I want it to point to. Is there a way to let the mc button know that it's supposed to be looking for scenes within the actual movie, and not with in the movie clip itself?
View Replies !
View Related
Loading Scenes From Movie Clip Buttons
hello
this is probably very simple.
i have a button in a movieclip on one scene ion release i want this button to load the next scene. i rememeber something aboput get target but i can't really remember how to do it. thanks you for any help:confused: :confused:
View Replies !
View Related
Linking Movie Clip Buttons To Scenes
Hey Guys,
I'm kind of a newbie but not really but I feel that this probably a newbie topic. Basically what I have is a button that when you click on it, it jumps to another frame where more buttons appear. I want those specific buttons to then jump to another scene and play on frame 1. Unfortunately, things aren't working correctly for me and I have no clue why. It's just all text basically converted to graphics and movie clips. Could you please tell me how I can accomplish this without messing everything up. The easiest way possible. I have alot of scenes that I'm making and need my links to work towards them. Please help ASAP.
Matt
View Replies !
View Related
:: | Movie Clip W/ Buttons That Controls Scenes | ::
I think this is pretty simple, but I cannot figure why it is not working. I am using Flash MX 2004. I am pretty new to all of this so I will try to explain what is happening as best as possbile. I have a Flash file with multiple scenes. I have a draggable control box movie clip ("controlBox_mc") that I dropped onto the stage in Scene 1. "controlBox_mc" displays informational text for the current scene. Inside the "controlBox_mc" movieclip, I have 3 buttons, "goScene_btn" that should take the user to the next Scene, a "backScene_btn" to go back to the previous scene, and a "attachMovie_btn" to start the current Scene's animation ("animScene1_mc"). I am using the following script in Frame 1 of Scene 1:
//stops the playhead at frame 1
stop();
//This script takes the user to Scene 2 when goScene_btn is released
goScene_btn.onRelease = function(){
gotoAndStop("Scene 2", 1);
unloadMovie("animScene1_mc");
};
//function plays animScene1_mc when attachMovie_btn instance is released.
attachMovie_btn.onRelease = function(){
_root.attachMovie("animScene", "animScene1_mc", 1);
animScene1._x = 275;
animScene1._y = 200;
};
I have used the Linkage Properties method to give Scene 1's animation ("animScene1_mc") a linkage identifier name of "animScene1"
I believe that this script is not working because the buttons that control the scenes are inside of a movie clip that is dropped into the stage. If I put these buttons on the stage directly, the script works, I just need to find a way to tell the buttons to work when they are not on the stage, but in a movie clip ("controlBox_mc") that is on the stage. Anyone have an example, or advice on how to script this? I am building a product demo, and need to have the document set up this way.
Thanks in advance!
View Replies !
View Related
Buttons In Movie Clip Won't Bring Up Scenes
I've created a movie clip within my main scene.
I have 6 buttons in that clip. I would like these buttons to call up the appropriate scenes but it isn't. I don't know whether I cannot have buttons in movie clips call up new scenes or if my actions script is simply wrong.
Here are some of the actions I've tried to upload the scene or swf files:
thanks.
on (release) {
_root.gotoAndPlay("instance name");
}
----Also, named 1st frame of scenes with matching instance.
on (release) {
_root.gotoAndPlay("scene name");
}
on (release) {
gotoAndPlay("scenename",1);
}
on (release){
uploadMovie ("name.swf",1);
}
View Replies !
View Related
Buttons In Movie Clips, Linking To Other Scenes - Total Noob Help Needed :o(
Hi guys, big time Flash MX newbie here, and I am struggling.
I have a movie clip in scene10, which has a button, when this button is pressed, I would like it to go to another scene. I have searched this forum and found out that I need to use _root, and I have used the following on my button, to some limited success:
Code:
on (release) {
gotoAndPlay(_root.gotoAndPlay(1));
}
This takes me to my first scene in the flash movie, for example called scene1. However I do not want it to go to scene1, I need it to go to say, scene4.
Ive tried allsorts _root.gotoAndPlay("scene4",1) _root.scene4.gotoAndPlay etc etc but I cannot get it to work.
Can nayone help please?
many thanks.
View Replies !
View Related
Movie With Buttons Via AttachMovie, Buttons Not Working
'm developing a flash menu (using flash MX) for a website I'm building (it's a gallery to show off my travel photos and my journal entries). I have the basic layout the way I want but I am having a problem accessing buttons within an attached movie.
Code:
//quick hack to get onRelease functionality for a movieclip
_global.MovieClip.prototype.onRelease_ = function(murl){
this.onEnterFrame = function(){
this.onRelease = function(){
trace(murl);
delete this.onEnterFrame;
}
}
}
//when a user places their mouse over a menu item, it will scroll out from the right
//if there are submenus associated with this item, loadsubMenu function will be called
MovieClip.prototype.topmenuOut = function(tmo_speed,has_sub1,toload,temp_name){
if(has_sub1 eq "" || has_sub1 ne "false" && has_sub1 ne "true"){
has_sub1 = "false";
}
this.onEnterFrame = function(){
if(this._x > 0){
this._x -= tmo_speed;
}
else{
if(has_sub1 eq "true"){
_global.isShowing = this;
this.loadSubMenu("add_",toload,temp_name);
}
delete this.onEnterFrame;
stop();
}
}
}
//when a user moves their mouse away from a menu item, if it is "exposed" it will move
// back to its default
MovieClip.prototype.topmenuIn = function(tmi_speed,has_subm){
if(has_subm eq "" || has_subm ne "false" && has_subm ne "true"){
has_subm = "false";
}
this.onEnterFrame = function(){
if(this._x < 214){
this._x += tmi_speed;
}
else{
if(has_subm eq "true"){
_global.isShowing = "";
}
delete this.onEnterFrame;
stop();
}
}
}
//called from topmenuOut if there are submenus present; will attach the appropriate movie //as set in the movieclip that the mouse is currently placed over and will attach the //submenu clip to the current movieclip
//all calling (top level menus) movies have had their linkage set to export for actionscript //and first frame and reference names set
//in addition the submenu is faded in and out depending if todo (passed from calling menu //movie) is set to add_ or del_
MovieClip.prototype.loadSubMenu = function(todo,omovie,temp_movie){
if(todo eq "add_"){
temp = this.attachMovie(omovie,temp_movie,100,{_x:0,_y:54});
temp._alpha = 0;
temp.onEnterFrame = function(){
if(temp._alpha < 100){
this._alpha += 5;
}
else{
delete temp.onEnterFrame;
}
}
}
if(todo eq "del_"){
temp.swapDepths(99);
temp.onEnterFrame = function(){
if(temp._alpha > 0){
this._alpha -= 5;
}
else{
delete temp.onEnterFrame;
temp.removeMovieClip();
}
}
}
}
//from a menu movie (acting as button) on the main timeline(called //guestbook) and defined in the movie itself
on(rollOver){
topmenuOut(5,"true","subm_guestbook","temp_guestbook");
}
on(rollOut){
if(_global.isShowing eq this){
loadSubMenu("del_","subm_guestbook","temp_guestbook");
topmenuIn(5,"true");
}
else{
topmenuIn(5);
}
}
on(release){
this.onRelease_("hello");
}
The problems lies in the fact that I have a movie called mov_subm_guestbook, exported for AS and first frame with the label: subm_guestbook. When you hover over the top level menu "guestbook", it will move from right to left then the submenu will be show (attached to guestbook via attachMovie) with the fade in and fade out effects working. However I cant access any of the two buttons in the submenu. I have defined both as buttons and nothing. I've used
Code:
Button.prototype.swapDepths = MovieClip.prototype.swapDepths;
to set the depth of the buttons within the attachedMovie to something high like 10000 using <instancename>.swapDepths(10000). But still no go.
I've tested out the submenu with "Test Scene" and the buttons work then, just not if I attach them to another movie with attachMovie.
I'm still new to actionscript (but I'm really familiar with other types of coding and scripting) and I would appreciate any help.
Thanks.
bungilo
View Replies !
View Related
[F8] URL Not Working On Buttons In Movie
When I try to assign a URL to a button, I get errors and only one of the five buttons work. See http://llhdirect.com/mos/08
Here's the error I keep getting:
**Error** Scene=Scene 1, layer=17seedsclick, frame=2:Line 1: Mouse events are permitted only for button instances
on (release) {
**Error** Scene=Scene 1, layer=17seedsclick, frame=2:Line 1: Syntax error.
17seedsclick.onRelease = function() {
**Error** Scene=Scene 1, layer=elimcfclick, frame=16:Line 1: Mouse events are permitted only for button instances
on (release) {
**Error** Scene=Scene 1, layer=llhclick, frame=30:Line 1: Mouse events are permitted only for button instances
on (release) {
**Error** Scene=Scene 1, layer=rcotrclick, frame=45:Line 1: Mouse events are permitted only for button instances
on (release) {
**Error** Scene=Scene 1, layer=warrpdaclick, frame=61:Line 1: Mouse events are permitted only for button instances
on (release) {
Total ActionScript Errors: 6 Reported Errors: 6
The each of the five web addresses in the movie are overlaid with a semi-transparent button. And to each button, I've applied this actionscript ..
on (release) {
getURL("the URL", "_blank");
}
View Replies !
View Related
Movie Clip Buttons Not Working
Hi I'm trying to load images into the MC called DropZone_mc, the button being used is a Movie clip, I'm just not sure whats wrong with the code
fallenangel_mc.onRelease=function(){
fallenangel_mc.onRelease.DropZone_mc.loadMovie ("portfolio/fallenangel.jpg");
}
Thanks in advance
View Replies !
View Related
Stopping All Buttons Working In A Movie?
Hi,
I would like to know if there is a way to completly stop all buttons working on a movie. The reason been is that they keep working underneath movies above them in a higher level. I have worked around this problem for ages now by taking the movie underneath to a section where the buttons are not there, but it looks visualy the same and holding that movie there till the user has unloaded the movie above it and wants to return.
Just would like to know if there is a more easier way of doing this. What im after is the best way to stop buttons working under movies in a higher level.
Thanks in advance.
Ritchie
View Replies !
View Related
Buttons Not Working In Loaded Movie
I have a container movie that loads in various movie clips.
Basically there are 4 different pages, each page containing text and buttons. Problem is that when I load in the new page, the buttons do not work.
My code is as follows:
Load_Page_btn.onRelease = function() {
container_mc.loadMovie("introduction.swf");
_level0.container_mc.intro_mc.web_link_btn.onRelea se = function() {
getURL("http://www.mediakitchen.co.uk", "_blank");
}
}
The Introduction.swf basically contains a movie clip called "intro_mc" within which is a button called "web_link_btn"
Any ideas why this button is not working?
Many thanks
View Replies !
View Related
Some Buttons Not Working In Movie Clip
I'm building a small 'table builder' app for a client. This is my first major project in flash and I've encountered something I cannot figure out for the life of me.
In the .fla below there's a movie clip 'scroller' it has buttons in it which load .png's to the main stage. Some of the buttons work, some don't.... I can't figure out why. Even when I duplicate a button sometimes it doesn't work.??? If I take a button that's not working in the movie clip and cut/paste onto the main timeline it ALWAYS works. I've been pulling my hair out over this for the last two days . I have even started the whole project from scratch just to try and find out where I went wrong... but to no avail..... Any help would be GREATLY appreciated. I'm stuck on a hump and I need some help to get off of it.
Here's a link to my file. I've stripped away all the styling elements so it should be pretty clean cut when you see it. Thanks for any help or guidance!
http://www.buddyscampfire.com/tableBuilder.zip
View Replies !
View Related
Buttons Not Working In LoadMovie Movie
What could be the reasons that buttons in a loadMovie .swf are not working, even though they work in the .swf file on its own?
I am using the following statements:
this.createEmptyMovieClip("container1",1);
container1.loadMovie("start.swf");
It is particularly peculiar, because other loaded movies with buttons using the same methods work fine.
BTW, the buttons relate only to the loaded .swf, not to the _parent.
Any generic suggestions?
Thanks,
Martin
View Replies !
View Related
Buttons On A Movie Clip Not Working
I have created a pull down menu with the help on this board.
Works great but there needs to be buttons on this pulldown.
When it is set up as an MC the buttons don't work.
Is there a work around to have the buttons work.
link
****
http://www.icanmarketyou.com/guys_wo...ontroller.html
code used to make the tab work
**********************
import mx.transitions.Tween;
import mx.transitions.easing.*;
tab1.onRollOver = tab2.onRollOver = OVER;
tab1.onRollOut = tab2.onRollOut = OUT;
tab1.y = tab1._y;
tab2.y = tab2._y;
function OVER(){
this.tw = new Tween(this,"_y",Strong.easeOut,this._y,650,1,true) ;
function OUT(){
this.tw = new Tween(this,"_y",Strong.easeOut,this._y,this.y,1,tr ue);
}
Any help on this would be greatly appreciated
thx
View Replies !
View Related
Buttons In Movie Clip Not Working...
Hi all----
---I've acctualy posted this question before. But nobody anwsered, so I thought I'd give it a shoot agian
Here's the thing. I did the infinite menu tutorial, and that works just fine. BUT I want the menu to stop when you roll over it... I got the AS for that
Code:
on (rollOver){
speed=0;
}
on (rollOut){
speed=1/100;
}
(thx "thesignX")
So now the menu stoped rolling side to side, but now the buttons don't work anymore dont realy get it... anybody
View Replies !
View Related
Buttons Within Movie Clip Not Working?
Hi,
Fallen into another pit of actionscript. This is what I have done. I have created a dynamic text box and called is scroller, and then created another and called that scroller1.
I have created some buttons on the same layer that have this code in them
Code:
on (release) {
loadText = new LoadVars();
loadText.load("welcome.txt");
loadText.load("welcome1.txt");
picture_holder.loadMovie("image_01.jpg");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.welcome;
scroller2.text = this.welcome1;
}
};
}
This all works fine. Since I have created an finite menu that has buttons within it, I had to place it on another layer. I added the same action script to it but changed a few stuff so it looked like this
Code:
on (release) {
loadText = new LoadVars();
loadText.load("flash.txt");
loadText.load("flash1.txt");
picture_holder.loadMovie("");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.flash;
scroller2.text = this.flash1;
}
};
}
Now when I test it, it doesn't work? I cannot see anything wrong in the actionscript, but is there something wrong about having it trying to load external text onto another layer?
View Replies !
View Related
Buttons In Called Movie Not Working :(
Hi all, been lurking/learning here for quite some time, but ive reached a point where im stumped and need to ask for help. Help!
Basically what I'm trying to do is build a site that acts as a container ala the transitions tutorial. The loaded movie has a easing content bar that displays information and is triggered by 3 buttons. The movie works fine by itself, but once loaded into the container none of the buttons work!
Here are the source files for the container and information page (the info page is the one misbehaving)
information page
container
Since I've only recently been digging into action scripting, my best guess is that the commands ive set for the easer is conflicting with the container.
onClipEvent (load) {
_y = 0;
div = 3;
}
onClipEvent (enterFrame) {
_y += (endY-_y)/div;
_root.butabout.onRelease = function() {
endY = 0;
};
_root.butfencing.onRelease = function() {
endY = -420;
};
_root.butfaq.onRelease = function() {
endY = -840;
};
}
I hope someone can shed some light on my problem, thanks for your time!
View Replies !
View Related
Buttons In Movie Clip Not Working...
Hi all----
---I've acctualy posted this question before. But nobody anwsered, so I thought I'd give it a shoot agian
Here's the thing. I did the infinite menu tutorial, and that works just fine. BUT I want the menu to stop when you roll over it... I got the AS for that
Code:
on (rollOver){
speed=0;
}
on (rollOut){
speed=1/100;
}
(thx "thesignX")
So now the menu stoped rolling side to side, but now the buttons don't work anymore dont realy get it... anybody
View Replies !
View Related
Buttons Within Movie Clip Not Working?
Hi,
Fallen into another pit of actionscript. This is what I have done. I have created a dynamic text box and called is scroller, and then created another and called that scroller1.
I have created some buttons on the same layer that have this code in them
Code:
on (release) {
loadText = new LoadVars();
loadText.load("welcome.txt");
loadText.load("welcome1.txt");
picture_holder.loadMovie("image_01.jpg");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.welcome;
scroller2.text = this.welcome1;
}
};
}
This all works fine. Since I have created an finite menu that has buttons within it, I had to place it on another layer. I added the same action script to it but changed a few stuff so it looked like this
Code:
on (release) {
loadText = new LoadVars();
loadText.load("flash.txt");
loadText.load("flash1.txt");
picture_holder.loadMovie("");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.flash;
scroller2.text = this.flash1;
}
};
}
Now when I test it, it doesn't work? I cannot see anything wrong in the actionscript, but is there something wrong about having it trying to load external text onto another layer?
View Replies !
View Related
Buttons In A SwapDepthed Movie Not Working
Can summon tell me why my buttons within a movieclip which has swapDepth affecting it don't work?
I have 3 movie clips with tabs and I'm using
this.swapDepths(2)
to bring them to the front when their tab is clicked. However, any buttons within the movie clip no longer work.
I've tested the movie clips without swapDepth and the buttons work fine.
Please help! I'll be eternally grateful!
View Replies !
View Related
Movie Instances In Test Not Working With Buttons
hi, i have a problem with testing the movie... i have the main scene, "homepage" then a movie instance "square" then another movie instance within that movie instance, "artpage".... i have a link in "artpage" that is supposed to take the viewer back to "homepage"... when i test the movie, it goes back to the homepage background however the buttons do not show up... the buttons though are part of "square," the first movie instance... the only script i used on the button in "artpage" is
On (release)
gotoAndStop ("Homepage," "1")
is this right?? any suggestions?
View Replies !
View Related
Stopping Buttons Working Under Movie Clips
On my stage I have a button, when you click it it pops up a window ( a movie clip using set visibility)
This new window has buttons in it, but the original button behind still 'shows through'. You cant see it but the cursor changes as you hit it so looks confusing.
Can this be stopped?
View Replies !
View Related
Movie Clip Buttons Not Working Once On Server
I've uploaded my movie to the server, and now it wont load the movie clips that are linked to my buttons. It works fine in flash when I test movie, but not on the sever.
I have uploaded the movie clips to the same folder on the server, just like they were in the same folder in flash, but for some reason it wont load them.
I used this code:
on (release) {
_root.contents.loadMovie("aboutus.swf");
}
On my button action (along with "contact.swf", "products.swf", etc.) and I have them all named correctly and in the same folder on the server as my main flash movie but the darned things wont call the movies up. Can someone tell me what I am doing wrong? Thanks in advance.
Ken
View Replies !
View Related
Buttons Not Working Inside Movie Clips
Hey
I'm in the process of creating a Flash banner for my site, and I have a problem. When I put a button (one that links to a particular page) INSIDE a movie clip it works fine, but when I add a behavior to that movie clip, the buttons inside dont work anymore. Any help?
Thanks
View Replies !
View Related
Multiple Movie Clips As Buttons Not Working
I've got some code that partly works, but not quite getting the final result.
It is a double loop through some xml that creates multiple arrays of multiple movie clips as buttons on the stage. Here is the code:
Code:
function buildCatNav() {
_global.subLength = xmlSubFinder.childNodes[0].childNodes.length;
for (i=0; i<_global.subLength; i++) {
var yStart:Number = 480;
var xStart:Number = 80;
var margin:Number = 4.4;
_global["catLength"+i] = xmlSubFinder.childNodes[0].childNodes[i].childNodes.length;
_level0.container05["cat"+i+"Array"] = [];
for (x=0; x<_global["catLength"+i]; x++) {
_level0.container05["itemID"+x] = xmlSubFinder.childNodes[0].childNodes[i].childNodes[x].attributes.itemID;
_level0.container05["itemName"+x] = xmlSubFinder.childNodes[0].childNodes[i].childNodes[x].childNodes[2].firstChild.nodeValue;
itemID = _level0.container05["itemID"+x];
_level0.container05.createEmptyMovieClip(["catNav"+itemID], _level0.container05.getNextHighestDepth());
_level0.container05.createEmptyMovieClip(["catNav"+itemID]+"_tmp", _level0.container05.getNextHighestDepth());
_level0.container05["catNav"+itemID].loadMovie("images/jobs/"+this["itemName"+x]+"_thumb.jpg", _level0.container05["catNav"+itemID].getNextHighestDepth());
_level0.container05["catNav"+itemID]._y = yStart;
_level0.container05["catNav"+itemID]._x = xStart;
xStart = xStart+35;
_level0.container05["catNav"+itemID].onPress = catpress;
_level0.container05["catNav"+itemID].onRollOver = roller;
_level0.container05["catNav"+itemID].onRollOut = rolloff;
_level0.container05["catNav"+itemID].ivar = x;
_level0.container05["catNav"+itemID].cvar = 1;
_level0.container05["cat"+i+"Array"].push(_level0.container05["catNav"+itemID]);
//_level0.container05["catNav"+itemID]._visible = false; **NOT WORKING**
_level0.container05["catNav"+itemID]._alpha = 0;
}
}
}
Things that don't work:
1. Last line of code I have to use _alpha to hide the buttons because _visible is not working? But if I only change the alpha then you will still be able to click an invisible button. How can I set the _visible to false on each button?
2. Although they are supposed to be buttons, they dont have work when clicked. The mouse doesn't change to a hand when hover over as if it were a proper button. The onPress method doesnt seem to work. What do I need to do to get this button to work?
Thanks in advance for any help you can give.
Mark
View Replies !
View Related
2 Of 4 Buttons Stop Working When Test Movie
I have a main menu consisting of 4 buttons. They work as expected when Enable Simple buttons is turned on. However, when I press Test Movie, the 1st and 4th buttons do not work. The mouse doesn't change states over them, it's as though they aren't there. I decided to recreate the buttons in a separate file and try again. All buttons worked as expected when test movie is called. Great. I then port all four buttons back into my project and the same thing as before happens. I don't believe it's the code, but here is the code I'm using for the buttons, in any case:
*******************
stop();
function onHomeClick(evt:MouseEvent):void {
gotoAndStop("home");
}
home_btn.addEventListener(MouseEvent.CLICK, onHomeClick);
function onAboutClick(evt:MouseEvent):void {
gotoAndPlay("about");
}
about_btn.addEventListener(MouseEvent.CLICK, onAboutClick);
function onWorkClick(evt:MouseEvent):void {
gotoAndPlay("work");
}
work_btn.addEventListener(MouseEvent.CLICK, onWorkClick);
function onContactClick(evt:MouseEvent):void {
gotoAndPlay("contact");
}
contact_btn.addEventListener(MouseEvent.CLICK, onContactClick);
************************************
Any help or productive thoughts would be appreciated.
View Replies !
View Related
Stupid Q Re: Buttons Not Working Within A Movie Clip
This is one of those things that happens and I rack my brain and overlook something stupid.
I have a MC that contains a few buttons. When I enable simple buttons in FlashMX, the button states function when I am editing the MC.
However, when I export the swf file, or test the file (CTRL+ENTER), the button actions do not work.
It seems to me that this should not be happening.
View Replies !
View Related
Buttons Within Movie Clip With Actionscript Not Working
I have a mc which, on rollOver, scrolls down to a visible part of the screen and has a menu of say 10 options in it.
Im using the tweening prototypes available at http://laco.wz.cz/tween to move the mc down on rollOver. Here is my code on the MC:
on (rollOver){
this.tween("_y",30,.5,"easeOutSine");
}
on (rollOut){
this.tween("_y",-321,2,"easeOutSine");
}
simple. Now when I swf it, I roll over the mc, it scrolls down to where it should be, but no buttons (or other mc's with actionscript) works within the mc.
Is there a way around this?
Thanks!
View Replies !
View Related
Buttons Not Working On External Movie Load
Hello all,
I am loading an external mc into my main movie, it comes in fine and all and the swf works great on its own but once loaded into my main mc the buttons don't any ideas. I don't get it because the buttons work fine if you load the swf on its own but they don't work when it loaded into my main movie??? Thanks for the help.
the werid thing is it works if I use the script :
loadMovieNum("file.swf",1) and this work fine but when I want to use the script loadMovie("file.swf" , "instance_mc") the buttons wont work on that script for some reason. I am confused why does it work when I load it into a level and not when I load it into a target???? Am I missing something in the AS....Please help Thanks
Happy Holidays
View Replies !
View Related
Buttons Not Working On External Movie Load
Hello all,
I am loading an external mc into my main movie, it comes in fine and all and the swf works great on its own but once loaded into my main mc the buttons don't any ideas. I don't get it because the buttons work fine if you load the swf on its own but they don't work when it loaded into my main movie??? Thanks for the help.
the werid thing is it works if I use the script :
loadMovieNum("file.swf",1) and this work fine but when I want to use the script loadMovie("file.swf" , "instance_mc") the buttons wont work on that script for some reason. I am confused why does it work when I load it into a level and not when I load it into a target???? Am I missing something in the AS....Please help Thanks
Happy Holidays
View Replies !
View Related
Buttons Not Working On External Movie Load
Hello all,
I am loading an external mc into my main movie, it comes in fine and all and the swf works great on its own but once loaded into my main mc the buttons don't any ideas. I don't get it because the buttons work fine if you load the swf on its own but they don't work when it loaded into my main movie??? Thanks for the help.
Happy Holidays
View Replies !
View Related
Movie Clip Buttons Not Working Any Ideas
I have the following script over 3 buttons they are in one frame in there own layer with the below script in a actions layer above. This does exactly what i want however, i am struggling with actualy making the buttons work.
I need it to roll over and then it plays a mc later down the timeline on another layer obviously and then click go to a new page later in the timeline ore a new scene have not yet decided yet.
Any ideas am sure its simple but i cannot get it to work, i have the curser changing but no click through.
Thanks for any advice or pointing in the right direction.
ActionScript Code:
stop();
targetmc = "nomovieClip";
function fadeIt (mcName, alphaPower)
{
mcName.targAlpha = alphaPower;
}
_root.menuBar.onEnterFrame = function ()
{
if(_root.targetmc == "home")
{
_root.fadeIt(_root.contact, 20);
_root.fadeIt (_root.work, 20);
_root.fadeIt (_root.home, 100);
}
if(_root.targetmc == "contact")
{
_root.fadeIt (_root.home, 20);
_root.fadeIt (_root.work, 20);
_root.fadeIt (_root.contact, 100);
}
if(_root.targetmc == "work")
{
_root.fadeIt (_root.home,20);
_root.fadeIt (_root.contact, 20);
_root.fadeIt (_root.work,100);
}
if(_root.menuBar.hitTest(_root._xmouse, _root._ymouse) == true)
{
_root.fadeIt (_root.menuBar, 0);
}
else
{
_root.fadeIt (_root.home, 100);
_root.fadeIt (_root.work, 100);
_root.fadeIt (_root.contact, 100);
}
}
_root.home.onLoad = function ()
{
_root.home.targAlpha = 100;
}
_root.home.onEnterFrame = function ()
{
cAlpha = _root.home._alpha;
difAlpha = cAlpha-_root.home.targAlpha;
setProperty(_root.home,_alpha,cAlpha-(difAlpha/5));
if(this.hitTest(_root._xmouse, _root._ymouse) == true)
{
_root.targetmc = "home";
}
}
_root.contact.onLoad = function ()
{
_root.fadeIt (_root.contact, 100);
}
_root.contact.onEnterFrame = function()
{
cAlpha = _root.contact._alpha;
difAlpha = cAlpha-_root.contact.targAlpha;
setProperty(_root.contact,_alpha,cAlpha-(difAlpha/5));
if(this.hitTest(_root._xmouse, _root._ymouse) == true)
{
_root.targetmc = "contact";
}
}
_root.work.onLoad = function()
{
_root.fadeIt(_root.work, 100);
}
_root.work.onEnterFrame = function ()
{
cAlpha = _root.work._alpha;
difAlpha = cAlpha-_root.work.targAlpha;
setProperty(_root.work,_alpha,cAlpha-(difAlpha/5));
if(this.hitTest(_root._xmouse, _root._ymouse) == true)
{
_root.targetmc = "work";
}
}
View Replies !
View Related
[CS3] Buttons In Dynamic Movie Clip Not Working Properly
I am loading a movie clip into an empty holder movie clip in my main movie. There are navigation buttons in the external movie clip that are not functioning properly - when a user hits the forward arrow, it advances to the next frame label. But if the user's mouse stays in the exact same location, the button becomes inactive and the user must move the mouse slightly to be able to click on the navigation button again to advance to the next frame label. It's very strange - I'm not sure why the button becomes inactive if the mouse stays in the same position.
If you would like to view the problem, you can see it at: http://www.focaldesigns.com/mollusk
Click on the green link on the right hand side "Feature test"
Then use the forward and backward navigation arrows in the lower right side of the feature, but if you keep your mouse in the same spot, the buttons lose their over state and clicking on them doesn't work, until you nudge the mouse a bit.
Any help would be greatly appreciated!
View Replies !
View Related
Problems With Movie Clip Buttons Working After Being Clicked Once
Hi,
This is my first post and I'm having some issues in making my buttons work correctly.
I have a movie clip (interiorMenu) menu with movie clip buttons nested inside. I'm using the example here. http://www.actionscript.org/showMovie.php?id=564
The problem is that the buttons work fine the first time around and takes the user to the appropriate frame label on the root level but if I try to click a button for a second time, after another button has been select, they only show the rollover and the down click but no longer take the user where they need to go.
I'm just learning AS and I'm sure my code is less than pretty. I've included a stripped down fla in hopes of a possible solution. One more thing, I realize the interiorAboutUs button is a bit different than the other buttons and probably won't work the same. Maybe I need an if/else statement there?
Thanks for any help anyone can provide.
View Replies !
View Related
Working Buttons Inside A Draggable Movie Clip, Lil Help Please
First I just want to introduce myself and say Hi to everyone, This is the first forum I joined and I am an actionscript noobie so if I seems a bit "slow" I hope to get into the groove with all your valuable help. Anyway, I'm curious. I followed the swapDepth tutorial with the draggable movie clips. Still I was wondering how to next another button within the movie clip. It seems that the only onRelease code only work on the draggable object and not the button I nested inside my movie
Basically I have an instance of a poloroid photo and if you drag them around, the photo fades in, and a little post-it note appears on the photo and give you the title. Then when you clock on another photo, the first photo fades back to it original state,
I would like to add a button into one the the clips with a link to my resume but I can't seem to find the VooDoo to Do Do it. Can one of you Flash GODS possibly help?
I'll trade you a really good fried chicken recipe for the answer to my probelm
THANKS!
-A
View Replies !
View Related
Buttons Inside Scrollpane Not Working In Main Movie It Is Loaded Into
Caio rigazzi,
I have a scrollpane with a movie that contains a movie clip in it. That movieclip contains buttons which are capable of bringing up a pop-up menu and should display a sample image when "rolled over". The problem is when I use :
on (rollOver) {
_root.rollover.gotoAndPlay ("1FLUX");
}
on (rollOut) {
_root.rollover.gotoAndPlay ("1BACK");
}
The "roll over" function does not work in the main movie this scroll pane is loaded into.
Basically, the scroll bar in a swf named VIDEO, is loaded into a DESIGNWORK1.fla, which is loaded into a main video: INDEX12
(courtesy of the Transitions between External SWFs( 1, 2)
How can I get this scroll bar to work?
aswg
View Replies !
View Related
Buttons Actions On External SWF's Not Working When Loaded Into Main Movie
Hello,
Sorry to post 2 in a row, but they are different problems. Here is my problem:
I have a main menu that is set up like Kirupas smooth transition between external .swf tutorial. Everything loads smoothly. The problem occurs when the external .swf loads, the buttons on that .swf do not function. If you could take a peak at the 2 .flas I have them posted at this address, as they are too large to post! Thank you very much!
http://www.ryanhohman.com/problem.zip
View Replies !
View Related
Scenes Not Working
I am doing a site where I'm loading in jpgs and have script on my forward and back buttons....(a gallery)
forward button
on (release) {
if (counter<20) {
counter = counter+1;
loadMovie("music/image0"+counter+".jpg", "_root.loadPic");
}
}
back button
on (release) {
if (counter>1) {
counter = counter-1;
loadMovie("music/image0"+counter+".jpg", "_root.loadPic");
}
}
So it tells the viewer they are on pic 5 of 15 etc...and loads the pics back and forth....
which is all working cool when you view each scene individually...but when I test movie, the scenes don't even show. They flash up for a second. I thought it was a button problem, but all the script is fine.
I then thought it was because each scene only had one frame (obviously I have stops on them), but when I extended the frames nothing changed.
?? Any ideas?
I've att the file - but obviously I've not attatched all the external images - so they won't work.
thanks guys!
View Replies !
View Related
|