[flash8] Actionscript Conflict - Links Inside Movie Clip Disabled?
Hello,Long time visitor, first-time poster.I have an issue in an animation using the advanced button animation tutorial from kirupa.com, in that, I have a little window popup at the end of the animation with some links in it. So,The code that handles the animation on the movie clip (used as a button) is:stop(); this.onEnterFrame = function(){if(rewind == true){prevFrame();}} this.onRollOver = function(){rewind = false;play();} this.onRollOut = function(){rewind = true;} And in turn, I have static text inside that movie clip with the "Link" in the property inspector with a URL in it, however, these are not working. I have read that it is in relation to the functions for the movie clip - how do I overcome this issue?Thanks,Ian
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-11-2008, 03:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[flash8] Actionscript Conflict - Links Inside Movie Clip Disabled?
Hello,
Long time visitor, first-time poster.
I have an issue in an animation using the advanced button animation tutorial from kirupa.com, in that, I have a little window popup at the end of the animation with some links in it. So,
The code that handles the animation on the movie clip (used as a button) is:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
And in turn, I have static text inside that movie clip with the "Link" in the property inspector with a URL in it, however, these are not working.
I have read that it is in relation to the functions for the movie clip - how do I overcome this issue?
Thanks,
Ian
Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?
Actionscript Wont Work While Inside Movie Clip
i found this very small and very nice actionscript which tweens objects.
the script works fine when it isnt in a movie, but as soon as i place all the layers inside a movie clip, it ceases to work.
is there something i need to tell the script to allow it to work inside a movie clip? its a really simple bit of code which i can post if it makes answering this any easier.
thanks
How To Run Some Actionscript Inside A Dynamically Created Movie Clip?
Hey Flashkit,
First off forgive me if someone has posted a message on this subject already because I haven't found it, yet.
I would like to create some dynamically created movie clips in a main movie that absorb, receive, or have embedded in them (I do not know the word to use) some actionscript that can be called over and over while the newly created movie clips play through their own timelines.
Is this possible? How can I put some actionscript inside a dynamically created movie clip? I’m interested in using the code on the first frame, perhaps on enter frame or actually anywhere in the move clip.
Thanks,
- Jimmy
Playing A Frame(s) Inside A Movie Clip From Actionscript On The Main Timeline
hello i was wondering if someone could tell me the correct syntax for playing a frame(s) inside a movie clip from actionscript on the main timeline.
I have tried: this.movie_clip.gotoAndStop("frame_name");
i don't want it to play, just stop on the frame (which does not contain any script).
also: gotoAndStop("this.movie_clip", "frame_name");
and: gotoAndStop(this.movie_clip, "frame_name");
please help!
thanks in advance
Al
[Flash8] W/S Key Conflict?
When I hold the W key and S key simultaneously, neither the A key nor D key will respond. However, when I hold A and D simultaneously, either W or S will respond. No combinations of W/A/S/D where W and S are already down seem to work, besides W and S alone.
I would like to get this to work correctly for games, but the error seems very basic. What's going on?
I have attached the file, which is very simple - 4 MCs that change color if their key is down. There is no other actionscript in the file.
Odd Movie Clip Conflict
Hi all:
I hope I can communicate my problem without posting a .fla because I can't do that due to NDA agreements so here goes.
I have an xml file that populates a vertical menu in Flash dynamically and that works great. The menu in this case has 10 buttons that are created.
Elsewhere in the program I have a button that creates a duplicate of a movie clip and scales it up by a percentage. When I test the movie (meaning I click on the button to scale the object up) the second button instance created in my dynamic menu disappears? Odd. All of the other instances stay up and work as adverstised. It is the second button that disappears.
I have checked all instance names in all the movie clips and buttons and I just can't find a conflict.
Is there some wierd thing with duplicatemovieclip that I am not aware of? I think this is the problem because a generic button with a geturl behaviour works fine. Meaning all the dynamic menu stays put.
I know this is hard to work through, so I appreciate any thoughts.
Thanks,
1 Movie Clip Controlls 2, But Have Conflict
Using Flash 5.
I have 12 movie clips. Each controlls 2 different movie clips (not of the 12).
Example: blueMC controlls aMC which is a static label, and bMC - a mini movie.
What I want:
When the mouse is over blueMC, aMC (a label) becomes visible, and remains visible while bMC (an animation) plays. Both aMC and bMC need to remain visible if the mouse leaves blueMC. aMC and bMC only disappear if the mouse is over a different controlling movie clip like redMC which controlls it's own label and mini movie (aredMC and bredMC).
What actually happens:
When the mouse is over blueMC, aMC appears. When the mouse leaves blueMC, aMC disappears and bMC plays. bMC disappears only if the mouse is over blueMC a second time.
The actions so far:
onClipEvent (enterFrame) {
if (_root.blueMC.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.aMC._visible = true;
_root.bMC.gotoAndPlay(1);
} else {
_root.aMC._visible = false;
}
}
Links Inside A Draggable Clip
Ok here's my problem...
I have a MC on stage that looks like a Newspaper page, where the content of the page (about us, gallery,contact us) appear like headings on the page. The whole page is draggable so that you could drag the page around to go to specific areas. The MC also contains clickable links inside it( contact us section has an email id which when clicked opens Outlook Express). Here's the AS i used to make the MC draggable..
newspaper_mc.onPress = function() {
startDrag(this);
};
newspaper_mc.onRelease = function() {
stopDrag();
};
newspaper_mc.onReleaseOutside = function() {
stopDrag();
};
When i hover the mouse over the links, they don't work,i.e. the cursor doesnt change to the hand icon..
Any help will be appreciated...
P.S. I'm Using Flash 8
Links Inside A Draggable Clip
Ok here's my problem...
I have a MC on stage that looks like a Newspaper page, where the content of the page (about us, gallery,contact us) appear like headings on the page. The whole page is draggable so that you could drag the page around to go to specific areas. The MC also contains clickable links inside it( contact us section has an email id which when clicked opens Outlook Express). Here's the AS i used to make the MC draggable..
newspaper_mc.onPress = function() {
startDrag(this);
};
newspaper_mc.onRelease = function() {
stopDrag();
};
newspaper_mc.onReleaseOutside = function() {
stopDrag();
};
When i hover the mouse over the links, they don't work,i.e. the cursor doesnt change to the hand icon..
Any help will be appreciated...
P.S. I'm Using Flash 8
Links Inside A Draggable Clip
Ok here's my problem...
I have a MC on stage that looks like a Newspaper page, where the content of the page (about us, gallery,contact us) appear like headings on the page. The whole page is draggable so that you could drag the page around to go to specific areas. The MC also contains clickable links inside it( contact us section has an email id which when clicked opens Outlook Express). Here's the AS i used to make the MC draggable..
newspaper_mc.onPress = function() {
startDrag(this);
};
newspaper_mc.onRelease = function() {
stopDrag();
};
newspaper_mc.onReleaseOutside = function() {
stopDrag();
};
When i hover the mouse over the links, they don't work,i.e. the cursor doesnt change to the hand icon..
Any help will be appreciated...
P.S. I'm Using Flash 8
Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.
This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);
But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.
I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.
If anybody could help, I would appreciate it. Thanks.
Imbedded Links Being Disabled - Help
I'm new to this, so I'm not sure if this should be posted here or in the actionscript forum...
I've developed several dress up games which I distribute to different gaming sites so that they can feature my game and I can, in return, recieve some traffic from them. I've put some link buttons in my games but it seems they are either being disabled by the gaming sites webmasters or I'm doing something wrong.
I need to know if I"m doing something wrong with my links and if I am, how to fix it. Or I need to know if they are disabling my links how I can stop it?
An example of an original game from my site is here:
http://www.dressupcraze.com/DressUp/DUCSwimm08.html
And here it's posted on another site:
http://www.girlsgogames.com/game/Rea...-Dress-Up.html
Any help, advice, anything....would be so helpful! Thank you.
[F8] Help With Loading Images/conflict From Unload/load Movie Clip
The situation > I'm loading imaged into my pic loader which currently mask under shape so that the image cropped to fit my shape. The image is loaded via the movie clip loader class from a path inputed from an array of stings with the path to to image. The image load into the mask pic loader masked/cropped by a shape which is inside another movie clip which has buttons inside of it. This movie clip pops up when i click and image or when i click and image and then input a password.
The problem > is that all of this works fine until I unload this swf and load another swf then return back to the original swf. Then when i try to load and image or click any button that is inside of my move clip with the pic loader they don't function any more. I wold assume this is a problem of simple not scoping out thing correctly but traces reveal that doesn't seem to be the case. Note this only happens when I unload the swf, load another one, unload that one and then reload the swf i started from otherwise it works fine.
Now for my code - I believe I included everything applying to my question.
-------------------------------------
Code:
for (a=1; a<8; a++) {
this['dlbtn'+a].id = a;
this['dlbtn'+a].onRelease = function() {
dlbnum = this._name.charAt(5);
trace(this);
if (dlbnum>2) {
bigdisplayctrl(true);
rollOutBtn(this);
fader.alphaTo(60,.5);
entrcode();
} else {
if (this.id == 1) {
fader.alphaTo(60,.5);
getBigDisplay(1);
rollOutBtn(dlbtn1);
//bigdisplay._x = this._x;
bigdisplayctrl(false);
trace("dlbnnum"+dlbnum);
} else if (this.id == 2) {
getRecipeCardDisplay();
}
/*//--------DOWNLOAD BUTTONS------------------
dlbtn1.onRelease = function() {
fader.alphaTo(60,.5);
getBigDisplay(1);
rollOutBtn(dlbtn1);
//bigdisplay._x = this._x;
bigdisplayctrl(false);
trace("dlbnnum"+dlbnum);
};
//trace(a)
};
this['dlbtn'+a].onRollOver = function() {
rollOverBtn(this);
};
this['dlbtn'+a].onRollOut = function() {
rollOutBtn(this);
};
}
bigdisplay._xscale = 0;
bigdisplay._yscale = 0;
fader._alpha = 0;
var downloads:Array = new Array('cornwall.gif', null, '2.jpg', '3.jpg', '4.jpg',
'5.jpg', '6.gif');
bigdisplay.closebtn.onRelease = function() {
tracebox_txt.text = "bigdisplayclosebtn";
closeDisplay();
};
function getDownloadPreview(downloadID) {
tracebox_txt.text = "getDownloadPreview";
trace('downloadID: '+downloadID);
if (downloadID != 2) {
dlpath = 'downloadimg/'+downloads[downloadID-1];
trace(dlpath);
//var container:MovieClip
var container:MovieClip = bigdisplay.picloader;
bigdisplay.createEmptyMovieClip("container",0);
//pictest_mc
//
//bigdisplay.picloader;
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(dlpath,container);
//bigdisplay.picloader.loadMovie(dlpath);
getCorrectDepths(bigdisplay);
bigdisplay.scaleTo(100,1);
tracebox_txt.text = "getDownloadPreview 2 "+dlpath;
}
}
function onLoadInit(mc:MovieClip) {
trace("onLoadInit: "+mc);
tracebox_txt.text = "onLoadInit: "+mc;
}
function onLoadError(mc:MovieClip) {
trace("onLoadError: "+mc);
tracebox_txt.text = "onLoadErro: "+mc;
}
function onLoadComplete(mc:MovieClip) {
trace("onLoadComplete: "+mc);
tracebox_txt.text = "onLoadComplete: "+mc;
}
function getBigDisplay(id:Number):Void {
tracebox_txt.text = "getBigDisplay";
disableAllBtns();
getDownloadPreview(id);
trace("dloads"+downloadID-1);
bigdisplay.swapDepths(0);
trace('display id: '+id);
if (id == 0) {
//donothing
} else if (id == 1) {
} else if (id == 2) {
} else if (id == 3) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/coloringpage.pdf", "_blank");
closeDisplay();
};
} else if (id == 4) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/doorhanger.pdf", "_blank");
closeDisplay();
};
} else if (id == 5) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/wordsearch.pdf", "_blank");
closeDisplay();
};
} else if (id == 6) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/postcard.pdf", "_blank");
closeDisplay();
};
} else if (id == 7) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/screensaver.zip", "_blank");
closeDisplay();
};
}
}
function closeDisplay() {
fader.alphaTo(0,.5);
this._parent.bigdisplay.scaleTo(0,1);
bigdisplay.scaleTo(0,1);
enableAllBtns();
}
Help With Loading Images/conflict From Unload/load Movie Clip
The situation > I'm loading imaged into my pic loader which currently mask under shape so that the image cropped to fit my shape. The image is loaded via the movie clip loader class from a path inputed from an array of stings with the path to to image. The image load into the mask pic loader masked/cropped by a shape which is inside another movie clip which has buttons inside of it. This movie clip pops up when i click and image or when i click and image and then input a password.
The problem > is that all of this works fine until I unload this swf and load another swf then return back to the original swf. Then when i try to load and image or click any button that is inside of my move clip with the pic loader they don't function any more. I wold assume this is a problem of simple not scoping out thing correctly but traces reveal that doesn't seem to be the case. Note this only happens when I unload the swf, load another one, unload that one and then reload the swf i started from otherwise it works fine.
Now for my code - I believe I included everything applying to my question.
-------------------------------------
Code:
for (a=1; a<8; a++) {
this['dlbtn'+a].id = a;
this['dlbtn'+a].onRelease = function() {
dlbnum = this._name.charAt(5);
trace(this);
if (dlbnum>2) {
bigdisplayctrl(true);
rollOutBtn(this);
fader.alphaTo(60,.5);
entrcode();
} else {
if (this.id == 1) {
fader.alphaTo(60,.5);
getBigDisplay(1);
rollOutBtn(dlbtn1);
//bigdisplay._x = this._x;
bigdisplayctrl(false);
trace("dlbnnum"+dlbnum);
} else if (this.id == 2) {
getRecipeCardDisplay();
}
/*//--------DOWNLOAD BUTTONS------------------
dlbtn1.onRelease = function() {
fader.alphaTo(60,.5);
getBigDisplay(1);
rollOutBtn(dlbtn1);
//bigdisplay._x = this._x;
bigdisplayctrl(false);
trace("dlbnnum"+dlbnum);
};
//trace(a)
};
this['dlbtn'+a].onRollOver = function() {
rollOverBtn(this);
};
this['dlbtn'+a].onRollOut = function() {
rollOutBtn(this);
};
}
bigdisplay._xscale = 0;
bigdisplay._yscale = 0;
fader._alpha = 0;
var downloads:Array = new Array('cornwall.gif', null, '2.jpg', '3.jpg', '4.jpg',
'5.jpg', '6.gif');
bigdisplay.closebtn.onRelease = function() {
tracebox_txt.text = "bigdisplayclosebtn";
closeDisplay();
};
function getDownloadPreview(downloadID) {
tracebox_txt.text = "getDownloadPreview";
trace('downloadID: '+downloadID);
if (downloadID != 2) {
dlpath = 'downloadimg/'+downloads[downloadID-1];
trace(dlpath);
//var container:MovieClip
var container:MovieClip = bigdisplay.picloader;
bigdisplay.createEmptyMovieClip("container",0);
//pictest_mc
//
//bigdisplay.picloader;
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(dlpath,container);
//bigdisplay.picloader.loadMovie(dlpath);
getCorrectDepths(bigdisplay);
bigdisplay.scaleTo(100,1);
tracebox_txt.text = "getDownloadPreview 2 "+dlpath;
}
}
function onLoadInit(mc:MovieClip) {
trace("onLoadInit: "+mc);
tracebox_txt.text = "onLoadInit: "+mc;
}
function onLoadError(mc:MovieClip) {
trace("onLoadError: "+mc);
tracebox_txt.text = "onLoadErro: "+mc;
}
function onLoadComplete(mc:MovieClip) {
trace("onLoadComplete: "+mc);
tracebox_txt.text = "onLoadComplete: "+mc;
}
function getBigDisplay(id:Number):Void {
tracebox_txt.text = "getBigDisplay";
disableAllBtns();
getDownloadPreview(id);
trace("dloads"+downloadID-1);
bigdisplay.swapDepths(0);
trace('display id: '+id);
if (id == 0) {
//donothing
} else if (id == 1) {
} else if (id == 2) {
} else if (id == 3) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/coloringpage.pdf", "_blank");
closeDisplay();
};
} else if (id == 4) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/doorhanger.pdf", "_blank");
closeDisplay();
};
} else if (id == 5) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/wordsearch.pdf", "_blank");
closeDisplay();
};
} else if (id == 6) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/postcard.pdf", "_blank");
closeDisplay();
};
} else if (id == 7) {
bigdisplay.dlbtn.onRelease = function() {
getURL(canonpath+"downloads/screensaver.zip", "_blank");
closeDisplay();
};
}
}
function closeDisplay() {
fader.alphaTo(0,.5);
this._parent.bigdisplay.scaleTo(0,1);
bigdisplay.scaleTo(0,1);
enableAllBtns();
}
[F8] IE Links To Other Pages Disabled After Embedding Flash
I embedded a flash video on an html page and then tried to link to another html page and it won't work in IE but does work with Firefox & Opera. This happened to me previously with a website and I had to include the flash on each page for the page links to work. PLEASE HELP!
Thank you.
[Flash8] Trying To Get AS To Play From A Movie Clip
Hello, This is my first post.
I am having the hardest time trying to get AS to play from within a MC called "content_002".
Please remember that this AS is an XML-Driven sub-menu that successfully works on it's own. When I tie it into a MC, it doesn't like to work with my shifting main-menu.
For this post, I'll first send the "combined" .fla file then I will post them apart to see if anyone can find a better way.
Any assistance would be greatly appreciated.
Thanks!
Finkster
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
Flash8 Help Needed Sound Issues In Movie Clip
So... not completely new to Flash 8 - just new to having to explain anything.
I have a movie that plays on stage, there are actually several and they all work fine (sound and everything). One in particular, the sound stops in the middle of the movie and I just cannot figure out why. I have tried everything I can think of for the past two days to no avail! The regular Quicktime movie definitely has sound all the way through and I have checked so many times - HA! I am totally frustrated and begging for any suggestion!! please? Thanks so much!
Flash8: Passing Variables When A Movie Clip Loads
I have a function set up on the main timeline of a movie. As the user passes through the various movie clips in the Flash piece, I am passing variables to the function which forwards them to an external web page. This functionality has worked in previous situations where the function was "triggered" by a mouse event (i.e onRelease). I am trying to get this same functionality to work when a movie clip(s) are loaded.
The code I am using at the (movie clip level) is:
onload=function () {
_root.sendVars("variablename","variablevalue");
}
I have tried various iterations with this code both within the move clip itself, and attached to the clip but no luck...
Any clues??
TIA
- Shawn
Can't Seem To Get The Paths Correct When It's Occuring Inside A Movie Clip Inside
main movie on _level0, navigation loads into _level1, icon is dragged and dropped loading another samples.swf into _level2.
drag and drop works fine running outside of main movie but not inside main movie. i'm assuming i've messed up paths.
i tried to include the code (twice now) but it keeps cutting off my message.
it's an action on a button inside a movie clip inside a movie loaded into _level1. it needs to reference a movie clip on the main timeline of the _level1 movie. what would the path be?
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Flash8: Duplicate Movie Clip With An External Imaged Loaded In It.possible?
Hi there! This is my problem:
I have a movie clip in which I loaded an external JPG to. Well, this movie clip works as a thumbnail and, as I click in it, I want the thumb's image to be loaded ("again") in another movie clip. duplicateMovieCLip does not seem to work.
I don't want to load the image twice (as it strikes me as bandwidth waste..). Does this make sense? Or must I be load the image twice? (of course..I could use smaller images for thumbnails..) Anyways..this is what I need
thanks in advance!
Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.
Is this too confusing?
please help.
thanks
Load A Movie Inside Blank Clip From Inside Itself?
Hi,
I am working on a site and I have a blank movie clip called contents. I have a button that when clicked, loads a swf (2.swf)inside of it. then I have a button in 2.swf, when clicked, I want it to load a swf in contents (the same movie clip that it was loaded into). I have tried using _root. and _parent. infront of the loadmovie code, but those aren't working. What code would I use to do this?
Thanks, Matt
Buttons/links Inside Of Movie Clips
sorry, but i'm actionscript challenged and it's been a LONG day...
i have a button inside of a movie clip, and when you click the button, it's supposed to go to another scene. i tried using the gotoAndPlay (scene, frame) option, but it didn't work for obvious reasons.
is there something i'm supposed to put infront of gotoAndPlay?
Creating Links Inside Lee's Movie Buttons?
Hi,
Having some trouble linking to the buttons I have now created following Lee's 'creating animated buttons' tutorial. Looks great but no good if I can't link to them. I tried some onMouseDown commands with getURL but just comes up with an adobe warning that an SWF file is trying to communicate with the net enabled location. I'm probably writing it wrong so anyone's help would be appreciated.
Cheers,
Graeme
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.
Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?
Thanks!
Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.
Attach Code
var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc
stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}
Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.
1. A main movie clip that has a target empty movie clip where an external swf loads.
2. A menu movie clip that is built from button symbols and has its own timeline.
3. The external movie.
When a user clicks on the menu, the external swf loads into the empty movie clip target. This part works fine. Here's the code:
on (release) {
loadMovie ("Lesson1.swf", "_root.container");
}
I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads. I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.
Any help you can offer will be much appreciated.
Thanks
Sheila
Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)
I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having
on(release) {
gotoAndPlay("scene 5", 1);
}
this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.
Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
Using External .txt Inside Movie Clip Inside .fla
I've seen a hundred and a half posts on similar subjects, but goshdarnit, I just can't make this work. Let me explain the problem, and I've included a link to a Zip file with my .fla file and the away.txt file I'm calling the variables from.
Basically, I want to create an interactive menu thing, that starts with a row of each of the 26 letters of the alphabet. When one clicks on a letter, the letter is tweened to a larger faded state, and so is the rest of the alphabet, and I want the names of the schools starting with that letter to then fade in. I have a movie clip inside the last frame of the main tween, which should then tween (fade in over 12 frames) the graphic symbol containing my dynamic text box, which is supposed to be linked to the text variables in the external file. The text variable is created on the first frame of the main timeline using Actionscript on the static header layer, and so I should be able to load it inside my movie clip (I think). Everything looks fine to me, but then I've only been using Flash for 2 weeks.
My Zipped source files can be found at: http://www.tolcs.org/athletics/away.zip
If anyone would be willing to download my source files and give some wonderful advice, I'd revere and adore them forever.
A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.
Thanx
Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.
I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.
I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.
Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.
Making Another Movie Clip Close From Inside A Movie Clip
I want to make another movie clip close that is open when this other movie clip comes up. I put on the first frame of this actionscript:
_root.detail.gotoAndPlay(19);
This works, but only if the other clip is already open. If not it just shows the other clip closing even though it isn't open. Is there a way to do something like...
If _root.detail is on frame 8 then _root.detail.gotoAndPlay(19);
Obviously thats not the action script but it's what im trying to express.
"detail" is the movie clip property name of the clip I'm trying to close.
Thanks for your help!
Creating Empty Movie Clip Inside Movie Clip
Hi,
i'm using this script to make an empty movie clip
_root.createEmptyMovieClip
but i am trying to make this empty clip from inside a movie clip. Not from the root time line. HOw do i go about this?
Assigning Function To Movie Clip, Inside Of Movie Clip Help
good morning all,
I have a quick question which has been bugging me this morning. Basically I am trying to assign a function to a emtpy movie clip, which loads a external
.swf, which it self is inside a large, emtpy movie clip.
Code:
//---------------------------------START FUNCTION---------------------------------
//loading of "product_window" - main banner of the different products
function product_window_load() {
_root.createEmptyMovieClip("product_section", this.getNextHighestDepth());
// this creates the movie clip in which contains the seperate "product_window"'s
//---------------------------------START LOOP---------------------------------
for (i=1;i<=_root.product_window_No;i++){
//function to call up loading
_root.product_window_name = "colour"+i+".swf"
//this defines the name of ".swf" of the "product_window" being loaded
_root.product_window = "_root.product_window"+_root.product_window_id;
//defines name of "product_window"
_root.product_section.createEmptyMovieClip(_root.product_window, i);
//creates blank movie clip which will subsequently load the individual product .swf's
_root.product_section[_root.product_window].loadMovie(_root.product_window_name);
//loads the ".swf" file, the name is determined by the variable "_root.product_window_name"
//----------------------START FUNCTION----------------------
_root.product_section[_root.product_window].onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
//----------------------END FUNCTION----------------------
_root.product_window_id ++ ;
//increases the value of "product_window" by 1
Code:
_root.product_section[_root.product_window].onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
does not work
but if i just target the the main empty movie clip which contains all the other ones, it works fine.
Code:
_root.product_section.onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
I know i can proably get this to work using duplicate movie clip and cretaing a physicl movie clip on stage, but i was curious whether i can assing a function to a movie clip inside a movie clip
any help on this would be great
thanks
-smokey
ps. i know its not the smoothest coding, but its been like 3-4 years since ive been using flash
Place Movie Clip Button Inside Movie Clip
Hi, I have searched the forum but cannot find exactly what I am looking for.
I have a movie clip of a map that I can zoom and drag and what I would like to do if possible is to have several other movie clips inside the first movie clip which when clicked go to and play at a given frame number on the timeline where a photo is displayed.
The 'several' movie clips will be small flashing red circles. Each one represents a place of interest and when clicked will display a photo of the place of interest.
Movie Clip Inside A Movie Clip Not Reacting When Pressed
Hi,
I am a beginner and I don't know how to make a movie clip that I attached to another movie clip become activated. I am not sure if it has to do with the depth issue, which I don't completely understand.
But this is what I want. I have placed a movie clip (a rectangle shape) on the stage and linked that movie clip to an actions script file. In that file (Button_group.as) I dynamillycally place another movie clip (Email_btn) which is linked to another actionscript file called "Email_btn.as" inside the area of the rectange movie clip (Button_group).
Inside the "Email_btn.as" class I specfied an "onPress " function that prints something. Now when I play the movie and I press inside the "Email_btn" movie clip nothing happens.
So the question is how do I specify that I am "pressing" the "Email_btn" (inside clip) area and not the parent "Button_group" area?
This is snippet of the code of Button_group that dynamically places the inside movieclip "Email_btn":
class com.macromedia.flashvideogallery.Button_group extends MovieClip
{
var email;
function Button_group()
{
init();
}
private function init():Void
{
trace ("MALENA");
this._alpha = 0;
email = attachMovie("Email_btn", "Email_btn1", this.getNextHighestDepth(), {_x: _parent._x , _y: _parent._y } );
email._visible = false;
//_parent.email_btn.onPress = function () {
//trace ("send email");
//}
}
thank you
-Malena
How Can I Load An External SWF Into A Movie Clip That's Inside Other Movie Clip?
Hi.
I creating my first flash (actionscript 3.0) website but I'm stuck with a visual effect I want to create.
I have a window on my website called contentWindow. Every time you click a button this window is supposed to leave the stage, load the requested content and return to the stage.
The sliding window is a movie clip with 83 frames, 21 to enter the stage, 21 to leave the stage again, 20 for nothing (its just to simulate the loading time) and 21 to return to the stage.
Now my goal is, when the user clicks on a navigation button, the window exits the stage, loads an external SWF with the content, and then returns to the stage.
I've the "window" movie clip with an instance name of "contentWindow". Inside there is another movie clip with an instance name of "contentLoader". The content that the user requested should appear inside the "contentLoader".
Now, when the contentWindow leaves the stage, I get this error message:
quote:TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rwd_fla::MainTimeline/trigger()
If I switch "contentWindow.contentLoader.addChild(navLoader);" for "contentWindow.addChild(navLoader);" it works fine, but the external SWF doesn't move with the window.
How can I load an external SWF into a movie clip that's inside other movie clip?
Attach Code
//stops playback after the intro
stop();
//loads a loader with the "inicio.swf" file
var navLoader:Loader = new Loader();
var inicio_url:URLRequest = new URLRequest("inicio.swf");
//event listeners for the buttons
inicio_btn.addEventListener(MouseEvent.CLICK, navInicio);
wdesign_btn.addEventListener(MouseEvent.CLICK, navWDesign);
foto_btn.addEventListener(MouseEvent.CLICK, navFoto);
model_btn.addEventListener(MouseEvent.CLICK, navModel);
servicos_btn.addEventListener(MouseEvent.CLICK, navServ);
contactos_btn.addEventListener(MouseEvent.CLICK, navCont);
//functions to every button where the navLoader variable is defined
function navInicio(event:MouseEvent):void
{
navLoader.load(inicio_url);
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navWDesign(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navFoto(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navModel(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navServ(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
function navCont(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}
//the function that triggers when the contentWindow leaves the stage
function trigger(event:Event):void
{
if (contentWindow.currentFrame == 43)
{
contentWindow.gotoAndPlay(44);
contentWindow.contentLoader.addChild(navLoader);
removeEventListener(Event.ENTER_FRAME, trigger);
}
}
Edited: 06/13/2008 at 06:03:27 AM by Rui Marto
Movie Clip Inside Movie Clip - Control From Timeline
hello all.
i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.
mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?
i am trying what i thought would work which is
_root.mov1.mov2.stop();
Movie Clip Inside Movie Clip Link To Url Issue
I have created a scrolling row of banner ads that reacts to the mouse. I had some help getting the images to load in using an xml document and also to pass the url from the xml. My problem is the button funtion is blocked as the button movie clips need to be placed inside the scrolling movie clip in order to get it to scroll. Is there anyway I can get these buttons to work? I have attached my fla, please help!
Thanks for your time,
Glenn
|