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




Loading Movieclip Help



hi, i need help (yes, again )

i want to load a movieclip into a blank movieclip once the root stops at a certain frame.

here is the code i have on the frame.


ActionScript Code:
stop();_root.loader.gotoAndStop(1);chosen = "mc1";


i wasnt sure how to give an instance name to a movieclip which isnt being used (only loaded) but i tried the linkage and called it mc1, it didnt work!
loader is the instance name of the blank movieclip.

any help would be great.


thanks.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-05-2004, 05:59 AM


View Complete Forum Thread with Replies

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

Loading A Movieclip On The Main Stage From A Button Within A Movieclip - Big Headache
Hi there,

i am trying to put together a portfolio site, which uses a 'floating' panel with buttons on it. In order for it to move around it has to be a movieclip. So all the buttons are stored within a single movieclip, which is giving me a headache because i want those buttons to load other movieclips from my library onto the main stage (as like a popup window within the flash)

Its all slightly confusing. i have tried using this code based within the movieclip where my button is based:

button_play.buttonMode = true;
button_play.addEventListener(MouseEvent.CLICK, OpenBox);
function OpenBox (e:MouseEvent):void{
this.addChild(new mc_box());
}


button play is within a movieclip called mcTweenMe2 (which is on the main timeline) and i want the movieclip to be loaded on the main timeline (not within in the movieclip where the button 'button_play' is based) mc_box is the movieclip i wish to load on the main timeline (in the centre) with the ability to close it also!

Bit of a headache, please help me someone i have run out of sites to look for answers!

PS: does anyone know why stop (); wont stop my timeline playing like it used to in AS2? beacause another option for making my site work is making this button target labeled frames in the main timeline, however stop (); don't seem to work now!

Thanks!

External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

ps. i am using Flash MX

External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

ps. i am using Flash MX

[f8]Loading A MovieClip From Another MovieClip In The Stage
Hi, i just learn flash and AS and now i am trying to build a menu with submenu.
I have 2 files :

a. loader.swf
b. menu.swf

Condition :
1. Loader.swf has a button that loads menu.swf into stage via createEmptyMvieClip.
2. Menu.swf have sets of button that supposed to load a jpeg/clip to Loader stage which acting as a "submenu".

And my question is :

Is it possible to load a clip from a loaded menu.swf into Loader.swf stage?


I have this code that individually works but not when i load the menu.swf. The map.swf won't load into Loader stage.


Code:
== loader.swf ==

_root.createEmptyMovieClip("menu",0);
menu.loadMovie("menu.swf");

Code:
== menu.swf ==
btn1.onPress = function () {
_root.createEmptyMovieClip("container", 1);
container.loadMovie("new_mohome/map.swf", 2);
}
btn2.onPress = function () {
_root.createEmptyMovieClip("container", 1);
container.loadMovie("new_mohome/map.swf", 2);
}
btn3.onPress = function () {
_root.createEmptyMovieClip("container", 1);
container.loadMovie("new_mohome/map.swf", 2);
}

(MX)movieclip Visibility When Loading Movieclip
Hello!

I'm having a little problem when I use this code:

mymovieclip1._visible=false
mymovieclip1.loadmovie("xxx.swf")

The problem is that he does load the movie, but that he doesn't make it invisible. And I only want the movie to be visible a few seconds later...
What is wrong here?

THanks!

Loading A Swf Into A Movieclip Inside Another Movieclip
Hi, i am having a main.swf which has a movieclip in the form of a window. it's instance name is window_mc. this window has an empty movieclip called load_mc and i am trying to load another swf called login.swf into window_mc.load_mc using

window_mc.load_mc.loadMovie("login.swf");

both main and login swfs are having resolution 1000x780.. but wen it is loaded as said above, the texts inside the loaded swf looks very large. the resolution looks as if they are different.. please help me on this... i haven't tried loading movieclips much. but wen i load a swf into an empty movieclip, it wrks perfectly fine...

External Swf Loading Into Target Movieclip Loading
Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

Loading External Movieclip From An External Movieclip Library Into Main Movie?
How do you load an external movieclip from an external movieclip library into a main movie?

I have an external movieclip loaded within a main movie. I then want the external movieclip to be able to take a movieclip from its own library and the load this into another container ind the main movie.

In other words:

A contains B

B contains C

I want a button in B to place C directly in A

How is this done?

