Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Help Loading A Movie With Button



I want to complete the following: http://prgn.ernci.com/escalator.swf The user clicks on a button (1 of the windows) then on release a new mc (it will be some text goingdown the armrail of the stairs) starts to play However, i have looping animation and sound on in the background so i can't do a gotoandplay can i? Please help thanks



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-27-2005, 08:52 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Problems With Loading External Movie From A Button In Another Movie....
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!!

HELP Loading Movie Into New Movie Button Problem
Hi all. I was hoping somebody here can help me. What I am trying to do is load a movie into a new movie, simple enough. Ive done this a few times and never had a problem. But the problem here is as follows. I have a menu bar fly onto the screen. Now the button that I want to press to load the movie is not following the action I am telling it. actually, i am probably using the wrong action. In the past I would just have the button there at all times and it works fine. So I assume that since this button is part of a movie, that is what is causing me problems. Here is the script that I am using.

on(release){
this.portfolio.loadMovie("web.swf");
}

portfolio of course being my blank movie.

Can anybody give me a hand here. I assume it has something to do with the path. Please help!!

Thanks so much

Joe

Loading Movie With A Button
okay so i tired to get some help on this last night but i bailed because i couldnt stay awake...what i am trying to do is to hit a button-that opens a moive into a blank movie clip, that has another button (i got that down pat)then i want to open another movie with that button. i am going to post my fla and swf...boxone is the first that has the original button. anybody please help

Loading Movie Clip With Button
I am trying to create a slide show that will load different picture in to flash by clicking a button. I am assuming that it would be the load moviecilp action and if so is there a tutorial to on how I can accomplich this.

Thanks in advance.

Button Loading Movie Clip
Hello
I created an flash file. In it it has 4 buttons. I want those 4 buttons load a movie clip (each). Let me expand

Button 1
Button 2
Button 3
Button 4

When you click on button 1 right beside it a movie clip opens up... Basically button one will be for pictures so when you click on button 1 (pictures) to the right around 10 thumbnails will appear. I am assuming that the 10 thumbnails will be part of the movie clip..

So, how do I script the movie so that on release, it loads the movie clip??

Thanks

PS-All this should happen within the same swf.

Loading A Movie Clip From A Button.
I know this is a really basic question, but i can't seem to figure out the answer. I want to have a movie clip play within a scene when I press a button within that very same scene.

Loading A Movie Clip With A Button
Hi There

I have a button on the main stage. and i want to be able to have the button select and load a movie clip on top of the main stage. and have a button, in the movie clip to unload the moive clip and go back to the main stage.

on the main stage with the button i have i have the following code:
(action for the button it self)

PHP Code:




on (release) {
    gotoAndPlay("mc1");
}







the button on mc1
(action for the button it self)

PHP Code:




on (release) {
    _root.gotoAndPlay(1);
}







can some on help me!!

Loading Movie Inside Button
I'm creating a tree type menu in flash and need some help with integrating a movie with a button. Here's what I want to do. When I click an arrow button that expands the tree and shows textual buttons below, I want a movie to load which runs in place of where the textual button is located and when the movie if finished running display the textual button. My goal is to get this movie to run before the button appears and then allow the user to click the button to proceed.

The movie I'm trying to load is located on Frame 11 underneath the heading Main Menu. If you can help me I would greatly appreciate it.

thanks

Loading Movie Clip In Button
I am coming back to flash after two years of not working in it!

I built a button and loaded a simple movie clip into the down frame. I've tried to set it so the movie clip will play on release, but it is not working well.

The animation only takes effect when holding the button down.

How can I get the button to play the animation on release?

Loading A Movie Clip From A Button
Hello everyone,

I am a new flash user and I am trying to load a small Movie clip from a button on the stage. The MC is in its own layer and spands for about 30 frames. The Button is on the main stage and I put on the action script for that button the following code to get the MCto start on realese

on (release) {
gotoAndStop(50);
tellTarget ("websamples") {
gotoAndPlay(1);
}
}

but when I publish the movie and test the button, the MC never plays.
Can anyone help.

