Loading Swf's Inside Swf's Question
I have four swfs. 1. 'main' 2. 'anim' 3. '1st'. 4.'menu1'
1. main.swf the first one. with jus a background image. & a movie clip with the instance name 'contents'. with this script...
stop(); _root.contents.loadMovie("anim.swf");
anim.swf. loads on that 'main'.
2. "anim.swf"
now on in anim. there is a button, i want the button to take the user to, or load '1st.swf' i used this...
on (release) { loadMovie("1st.swf", _root.contents); }
3.1st.swf
4. Menu1.swf....now i want a button inside 1st. swf to take the user to Menu1.swf.
i tried using...
on (release) { loadMovie("menu1.swf", _root.contents); }
but it did not work? any ideas? also what code could i use for a back button?? thanks
marc
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-19-2004, 01:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Showing Total Progress Of A Loading MC And A MC Loading Inside Of It.
When entering a page I want a main.swf to load, using the MovieCLipLoader. When main.swf has completed loading, it automatically starts loading another swf, home.swf, into itself in a specific area.
I want to display the total download progress of loading the main.swf and home.swf.
First when the whole download progress is done, I want the main.swf together with the home.swf to be visible.
Any ideas on how to do this ?
Loading A Swf Inside A Swf Inside A Swf...
my main movie is basically just navigation buttons that load a content swf into a movieclip - that's ok.
but when the content swf is also loading a second swf into itself, the second swf isn't showing up.
when i test the content swf by itself it's ok - the second swf shows up
it's only when i load the content swf into the main movie that the second swf doesn't show up in the content swf.
i don't know what is wrong - can someone help?
Loading An Swf Inside An Swf Inside An Swf
Hi everyone, I ve been trying to make this for days now but its
not working.
I have a main "base" swf that has a holder MC that on it I
externally load my "main menu". That works fine.
On that menu I have buttons that supposed to load a "sub page" each.
I cant find the problem on the coding(obviously I am new to this)
but the MC "buttons" of my main menu are not working at all.
I dont know what to do. Please help if you can .
Here is are the files to the whole thing.
http://rapidshare.de/files/20790041/web_page.rar
Loading Movies Inside Movie That Are Inside Other Movies
I have built a website in flash.
I have a main interface with navigation. On press of a button (topic) it loads a movie into a certain area.
//area on timeline to stop any probs or overlapping
on (release) {
gotoAndStop ("1");
}
// get the clip
on (release) {
loadMovie ("mainmovies/products.swf", "_root.mainmovieframe");
}
this works fine and is the simplist and most effective way (i think)
NOW... what happens if I have buttons inside the products movie that inturn call movies inside the sub movie..
It will now work, just crashes flash player. I am using the same command as in the interface but with different clip/instance name...
Please tell me how to make movies work. I cannot make layers and stuff work for some reason.
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 Text Inside Movie -> Inside A Movie
Ok so I have a movie that has a bunch of little movies which are played on a click of a button. Now inside the second layer movie I want to load some text from an external txt file but for some reason it is not working. I am using, loadVariablesNum("content.txt", 0); and my dynamic txt area is suppose to retreive the variable rafting. now for some reason it is not loading the text into the text area, could it because it is not in the main scene??? Can someone please help me out???
Thanks
Nick
Loading Swf. Inside Swf.
when loading a swf. inside an swf. how do I tell the X_ Y_ location for the movie to load at?
It seems to load by default at x:0 y:0
Thanks in advance.
Loading SWF In MC Inside Another SWF
Hi guys,
Big problem, and it needs to be resolved quickly!
Basically I got a main SWF file, when you click on a button on the menu it loads a new SWF file inside a MC.
The code being:
on (release) {
_root.container2.loadMovie("section1.swf");
}
All I do for each button is to change what "section.swf" to load into the movie clip.
I have had problems though when I try to load a SWF within one of these "section.swf" files.
I use the exact same code as above, run the main SWF file, click on a button, then a SWF loads click on a button in the SWF that loaded, and another SWF doesn't load within that one!!!
Any help??
I think its something to do with the code having nothing after root, I've tried a few things to no avail.
THANKS GUYS!!!
Loading Swf Inside Another Swf
Hi,
I have just got into flash so this is my first post. My problem is loading swf inside another swf. As you can see by the code i have this working fine........ but it is loading at position x=0 and position y = 0. However i want the new swf to load to the right a bit and not at the top cos there will be a banner and buttons there. Ive tried messin about with bits of code but cant get it to work. Could someone tell me what i need 2 do to the code to get it to load where i want it to?
Thanks in advance
loadMovieNum("square.swf", 1);
button1_btn.onRelease = function()
{
unloadMovieNum(1);
loadMovieNum("rectangle.swf", 1); }
button2_btn.onRelease = function()
{
unloadMovieNum(1);
loadMovieNum("square.swf", 1);
}
Help With Loading Swf Inside Another
Ok ill attmept to keep this short...
I use this code often to load swf inside a movie clip....
ActionScript Code:
var countdown:Loader = new Loader();
var countdownReq:URLRequest = new URLRequest("Countdown Final.swf");
var mc:MovieClip = null;
addChild(countdown);
countdown.x = -1.1;
countdown.y = 106.6;
countdown.load(countdownReq);
...This seems to be a nice simple way of loading a swf.
The thing is at the moment it dissapears while loading and then flashes up when its done. I want to know how to create an animated loading graphic even something simple that looks more pro than just appearing when ready.
Is there much more code to add?
Thanks
Loading Mc's Inside Mc's?
I wonder if there is any way of using AS to load a movieclip inside another, "placeholder", movieclip? I'm doing disjointed rollovers for a menu, and the rollover movieclip is going to load in the same place for every menu item.
Loading An Swf Inside An Swf
I tried searching the forum for an answer but I came across example's and solutions that are not what I was looking for. I apologize if this topic may have been covered.
I have a Swift 3D .swf file that I would like to load into my flash project. Now I know how preloaders work, but the problem is I can't view the swift3d file inside flash frame by frame, therefore not allowing me put a preloader in the first frame. Is there a possibility that I may be able to load my Swift file with a preloader into my flash _root.movie?
Thank you!
Question On Loading A Swf Inside Another
I have my main swf and one that I want loaded. The one that is being loaded has a preloader inside of it. How would I make so when I click on a button in my main movie, that it loads, or places, the smaller movie into the main one? Any help would be appreciated.
Loading A Variable From ASP Inside A MC
hI Folks
I want load a variable from one script ASP inside a MC...
And after the data have been loaded in the MC, it sends the varible that it captured for the root.
I try this.
Button on the root:
on (release) {
mc.loadVariablesNum("script.asp", 0, "POST");
texto = "enviando"
}
IN the MC I put this
onClipEvent(data){
_root.texto = this.texto;
}
The asp send this:
texto=jilo
I now that the problems isn't the asp, because I try this with out MC, all in the _root and it Work, I now isn't..
I think that this command isn't right:
mc.loadVariablesNum("script.asp", 0, "POST");..
Helpeme!!!!
JPEG Loading... (Pic Inside)
Hey, I really need some help, I want to add a dynamic element to my site whereby I has 8 portfolio items (jpgs) under invible buttons that links to item1.htm, item2.htm...
I want to load the JPGs dynamically so all I have to modify is the image and html file it links to... here is the layout of my movie...
If someone could tell me the actionscript required to dynamically load the image in the correct position that would be fantastic...
[Also] is it possible to mask a dynamically loaded JPG?
Thanks in advance... Robb
Web Pages Loading Inside MCs
Hey everyone, quick question:
Is it possible to have a Web page load into a movie clip that is buried inside a few levels of other stuff? If you need me to elaborate I can.
Thanks!
Loading An External Swf, From Inside A MC
Hello, a little question.
I've got a MC with buttons, From inside this MC I want to load an external SWF into a container MC(not in the same MC). But it won't work with my knowledge. It only works with the 'load into a level' and not 'load into target'. Can anyone tell me how to fix this problem?
Loading Inside A Movie
its probly easy and has been brought up plenty of times before but how do u load movies within a movie say a portfolio or contact us page. if anyone could pont me in the right direction. thanks
Loading External .swf From Inside A MC
i have built a navigation bar that consists of a movie which can be scrolled up and down. i have this on the right side of my scene, i have a blank MC on the left what i want to happen is the buttons in the navigation load external movies into the blank mc.
ive tried
on (press) {
loadMovie("retailers.swf", clip1);
}
this just makes the navigation MC disapear.
any help would be good
thanks
[F8] Trouble Loading Mc/swf Inside Another Mc
I am having trouble loading a movie clip inside of another movie clip.
This is what I want to happen:
I have a menu on the left side made up of movie clip buttons all inside one movie clip. I did this, because I am using a scroll bar that dynamically adds the scroll onto a movie clip. Now, when you click one of these buttons, I want it to load a movie clip or swf* to the right of my buttons.
Ok, now here is where it gets tricky (for me at least);
I have a movie clip to the right already there. Its name is "bbp_mc". Inside of this movieclip I have another empty movie clip named "portmc". The idea is that I can have my movieclip or swf* load into that empty movieclip dynamically. Then all I have to do is duplicate the "bbp_mc" and rename, for example, to "arma_mc".
Keep in mind that the "bbp_mc" movie is on a different level than my button's movie clip. My button's main movie clip (that holds all the buttons) is on the same level as "bbp_mc".
Ok, I have the code setup on the button like this: (p1 is the instance name of my button)
Code:
p1.onPress = function () {
portmc.loadMovie("test.swf");
}
What I want is to have each button go to a different movie clip or swf*.
So, I want it to look like this (I think):
Code:
p1.onPress = function () {
portmc.loadMovie("bbp.swf");
}
p2.onPress = function () {
portmc.loadMovie("arma.swf");
}
and so on...
OH yeah, I put the * on swf because I am not sure if it would work for what I need. I need the background to be transparent and I don't think swf's can do that? If not, I need it to be another movie clip loaded in there.
Thanks. Any help is appreciated.
Loading A .swf Inside A Parent .swf
I have a parent.swf with a movieclip called hoster and I want hoster to load child.swf in it.
In as2 it was somethin like: hoster.contentPath = "child.swf";
but I don't know any how to do it in AS3, any help?
Thanks
Using Preloader When Loading Swf Inside A Swf?
Hi i am currently making a small section for my website and i need to know how to make my preloader function basically i have my main swf that then loads in my other swfs onto the stage, howere i have created a preloader that sits on the first frame of each of my swfs that i am loading in, they work fine when testing them on there own howere the preloaders dont seem to be showing when i am loading the swfs onto the main stage in the empty movie clip, should i be playing the preloader in the empty movie clip??? thanks
Loading Xml Inside Html
Hello,
I am working on a way to create a dynamic flash site that can be indexed by Google. Everything appears to be working except one.
When I put my xml inside an html file it loads into the flash file fine but the international (Icelandic) characters are missing. The file is saved with utf-8 encoding and begins with:
<?xml version="1.0" encoding="utf-8"?>
It also includes the proper xhtml unicode charset:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Now for the kicker: The characters show up if I view the site locally. So that means it must be a problem with how the server is handling the file, right? Well, if you view the file as an html file from the server (outside of the swf) the characters show up there too.
So the only time the characters don't show up is viewing the file from the server inside the swf.
Any ideas? Thanks.
Loading Swfs From Inside Mc - Help Please
The site: www.holstphotographic.com
Ok, I thought this site was done, but turns out that some people are having troubles viewing the images (nothing happens when you click on the thumbnails). At first I thought it was compatibility issues, but then I noticed it happened on my computer too!!! This is very strange because it works sometimes, and other times it doesn't. Before I try exporting everything to flash 6 I'd like to see if anyone here can help.
I having a feeling that it has something to do with the code loading swf's from inside of two different movie clips. The code was originally made for the main timeline, but because of the style of navigation I ended up splitting it in two - and now the same code lies in two different mcs. *still with me?
Each MC holds 30 thumbnails that call on the swfs. Check out the site link above to see how it works... or doesn't work. Keep refreshing and trying to load the images again if you want to see how it messes up (it just doesn't do anything)Here's the code that is in the two mcs:
Code:
//
// your button is in fact a movie clip with 3 frames
// frame 1 is normal state
// frame 2 is over state
// frame 3 is visited state
// name your buttons button1, button2, button3 and so on...
//
total = 60;
// number of buttons
movies_array = ["pic1.swf", "pic2.swf", "pic3.swf", "pic4.swf", "pic5.swf", "pic6.swf", "pic7swf", "pic8swf", "pic9.swf", "pic10.swf", "pic11.swf", "pic12.swf", "pic13.swf", "pic14.swf", "pic15.swf", "pic16.swf", "pic17.swf", "pic18.swf", "pic19.swf", "pic20.swf", "pic21.swf", "pic22.swf", "pic23.swf", "pic24.swf", "pic25.swf", "pic26.swf", "pic27.swf", "pic28.swf", "pic29.swf", "pic30.swf", "pic31.swf", "pic32.swf", "pic33.swf", "pic34.swf", "pic35.swf", "pic36.swf", "pic37swf", "pic38swf", "pic39.swf", "pic40.swf", "pic41.swf", "pic42.swf", "pic43.swf", "pic44.swf", "pic45.swf", "pic46.swf", "pic47.swf", "pic48.swf", "pic49.swf", "pic50.swf", "pic51.swf", "pic52.swf", "pic53.swf", "pic54.swf", "pic55.swf", "pic56.swf", "pic57.swf", "pic58.swf", "pic59.swf", "pic60.swf"];
// array containing the movies
this.onEnterFrame = function() {
for (var i = 1; i<=total; i++) {
if (this["button"+i]._currentframe != 3) {
if (this["button"+i].hitTest(_root._xmouse, _root._ymouse, false)) {
this["button"+i].gotoAndStop(2);
} else {
this["button"+i].gotoAndStop(1);
}
}
}
};
for (var i = 1; i<=total; i++) {
this["button"+i].temp = i;
this["button"+i].onPress = function() {
this.gotoAndStop(3);
if (_root.currMovie == undefined) {
_root.currMovie = "pic"+this.temp;
loadMovieNum(movies_array[this.temp-1], 100);
} else if (_root.currMovie != "pic"+this.temp) {
if (_level100._currentframe>=_level100.midframe) {
_root.currMovie = "pic"+this.temp;
_level100.play();
}
}
};
}
I've tried only having 30 swfs in each but that didn't work either. If anyone can help me with this I will be soooo very much excited!!! Ten smilies for the flasher who fixes this!
Cheers,
Rolla
Loading URL Inside Layer
I'm curious how I can load an HTML page inside a layer similiar to how you would with frames.
on(release){
getURL("www.google.com", "mainFrame");
}
How can I do this inside a layer and keep everything else from loading on a new window?
thanks
marshall
Loading XML Inside MovieClips
Hi all,
Got the following problem:
I'm trying to load an XML file in Dynamic text fields that are
placed inside movieclips. Nothing is loaded.
Anyone knows what code is necesary to load an XML data in
dynamic texts that are in movieclips inside movieclips?
Maybe a special way to write the path?
thanks for your help!
Loading Swf Inside Container
this may seem like a stupid question but how come i get an error when i use this code to load a swf file into the empty container.
eg. container.loadMovie(something.swf);
the error says this:
Error opening URL "file:///C|/Documents%20and%20Settings/Gus/Desktop/%21%21%21menu%20slideout/undefined"
Loading Xml Inside A Movieclip
hey everyone,
loading an xml file into the main main root works fine. but when i place the load xml function inside of a movie clip, it is no longer functional. why is that?
Kristian
AS3 Loading... And Getting Data Inside Swf
Okay I've resolved the issues but here's a question I still need an answer to if possible.
I loaded a file and when it's loaded let's say I want to apply evt.currentTarget.content to a variable.
What is evt.current.content? Like when I define the variable to hold it.
Like:
var total:Number = 100;
but what would
var file:?????? = evt.current.content;
be?
Thanks again.
Dynamically Loading Mc Inside Mc?
IS this possible? What actionscript do I use to load an mc which is on the root into another mc on the same root? Any help much appreciated!
Using Preloader When Loading Swf Inside A Swf?
Hi i am currently making a small section for my website and i need to know how to make my preloader function basically i have my main swf that then loads in my other swfs onto the stage, howere i have created a preloader that sits on the first frame of each of my swfs that i am loading in, they work fine when testing them on there own howere the preloaders dont seem to be showing when i am loading the swfs onto the main stage in the empty movie clip, should i be playing the preloader in the empty movie clip??? thanks
Loading Swf's Inside Swf's Question
I have four swfs. 1. 'main' 2. 'anim' 3. '1st'. 4.'menu1'
1. main.swf the first one. with jus a background image. & a movie clip with the instance name 'contents'. with this script...
stop();
_root.contents.loadMovie("anim.swf");
anim.swf. loads on that 'main'.
2. "anim.swf"
now on in anim. there is a button, i want the button to take the user to, or load '1st.swf' i used this...
on (release) {
loadMovie("1st.swf", _root.contents);
}
3.1st.swf
4. Menu1.swf....now i want a button inside 1st. swf to take the user to Menu1.swf.
i tried using...
on (release) {
loadMovie("menu1.swf", _root.contents);
}
but it did not work? any ideas? also what code could i use for a back button?? thanks
marc
Loading URL Inside Layer
I'm curious how I can load an HTML page inside a layer similiar to how you would with frames.
on(release){
getURL("www.google.com", "mainFrame");
}
How can I do this inside a layer and keep everything else from loading on a new window?
thanks
marshall
Loading 3rd Swf From 2nd Swf Inside Main Swf
Can anyone help me?
I have a main.swf which loads a second swf from a button click. This second swf has buttons which load more swf's into a movie clip called content with the instance name "loadinfo".
By itself, this second swf loads the other swf's when the buttons are clicked, and they 're visible. When I load the second swf into the main swf and try to link to the other swf's they're not visible or they're just not loading. Here are some examples of code I tried that work outside the main.swf.
on (release){
this.loadinfo.loadMovie("loadlinks/test.swf");
}
on (release){
loadinfo.loadMovie("loadlinks/test1.swf",_root);
}
on (release){
loadinfo.loadMovie("loadlinks/test2.swf","_root");
}
on (release){
loadMovie("loadlinks/test3.swf",loadinfo);
}
If you could shed some light it will be greatly appreciated.
Thanx,
pamartins
Loading A .swf From Inside Another Movie
I'm trying to load a short movie from inside my main movie and then have it disappear when the user clicks on it. I have code that loads it up fine, but I can't get the main program to recognize any click events. This is what I have so far:
**************
this.createEmptyMovieClip("error_mc", 1);
this.error_mc.loadMovie("error.swf");
this.error_mc.onRelease = function(){
error_mc.unloadMovie();
}
*************
Any ideas on how to make the loaded .swf recognize click events to that it can be unloaded?
thanks.
Loading Variables For Inside A Movieclip...
How do i load variables from an external .txt file into a movieclip....
It works when i just make a dynamical text field and load the variables, the text comes in the textfield.
But when i make an mc of it... it stops working..
plzz help, i would appreaciate it very much
Loading Url Inside A Flash Movie...
if you go to www.2advanced.com and then go navigate around, you see that its all one flash file but theres like seperate pages that can be loaded inside the whole flash movie.
i want to have a flash movie, but i dont want it to load all at once, and i dont want to have to have it link to a whole different page.
can i do it like the 2advanced page does? and have different pages load inside the one movie when you click on a button?
anyone know how to do this? this would make my site a lot cooler =)
Loading Inside MC Script Problem
hi everyone,
i´m facing a problem when loading one movie clip inside another.
this is the situation:
the main movie (main.swf) has a mc named:
mc00 ,
inside there I load another movie (first.swf) , this movie has a mc named:
mc01
and a set of buttons that controls the timeline of another swf which is a video, (video.swf) that will load inside mc01,
everything works fine except the set of buttons,
I test them straigt from “first.swf” and they work, the path is ok,
So I believe I have a “ level – target – script “ problem
This is the code i´m using for the buttons:
on (release) {
tellTarget ("_level.mc01") {
gotoAndStop(1);
}
}
or
on (release) {
tellTarget ("_level.mc01") {
stop();
}
}
etc,
Loading Movie Inside Button
I'm creating a tree type menu in flash and need some help with integrating a movie with a button. Here's what I want to do. When I click an arrow button that expands the tree and shows textual buttons below, I want a movie to load which runs in place of where the textual button is located and when the movie if finished running display the textual button. My goal is to get this movie to run before the button appears and then allow the user to click the button to proceed.
The movie I'm trying to load is located on Frame 11 underneath the heading Main Menu. If you can help me I would greatly appreciate it.
thanks
Loading HTML Or ASP Inside Flash
Hi all,
I want to creat a web site that is totally in flash. But i want to contents of the web site to be loaded by calling and HTML page or an ASP page. You know, like a small browser inside the flash movie .. an area for loading HTML or ASP.
Can this be done? How?
It would be cool if someone could just walk step by step with me to do so.
Thanks a lot guys!
Loading External Swf's Inside A Movie
I have a small site im working on and have worked with flash for years but not much with actionscripting.. just cartoons, buttons etc. I dont get what im doing wrong here. Im trying to make these buttons pull up movies into an empty area.
I created a place holder and named it stage1. In flash during testing, the movie works perfect but not in the browser. Ive tried many different suggestion form many sites and nothing is working. Its not rocket science.. bleh..
This is what i currently have ( i have tried action on the button itself as well, which also works in flash)
this.news_btn.onRelease=function(){
createEmptyMovieClip ("stage1", _level0.getNextHighestDepth());
stage1.loadMovie("news.swf"); }
i have 6 of those on one action (only) level for each button. I got that script from another site.
I was using
on (release){
loadMovie("news.swf", stage1);
}
and that works in flash as well..
any help would be awesome.
lostlogo
p.s. I also tried changing publishing options to network rather than local files with no luck..
Loading A URL Inside A Masked Square
Hey,
Im trying to figure out to load an URL / website inside a masked box without warping it (although if it shrinks to the size of the box that would be cool).
I would like it to load in itself and have the rest of the stage for animation / kinda a boarder.
P.
CWL.
Loading Xml Into Datagrid From Inside Class
Don't know if this is possible, but I would like to populate a datagrid that is on the stage with some loaded xml, but I would also like to keep it inside of a class rather than having the functions reside in the fla. Here is my stab at it that obviously isn't working.
ActionScript Code:
class Tester extends MovieClip {
public function Tester() {
doAction();
}
private function doAction():Void {
makeBox("test3.xml");
}
private function makeBox(path:String):Void {
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var arr:Array = new Array();
for (var node:XMLNode = xml.firstChild.firstChild; node != null; node=node.nextSibling) {
arr.push(node.firstChild.nodeValue);
}
arr.sort();
trace(arr);
for (var i = 0; i<arr.length; ++i) {
_parent.datagrid1.addItem({name:arr[i]});
}
xml.load(path);
};
}
}
Here is the xml:
PHP Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<people>
<person>Joe Lawyer1</person>
<person>Joe Lawyer2</person>
<person>Joe Lawyer3</person>
<person>Joe Lawyer4</person>
<person>Joe Lawyer5</person>
<person>Joe Lawyer6</person>
<person>Joe Lawyer7</person>
</people>
I have a working version of basically the same code that exists on a first frame of a fla. The datagrid populates correctly and the trace shows up, but I would instead like to keep it all inside of a class because I ultimately would like to pass different paths to seperate xml files dynamically.
Thanks for any advice!
|