Loading A Movieclip Into A Movieclip
Hi. I'm kinda having trouble with this, I'm making a navigation bar so when you hover on a button it will load a movie clip of the text going by. I would like to do this so this is what i have so far... with the movie clip i want loaded = homeHov and the movieclip i want homeHov to be loaded into is contain...


Code:
on (rollOver) {
homeHov.loadMovie("contain");
}

and

on (rollOver)
homeHov.attachMovie("contain");
}
which i can obviously tell is wrong but anyways help would be appreciated. Thanks.

MovieClip Loading Another MovieClip
Currently I have a MovieClip that when you roll-over it a hover menu pops up. But I also needing to have that same MovieClip when rolled=over load another external SWF inside an empty movie clip. Is this possible?

Thanks for the help,
Brian

Loading MovieClip Into Another MovieClip
Hi Guys,

Wonder if anyone could help me. I'm stuck with one thing and I'm desperatelly looking for help.

I have created a MovieClip on the main stage called "Preloader".
Preloader has a loop function preloading jpegs (listed in XML file), each of the file is loaded on to newly created MovieClip, which name is the same as loaded iimage.
So image XXX is loaded into newly created MovieClip called XXX

Briefly the code looks like the below:


Code:

for (ImageNo=0; ImageNo < _parent.ImageData.length - 1; ImageNo++) {
ImageId = _parent.ImageData[ImageNo].attributes.id; // Checking the name of the file to load
ImageCurrent = _parent.ImagePath + ImageId + ".jpg"; // Path to the file

this.createEmptyMovieClip(ImageId, this.getNextHighestDepth()); // Creating the MovieClip named as file which will be loaded here

var BufforLoader:MovieClipLoader = new MovieClipLoader();

BufforLoader.loadClip(ImageCurrent, this[ImageId]);
}
So, all of the images, one after another are "preloaded" into the scene.

The thing I can't figure out is how to load one of those movieclips into another movieclip.
On the main stage, I have created MovieClip named "Image" and when someone press the button (for example XXX) the movie called XXX from Preloader MovieClip should be loaded into the "Image" MovieClip

I've tried so many times, one of my attemt was:

Code:
var Image:MovieClip = createEmptyMovieClip("Image", 1);
attachMovie(Preloader.this[ImageNo], "Image", 1);
but like the others... it doesn't work

please help

Loading An External Swf Inside A Movieclip That Is Inside Of A Movieclip
I was wondering if anyone could help me!!!! I used the tutorial for loading external swf's into a movieclip off of this site. But what I am trying to do is load another external swf inside of that external movieclip. Not sure if that makes sense. I kind of have it working where it loads the first external clip. But when I press a button to load a different one, it plays the transition then loads nothing. It's just blank.

This is the AS 2.0 that I am using for the external swf button that is inside another:

on (release) {
if (this._parent.currMovie == undefined) {
this._parent.currMovie = "StrategicPlanning2";
container2.loadMovie("StrategicPlanning2.swf");
} else if (this._parent.currMovie != "StrategicPlanning2") {
if (container2._currentframe>=container2.midframe) {
this._parent.currMovie = "StrategicPlanning2";
container2.play();
}


}
}

And this is the AS that I am placing on the last frame in the actions layer

this._parent.container2.loadMovie(this._parent.cur rMovie+".swf");

Please help!!! I am only a Graphic Designer!!

Loading A Movieclip
How do you load a mc symbol into the stage. (same file)
Lets say the MC was called "chip"

Loading Movieclip
HI,

I got problem with loading this:

Main_movie.swf link to 5 external swf, and all this external swf contain 6 to 7 movieclip.

When i put in preloader in the main movie it work, but still very slow, look like working but seen like never load my movieclip, so when main_movie play will not smooth, I'm not into external swf yet. Same thing I create preloader scene in all individual external swf. I click from the main_movie to one of the external swf, a loading scene show on the screen, but didn't load at all, i mean not moving, pause on screen.

What I want is a preloader for main_movie.swf(together with movieclip) let the movie play smoothly, when i click on the extternal swf, loading scene again(together with movieclip in this swf), same to other pages.

Can someone help me please, because i'm totally no idea what when wrong. Thanks!

Amiwai,

Loading Movieclip
hi
i've got an mc2 in an mc1 -how do i get a button in mc1 to gotoAndPlay the mc2?

and is it ok for one button to be doing multiple 'on release' + 'on rollover' functions.

thankyou

Loading Into A Movieclip...?
Hey Peoples,