Thanks for any help of tip to get me in the right track

Question. Loading A Movie With A Button.
I have searched (and still searching) the forums.

What I am trying to do is click a button to load a movie clip. So I on release of the button, I want a movie clip to play once. The movie clip I want to load and play is an actual movie "symbol" in my library on on the worktable. So when they click the button, I want to "activate" a movie symbol that is already there.

The thing is, any topic I find on loading a movie clip in these forums is about loading a separate flash fil. Which is not what I want to do.

To help you better understand, this is a navigation system for characters in a film for the website. The names of the characters are listed. The user clicks their name, then a movie "symbol" animation plays for that name. All I want to do is "call" activation of a movie symbol.

I think I may have over or redundantly explained that. I will keep trying in the meantime.

Loading A Movie Clip With A Button
flash8

I have a movie clip on my main timeline that plays (and eventually stops) when the site starts. I need to call it again in the same location through a button that is in a different movie clip. I know to use on(release) and I tried using tellTarget but I either had the syntax wrong or was using it incorrectly. How can I get that same movie clip to restart in the same location on the main timeline?

Thanks

Loading A Movie On Button Press
I'm not really too sure how to go about this. I imported an avi file and flash turned it into an flv file and made an FLVPlayback symbol and stuff and now I want to be able to load up and play that movie on a button press but the code that I have doesn't work. I don't even particularly think it's right.


Code:
stop();

function showMovie(linkageId, xpos, ypos) {
var linkageId :String;
var xpos:Number;
var ypos:Number;
var mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc._x = xpos;
mc._y = ypos;
mc.attachMovie(linkageId,dodge,this.getNextHighestDepth());
}

btn1.onPress = function(){
trace("gotem");
showMovie("FLVPlayback",0,0);
};

Loading Movie On Button Press
my problem is that i have a button and when pressed i want a movie clip to play, however the moive clip is not on the root stage and i'm having problems find the right string to point it to the clip.

this is what i have so far:
programOne.onPress = function() {
_root.movie.chapters.gotoAndPlay(2);
program = 1;
trace("you hit button 1");
trace("Selected Program = "+program);
};

programOne is the button, and chapters is the movie, which sits inside a layer called movie on the root.

-Thanks in advance for any help you can give

Loading Movie Inside Button
I'm creating a tree type menu in flash and need some help with integrating a movie with a button. Here's what I want to do. When I click an arrow button that expands the tree and shows textual buttons below, I want a movie to load which runs in place of where the textual button is located and when the movie if finished running display the textual button. My goal is to get this movie to run before the button appears and then allow the user to click the button to proceed.

thanks

Loading Movie Inside Button
I'm creating a tree type menu in flash and need some help with integrating a movie with a button. Here's what I want to do. When I click an arrow button that expands the tree and shows textual buttons below, I want a movie to load which runs in place of where the textual button is located and when the movie if finished running display the textual button. My goal is to get this movie to run before the button appears and then allow the user to click the button to proceed.

thanks

Correct Actionscript For Loading A Movie With A Button
Hey everybody, thanks for looking at this. I'm still struggling with having a navigation portion of the website at the top with the sections of the website that load in the middle. I've created the button at the top and the movie for the middle. To keep the movie from animating on its own, I gave it the "stop" action in frame 1. Meanwhile, the button has the script:
on (release) {
tellTarget ("middlemovie")
gotoAndPlay (2);
}
}

Before I had the "stop" command, this worked fine in the workspace (obviously not in the Test Movie mode, since it would constantly replay regardless). When I click the button under Test Movie, it says that the target cannot find the movie. Why won't it find the movie...? Does it have to do with what frame the navigational portion is in?
Thanks alot to anyone who reads this
-tim
[Edited by Timski on 08-06-2002 at 10:10 PM]

Loading Movie Clip On Button Click
I'm trying to figure out how to load a movie clip when you click a particular button. Any help is appreciated!

Scot

