Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() { placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content"); } __________________________________________
- "profile_mc is the button I am trying to activate to load the "profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-06-2006, 03:25 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load Movie Clip Into Another Movieclip
Hi,
I have a blank movieclip (mc21)
and I'm using a moviecliploader to load in a jpg (image.jpg)
and using an onloadcomplete function to do something else when that is loaded.
What I want to do is add a button to mc21 after the image is loaded in. I can't seem to get it to work...
Code:
myMCL21 = new MovieClipLoader();//create an instance of MovieClipLoader
myMCL21.loadClip("images/portraits_text.jpg", "mc21");
myMCL21.onLoadComplete = function (targetMC)
{
//need to load in button movieclip 'Button1'
//then
//do other stuff
}
I was creating a new movieclip (mc21.createMovieClip())
Then using attachmovie to attach the button to it. Problem was it was only showing for a split second. I suspect it was being unloaded.
Please help
Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)
on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;
}
THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.
Waiting desprtly 4 ur reply.
Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)
on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;
}
THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.
Waiting desprtly 4 ur reply.
Load External MovieClip Within A Movie Clip
Hi peeps,
How can I load an External MovieClip(with percent loaded) within a movieClip?
I have a script that loads an external movieclip.swf( pictures and sound) when click.
Why is it when I upload the file on a hosting site, the loading thing wont work? I think there something wrong with the script. I already used the script under flaskit tutorial but the same thing with my problem.
Any help please...
thanks,
mutant
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
Button And Movie Clip Code? Please Help
I am trying to use a movie clip as a button. I have an animation that plays when rolled over. When I test the scene the button works fine, but when I test the movie (the button placed on the stage)it does not work. What am I missing?
This is the code I am using in the movie clip.
stop();
trans_mc.useHandCursor = false;
fadeBox_mc.onEnterFrame = function() {
if(fade) {
this.nextFrame();
}else{
this.prevFrame();
}
};
Thanks for your help.
Help With Code For Movie Clip Button
I am having so much problems with this thing, I really need help . I need some actionscript or something that will turn a movie clip that is being loaded and moved all around the stage already into a clickable button. I can send you the fla if you need it to understand the nightmare that I am having. but you can see the swf by clicking here.
The idea is to be able to click on one of those bouncing balls and go to another scene in the flash movie or to a URL I don't care which right now. I would prefer URL but I will take anything!
PLEASE PLEASE PLEASE HELP ME!
Oh yeah I am also using Flash 8 pro. If that makes a difference. Thanks!
I had to make the fla really tiny to fit on here I hope it helps
Button And Movie Clip Code
I have placed the following code on a button instance:
on (release) {
this.gotoAndStop("Down");
introtext.unloadMovie("introtext.swf");
loadMovie("gallery.swf", thumbs);
}
The unloadMovie part works fine but not the loadMovie.
Anyone have an idea?
Button And Movie Clip Code
I have placed the following code on a button instance:
on (release) {
this.gotoAndStop("Down");
introtext.unloadMovie("introtext.swf");
loadMovie("gallery.swf", thumbs);
}
The unloadMovie part works fine but not the loadMovie.
Anyone have an idea?
A Movie Clip Button Cant Detect Its AS Code
On my root timeline the code below referencing a movie clip button, which cannot be detected when I place my mouse over it. It has been given an instance name. I dont know why it work. I have done other buttons the same way and they work.It only works when I place my code in the binary_mc timeline, which I dont want to do as I like to keep all of my code centralized.
Any ideas?
Attach Code
_root.whatIsBinary_mc.homeButton_mc.onRelease = function()
{
trace("Hellow");
}
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.
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!!
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
Minimizing/not Duplicating Movie Clip Button Code
I have buttons that push mp3s with no naming convention into an array - I prefer using movie clips as buttons, and currently have the following code on each of them:
onClipEvent(mouseUp){
if(this.hitTest(_root._xmouse,_root._ymouse)){
_global.MyArray.push("SomeSound.mp3");
this.pressed=true;
_root.LOADButton1.gotoAndStop(1);
}
}
Rather than having this same code (except the mp3 name) on each of my thousands of movie clip buttons, I'd rather just take the name of the movie clip and insert it into a saved function or class or something so that as little actionscript as possible could be on individual movie clip buttons.
I posted a thread about this before, but after a few replies things get pretty confusing, so this is the most concise explanation I can provide for what I need. Thanks in advance for any help you guys can give me!
Attached is a sample fla -
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
Button To Load Movie Clip Help
Hi, im using flash 8 and on my page thats created i have a movie clip which is like a animation that expands out which then has text on it
i also have a button, which i want this to get the movie clip to activate, but im having trouble working out what the code could be for this
also i place a stop action on the movie clip this error comes up
Statement must appear within on/onClipEvent handler stop();
Button Won't Load Movie Clip
i have an mc that consists of a menu of buttons.
on the about button, i have put the actionscript of
on (press) {
gotoAndPlay ("about_us", 2);
}
on the stage i placed a movie clip with the instance name of about_us. the first keyframe is blank and has a stop(); action put on it. the second keyframe is where the movie starts.
the problem is that when i test the movie and press the about button, nothing happens. in fact the menu mc starts to look like it's reloading.
any help?
[MX04] Load Movie Clip...wait...load Another Movie Clip
ok...i'd like to do this all in actionscript if possible...on one frame.
one character (headshot). at timed intervals, the character would do something different...repeat.
[code]function antics() {
mc_Antics.start(0,0);
clearInterval(anticstime);
}
anticstime= setInterval(antics, 1000);
function antics2() {
mc_Antics2.start(0,0);
clearInterval(anticstime2);
}
anticstime2= setInterval(antics2, 2000);[code]
I don't know actionscript well at all, so is this just stupid? Any ideas on how to do this? It's not working right now...
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
How Do I Code For A Movie Clip With A Button In It Embedded In The Main Scene?
This should be easy for any one who designs websites in flash.
I have a movie clip embedded in my main timeline that appears after an animation sequence happens. In this movie clip is button that changes color when you rollover it and links to an email address. Pretty simple.
I am not sure how to correctly code the actionscript for this. So far, when you rollover the movie clip and try to click the button, the whole movie clip flashes.
How do I tell flash to point to the button embedded in the movie clip?
You can see the god awful mess I've created online at:
http://www.espavoproductions.com/flash_site.swf
Look at the CONTACT button to see what I am talking about.
Please help. I would be so very grateful.
-Stephanie
Use Button Action To Load A Movie Clip
OK, I'm sure I'm missing something really obvious, but how do I load a movie clip (not a movie) using a button.
I can see how this code works for loading a new movie:
-------------------------------------
on (release) {
loadMovieNum ("newmovie.swf", 1);
}
-------------------------------------
but I've no idea how I use a button to make a movie clip play.
A Button To Load A Movie Clip In Scene 1
First I have to thank catbert303 for getting me this far... I have a question pertaining to having a button load a movie clip in a single scene... The button will act almost like a navigatinal tool...
So,
Button 1 XXX
When you click Button 1 where you see XXX above would appear. XXX would be the movie clip.
What I did so far:
1. Created a button named Button 1.
2. Created a movie clip named XXX --->gave it an instance name of XXX
3. In the XXX movie clip I left the first frame empty and put a stop() to it...
3. I right clicked on Button 1 and added the following script
on (release) {
xxx.gotoAndStop(2);
}
BUT NOTHING WORKS YET!!
Any advice?
Using A Button To Load More Than One Instance Of A Movie Clip
Hi there, I just completed this tutorial: http://www.flashkit.com/tutorials/Ge...1030/index.php
What I can't figure out is how to have multiple movie clips load simultaneously??
I have a map of some land that has sections for sale on it. When the user clicks the SOLD button, I want to have about 20 red dots fade in over the sections that have been sold.
Want to repeat the process for the sections still up for sale.
I thought I could simply drag another instance of the movie clip onto the stage but when I test it, only one dot fades in and the rest are static.
Do i need to make one movie clip of 20 dots or is there any easier way to do it.
Because the dots will be changing as sections are sold I need to be able to edit this easily.
please help! our flash developer is on annual leave and i have been handed this job?
thanks
Trying To Have One Movie Clip Code Effect Another Movie Clip
I am having trouble getting a simple function to work from outside of the movie clip that it is designed to effect. I want to be able to call the code from another movie clip as well as from a script in the main timeline.
If I place this code on the movie clip itself, it works fine:
on (rollOver) {
var myColor:Color = new Color(this);
myColor.setRGB(0xc2f79b);
}
on (rollOut) {
myColor.setRGB(0xe0ffd4);
}
Here is the code I have tried on another movie clip, called target_mc:
on (rollOver) {
var myColor:Color = new Color(target_mc);
myColor.setRGB(0xc2f79b);
}
on (rollOut) {
myColor.setRGB(0xe0ffd4);
}
I get no error, but the color doesn’t change on target_mc.
Here is the code I have tried in the main timeline:
function color_chg() {
var myColor:Color = new Color(target_mc);
myColor.setRGB(0xc2f79b);
}
Then I simply call the function on the movie cip thus:
on (rollOver) {
color_chg();
}
Thanks for the help,
Jon
Help GotoAndStop Code Doesn't Work After I Convert A Button To Movie Clip
First of all, I would like to apologise for not knowing whether this code belongs to F5 or FMX Action Script. I'm that noobish, yup.
Anyway, what happened in my flash document was, I created a button, "next_btn" with the following commands:
on(release){
//to remove all the splats
for (score=0;score<100;score++){
_root["splat"+score].removeMovieClip();
}
_root.finger_mc.removeMovieClip();
gotoAndStop("s1a2","gamereadys1a2"); //go to next level
_root.s1a1bgm.stop();
}
I also attached a visibility code in a separate, 'Actions' movie clip:
onClipEvent(load){
_root.next_btn._visible=false;
}
onClipEvent(enterFrame){
if (_root.score>=100){
recoverytime++;
if (recoverytime>120){
_root.next_btn._visible=true;
_root.next_btn.swapDepths(1998);
}
}
}
At this point, almost everything worked perfectly. Everything, but one thing. Apparently, the swapDepths command wasn't working. It was then that I thought maybe swapDepths only works on movie clips.
And so I converted the button into a movie clip. I modified the instance names, etc, and almost everything worked. Everything, including swapDepths, but one thing: the gotoAndStop command.
For some reason, when I tested the movie clip (containing a button) out, it removed the splat+score and finger_mc movie clips, as well as stoped the background music from playing. However, it did not go to the next scene and frame as specified by the gotoAndStop command. "s1a2" is the next scene, and "gameplays1a2" is its frame.
Can someone please tell me what went wrong?? All help appreciated.
Help GotoAndStop Code Doesn't Work After I Convert A Button To Movie Clip
First of all, I would like to apologise for not knowing whether this code belongs to F5 or FMX Action Script. I'm that noobish, yup.
Anyway, what happened in my flash document was, I created a button, "next_btn" with the following commands:
on(release){
//to remove all the splats
for (score=0;score<100;score++){
_root["splat"+score].removeMovieClip();
}
_root.finger_mc.removeMovieClip();
gotoAndStop("s1a2","gamereadys1a2"); //go to next level
_root.s1a1bgm.stop();
}
I also attached a visibility code in a separate, 'Actions' movie clip:
onClipEvent(load){
_root.next_btn._visible=false;
}
onClipEvent(enterFrame){
if (_root.score>=100){
recoverytime++;
if (recoverytime>120){
_root.next_btn._visible=true;
_root.next_btn.swapDepths(1998);
}
}
}
At this point, almost everything worked perfectly. Everything, but one thing. Apparently, the swapDepths command wasn't working. It was then that I thought maybe swapDepths only works on movie clips.
And so I converted the button into a movie clip. I modified the instance names, etc, and almost everything worked. Everything, including swapDepths, but one thing: the gotoAndStop command.
For some reason, when I tested the movie clip (containing a button) out, it removed the splat+score and finger_mc movie clips, as well as stoped the background music from playing. However, it did not go to the next scene and frame as specified by the gotoAndStop command. "s1a2" is the next scene, and "gameplays1a2" is its frame.
Can someone please tell me what went wrong?? All help appreciated.
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.
[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip
lets say that there are 4 buttons are in movieA, and the other clip is called movieB
when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on
so far my code for button1 is:
on (release){
this._parent.movieB.gotoAndStop(5);
}
on (release){
_root.movieB.gotoAndStop(5);
}
button2:
on (release){
this._parent.movieB.gotoAndStop(10);
}
on (release){
_root.movieB.gotoAndStop(10);
}
with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame
can anyone shed some light on this?
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.
Load External Movie Clip On Stage Not Button
Hello,
I know there is tons about this everywhere
but I've looked at a lot of it
and I'm still confused!
I am trying to load an external .jpeg.
I created a movie clip
and I want it to load automatically
when the user arrives at the frame
(not in response to a button event)
This is the code I have on the button instance
based on the behavior code Flash provided
(I removed the event)
[as]this.loadMovie("still01.jpg");[AS/]
but it's not working.
Please help!
Thanks so much!
Load Movie Clip To Another Movies MovieHolder From A Button
sry about the title but is is kind a confusing and i am not getting it to work, so here is what i am planning to do....
I have a Main Movie called "index", in that main movie, i load a movie called "metall" into a movieholder called "metallHolder". In "metall", i have a scrolling panel, so i am using _lockroot, so i cant use _root to get back to the "index" movie from within the "metall" movie.
Now, if i click on a Button within "metall", i would like it to load a clip called "metallinfo" to a movieholder within "index" that is called "videoFrameHolder".
how do i have to adress it?
i am using the simple on(release) so ithought: Code:
on (release) {
loadMovie("grafix/metallinfo.swf", index.videoFrameHolder);
}
but that doesnt work....
thanks so much for any advice...
Making A Button Within A Movie Clip Load A Differant Scene:
Yeah, I imagine this has been explained millions and millions + 2.6 times before, however, I have done my searching and I can't find my solution that I need in paticular and I don't have all week, let alone all day to find the answer (Since I have been trying to figure this out for the last few days)
So with that said:
I have a rollover movie clip on my company's web site I am working on. Everything is working as acording to plan. However, I have a movie clip within a movie clip, and that movie clip is the one with the buttons. Now when I go into their action scripts I do the basic
on (release) {
gotoAndPlay(285);
}
Which then plays a fancy little transition and then on the last frame it does this:
gotoAndPlay("Contact", 1); "
Which is Scene "Contact" and Frame "1" for those who are also wondering.
However since this is inside a movie clip, which is in turn, in another movie clip...... it does not go to the scene and play frame 1, but rather reloads the movie clip again.
I imagine I have to add another script in there to look outside of the movie clip or something, however I can not find this anywhere.
Like I said..... it's probably an easy thing to do, but I just got hit by a bus today and I just can think properly....... uh..... yeah that's it.
Thanks in advance.
How To Load A Movie Clip Inside A Movie Clip
i acknowledge when u place a loader on the scene of a movie clip, to load a movie you do:
on(release){
_root.nameofmovieclipinstancename.loadMovie("nameo fmovie.swf");
}
but what do u do when ur loader is on a movie clip?
thanks, carmen
Load External Movie Clip: Image Does Not Appear Where Clip Is
Trying to build the same thumbnail photo gallery I've been working on forever. I'm loading large image into movie clip, however, when the clip loads, the picture appears over to the far right and not in the place where I have place the clip on the stage. My code is for the button is :
on (release) {
if(this.mainloader == Number(this.mainloader)){
loadMovieNum("fam01.jpg",this.mainloader);
} else {
this.mainloader.loadMovie("fam01.jpg");
}
}
I know it has something to do with x and y coordinates, but I've tried everything I know with no luck. If it involves AS, where do I put it.
Thanks to all who reply.
Load Movie Clip -> Update Child Clip
Ok, I'm not sure if this is possible, but I assume it is. So I load a movie clip in , we'll tall it "parent_clip" and it's getting loaded into a clip with the same name, so _root.parent_clip. In the loaded parent_clip there is a movie clip called "child_clip". Once it is loaded the child_clip is obviously still there, but it is no longer named child_clip. How do I access it?
Or am I just missing something all together. Thanks for the help.
Problem With Movie Clip Moving When The Mouse Passes Over A Button On The Clip
The swf in question calls up a series of ads. To change the ads the user clicks on the forward and back button. However, when you mouseover the forward and back buttons the controlBar goes a bit haywire (as a result of the mouseOut on it).
All the files are attached in a zip file. Thanks in advance for your help guys.
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
|