Just curious...is it possible to load a html file into a movieclip? I tried using loadMove, but it wouldn't work. Is it possible? Thanks.

- John

Loading Swf Into Movieclip
Hi!

I finally managed to load swf to a draggable movieclip properly. I had to use the following code to scale it right:

loadMovie ("puoluesota.swf", _root.peli);
_root.peli._width=150;
_root.peli._height=150;
_root.peli._x=200;
_root.peli._y=130;


The could't set the background color right, so I added I black box to the movie loaded into the movieclip...

I have a problem with focus and keyboard events.
The movie which I'm loading is a game, and the mouse events work right but I can't make the keyboard events to work at all!

I've tried:
_root.peli._focusrect=false;
_root.peli.focusEnabled = true;
Selection.setFocus(_root.peli);


Could you please help me?
Thanks a lot!

Loading A Movieclip ?
Is there a function similar to loadmovie() but to load a movieclip instead.

Any help would be appreciated.

Loading A Movieclip
Hi guys,
Troubles again :'(.
This is what I would like to do: I'm making a movieclip, with buttons and when you roll over a button, there should appear a picture in the another movieclip so it can fade in.

The only thing that I can't do is loading a picture or movieclip into a certain movieclip or something like that.

A nice tutorial would also be welcome :d

A good answer would do me a GREAT favour

MovieClip Loading Into A Box
I have a very wide movie clip (a panoramic photo 2000px wide) That I need to load into a 190px box. Is there a way to do that so the photo isn't moving across my whole page an just in my 190 px box??

Thanks

Loading A Movieclip
Hi

I try to load a movieclip into a target.
For doing this i created a blank movieclip on a layer and i use the loadmovie action to load a swf movie into this blank movieclip but when i try to set the target in my action panel all i have is THIS.
Why doesn't my blank movieclip appear in the "insert a target path" panel withen the action panel?????And is ther any other way to lload my external movieclip into a new movieclip???

thanks

Help With A Movieclip Loading Only Once?
right, heres the deal. the first page on my site is a news/shows section for a band. once u click on images, the images will scroll which ever way you move the mouse, and it works fine. if you go to another page, then return to the images page. itll no longer work? its had me puzzled for weeks. do i need to somehow make the movieclip continious??

any help would be much appreciated as i am really stuck and have a deadline for the site soon xx
thanx, ryan

ps. heres a copy of the movie clip

Loading Movieclip
I am working in one movie and on a timeline in one movieclip I need to script a button to play another movieclip which is in a different movieclip but within the same movie. I konw that might sound confusing but i cant seemt to get this one right. Please can someone help me out.

PLEASE PLEASE HELP With Loading .jpg Into Movieclip
Hi, i am really having trouble with this and need to finish the movie to keep within my deadline, so if anyone can help that would be great.

I have two buttons and a movie clip on the stage, when clicked the buttons load an image into the movie clip. When the first button is pressed the image loads into the movie clip, but when you press the second button the second image does not replace the first image.

Can someone assist me in loading/unloading the jpg images when each button is pressed.

I have attached the files to this post.

Thanks

Phill

Loading Movieclip...
Hi guys,
I currently have a rectangle that dynamically resizes on the click of some buttons.
Each button resizes it to different sizes, yet I need a script that when the rectangle reaches its size, e.g 500 x 400, a movieclip loads.
Anyone got any ideas of how to do this?
Thanks.

Loading SWF Into Movieclip...
Hey everyone

I have a cool music-site, with a bunch of button who plays different sound objects... It's just a part of a site, so I just loaded the music-SWF into a Movieclip in the SWF with the rest of my site...

and suddenly the buttons don't play the sounds anymore...
Do I have to change how I refer to my sound objects, or what is a matter... My code in my music-SWF looks like this:


Code:
// lav soundobjekt, der skal have første tone
var interval_1:Sound = new Sound();

// lav soundobjekt, der skal have anden tone
var interval_2:Sound = new Sound();