Loading Movie At Start Of Webpage And As Button?
Hey y'all,
I am having some trouble loading a movie (newsmovie.swf) immediately when my webpage loads. I also want to access this movie by clicking a button. But at the moment I can't seem to get it to run when my webpage starts. I have it running into an empty clip called "placeholder two". I think that part of the problem may be that I already have one movie running at the start of my page (loads "newtopmovie.swf" into the empty clip "placeholder").

My coding right now is

loadMovie("newtopmovie.swf", _root.placeholder);
loadMovie("newsmovie.swf", _root.placeholdertwo);

How should I change this?
I've attached the the three pages if its any help,
Thanks for your help,
Juury

Movie Keeps Reloading If Button Is Pressed Before Loading Is Done
Hello all,

I have a quick question with hopefully a simple solution. If you click on a button in my movie and as the movie is loading, quickly click on a different button. What happens is, my movie starts to rapidly repeat itself. Does anyone have a solution for this?

Please help. Thank you.

my site is:
www.mentalcookie.com

Loading Movie From Flash Button In Dreamweaver
How can I make a flash button to load another movie in a dreamweaver table cell, and also have that movie to play in an specific frame?

Please help out...

Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.

here is what the button would call for if outside the movie clip:


Quote:




on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}




the only AS that is in the button movie now is:


Quote:




on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}




any ideas? Thanks very much for your help and time!

Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.

here is what the button would call for if outside the movie clip:

Quote:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}
the only AS that is in the button movie now is:

Quote:
on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}

any ideas? Thanks very much for your help and time!

Loading Swf Into Movie Clip; Button Controlled
Ouch, I'm hurting on this simple topic - though I've learned a lot durig the search phase (newbie);

I put this code in frame 1 of the my "action" layer:

this.createEmptyMovieClip("serOver_mc", 1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("movie loaded");
}
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("rtmMovie.swf", serOver_mc);

"serOver_mc" is a movieClip instance placed on the timeline 10 seconds or so down the road. My hope was to control the .swf play by a button. Instead, it launches as soon as the main timeline begins.

Also, I was hoping to play the .swf at (x = 560, y = 2.5) which is where the serOver_mc was placed. I was only able to make this .swf location happen by publishing my .swf in a document that matches the flash file I'm trying to play the .swf in (at x = 560, y = 2.5). (Did I say that clearly? In other words, when the 0,0 coordinates line up my swf video is at 560,2.5). But this kind of proves to me I don't really have it in the serOver_mc and might also explain why I'm not able to control its playback.

I'm thinking this is pretty simple., but I am lost. (Does that make me a loser?)

Rick







Attach Code

this.createEmptyMovieClip("serOver_mc", 1);
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("movie loaded");
}
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("rtmMovie.swf", serOver_mc);

Movie Loading Layers / Button Functionality
how do you get buttons to lose their functionality once a new movie is loaded? I'm having trouble, I have a movieclip (with buttons) and when pressed, and new movie loads over the top of them - but the buttons in the movie underneath still have their functionality - how do i remove this so that only the top (visible layer) retains functionality?

any help appreciated :]

Help With Movie Clip Button Loading External SWF
I Have made a movie clip button, But i am try'n to get it to load a external SWF into a MC. Now my AS is, (txt highlight in red is the area i am having a problem with!) It mean alot if some one could help me out!

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){
if (_root.currMovie == undefined) {

_root.currMovie = "temp3_pageone";
container.loadMovie("temp3_pageone.swf");
} else if (_root.currMovie != "temp3_pageone") {
if (container._currentframe >= container.midframe) {

_root.currMovie = "temp3_pageone";
container.play();

}
}
}

Loading A SWF To Container From Within A Movie Clip Button.
Hey guys. I made a site that has buttons within are animated as a part of a movie clip. I am trying to change the AS to call for these external swfs into the "container" which is of course outside the movie clip button.

here is what the button would call for if outside the movie clip:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "gallery";
container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "gallery";
container.play();
}
}
}

the only AS that is in the button movie now is:

on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
any ideas? Thanks very much for your help and time!

