Container Issue
Hi,I am very new to flash and hence doing this work for local group as part of learning flash MX.I got only one section on this site where I got 7 buttons that loads different swf files. I DON'T WANT ALL WORK IN ONE SWF FILE SINCE IT TAKES AGES TO LOAD. So I made up this different swf files.This is the instance of button and how it does animation on mouse over.outside on button i got AS as following..I got empty movie instance name, container.Now, this is NOT working. I tried putting following code INSIDE one of the button (though this are button that are movie instace and not button type) Code: on (release) {_root.container.loadMovie("decorationfive.jpg");} Please help me on how to get this work. I have never done this before so I might sound stupid. lolAll I want is when I click on buttons, it loads external swf file on main stage.Thanks~A~
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-21-2006, 10:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Container Issue
I have a crazy issue here.
I have a nav that loads external mc's into an empty container. The mc's are slide shows for different houses. Each has a manual back/ next function aswell as a auto function. The homes are called from an xml file. Anyway the issue is the auto function. If a user clicks the auto fuction it works as it should but once they load a different home the auto function is already rollin on that mc. The manual button is engaged but its still on auto??
http://crowell.cc/index2.html
Go to portfolio->book one and click on the first image click auto then go back to book one and click on the second image. Here you’ll see my problem.
Is there a way to cancel each previous actionscript after each mc is loaded? Or some other solution??
Here is the link for the files....a little big but it includes the images called from the xml file so you can get an idea of how it should work. The only (Homes) images that are functional are top 3 in book 1.
http://crowell.cc/kirupa.zip
Hope my files dont scare you! Ive included the fla for the stub, portfolio detail or book one and the fla that calls the xml to load each house.
Thanks!!!!
nils
Any other critiques welcome!
Container Issue
I have a crazy issue here.
I have a nav that loads external mc's into an empty container. The mc's are slide shows for different houses. Each has a manual back/ next function aswell as a auto function. The homes are called from an xml file. Anyway the issue is the auto function. If a user clicks the auto fuction it works as it should but once they load a different home the auto function is already rollin on that mc. The manual button is engaged but its still on auto??
Is there a way to cancel each previous actionscript after each mc is loaded? Or some other solution??
Any ideas?
Cheers!
Nils
http://www.redcross.org/
[F8] Complicated Loadmovie Container Issue
I'm new to this, I have a flash movie which I call interface.swf. which is basically layed out like this:
I can click on the buttons to load various flash movies into the movieclip named "moviecontainer" within the interface.swf. Everything works fine, I use the code:
PHP Code:
loadMovie("movies/100.swf", "/moviecontainer");
My problem arises when I try to load a movie which has actionscript referring to _root. For example, a movie I want to load has this:
PHP Code:
_root.onMouseDown = function ()
I figured I would have to do something like this to adapt the movie to the container:
PHP Code:
_root.moviecontainer.onMouseDown = function ()
but that doesn't work because its needs to be "/moviecontainer" not "moviecontainer"
Is there a way around this? Would I even be able to use mouse actions in a movie I loaded into another movieclip?
Any help would be much appreciated.
Stop Movie /container Clip Issue
Hello Again,
I would love if wehn I press the play/pause button I have in my movie to stop playing.
I have 19 swf files (the stop button is each one) that have been loaded into a container clip.
this is the code I have:
on (release) {
_root.stop();
_root.container_mc.stop();
if (musicplay == true) {
p = Math.round(x.position/1000);
x.stop();
musicplay = false;
} else {
x.start(p, 0);
musicplay = true;
_root.container_mc.play();
}
}
it's not working.
any help is appreciated.
Grid Layout Issue: (next / Previous / Clear Container)
Greetings again,
i have this AS2.0 gridlayout code i once wrote, which works perfectly
but since i am trying to learn AS3.0 some things aren't clear for me.
first off all:
how comes my iteration of the next/previous batch doesn't work:
it seems it cast succesfuly the first 4 items, and the "next" button appears, yet
when you click on it. the nextbatch function triggers, but the "previous button does not appear. this does! work when i put in the for loop instead of increment = my_total.length
but then ofcourse i see all items from the xml instead of my desired increment
secondly:
how do i clear my casted items, so that the results are updated? and thus my clips don't get stacked on the stage.
see the clearMenu() function for this.
heres my code, if needed i'll post the source, if this is too abstract.
I am sure i am overlooking some silly things here again, as the code nearly works like a charm, just the two pointers i mentioned.
Thanks in advance
Code:
import caurina.transitions.*;
//variables
var my_x:Number;
var my_y:Number;
var my_thumb_width:Number;
var my_thumb_height:Number;
var my_images:XMLList;
var my_total:Number;
var spacingX:Number = 5;
var spacingY:Number = 5;
var currentItems:Number = 0;
var increment:Number = 4;
var container_mc:MovieClip;
function loadXML ():void
{
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load (new URLRequest("xml_gallery02.xml"));
myXMLLoader.addEventListener (Event.COMPLETE,processXML);
}
function processXML (e:Event):void
{
//
var myXML:XML = new XML(e.target.data);
columns = myXML. @ COLUMNS;
my_x = myXML. @ XPOSITIONS;
my_y = myXML. @ YPOSITIONS;
my_thumb_width = myXML. @ WIDTH;
my_thumb_height = myXML. @ HEIGHT;
my_images = myXML.IMAGE;
createContainer ();
callThumbs ();
}
function createContainer ():void
{
//
container_mc = new MovieClip();
container_mc.x = my_x;
container_mc.y = my_y;
addChild (container_mc);
container_mc.buttonMode = true;
container_mc.addEventListener (MouseEvent.CLICK, callFull);
}
function clearMenu ()
{
for (var i in container_mc)
{
//
if (container_mc[i] is MovieClip)
{
container_mc[i].removeChild ();
trace ("clearing");
}
}
}
function callThumbs ():void
{
clearMenu ();
var i:Number;
var xMax:Number = 1003;
var iX:Number = 0;
var iY:Number = 60;
for (i = currentItems; i < increment; i++)
{
var thumb_url = my_images[i]. @ THUMB;
var thumb_loader = new Loader();
thumb_loader.load (new URLRequest(thumb_url));
thumb_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);
thumb_loader.name = i;
if (i<(currentItems+increment))
{
if (currentItems >= increment)
{
prevbtn.visible = true;
}
else
{
prevbtn.visible = false;
}
if ((my_total - currentItems)>increment)
{
nextbtn.visible = true;
}
else
{
nextbtn.visible = false;
}
}
if (iX < xMax)
{
thumb_loader.x = iX;
thumb_loader.y = iY;
iX += my_thumb_width + spacingX;
}
else
{
iY+=my_thumb_height+spacingY;
iX=0;
thumb_loader.x=iX;
thumb_loader.y=iY;
iX+=my_thumb_width+spacingX;
}
nextbtn.buttonMode=true;
prevbtn.buttonMode=true;
nextbtn.addEventListener (MouseEvent.CLICK, nextBatch);
prevbtn.addEventListener (MouseEvent.CLICK, prevBatch);
}
}
function thumbLoaded (e:Event):void
{
var my_thumb:Loader=Loader(e.target.loader);
container_mc.addChild (my_thumb);
}
function callFull (e:MouseEvent):void
{
//
var full_loader:Loader = new Loader();
var full_url=my_images[e.target.name].@FULL;
full_loader.load (new URLRequest(full_url));
full_loader.contentLoaderInfo.addEventListener (Event.INIT, fullLoaded);
container_mc.removeEventListener (MouseEvent.CLICK, callFull);
}
function fullLoaded (e:Event):void
{
var my_loader:Loader=Loader(e.target.loader);
addChild (my_loader);
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;
my_loader.addEventListener (MouseEvent.CLICK,removeFull);
}
function removeFull (e:MouseEvent):void
{
var my_loader:Loader=Loader(e.currentTarget);
my_loader.unload ();
removeChild (my_loader);
container_mc.addEventListener (MouseEvent.CLICK, callFull);
}
function nextBatch (e:Event):void
{
trace ("nextbatch");
currentItems+=increment;
loadXML ();
}
function prevBatch (e:Event):void
{
trace ("prevbatch");
currentItems-=increment;
loadXML ();
}
nextbtn.visible=false;
prevbtn.visible=false;
loadXML ();
I Can Import Swf Files Into A Container But Not Put Symbols Into A Container
I can import swf files into a container but not put symbols into a container.
Code:
on(release) {
this.createEmptyMovieClip("holder_mc", 100);
this.holder_mc._x = this.holder_mc._y = 0;
this.holder_mc.loadMovie("kanjiFlash.swf");
}
How do I get a symbol in the library to put itself into a movie clip like above when I press a symbol, on the main scene?
Glen Charles Rowell
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.
I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.
I would really appreciate some help.
Thank you!
Loading A Container Inside A Container...
I just did the "Transitions Between Swf's Tutorial", i basically understood how it works and got everything to work right, but now my next question is how can i load another container using the same technique as the tutorial shows into the exsiting container. Basically load a container inside a container.
I tried doing it by using the same idea as the tutorial but the swf that i am trying to load in the new container wont load.
I would really appreciate some help.
Thank you!
Swf W/container Loading Into Container On...
I have a MC with a container that loads external swf's. Is it possible to make one of these external swf's with a container that loads other swf's in its container too? Basically I want to load swf's in a external swf. Man, this is confusing to explain.
Which Is The Container ?
here is an instance first
personA=
{
name : "Ann",
favs :
{
site1 : "flash.com",
test1 : function(){ trace (this.site1) }, test2 : function(){ trace (this.name ) } }, test3: function(){ trace (this.name ) }, test4: function(){ trace (this.site1) }
};
I feel confused that which container is the "this" pointing to ??? the favs ???
Container
Hi... to load a movie in a container I now can give this an X,Y like this:
_root.createEmptyMovieClip("container", 10);
loadMovie("pan_svaneke1.swf", "container");
container._x = 30 ;
container._y = 40 ;
BUT in the pan_svaneke1.swf I have a button to
load the next movie pan_svaneke2.swf
Ive tried this:
on (release) {
loadMovie("pan_svaneke_2.swf", "container");
}
But i guess that I cant find the container
Anyone have an idea ?
:-) PAUK
Container
Hi... to load a movie in a container I now can give this an X,Y like this:
_root.createEmptyMovieClip("container", 10);
loadMovie("pan_svaneke1.swf", "container");
container._x = 30 ;
container._y = 40 ;
---------------------------------------------------
BUT in the pan_svaneke1.swf I have a button to
load the next movie pan_svaneke2.swf
---------------------------------------------------
Ive tried this:
on (release) {
loadMovie("pan_svaneke_2.swf", "container");
}
But i guess that I cant find the container
Anyone have an idea ?
:-) PAUK
100% Container
Hi.
I have this. http://www.reweb.ro/container/container.html
And I wanna make something like this. http://hi-res.net
The problem is when i load content.swf in the container.swf and i resize my browser the content of content.swf moves.
Here is my container.swf code:
PHP Code:
stop();
_root.createEmptyMovieClip("container",1000);
contentX = 800;
contentY = 600;
container._x = (contentX-750)/2;
container._y = (contentY-500)/2;
Stage.scaleMode = "noScale"
container.loadMovie("content.swf");
How can I make my content.swf to like the one on hi-res.net
Container Help
hey people,
Ok i have a flash movie (which i am making into a website) and i would like to have a box within the movie that is a container which loads and unloads movies within it (only in the box parameters)...how does one do this?
thanks
Vertigoknight
How To Use One Mc As Container For More Using
I update one of my old Flash site and tink about how to use one mc for multiple using.
In attached FLA is very simple example.
I used this mc many times and changed at that time manually on last frame every time the content of my 2 text fields.
It was very impractical.
Now I think about how to use those same mc if I need every time change only the value of my text fields.
I load variables and now I need only change the content of the text fields if the user clicks different menu btn.
Sure exist any practical progress how to make it.
Thank you.
Container Within Container
Could you take a look at my project. I've got: about, portfolio, and clients loading into an empty container which worked fine until i added a page 1 and page 2 container within the main container. Now the page 1 and 2 of portfolio work but not the main links of the site. I think its getting confused because i have a container within a container.
How can i get away with having a container within a container?
Thanks I appreciate your time.
http://www.ashedmonds.com/site.zip
Container Swf
guys please help me, i did this movie where the button loads an external text file to the text window using loadVariable i tested it ,and it worked perfectly, so i published the swf then i created another flash file that loads all my other swfs, sort of like frames, when i test it there, the swf doesn't display the text that it should've loaded. is it because the swf is inside another swf? what can i do about this?
Container Help
Hi all.
Beware, I'm very new still to AS3, AS ing general really.
Let's say I want to animate a spider using tweens. I have a movie clip for each part, body, eyes, legs. Coming from a 3D background, I would group the components or use constraints to hold them all together, so that when I move the body, the rest will follow. I can then use tweens to make the legs and eyes rotate randomly.
However, I have no idea how to do this in AS3. I thought I could use Containers, but can't figure that out. I thought I would be able to simply state that spiderEye.y = spiderBody.y; but that seems to only kind of work (the eye follows, but is always one tween behind!).
Any help on how I could make one movieclip follow another, whilst using the caurina tween library, would really help me out (and stop me drinking so much coffee, therefore increasing my chance of living longer!).
Take care, Andrew.
What's A Container?
Hey,
working with changing depths of instances and it says I have to have them all in a container
first. So, what's a container? Also, how do I swap depths once I get them in some kind of container?
Container In Container
Hi,
On my main stage I load an external swf file into a container named "container". In this swf file I have buttons to load another external swf file into a container in the first external swf file, named "container2".
Nothing happens when I push these buttons.
My code for loading the first external swf file:
on (release){
_root.container.loadMovie ("deschool.swf");
}
My code for loading the second external swf file:
on (release){
_root.container2.loadMovie ("voorwoord.swf");
}
Can someone help me please?
Thanks
Stefaan
How To Use One Mc As Container For More Using
I update one of my old Flash site and tink about how to use one mc for multiple using.
In attached FLA is very simple example.
I used this mc many times and changed at that time manually on last frame every time the content of my 2 text fields.
It was very impractical.
Now I think about how to use those same mc if I need every time change only the value of my text fields.
I load variables and now I need only change the content of the text fields if the user clicks different menu btn.
Sure exist any practical progress how to make it.
Thank you.
What's A Container?
Hey,
working with changing depths of instances and it says I have to have them all in a container
first. So, what's a container? Also, how do I swap depths once I get them in some kind of container?
Container In Container
Hi,
On my main stage I load an external swf file into a container named "container". In this swf file I have buttons to load another external swf file into a container in the first external swf file, named "container2".
Nothing happens when I push these buttons.
My code for loading the first external swf file:
on (release){
_root.container.loadMovie ("deschool.swf");
}
My code for loading the second external swf file:
on (release){
_root.container2.loadMovie ("voorwoord.swf");
}
Can someone help me please?
Thanks
Stefaan
Next Btn Outside Container
Hello
I have a main movie which loads in other swf files. The swf files being loaded have various slides. Although my next/previous buttons are places outside these swf files and in the main movie which is loading these swf files.
What is the best way to get the next/previous working with the loaded swf files?
Sandman9
Container Help
how can i make my photo slideshow make the photos when called go to the center of the container it alway put them to the top left !
How To Use One Mc As Container For More Using
I update one of my old Flash site and think about how to use one mc for multiple using.
I used this mc many times and changed at that time manually on last frame every time the content of my 2 text fields.
It was very impractical.
Now I think about how to use those same mc if I need every time change only the value of my text fields inside this mc.
I load variables and now I need only change the content of the text fields if the user clicks different menu btn.
Sure exist any practical progress how to make it.
Thank you.
[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.
any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22
I want it to display 11:00p-Jul.22
var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;
//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}
//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}
//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}
//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};
Container Clips?
So, I asked this question a while back and someone answered with what appeared to be pretty specific instructions....but apparently I am an idiot. I still need help. Here is what I want to do:
I have a website interface of mostly vector shapes. It's a fast load. I have a text menu. When user clicks on a specific text item, I want the coontent for that item to then load (at click time) in a sqaure box I have within the movie. for each text item clicked, a new movie loads within that box. Does that make sense? A lot of sites do this but I cannot figure out how to do it without creating duplicate scenes and adding the specfic box content for each one which I know is the most bandwidth expensive way to do it.
Anyhoo, the person who tried to help me last time said soemthing about container clips. He mentioned registration points, and giving it an instance name. If you help me with the same solution (container clips), then please explain in monkey terms what thehell each of those things are. Thanks a million for helping a slow learning flash monkey.
UnloadMovie From A Container
Flash 5. How to unload movie from a container(target) using button on a main time line??????????
Tried everything............going crazy here!
Please
Alek
Close Within The Container
I have loaded up a .swf file inside of a container inside of the whole flash peice.
There is a "close window" button on the loaded .swf
What script do I put on the "close window" button in order to close it and get back to the original flash peice without closing the WHOLE flash movie?
I want to close the container with out closing the whole flash peice.
Happy Holidays. . .drive safe. . be safe!!
Thanks alot!
Music From One Container To The Next
I have One movie that has a "container" which a second movie loads into.
I want music to play during the first movie as well as whe then second movie loads into its container. But Nooooooooo o o the music stops when the 2nd movie loads into its container.
How can i get the music to keep playing and not stop?
Thanks
Container MC - Go To Different Scenes?
Hi!
I have loaded an external movie into a container mc, and I would like to navigate the scenes within the external movie. Is there a way to do this from the main movie?
Thanks in advance.
Regards,
Russ.
Loading In Container Help
Hey Kids,
OK, here's the situation:
I have a main swf file calling another swf file into a container movie for a gallery.
The swf file being called has _root stuff on it, so I worked the _global variable on it, and everything is working fine.
Until I load it into the gallery, then the button on the loaded swf file no longer works. I think I am missing something.
code on loaded swf button:
Code:
on (press) {
myAppMain.clip.gotoAndPlay(2);
myAppMain.clip.fall.text = myAppMain.clip.nofall.text;
myAppMain.clip.nofall.text = "Dance Elements";
gotoAndStop(2);
}
and yes, the global setup (_global.myAppMain = this is in the main timeline. My question is, does there have to be something in the main movie file? Here's the code on the button calling the loaded swf file:
Code:
on (release) {
loadMovie("flashwork/danceele.swf", "_parent.flash");
}
the _parent is there because the main swf file is also loaded into <i>another</i> swf file which is the real movie, but means nothing to us for this example. The container movie is called "flash".
Any help is really appreciated.
P
Container Question
i am trying to load an external swf into a container, but i am really not sure how. I appreciate your time.
Thanks,
Container // External .swf
Can someone tell me or point me in the direction of a good tutorial which will show me how to load an external .swf into my main .swf.
It needs to sit in a specific area so I think a container is the best way forward.
I also remember seeing a good tutorial on this site not so long ago but i can't seem to find it?
Duplicate Container
hi I need some help with this fla.
I want to duplicate the img movieclip to be like 3 cols and rows depending on the final number of pics..
I can't make it work..
please give me some help..
thanx
Loading Swf's Into A Container...
after my first attempt at a flash site (which turned out ok), i have taken on a new project. In this project, i decided to save load time and go with the multiple .swf file tack. My basic architecture will be an 800x600 movie, with menu bar that stays with the movie the entire time. my question (s) are as follows...
when i loadmovie, how do i control where the thing plays. I want it to fit in a "window" that is on the stage...
will i be able to attach multiple commands to the buttons to unload the movie just watched, or do i need to simply load each one once when it is called...
finally, when i have the other .swf designed, should i plan on them being the same size as the "window", or can i code them to work in whatever size i want...
Thanks for taking a look and helping out...
JR
_root Container?
hey there again
i load a second movie in a container with
_root.site.man.artists.container.loadMovie("a-psysex.swf");
psysex.swf has 2 scenes
scene 1 is the preloader
when i am in scene 2 inside a movieclip
how do i control the _root of that movie?
when i use _root.GoToAndPlay(2); it will controll my first movie not the loaded 1
thx & grtz
How To Control This Container?
Peepz,
how can i control this container:
root.mcBG.mcRadio.mcRadioLoader.mcSoundContainer.g otoAndPlay(2);
i loaded it by this way;
_root.mcBG.mcRadio.mcRadioLoader.mcSoundContainer. loadMovie("sounds/loop1.swf")
(there is also a preloader but that works fine )
i want to control the root frames of the movieclip that is loaded into the container...
please help?
thnx for your reactions
Problems With Container
Hi!
I have a movie that loads external images to a mc. in a forward frame i have a ScrollPane component with a scroll bar that contains the mc with images.
My problem is when the movie stops in the container it shows me the ScrollPane and the images appear as they are loaded to the movie but the scroller don't apear.
If i run the movie as standard it works fine (the scroll apears), but if i run it in a browser it seems not work. I think the problem is because the load images...
I aprecciate any sugestions...
Container Size
Is there any way of limiting the size of a container to the same as the size of the image it contians? Also how can I remove the address bar and toolbar from new window?
Container Preloader - Is It Possible?
I currently have a movie in the form of an interface which has several empty movie clip containers each at some point have an external swf loaded into using code similar to the following:
btnProceed.onPress = function():Void {
if (_root.root.currMovie == undefined) {
_root.currMovie = "h2";
_root.activity.loadMovie("flashmx/h2.swf");
} else if (_root.root.currMovie != "h2") {
if (_root.root.activity._currentframe >= _root.root.activity.midframe) {
_root.root.currMovie = "h2";
_root.root.activity.play();
}
}
}
The above code is loading a movie called h2.swf into a container called activity located on the main interface timeline.
I would like to be able to place a simple preloader on the container "activity" itself to check the filesize of the h2.swf or any other external swf's loaded in to it and present the user with a progress bar until the movie has loaded and obviously play the loaded movie when successfully loaded.
This would be useful as the "activity" container will have about 50 individual swf's loaded into it, so placing a preloader on every one seems a bit overkill and not very efficient.
Can this be done?
Can someone please provide me with an example or tell me how this can be done?
newAS
Position Jpg In Container
Hi I am trying to understand the loading of a jpg in a container movie. the code I am using is as below but it always positions at top left. Does anybody know how I can centre the two. It would be good to understand how I could position in different places - there must be standard formulae for positioning but I cannot locate any.
onClipEvent (enterFrame) {
this._width += (_root.container._width-this._width);
this._height += (_root.container._height-this._height);
this._x += (_root.container._x-this._x);
this._y += (_root.container._y-this._y);
}
Regards Barry
Container Isue
Hello I have a few questions. This is how I made a container for an extrnal movie clip :
this.createEmptyMovieClip("mc_1",0);
mc_1.createEmptyMovieClip("container_mc",99);
mc_1.container_mc._y = 300;
mc_1.container_mc._x = 0;
//mc_1.container_mc._width = 746;
//mc_1.container_mc._height = 500;
var n:MovieClipLoader = new MovieClipLoader();
n.loadClip("brokers.swf",mc_1.container_mc);
Ok now what I want to do is to load the movie in the container, and only be 746/500 ...and only that part visible. What am I doing wrong ?
This doesn't work " mc_1.container_mc._width = 746;
mc_1.container_mc._width = 746; "
Thanks
Container Problem
Hi Guys i have a container that has this code attached to it:
Code:
loadMovie("demo_01.swf", container);
container._x = 5;
container._y = 20;
stop();
and demo_01.swf is 790 x 574 in dimensions and the container fits it in but some parts of it are slightly out of shape or compressed as if it can't fit it in. Also some things jump when they're smooth in the sctual swf.
Any ideas?
Thanks (in advance!)
Dave
Alignment Using Container MC
Hey all,
I'm making a slideshow and I'm loading external jpgs into a container Movieclip. My issue is that I have landscape and portrait shots and I want both types of pics to be centered. I know that the little circle thing in the container MC corresponds with the upper left corner of the JPG, but is there a way to change this correspondence? If the circle could corresponded to the top center of the JPG my problem would be solved. If this can't be changed, can anyone offer any solutions for the slideshow?
Thanks,
Danny
Can You Animate A Container?
Already posted rephrasing the question
I want to have a contact form swf loaded into the main swf animate in. But instead of animating the swf to be loaded, would like to some how animate the container (slide in from the side) and the loaded swf follow suite. I tried it but it does not seem to work the swf loads at the end of the tween.
Since the forms information gets loaded into a database, if I tried animating the forms swf I lose functionality ie; inputs dont get loaded and other issues.
|