var pianoSounds = new Array();
pianoSounds[0] = "1-C";
pianoSounds[1] = "1-Cis";
pianoSounds[2] = "1-D";
pianoSounds[3] = "1-Dis";
pianoSounds[4] = "1-E";
pianoSounds[5] = "1-F";
pianoSounds[6] = "1-Fis";
pianoSounds[7] = "1-G";
pianoSounds[8] = "1-Gis";
pianoSounds[9] = "1-A";
pianoSounds[10] = "1-Bb";
pianoSounds[11] = "1-H";
pianoSounds[12] = "2-C";
pianoSounds[13] = "2-Cis";
pianoSounds[14] = "2-D";
pianoSounds[15] = "2-Dis";
pianoSounds[16] = "2-E";
pianoSounds[17] = "2-F";
pianoSounds[18] = "2-Fis";
pianoSounds[19] = "2-G";
pianoSounds[20] = "2-Gis";
pianoSounds[21] = "2-A";
pianoSounds[22] = "2-Bb";
pianoSounds[23] = "2-H";


// Kode for play knappen
play_btn.onPress = function():Void
{
// Kode til første tone
randNumber = random(12);
interval_1.attachSound(pianoSounds[randNumber]);
interval_1.start();


// Kode til anden tone
mellemVaria = Math.floor(Math.random() * 12);

randNumber2 = mellemVaria + randNumber;

interval_2.attachSound(pianoSounds[randNumber2]);

// funktion til delay af lyd
function delaySound()
{
interval_2.start();
clearInterval(delayStarterInterval);
}
delayStarterInterval = setInterval(delaySound, 500);

}

Loading An Swf Into A Movieclip - How Do I Tell When It's Done?
Hi,

I thought I knew how to do this, but nothing seems to work . I'm using AS 1.0.

I am loading an swf file into a movieclip, when it has finished loading I want to run a function. I tried using:

Code:
if (_root.containerMC.getBytesLoaded>=_root.containerMC.getBytesTotal) {
frun();
}
But this doesn't work, I also tried checking how much _root.containerMC._level0 and _level1 etc had loaded - but this did not work either.

So how do I find out when (or how much of) an swf file has been loaded into a movieClip?

Regards,

Loading A Movieclip
Ok i am new to flash as well as action script. But i am going to jump right in. ok what i need to happen is I have a movie clip and when i rollover a button i want to refrence the move clip so it plays.
i have tried this
on (rollOver) {
gotoAndPlay("card");
}

But that does not seem to work. What ends up happening is the hole scene disapears then when i roll off it comes back.
Not quite sure were to go from here.

Thanks
Mike

[F8] Loading Into Movieclip From Xml?
Ok, I have searched and searched for days now, and I cannot find anything that will work, or that is not overly complicated and has too many extra features which I have been unable to strip out.

I'm trying to use an xml file to load images into a movie clip so that I do not have to import hundreds of images into my flash movie by hand. I don't want any scrolling, don't want any fading, just want the images to show in one column, from top to bottom.

Since I have been unable to make this work I currently have most of the images in the library in a movie clip that feeds into a scrollpane. It is set up kind of like this:

Main project -> Movie Clip -> Scrollpane -> Movie clip with images

I'd give an example of the script I've used, but I've used like 10 different scripts and nothing has even seemed to do anything, much less load my images. Thanks in advance for any help or guidance.

Loading GIF/PNG Into Movieclip
Hi!
I was going to use the loader component to do this, when I read that it didn't support loading GIFs (as I need the transparancy)... for some reason...
So instead, I've been researching to have the gif load into a movieclip and then script the rest. but... when I use the following script it just gives me a blank movieclip... is it a problem with the actual gif file? I tried it with a PNG and it did the same thing....

var mcLoaderFour:MovieClipLoader = new MovieClipLoader();
mcLoaderFour.addListener(this);
mcLoaderFour.loadClip("images/pattern/B06-031.gif", pattern_mc);
function onLoadInit(mc:MovieClip) {
trace("onLoadInit: "+mc);
}

any thoughts?

j

Loading FLV In Movieclip
I have seen NetConnection instructions for loading an FLV using the display class & addchild(). But what I want is to load a FLV file into a movieclip at a specific frame. And not have to create another SWF with the FLV embedded.

Here is what I've got. The intro page has 2 boxes that expand. One along the top that gets filled with Text Links. The second box expands in the middle of the page and at Frame 50 after the box is expanded I want the FLV to starting playing.

So once I have the NetConnection set up how do I tarket this movieclip to play the FLV. I called it intro_video

Thanks
Howard

Loading 1 MovieClip OVER Another
Hey,


So I have a project were I'd like to load different movie clips into a section. each movie clip represents a page of my website. How can I call each one internally so that the new movie clip (page) builds while the last movie clip (page) is still underneath? Example:

Btn_1 = page 1
Btn_2 = page 2
Btn_3 = page 3