Loading External Swf If Button Is In Movie Clip - Help
PLEASE HELP.
I've been doing tutorials on how to load external swf's using an empty movie clip on the main stage that is triggered by buttons. Those buttons always seem to be on the main stage.... but what your buttons are located inside another movie clip which is then placed on the main stage....?
I am trying to create a menu which moves on rollover and loads an external swf on click, and i seem to have gotten the menu part animated (i have six buttons which are made into an animated movie clip which is then placed on the stage). but i am wondering how to load external movies on the main stage from those buttons. i am using the "load movie" script and it works when i create a static button on the main timeline, but as soon as i use the same code on the same button which is inside the animated movieclip, it doesn;t work. er, am i making any sense? please help!
thanks!
best, lisa

Trouble Loading A Movie When By Clicking A Button
ok this is really bugging me, i'm newish to flash and i'm trying to load a movie by clicking onto a button.

by using this code the movie loads automatically...

[code]
loadMovieNum("roster_videos.swf", 1);
[/code]

then if i assign the following code to a button that i've created...

[code]
on (release) {
loadMovieNum("roster_videos.swf", 1);
}
[/code]


then i get this error....

[quote]
**Error** Scene=Scene 1, layer=videos, frame=80:Line 1: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1
[/quote]

i've googled searched and searched this forum and i can't find clear instructions on how to do it ...even though i know this must be the most basic and easiest thing to do ...hence my frustration.

Loading External Movie Clips From A Button
I have these buttons that are actually my portfolio pieces but am using them as buttons and want to load a movie clip in an external swf file that shows it as a bigger image in a frame and am wanting to know some good tips on how to use the actionscripting techniques that will be involved.
Any knowledge that someone can bring me?

Loading A Movie Clip By Pressing A Button On To A Scene
Hi how do i load a Movie Clip by pressing a button on to a scene. I have a menu which has buttons at the bottom when i click a button i would like a moive clip to be displayed above the buttons. How do i do this??

Thanks

Kendals

Loading A Scene From Annimated Movie Object Button
How do I go about loading a scene by clicking a movie clip symbol in flashMX?

I can't seem to figure it out.

Thanks,

Skeets

Dynamically Loading Images Into Movie Clip Or Button
Hi

I'm having a real problem trying to load a dynamic image into a movieclip or button. Does anybody have a good starting point for me as I've used a button to initiate the load but I cannot get the image loaded when the movieclip loads (which is what I trying to acheive)

Loading External Swf Into Movie Clip On Button Press
Im just making the switch to AS3 and i'm having some major problems loading in external swfs. In AS2 it was easy but from what i've found i'm just not understanding how it works in AS3. I have a movie clip that has my navigation in it that would call the external swfs for each section of the site, it also contains the backgound design for the site. I have my main movie set up for full browser for positioning. and i want to be able to position where my external swfs are loaded as well.

Any help would be much appreciated, i've been looking and trying to figure this out for a few days now.

thanks
Jake

Carousel Button Loading Imported Movie Instead Of Text?
is there a way for an imported movie clip to load instead of text when one of the carousel icons is clicked?

Loading A Movie Clip Using Submit Button On Stage
I have a form that loads a movie clip but I want it to play next to the form instead of going to a new page. How do I do that?

This is what I have on my submit button so far:


Code:


on(click){
var fileString:String = _root.combo1.selectedItem.data + _root.combo2.selectedItem.data + ".swf";
_root.loadMovie(fileString);
}



Thanks in advance.

Simple(?) Problem: Disable Button After Loading A Movie? (Flash MX)
OK, i have a navigation with buttons that load external movie clips into a empty movie clip. Yes, very simple.

Im sure some of you experience this problem, if i click on the button to load the swf repeatedly, it will re-load the movie repeatedly (very annoying). I want to disable the button after it has been clicked once, and re-enable it when another button is clicked.

The buttons reside inside a movie clip on the main stage.

The empty movie clip resides on the main stage.

heres the code for one of the buttons:

on (release) {
_root.target_clip.loadMovie("updates_nav.swf","1") ;
}


I just want it to load once then disable the button. I tried the button.enabled=false into the brackets but i get no results.

