(f8) Question About Loading Empty M.c.'s
hi all!
got a question about loading empty m.c.'s. my new site will be 1 frame with m.c.'s nesteled within. so the loading m.c.'s (3-4) will all be of varying sizes to make up the whole page dimensions. so the question is about the m.c.'s that will be loaded, do i:
-make the m.c. full sized (1024x768) and just make the content fit the space (1024x200) where you plan to use it...or
-make the m.c. the actual size that will fit the intended space.
i am aware that either one of these methods will work. just looking for some feedback so i can avoid any possible pitfalls.
thanks!
FlashKit > Flash Help > Flash General Help
Posted on: 12-22-2006, 08:41 PM
View Complete Forum Thread with Replies
Sponsored Links:
Loading Swf Into Empty Mc
I want to load swf's into an empty mc. On the root timeline I have an empty mc (instance name - swfholder) and on one of my buttons I have my AS
on (release) {
_root.swfholder.loadMovie("gallery.swf",10);
}
which I want to load in gallery.swf, However nothing happens any idaes please
View Replies !
View Related
[F8] Loading SWF Into Empty MC
Hey there,
Quick question: I need to load an external SWF into my main movie. The SWF to be loaded has smaller dimensions than the main movie and needs to placed at specific x/y co-ordinates. I have used the following:-
createEmptyMovieClip("container", 1);
loadMovie("loaded.swf", "container");
container._x = 70 ;
container._y = 0 ;
This is working, only the BG color of the loaded SWF is not displaying.
Can anyone suggest what I need to do/ adjust please ?
Many thanks
Q.
View Replies !
View Related
Loading In An Empty MC
I have a main movie:
main.swf
main.fla
and a navigation system that I need to load into the top:
nav.swf
In the first frame of main I have some actions:
---------------------------------------------------------
_root.nav.loadMovie("nav.swf");
---------------------------------------------------------
_root.nav is the instance name for the empty MC.
NOW - I know it loads - cos when I moved it around I obscured some objects on the main.swf stage. BUT none of the content runs!? Try running nav.swf for yourself and see - there's plenty of it there!
There must be a really simple answer to this............please....someone help
Jay.
View Replies !
View Related
Loading Swf's In Empty Clip
Hi
I have a question regarding loading swf's in an empty clip. I was able to load my swf into an empty Movie Clip in the main movie, and the postioning is fine. When I test the main movie which is larger than my loaded swf the loaded swf file doesn't crop to the size of the stage I created it initially. Example Main Movie stage size is 550 x 400 pixels and the Swf stage size is 220 x 80 pixels(with moving elements starting off stage). It seems to show parts of the swf movie that start moving off stage, all I really want it to show is the stage and not the off stage items. When I test the loaded swf on its own it seems to be cropped to the stage size.
Any help on this would be greatly appreciated!
Thanks
View Replies !
View Related
Loading Images Into Empty Mc
I need to know if I can load a image into my empty mc. The images have to be in the same directory as the fla. But can I test this with out uploading swf to server. And also, can I unload that image and repeat with new image. Help on the script would be nice, thanks. PS using MX
View Replies !
View Related
Loading A .jpg Into Empty Mc Distorts .jpg
HI!
I am loading .jpgs in to a empty movie clip that is on top of a small animation. when the .jpgs get loaded they seem to shift a bit back and forth slightly with the animation that is under it. when I preview it within flash its ok. when i publish and view it thru my browser(IE5.1 Mac) i get the shift. what is happening here? it is a browser/plug-in issue and is there a way around it?
thanks..
View Replies !
View Related
Loading External .SWF Into Empty MC
I've working on a site w/ thumbnails that when clicked load an external swf file into an empty MovieClip.... I've been able to get this to work no problem until I pushed the site up to the server...
Now the external swf loads only after the thumbnail is clicked TWICE. Initially this was working on the first click....
Any advice?
Here's the site:
www.isaacpierro.com
(some of the imagery is a little dark, so don't visit if you're easily offended)
Thanks in advance...
View Replies !
View Related
Loading A Movie Into An Empty MC
I have created some flash movies that will be the pages to a website.
I have them load into an empty movie clip when the corresponding menu button is clicked.
I created an intro and an outro to each page.
How do I tell the empty MC to load the next movie once the current movie is done playing its outro?
View Replies !
View Related
Trying To Load My Flv Loading Swf Into An Empty Mc. HELP
I'm trying to play a swf which loads an flv. I'm trying to load that swf into an empty movie clip. Assume that movie clips name is empty_mc, where do I put it? Under tight deadline so any help would be great. Thanks!!!
here's the error:
level = error
code = NetStream.Play.StreamNotFound
here's the code...
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("my_movie.flv");
my_ns.onStatus = function(info) {
for (var i in info){
trace(i+" = "+info[i]);
}
if(info.code=="NetStream.Buffer.Empty" && waitingForEmpty==true){
//display a play button because the video is done
replay_btn._visible=true;
}
if(info.code=="NetStream.Play.Stop"){
waitingForEmpty=true;
}
};
waitingForEmpty=false;
replay_btn._visible=false;
replay_btn.onPress=function(){
replay_btn._visible=false;
waitingForEmpty=false;
my_ns.play("my_movie.flv");
}
View Replies !
View Related
Loading Swf Into Empty MC Scaling
I have a external swf that I am loading into a empty movie clip. This swf is 504x360 but the MC is smaller 260x186 .. How can I make this fit into the MC.. When I test this it is larger than the entire stage. I am using MX 2004 Pro..
This empty MC is inside another swf, that is loaded into a main swf.
thanks
View Replies !
View Related
Loading MCs From Library Into Empty MC
Hi all,
I have inherited a file from the previous designer that has alot of separate movie clips that are targeted from a main navigation(buttons) list.
Is there a way to load the movie clips from the library (i.e. not have them on stage) into an empty "container" movie clip when a user selects its button form the main nav list?
View Replies !
View Related
Loading Swf Files Into Empty MC
My site has three frames, 1 is the preloader, 2 is the intro movie, and 3 is the main scene. In the main scene I have an empty MC called mainempty that covers most of the stage. The only part not covered is a small area at the top which has the nav buttons which never leave this location. In frame three of the main layer, I have an action statement which is
loadMovie ("A.swf", mainempty);
The movie loads perfectly. Three of the nav buttons changes the pages by loading different swf. files into the empty movieclip. These nav buttons are located within a button that is within a movieclip. They are part of a drop down menu. When I selected one of the buttons, I added
on (release)
_root.loadmovie ("B.swf", mainempty);
This loaded the movie but the entire stage shrunk to only the B swf. Then I tried adding an extra frame to the main stage, along with all artwork to extend it one frame (4). On the action frame of: loadMovie ("A.swf", mainempty);
I deleted it. I just left it blank. The problem is still there. The movie loads but shrinks to just the swf file. How do I load a swf file and keep the main stage there?
View Replies !
View Related
Loading Swf Files Into Empty MC
My site has three frames, 1 is the preloader, 2 is the intro movie, and 3 is the main scene. In the main scene I have an empty MC called mainempty that covers most of the stage. The only part not covered is a small area at the top which has the nav buttons which never leave this location. In frame three of the main layer, I have an action statement which is
loadMovie ("A.swf", mainempty);
The movie loads perfectly. Three of the nav buttons changes the pages by loading different swf. files into the empty movieclip. These nav buttons are located within a button that is within a movieclip. They are part of a drop down menu. When I selected one of the buttons, I added
on (release)
_root.loadmovie ("B.swf", mainempty);
This loaded the movie but the entire stage shrunk to only the B swf. Then I tried adding an extra frame to the main stage, along with all artwork to extend it one frame (4). On the action frame of: loadMovie ("A.swf", mainempty);
I deleted it. I just left it blank. The problem is still there. The movie loads but shrinks to just the swf file. How do I load a swf file and keep the main stage there?
View Replies !
View Related
Loading A Swf Into An Empty Movie Clip
hi...
i'm trying to load an external swf into an empty movie clip in my main swf.
the code i have on my button is
on (release) {
loadMovie ("cd.swf", _root.empty);
}
empty being the name of my movie clip
i also tried it with the _root.empty in " "
neither way works.
any suggestions?
thanks
fxgrl
View Replies !
View Related
Loading External MC Into EMPTY Clip
I have a button that when clicked loads an external MC into placeholder1 MC. Now, if this placeholder1 MC already has a swf loaded in it, I want the swf to load into placeholder2 MC. How can I detect if placeholder1 MC is full and then redirect the MC to load into placeholeder2?
View Replies !
View Related
Loading External File In Empty Mc
Very new here. I just want to be able to create a series of buttons-thumbnails really- that load an external file into an empty movie clip on the stage. Simple right?
I tried to emulate by essentially copying a similar situation I read in this forum, but the problem is that when I click on my button, the external file opens in a new window and my original swf is no longer visible.
I would like to know where I went wrong. I have attached a simple sample fla of what I am trying to do. Thanks.
View Replies !
View Related
Loading A Swf Mc Into An Empty Target Movieclip
The other day Pellepiano explained how there are two ways of loading external files into Flash. Loading swf files into levels or into movieclip targets.
He recommended the second method which I followed with the help of another person. The problem is that the swf I am trying to load in is a scrolling 360 degree panorama whose speed of scrolling is determined by the position of the cursor. When we load it in it doesn't work and we surmise that the problem is the inability of a swf nested inside another swf to detect the action and the position of the cursor.
If pellepiano is looking in, do you have any suggestions. Or anyone looking in? Any thoughts on this?
View Replies !
View Related
Loading Multiple External .swf In The Same Empty MC
I have movie clips (external .swf's) loading in a empty MC on my main stage. The empty MC is then copied on different frames. Buttons key to the particular frame and loads the external movie. If a another button is selected while the first one was loading, the second one loads and then flickers. If this makes any sense, which I don't think it does. Check out the website and see for yourself. www.dehar.com Go to services and selecta project type, and then a project, don't wait till it loads, select another project, and let that one load. Any help? I can also send the source file too.
View Replies !
View Related
Loading SWFs Into Empty Movieclips
I am creating a website to put pics of my son on...an online photo album for the family.
Anyway, I created a polaroid background in photoshop and then created a SWF that has the polaroid background, s button to increase/decrease the size of the SWF, and an empty movieclip to hold the pic.
The part of the project I am working on now, is the 'album' part, where I will use PHP to load in all of the names of the pics that will be in the folder, and then I want to make an instance of the Polaroid.SWF for each of those pics.
But, I can't get it to work:
Code:
var aPics:Array = new Array("test.jpg","test1.jpg");
var nIndex:Number;
for (var i:Number = 0;i < aPics.length; i++){
CreatePolaroid(aPics[i], nIndex);
};
function CreatePolaroid(PicName){
var mc:MovieClip = createEmptyMovieClip("mcPics" + nIndex, nIndex);
var mcLoader:MovieClipLoader = new MovieClipLoader();
nIndex = this.getNextHighestDepth();
Listener = {};
mcLoader.loadClip("Polaroid.swf", mc);
Listener.onLoadInit = function(mc) {
mc.LoadPic(PicName);
};
mcLoader.addListener(Listener);
};
Any ideas?
View Replies !
View Related
Loading Jpegs Into An Empty Clip...
i'm not sure if i have the code wrong...
i'm trying to use buttons (with code on the first frame of the main timeline refering to each button)... to load jpegs into an empty movie clip in a swf that eventually loads into the master flash file...
if anyone has generic code on how to do this... please post it... i know it seems simple... but for some reason what i have isn't working...
i would post it but i'm not at my own computer...
thanks...
View Replies !
View Related
Get The Size Of An Empty MC After Loading An Image, How?
Hi!
I have an empty MClip which loads a jpg image. Once it's loaded, I'd like to know the resulting size of the MClip.
However, whenever I trace it, it always returns 0.
This is what I'm doing:
I load my jpg image to my empty MC called DummyMC.
loadMovie(JPGimage,"DummyMC");
If now I trace the width or height, it returns 0:
trace (DummyMC._width);
trace (DummyMC._height);
I guess it's easy to solve...can anybody give me some light please?
Thank you!
View Replies !
View Related
Loading External Swf Into Empty MC Container
Hey all,
I recently purchased a couple pieces of flash.
I got everything working but am having a problem getting the menu to load files into the container MC. Which is "centerMC" for reference.
Could someone take a look and show me how to get started. I've tried a few things but haven't gotten any working.
The code is commented.
For testing I was trying yo load "1.swf" into the "centerMC"
Don't worry about the current error I just didn't upload the mp3 to keep the file size down.
Thanks,
Kris
View Replies !
View Related
Loading Swf Into Empty Mc In A Html Page
Hello Flashers,
I've set up a html page that contains a swf file with an empty movie clip in which I wish to load another swf.
However I trie to do it, it just won't listen.
Can anybody help me with this.
Situation:
html page (complete one, with tables etc.) contains main swf file (in a table) which contains an empty movie clip.
Within the main swf there is a button which should load another swf file into the empty movie clip.
What happens is that the external movie clip is loaded into level 0 of the main movie.
It usualy works fine just with flash site but within the html page it results differently.
Is it possible to get it right.
Thanks
Justin Time
View Replies !
View Related
White Screen When Loading New Swf In Empty MC
Hello,
I apoligize if this question has been asked and answered before I went through the past posts but couldn't find anything.
So here is my problem.
I have an swf with an empty MC in which I load
different swf files. When I click on the button that
is supposed to load the new swf in the empty MC I
first get a white blank screen for a tiny second and
then it loads the new swf. This is the script I have
on the button
on (release) {
_root.MC_container.loadMovie("new_file.swf");
_root.MC_navigation.loadMovie("NavBar.swf");
_root.section_check = 1;
}
Any ideas on how I can avoid this from happening without using a preloader?
Thanks!
Camilla
View Replies !
View Related
Loading External Images Into A Ton Of Empty Mc's
Can someone direct me as to the absolute easiest--most dumbed-down way to reference an empty movie clip (in my timeline) to an external image? Specifically, I have about 100 emtpy movie clips and would like to apply a simple actionscript linking them either directly to the external image or to one global xml scripted list of images such as this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>images/image1.jpg</image>
</pic>
<pic>
<image>images/image2.jpg</image>
</pic>
<pic>
<image>images/image3.jpg</image>
</pic>
</images>
If anyone knows of one global actionscript I can use that references all of the mc's to all of the images that would be even better. Thanks.
View Replies !
View Related
Loading External .swf's Into Empty Movieclips
I was wondering if you guys could take a look at my .fla and tell me what I'm doing wrong........I have gone over it about a thousand times and I can't figure out what I am doing wrong...
my goal is to load external .swf files into an empty movieclip called container....
i have attatched the main movie.....test.fla.
and i have attatched a sample swf to load....
all the code is in there....just can't seem to get it working....
if someone could give me a pointer that would be awesome!
View Replies !
View Related
Problem Targeting Empty Mc For Loading Swf's
Hey guys, i need some help figuring this out. I did the tutorial on the infinite navigation menu, and it all worked out. My problem is when i assign the loadmovie action to the buttons in this nav. menu to load seperate swf's, only the level method works. When i try to target a blank movieclip i created in the main timeline, nothing happens. Anyone got any suggestions?
View Replies !
View Related
Loading Images Into Empty Movieclip
first step:
How do i position dynamically loaded images inside of an empty movieclip?
The empty movie clip is named "cldImage"
i tried to give the content loaded an instance name of content_mc and reposition it:
var content_mc:MovieClip = cldImage.content;
content_mc._x = 100 ;
contetnt_mc._y = 200 ;
However that did not work...the image is still positioned to the bottom right of the center of the movclip cldImage.
i know that movieclips have a default registration in the center - and image registrations are in the top left corner - what i am trying to achieve is to have the image load in the center of my stage in which the empty movieclip itself is placed.
any suggestions?
View Replies !
View Related
Loading Movies Into Nested Empty Mc
Hello all,
I have a question in regards to this tutorial:
http://www.kirupa.com/developer/mx2004/transitions.htm
I understand the idea in which you can load movies into an empty mc holder. However, I would like to be able to load other movies using another empty mc within this empty mc, so for example, on certain pages the nav at the top would stay the same, but the content inside would change. At other times when the user clicks on a button, the whole page would change. Can someone please guide me in how this can be done?
Here is the code which is attached to the buttons:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section1";
container.loadMovie("section1.swf");
} else if (_root.currMovie != "section1") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "section1";
container.play();
}
}
}
Any help would be greatly appreicated. Thanks in advance…
View Replies !
View Related
Loading .swf File Into Empty Container
I am using the following code to put a .swf file into an empty container when the page loads. This works fine in flash, but when I put it into dreamweaver and upload it to the web site, it does not work – the container does not load when the page comes up.
Do I need additional code (or something else) to have the browser read the command??
_root.container.createEmptyMovieClip("container",1 );
loadMovie("test_container.swf","container");
View Replies !
View Related
Loading Into Empty Movie Clip
Hi. Can anyone help me work something like this on release command into the prexisting code further below? I'm not sure how, and everything I try doesn't seem to work. Basically I have an empty "mc" on the stage, but am not sure how to change the actionscript so the 'on release' function recognizes the target mc. (I'm using the same movie clip name.)
Code:
}
on (release) {
_root.mainstageMC.loadMovie();
}
Following are 2 portions of prexisting code in which I'ld like to specify that the pages open within the "mainstageMC" on the release function.
Code:
newBut.onRelease = function() {
if (this.submenuCnt>0) {
var butNum:Number = new Number(this._name.substr(3, 1));
this.createSubMenu(butNum);
for (i=0; i<mainMenus.length; i++) {
if (i<butNum+1) {
_root["but"+i].getPos(_root["but"+i].y);
} else {
_root["but"+i].getPos(_root["but"+i].y+this.submenuCnt*20);
}
}
}
Code:
MovieClip.prototype.createSubMenu = function(buttonNumber:Number):Void {
clearSubMenus();
subMenus = mx.xpath.XPathAPI.selectNodeList(mainMenus[buttonNumber], "/menu/submenu");
var butNum:Number = new Number(this._name.substr(3, 1));
for (i=0; i<subMenus.length; i++) {
subBut = _root.attachMovie("submenu", "subMenu"+i, Math.random()*999999);
subBut._alpha = 0;
subBut._x -= i*5;
subAppear(subBut, (i+3), 12);
subBut._y = this.y+this._height+(subBut._height+3)*i;
subBut.txt.text = subMenus.attributes.txt;
subBut.link = subMenus.attributes.link;
subBut.but.onRelease = function() {
getURL(this._parent.link);
};
}
};
Can anyone please help...? I would be very grateful.
View Replies !
View Related
AS 2 Empty Movie Clips Not Loading
I am trying to make a video player that after it is done playing it will pop up 3 choices for the user to choose from and play the next video. It all works when i test it on my machine, but when i put it up on a test site nothing loads into the empty movie clips that i have in the player. Any help would be great... i have tried everything i can think of and i am going crazy...
View Replies !
View Related
Loading External Images Into A Ton Of Empty Mc's
Can someone direct me as to the absolute easiest--most dumbed-down way to reference an empty movie clip (in my timeline) to an external image? Specifically, I have about 100 emtpy movie clips and would like to apply a simple actionscript linking them either directly to the external image or to one global xml scripted list of images such as this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>images/image1.jpg</image>
</pic>
<pic>
<image>images/image2.jpg</image>
</pic>
<pic>
<image>images/image3.jpg</image>
</pic>
</images>
If anyone knows of one global actionscript I can use that references all of the mc's to all of the images that would be even better. Thanks.
View Replies !
View Related
Loading External .swf's Into Empty Movieclips
I was wondering if you guys could take a look at my .fla and tell me what I'm doing wrong........I have gone over it about a thousand times and I can't figure out what I am doing wrong...
my goal is to load external .swf files into an empty movieclip called container....
i have attatched the main movie.....test.fla.
and i have attatched a sample swf to load....
all the code is in there....just can't seem to get it working....
if someone could give me a pointer that would be awesome!
View Replies !
View Related
Loading Movieclips To Empty Movieclip...?
I guess this is a common question, but I´m looking for a tutorial and I cant find one...maybe I´m not looking for the correct words.
I want to do a simple thing - instead of having lots of pages, I want make everything in the same fla, loading movieclips to the stage, to a empty movie clip (I guees thats the way). Don´t need to be external movies (swfs). Look for example http://www.iso50.com/iso50.html ... this is made this way right? Loading the movieclips to the right side of the stage...Am I wrong?
If anyone can explain to me, or if someone knows a good turorial, please share...that would be a great help
Thanx for any help
Hugs
This forum rules
View Replies !
View Related
Loading Into Empty Clip ALL In Html_problem
Hello ShockWorld,
to put it simply - I need some good answer on this question:
I've made a HTML file which contains swf file which contains an empty movie clip in which I want to load an external movie when certain button is clicked.
It's not working the way I want; either it's loading desired movie into _root (level zero), meaning losing primary movie, either not loading at all.
Did I missed something along the way?
Any experience with this, anybody?
any help, good help
thank you
VictoryVector (except now)
View Replies !
View Related
Loading An External SWF Into A Target Empty MC?
is it possible to load an external SWF into a targeted level? and into an empty MC?...
i tried this
i created an empty MC the same size as the movie... in the loader SWF i loaded the external SWF into that level and MC like root.loadhere where "loadhere" is the blank MC...
it didnt work..however it loaded the external SWF but the position is not where i want it...
and how do u justify which layer..cuz i dont want it to cover the other MC..
any help is greatly appreciated..
View Replies !
View Related
Problem Loading New SWF Inside Empty MC After X Seconds
I'm creating a SWF that has an empty MC (_root.contentMain) in it that loads a series of external SWF's after 15 seconds. (example: mov1.swf, mov2.swf, etc.) Now the first one loads fine. On that first one I have an Script at frame 180 (15 seconds in) that tells it load a new SWF inside the same empty MC. Instead it loads the same SWF instead. I checked the script and it's right so why is this happening?
I think there's another way to do this using getTimer but I'm not sure what that is.
View Replies !
View Related
Loading Jpegs Into An Empty Movie Clip
loadMovie(_root.list3[0].fullsize, "placeholder");
this is how I am loading my jpeg
_root.list3[0].fullsize(this is where the jpeg is located)
This is working fine but I want to know why it is loading the jpeg at x=0,y=0 of the "placeholder" movieclip.
Can I change the coordinates of where the jpeg is loading without repositioning "placeholder" mc.
If so, how do I with my existing loadMovie function at the top of this message.
View Replies !
View Related
Loading An Empty Movie Clip On A Different Layer?
G'day All!
ok I have a button, when I rollover it, it brings up a movie clip which is basically just an image fading in. when you roll off it fades away....
I have got an empty movie clip on the stage which I am loading into..
But it keeps loading ontop of all my layers, so how do I make it load say on layer 2???????????????
Im using the following code..
__________________________________________________ _________________
on (rollover) {
_root.attachMovie("rollover2","rolloverClip2",2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;
}
on (rollOut) {
_root.attachMovie("rollover2_off","rolloverClip2", 2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;
}
__________________________________________________ _________________
View Replies !
View Related
Loading External Swf Into An Empty Movieclip With Problems?
Hi guys,
I would like to loadMovie an external SWF into a specific Movieclip, but I fail, as only part of the external SWF is loaded.
The external SWF, testnews4.swf has only one scene. Its size is only 180 X 120 pixels which is smaller than the main movie. The size of the Movieclip included in the main movie is also 180X120.
The code I use is:
loadMovie("testnews4.swf",_level0.Movieclip);
I also tried with :
loadMovie("testnews4.swf",_parent.Movieclip);
and with
loadMovie("testnews4.swf",”Movieclip”;
I enclose the testnews4.fla.
How could i possibly do that?
Many thanks for your help.
Raoul
View Replies !
View Related
|