If I click btn_1 page apears on my stage when I click btn_2 or 3 that page loads on top (not replaces) the other movie. If I hit btn_1 again page 1 will then load ontop(not inplace) of the existing page.


Hope that make sense and thanks for any help anyone can provide.

Loading Movieclip
Hello Community members....

Any help would be appreciated..

I have a one frame scene and in this movie I have a button... The button is being use to initiate a movie to play.

The movieclip has been placed on the stage and in the button I have attached the following actionscript...

on (release) {
_root.animation_mc.gotoAndPlay("start");
trace ("boo");
}

I have added a trace to make sure something is being called... this works and BOO is displayed, however my movieclip fails to run.

Surely a simple fix and I am being stupid, but have been struggling with this for 20mins now, if not longer.

Any help would be brilliant.

Kind Regards

Tim
www.timbronze.co.uk

Movieclip Loading
Hi everyone!

I have a movieclip containing a textbox. I have constructed a function that is supose to change the text of the textbox when i use it. But it seams that the textbox in the movieclip will not update its value after I have called the function. Can someone please help me?

thanx:)

here is a codesample:








Attach Code

function visiblekoie(tall:Number, prosento:Number){
switch(tall)
{
case 1:
agdeneskoia_mc.prosent = prosento;
agdeneskoia_mc._visible = true;
trace(agdeneskoia.prosent); // this works fine, but the agdeneskoia_mc movieclip textbox does not update...
break;
}
}

Movieclip Loading
Hi everyone!

I have a movieclip containing a textbox. I have constructed a function that is supose to change the text of the textbox when i use it. But it seams that the textbox in the movieclip will not update its value after I have called the function. Can someone please help me?

thanx:)

here is a codesample:








Attach Code

function visiblekoie(tall:Number, prosento:Number){
switch(tall)
{
case 1:
agdeneskoia_mc.prosent = prosento;
agdeneskoia_mc._visible = true;
trace(agdeneskoia.prosent); // this works fine, but the agdeneskoia_mc movieclip textbox does not update...
break;
}
}

Loading A Movieclip
hi. i know how load an external swf into a blank movieclip. but can it be done with loading a movieclip into a blank movieclip, in the same file?

heres the code i have to load an external swf


ActionScript Code:
stop();_root.loader.loadMovie(_root.m_name);}


"loader" is the instance name of the blank mc, and "m_name" is the name of the external swf. ( i have code on button press to call "home.swf"(etc) m_name. and it loads the last thing that was called m_name. to make transitions smoother)

how would i change this code to make it load a movieclip from the same file. (i'm guessing its something to do with the (_root.m_name) bit)

thanks for any help.

Loading Big MovieClip
Hi,

I'm developing a map system based on a 20x20 matrix. Only one cell is shown at the same time, and the movement across the map is performed using 4 direction arrows. Each cell is a SWF (30KB+/-) loaded into a different MovieClip. Because of the huge size of the entire map, this is gradually loaded as you're moving in each direction, but this has a problem. At the same time the user is moving from one cell to other, the application preloads the 3 or 4 four cells that will be shown later. When those preloaded cells are attached to the big map, the movement of the map stops for a while and then it moves again. I don´t know how to avoid this stop, doing a preload in parallel with the movement.

I have tried using loadMovie, loadClip,...for each map cell any ideas??
Is there any way to execute in parallel that prealoading?

thank you!!!

Loading A Movieclip After Another HELP
Hi all i am a begginer in flash . I have a flash app that has 9 buttons on every button there is a diferent movie with a presentation (a SWF movieclip) ... i need a code that will automaticaly play's the next movie after the previos one has finished ....

i tryed using this code but with no succes ...... i am waiting for suggestion on how to make this work

This is the full code of the flashh app ...

Code:
BttnOne.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuOne.gotoAndPlay(2);

};

BttnOne.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuOne.gotoAndPlay(11);

};

BttnOne.onRelease = function ()

{

targety = BttnOne._y;

mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

currNum = 1;

};

BttnTwo.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuTwo.gotoAndPlay(2);

};

BttnTwo.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuTwo.gotoAndPlay(11);

};

BttnTwo.onRelease = function ()

{

targety = BttnTwo._y;

mcHolder.loadMovie("DR_mc/" + curr + "2" + ".swf");

currNum = 2;

};

BttnThree.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuThree.gotoAndPlay(2);

};