heres my page so far:
http://www.poeticgarble.com/swf/circles.html

(no preloader yet, just updates loaded using a modification of the guestbook found on this site)

Next Button Is Not Showing Up When Loading Kirupa Photogallery Into A Main Movie
Hi, I am using kirupa's flash gallery (not the xml one) and it works fine when I test it individually in it's own movie. But when I use loadMovie ('gallery.swf', loader); to load the gallery into a main movie, the next/previous buttons disappear!!! I didn't change the code much, just the path and the name of files which are needed to be load....My boss and I couldn't figure it out what's going on...so I am here to see if there's any pro can help us out! Any suggestion will be nice, thanks.

Let me know if you need me to uploaded my fla files!

Here's my code:

stop();
/*
i wrote this code, but you can use and abuse it however you like.
the methods are defined in the order which they occur to make it
easier to understand.
*/
// variables ------------------------------------------
// put the path to your pics here, include the slashes (ie. "pics/")
// leave it blank if they're in the same directory
this.pathToPics = "lightboxes/";
// fill this array with your pics
this.pArray = ["l1.jpg", "l2.jpg", "l3.jpg", "l4.jpg", "l5.jpg", "l6.jpg", "l7.jpg", "l8.jpg"];
this.fadeSpeed = 20;
this.pIndex = 0;
// MovieClip methods ----------------------------------
// d=direction; should 1 or -1 but can be any number
//loads an image automatically when you run animation
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// Actions -----------------------------------------
// these aren't necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);

Simple(?) Problem: Disable Button After Loading A Movie? (Flash MX)
OK, i have a navigation with buttons that load external movie clips into a empty movie clip. Yes, very simple.

Im sure some of you experience this problem, if i click on the button to load the swf repeatedly, it will re-load the movie repeatedly (very annoying). I want to disable the button after it has been clicked once, and re-enable it when another button is clicked.

The buttons reside inside a movie clip on the main stage.

The empty movie clip resides on the main stage.

heres the code for one of the buttons:

on (release) {
_root.target_clip.loadMovie("updates_nav.swf","1") ;
}


I just want it to load once then disable the button. I tried the button.enabled=false into the brackets but i get no results.

heres my page so far:
http://www.poeticgarble.com/swf/circles.html

(no preloader yet, just updates loaded using a modification of the guestbook found on this site)

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!!

Loading Multiple Movie Clips Using MovieClipLoader Script Attached To A Button State
I am building a site that loads both images(using moviecliploader) and text(using loadvars.load) dynamically to a stock page(mytarget is on level5) when different buttons are pressed. My problem is that when I program a function to a button state to call more than one item it does not work.

For examle

code:
Mybutton.onRelease = function(){
myMovieLoader.loadClip(“mytarget.swf”,5); //loads the swf that has the text and image targets
myMovieLoader.loadClip(“image1.jpg”,_level5.imaget arget); //loads image to target MC on level5
myLoadVars.load(“mytext.txt”); //loads the text using myLoadVars to level5.sitetext
}


So, this does not work. If I delete any two of the lines of code it will work. The image load will work independently, the load vars will work independently, and the moviecliploader works independently.

So as a temp solution I have separated out the lines of code to different mouse actions. This does work but looks like crap because the text does not come up till the user rolls off the button, which can only confuse them.

Example

code:
Mybutton.onPress = function()[
myMovieLoader.loadClip(“mytarget.swf”,5); //loads the swf that has the text and image targets
}

Mybutton.onRelease = function(){
myMovieLoader.loadClip(“image1.jpg”,_level5.imaget arget); //loads image to target MC on level5
}

Mybutton.onRollout = function(){
myLoadVars.load(“mytext.txt”); //loads the text using myLoadVars to level5.sitetext
}


SO how would I call the moviecliploader to load...say 3 movies to different levels just by pressing a button?

EDIT: Added [ as ] tags - jbum

Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you

I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.

Here is my scenario:

I have my main movie (_root)
In the actions layer of my main movie I have:

Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:

Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:

Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses

Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!

