I have 3 picture slideshows usings XML, the pictures will be changing form time to time that's why i needed it like this.Every slideshow is inside a folder, ej: gal1, gal2, gal3.In every folder i have the images, the flash file (gallery.swf) and the xml file.I have the main movie in wich i have a container where most data shows... and in wich i made an emptymovieclip, called "galMC" (now i know i could have used createEmptymovieclip, but maybe next time)[code]I have tried various methods but i always end up unloading "galMC"...the problme i think is that if i reload the container and click on another slideshow (gal2 or gal3), i see only the first image of the selected slideshow and then and then it starts showing the first slideshow that was loaded, so i guess i need to really UNLOAD that slideshow to load another and this is not hapenning.
I am loading an swf file into an EmptyMovieClip container called "container" using loadClip. I cant figure out how to reference the different instances inside the loaded swf.[code]...
I have a SWF that is being loaded into another SWF. I have a close button inside of the loaded SWF that unloads the SWF using this function:
function clickedButton(evt:MouseEvent):void{ MoveClip(this.parent.parent).myLoader.unloadAndSto p(); }
Works great ... as long as I know the name of the Loader (in this case myLoader). How do accomplish the same thing without knowing the name of the Loader that's loading the new SWF? How do I make it more generic so that whatever Loader calls in the SWF I can unload the content (from inside of the loaded SWF)?
I know their are multiple threads on this but none have worked for me. I have a button inside a movie clip that loads a external swf. I would like the same button to unload the swf also. like a toggle switch. but i dont want to hide it, I want to actually unload it.Here is the script I have. I am getting no errors but it only opens the swf, it doesnt close it.
HTML Code: var whatevername_loader:Loader = new Loader(); ldoor.addEventListener(MouseEvent.CLICK, gotoSomething);
unloading a SWF from a movie clip. This code is inside a movie clip acting as a button that loads the SWF into another movie clip in the main timeline called "rootbox_mc". Basically when i spam the button, it keeps loading the external SWF over and over the one already loaded, i want it to remove the one already loaded before loading another in its place.
More specifically, i wanted to ask why my if statements were not working, and how do you actually unload a loaded external SWF. I read that you just delete the child, and that's what i tried to do here.
Code: this.addEventListener(MouseEvent.CLICK, load1Release); function load1Release(evt:MouseEvent):void { var checker:Number=0;
[Code]....
ps; This code is someone else's code that i found on the internet. I tried to modify it to fit what i'm trying to do, but it is currently not working.
I loaded xml on a movieclip and i also have a button to go to another frame but the xml keeps loadding!! what can i do to remove the xml each time i click on that button?
how to load external SWFs into an empty movieclip, and then having them unload when another is selected. At the moment, all I can do is load the swf onto the stage with no positioning, and clicking the other button just loads the next swf on top.
Actionscript Code: stop();standard_btn.addEventListener(MouseEvent.CLICK, onLoadClick);function onLoadClick(evt:MouseEvent):void{ var loader:Loader = new Loader();
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 ); //==================== PS function ============================================= var ldr:Loader = new Loader();
I have 2 pages. This script loads up the mainPage_clip
var mainPage_clip:MovieClip = new mainPage_mc(); var diary_clip:MovieClip = new diary_mc(); addChild(mainPage_clip);
[code]....
The other page is diary_clip. I have a button inside mainPage_clip that i want to unload the mainPage and load diary. But if i add this script to the one above i get an error:
diary_btn.addEventListener(MouseEvent.CLICK,diary) ; function diary (event:MouseEvent):void {
I'm having a heck of a time getting my movie clip on the stage postion where I want it (and eventually I'll want 8-10 movie clips running on different stage locations at the same time.) I've tried numerous scripts methods, this is the last one and it's still not moving out of 0 position:
this.createEmptyMovieClip("my_mc", 1); my_mc.createEmptyMovieClip("container_mc",2); var my_mcl:MovieClipLoader = new MovieClipLoader(); my_mcl.loadClip("textgauge1.swf", my_mc.container_mc),{x_:371.6, y_:76};
I did a search but couldn't find exactly what I was looking for. I'm loading an external jpg into an emptyMovieClip (AS1) on the _root timeline and I want to implement a preloader so when the jpg loads it fades in, not show up abruptly.
Here's my code:
Code: // Load an external Image function loadImage(imageFile) { var imageFile;
I'm loading external .swfs into an EmptyMovieClip. but i want to change the background color dynamically for some of the swfs but not all. that is, sometimes the background color is white sometimes black. how do i do this?
when you create an empty movie clip, the registration point is 0,0 as default, I read you can change this by defining the X&Y but my movie Clip's position is defined by stage width and height.Is there another way to define the registration point~?
say i got this empty movie clip which loads .jpg files.... the dimensions of the empty movie clip is 800 by 550... by default, the top most left of the external .jpg image will load onto the 0 by 0 point of the movie clip... but i want it to display the .jpg image in the center of the empty movie clip...
well like the title says, ho can i set the properties of a mc's created with createEmptyMovieClip , getting a real nag , have tried all kind of things , for loops , etc.
for (i=0; i<=10; i++) { this.createEmptyMovieClip(["rondje"+i], i); lineStyle(1, Black, 100);
I'm trying to create a scroller menu. The container movieclip will hold several copies of a clip in the library. So I'm trying to create the clip dynamically since it's width will be varying depending on the number of elements it contains. But when I try to use the attachMovie method on my newly created empty movieclip, nothing shows up! The test_mc will attach if I just say _root.attachMovie, so I don't know if it's a path issue or if emptyMovieClips can't have other clips attached or what.
well like the title says, ho can i set the properties of a mc's created with reateEmptyMovieClip its getting a real nag , have tried all kind of things , for loops ,
for (i=0; i<=10; i++) { this.createEmptyMovieClip(["rondje"+i], i); lineStyle(1, Black, 100);
i got this empty movie clip which loads .jpg files.... the dimensions of the empty movie clip is 800 by 550... by default, the top most left of the external .jpg image will load onto the 0 by 0 point of the movie clip... but i want it to display the .jpg image in the center of the empty movie clip....my guess is i have to get the dimensions of the external .jpg and then calculate from there...
I want to make a bunch of movie clips 295 pixels apart named "pic1, pic2, etc.." with an array only I don't know how Can I have these clips extend past the limits of the maximum stage width of ~2880 if I do them with actionscript? Because I did do it manually but I was restricted so I am resorting to trying this!
I need to load several swf from several rollover on mcs instances. I create an empty mc as follow
[Code]....
It works ok, loads, unloads but of course the swfs all load at the same x and y positions. I need each loaded swf to have a different position each time there is a rollover... SO SO SO Do I have to create an empty movie clip ( container 2, 3 etc...) for each mc?
I am trying to activate a rollOver-function when the mouse rolls over a movieclip inside of a movieclip.On the main window (root), first you rollOver a button where a window shows up with more options (movieclips).From stage, my first movieclip is called "catapultas_read_more" which leads to amother movieclip called "pic1_mc". The label that is going to play when mouse over on pic1_mc is "rollOn".I tried this.gotoAndPlay("rollOn); directly inserted to the movieclip, but the movieclip inside pic1_mc never starts