BttnThree.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuThree.gotoAndPlay(11);

};

BttnThree.onRelease = function ()

{

targety = BttnThree._y;

mcHolder.loadMovie("DR_mc/" + curr + "3" + ".swf");

currNum = 3;

};

BttnFour.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuFour.gotoAndPlay(2);

};

BttnFour.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuFour.gotoAndPlay(11);

};

BttnFour.onRelease = function ()

{

targety = BttnFour._y;

mcHolder.loadMovie("DR_mc/" + curr + "4" + ".swf");

currNum = 4;

};

BttnFive.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuFive.gotoAndPlay(2);

};

BttnFive.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuFive.gotoAndPlay(11);

};

BttnFive.onRelease = function ()

{

targety = BttnFive._y;

mcHolder.loadMovie("DR_mc/" + curr + "5" + ".swf");

currNum = 5;

};

BttnSix.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuSix.gotoAndPlay(2);

};

BttnSix.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuSix.gotoAndPlay(11);

};

BttnSix.onRelease = function ()

{

targety = BttnSix._y;

mcHolder.loadMovie("DR_mc/" + curr + "6" + ".swf");

currNum = 6;

};

BttnSeven.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuSeven.gotoAndPlay(2);

};

BttnSeven.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuSeven.gotoAndPlay(11);

};

BttnSeven.onRelease = function ()

{

targety = BttnSeven._y;

mcHolder.loadMovie("DR_mc/" + curr + "7" + ".swf");

currNum = 7;

};

BttnEight.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuEight.gotoAndPlay(2);

};

BttnEight.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuEight.gotoAndPlay(11);

};

BttnEight.onRelease = function ()

{

targety = BttnEight._y;

mcHolder.loadMovie("DR_mc/" + curr + "8" + ".swf");

currNum = 8;

};

BttnNine.onRollOver = function ()

{

this.gotoAndPlay(2);

TextOver.MenuNine.gotoAndPlay(2);

};

BttnNine.onRollOut = function ()

{

this.gotoAndPlay(11);

TextOver.MenuNine.gotoAndPlay(11);

};

BttnNine.onRelease = function ()

{

targety = BttnNine._y;

mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

currNum = 9;

};

function chkPP()

{

if (statePP < 1)

{

mcHolder.stop();

statePP++;

trace("stop + " + statePP);

PP.gotoAndStop(2);

}

else if (statePP > 0)

{

mcHolder.play();

statePP = 0;

trace("start + " + statePP);

PP.gotoAndStop(1);

} // end if

} // End of the function

function chkskip()

{

if (currNum == 8)

{

mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

mcHolder._lockroot = true;

currNum = 9;

trace(currNum);

PPup();

chkSlide();

}

else if (currNum == 9)

{

mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

currNum = 1;

trace(currNum);

PPup();

chkSlide();

}

else

{

currNum++;

mcHolder.loadMovie("DR_mc/" + curr + currNum + ".swf");

trace(currNum);

PPup();

chkSlide();

} // end if

} // End of the function

function chkcurrent()

{

if (currNum == 1)

{

mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

currNum = 11;

trace(currNum);

PPup();

chkSlide();

}

else

{

currNum--;

mcHolder.loadMovie("DR_mc/" + curr + currNum + ".swf");

trace(currNum);

PPup();

chkSlide();

} // end if

} // End of the function

function PPup()

{

PP.gotoAndStop(1);

statePP = 0;

} // End of the function

function chkSlide()

{

if (currNum == 1)

{

targety = BttnOne._y;

}

else if (currNum == 2)

{

targety = BttnTwo._y;

}

else if (currNum == 3)

{

targety = BttnThree._y;

}

else if (currNum == 4)

{

targety = BttnFour._y;

}

else if (currNum == 5)

{

targety = BttnFive._y;

}

else if (currNum == 6)

{

targety = BttnSix._y;

}

else if (currNum == 7)

{

targety = BttnSeven._y;

}

else if (currNum == 8)

{

targety = BttnEight._y;

}

else if (currNum == 9)

{

targety = BttnNine._y;

} // end if

} // End of the function

stop();

statePP = 0;

_root.curr = "Mc";

mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

currNum = 1;
Thanks in advance!!!!

Loading Jpg/gif Into Movieclip
Hi,
I want to create a gallery,
to do so, I need to create about 10 movieclips 100x100 on the stage
and load jpg/gif files into them.
How can I do it in AS3?

Thanks