I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!

My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!

My second problem... well. I'll need a few minuts to explain it!

I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?

Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH

This website is, of course, incomplete. I'm still working on it.

Could someone help me????

---- Help me Obi Wan: You're my only hope!!!!

Thanks a Lot.



Raul.

Loading Bar That Shows Loading Time Of HTML Page Not The Movie
Hi,

I have a flash intro that I'm using for my site, but I would like to (if possible), have an intro HTML page that uses JS to pre-load the images on the site and show my loading FLASH movie while the page pre-loads.

I would like the flash movie's loading bar to reflect the images that are pre-loaded on the HTML page.

Question-1: Is that possible to do?

Question-2: Where do I start? I don't even have a loading bar. All I want is just a simple rectangle that has a bar inside that moves from left to right indicating that the page is almost finished loaded. Then when the page has pre-loaded the images I need it to re-direct to the main page.

Can someone help me accomplish this, or tell me where to find out how to do this.

Thanks!

NATE

design@spyderix-designz.com
http://www.spyderix-designz.com

Loading .swf Files While Main Movie Clip Is Loading
Hello,

I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:

In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.

What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.

I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks

Movie Loading Into Bankmc Is Loading Blank After Its Been Published
I created this site where it loads movies into a blankmc on in the main Fla file. It works fine when I view it on my computer. And Broadband connections show no problem. But on dial up connection. when you click a bar on the navigation. The fla movie loads in blank. You have to click another button then click on the previous but to load. Why is that?
here is the site (its for some community developer)
Doubletree Lake Estates

Thanks for you time..Let me know if you need to see the file and I'll attach it.

Patrick

Loading Dynamic Textbox While Dynamically Loading Movie
Hi All,

So, I've got a movie on the stage (but offstage) called: Card. Inside this MC is a dynamic textbox called: CardName. I'm using a for loop to create a column of cards w/ their corresponding textboxes.

Here's the code:

for (var j = 1; j<=6; ++j)
{
var name = "Card_"+j;
var y = (j-1)*game.spacingY + game.originY;
game.path.attachMovie("Card", name, ++game.depth);
game.path[name]._x = x;
game.path[name]._y = y;
game.path[name]._width = game.cardSizeX;
game.path[name]._height = game.cardSizeY;
game.path[name].CardName.text = "card #" + j;
}

The cards and the textboxes inside the card MCs load fine but the actual textboxes don't change from the default text I've hard-coded in. How can I reach the dynamic textbox inside the card Movie Clip to manipulate the text.

Thanks.

Loading Two Movies & Loading Entire Current Movie
well, having a bit of problems with figuring out my preloader :/. Iv been able to figure out how to load a single external movie with a dynamic preloader graphic that tracks percent and stuff, but i have not been able to figure out how to load multiple external files but useing the same graphic to track the percentage of the loading for the two as if they where 1. Also have not been able to figure out how to make a preloader for the current movie. LIke have the preloader at the beginning of the movie and have it stop, and run the preloader for the load of the rest of the movie file, then continues to play the intro of the same file after loading has been compleated. my code for what i'm able to do is below, any help woudl be helpfull :). Thank you guys and girls^^









Attach Code

var requestObj:URLRequest = new URLRequest ("waterIntroAnimation.swf");
var loaderObj:Loader = new Loader();
loaderObj.load(requestObj);

b1.visible=false;

loaderObj.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preloadProgress);
loaderObj.contentLoaderInfo.addEventListener(Event.COMPLETE,preloadComplete);

function preloadProgress(event:ProgressEvent):void{
var loadedPercent:int = event.bytesLoaded/event.bytesTotal *100;
preloader_mc.loadingBar_mc.loaderText_txt.text=loadedPercent+"%";
preloader_mc.loadingBar_mc.loaderMask_mc.scaleY=loadedPercent/100;
}

function preloadComplete(event:Event):void{
preloader_mc.visible = false;
b1.visible=true;
}

Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.

http://www.bloggot.co.uk/file.zip

Copyright © 2005-08 www.BigResource.com, All rights reserved