Loading A Movieclip
hi. i know how load an external swf into a blank movieclip. but can it be done with loading a movieclip into a blank movieclip, in the same file?

heres the code i have to load an external swf


ActionScript Code:
stop();_root.loader.loadMovie(_root.m_name);}


"loader" is the instance name of the blank mc, and "m_name" is the name of the external swf. ( i have code on button press to call "home.swf"(etc) m_name. and it loads the last thing that was called m_name. to make transitions smoother)

how would i change this code to make it load a movieclip from the same file. (i'm guessing its something to do with the (_root.m_name) bit)

thanks for any help.

Loading Movieclip Help
hi, i need help (yes, again )

i want to load a movieclip into a blank movieclip once the root stops at a certain frame.

here is the code i have on the frame.


ActionScript Code:
stop();_root.loader.gotoAndStop(1);chosen = "mc1";


i wasnt sure how to give an instance name to a movieclip which isnt being used (only loaded) but i tried the linkage and called it mc1, it didnt work!
loader is the instance name of the blank movieclip.

any help would be great.


thanks.

Loading Movieclip
I'm not sure how I'm supposed to do this. Fairly new to AS.

I'm trying to make a movie with buttons along the left and an area next to it where I want movieclip content to load. Am I supposed to make this area an empty movieclip so that I have somewhere to tell the other movieclips to open? How do I do this?

Also, is there a preferred way of loading the movieclip with the content? Which AS do I use? I've searched the web and can only find how to load external .swf files, not movieclips.

Thanks in advance,
Midori

Help With Loading Swf Into A MovieClip
I am kind of a newbie when it comes to flash but yeah...Ok I have a flash file that has some other stuff going on around it, but the content of this fla is a movieclip loaded from another flash file. Here is my code in the file that is doing the loading.


Code:

empty.loadMovie('tester2.swf'); empty._x = 0; empty._y = 0;



Empty of course as you can see is the name of my movieclip, and tester2.swf is the name of the file that I am trying to get. Well tester.swf works just fine when I load it by itself. However, when I load it into this movieclip of this other swf file it does not work at all. All it does it just takes an image from the tester.swf and puts it on the screen. I believe the tester.swf is a flash 8 file, but when I saved it, it said it was saving it as a CS3, but who knows how that works. Any ideas what I can do to fix this problem? If you need more info just let me know.

Also I tried searching for this problem, but I could not find anything similar.

Big Problem With Loading Within A Movieclip...please Help
sup guys ok heres the problem.......i have 2 movies the main page and the profile page. The profile pages loads in a movieclip which is placed on the maintime line on the main page. That part i can get to work. heres te problem

in the profile movie i have a vertical scroller which has this in the actions clip:
starty = getProperty(_root.main, _y);
starty2 = getProperty(_root.mc2, _y);

the problem is that when PROFILE loads in the movieclip the _root is now that of the MAIN page....so the scroller doesnt work.....can someone please help me....

Thanx

Peace

Loading Within A Movieclip Problem
sup guys...ok heres the problem.....im loading movie1 in a movie clip which is placed in movie2....the problem is that i have a scroller and and it comes up right over movie2 i wanted it to come under the movie....so i moved the layers around but that didnt work....does anyone know how to get around this problem.....i really need help on this soon....thanx for any help

Peace

Loading Variables To A Movieclip?
if have a text file in the same directory as my swf and the text file is named info. and it has a variable in it called content="this is a test". and the swf has an object on the stage of the main timeline called calendar. and inside calendar there is a dynamic textfield that is named content.
so basically as you have figured i want to load content from the text file into content within the calendar. where to i put my actionscript that basically has loadVariableNum? and what is the code that i put into there?

Loading An Exterbal Swf Into A Movieclip?
Can anyone help me with loading and external swf located on the net into a movieclip located in the main timeline?

Loading Into A Placeholder Movieclip
I saw this done on a website and was wondering what the script would be...

appeared as though they had pulled another webpage into a placeholder movieclip, almost like using frames in flash..

If i wanna load another website into a movie, how can i simulate "frames"?
its possible that the website's navigation bar was flash and the rest of the page was not, but if there is a way to load a page into flash... you get the idea.
thanks,
-myk

Loading An External Movieclip
I load an external movie within a fla. but when is loaded appears on the topleft corner, I guess is the default position.
what I am trying to do is to load it , but not in the default position.
I hope to be clear.
Thank´s


__________________
jerry

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