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




Loading Movies Behind Content



hi,

I am trying to load a movie into another....but all the loaded content loads above everything else.....how would I load things specifically into the background ...

right now I am just using loadMovieNum....so when the user clicks a button the new movie (inner page) moves in from the left....but when it does..it overlaps static content

thanks



FlashKit > Flash Help > Flash General Help
Posted on: 09-14-2005, 04:50 PM


View Complete Forum Thread with Replies

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

Loading Movies With Some Same Content
I have two swf's that I am loading into my site. The thing is that both swf's have some of the same pictures in it. My question is could this be optimized so that the same pictures could be loaded once and recognized, so that if the other swf loads it nows not to redownload that particulat picture. Thanks in advance for any help.

Loading Movies That Contain Dyn Content
Hey everyone,

I am using a main .fla as a container for all of my other .swf's and timeline purposes and one of the .swf's i'm loading in is a news page that reads its info from an external xml file.

like this:
MAIN FLA
NEWS.swf
news.xml

when i load it, the news.swf loads in properly, however, the xml data doesn't load. the target text boxes just say "undefined".

whats the problem???

Fullscreen Movies - Loading In Unscaled Content
I am wanting to create a website (i have a fair bit of fla knowledge) which consists of two movies one being loaded into another. Thats the easy bit for me.

Basically the first (background movie) will be shown in the browser so it fills the window, in this there will be a high quality image loaded in which will fill the screen (and scale). I will then load an interface into the background movie, now i don't want this to scale at all, in fact all i want to do is centre it and show it normally which I'm pretty sure i can sort out, I'm basically a bit stumped on keeping my loaded in content unscaled.

Many thanks in advance

Matt

Loading Content Into Containers From External Swf Loaded Movies.
Maybe someone can help me out, I'm a little confused: I have a movie which initializes, then loads home, and from there, home loads the content.
Each movie is supposed to be loaded from init.swf into a container; however, i am unable to load content from home. My movie just hangs.

I'm using the LoaderClass: com.qlod.LoaderClass.as
and i have three movies

init.swf = root layer (FLA attatched)
home.swf = navagation layer (loaded from init) (FLA attatched)
news.swf = content, loaded from home (SWF attatched)

The init has global functions, such as _global.LoadNext()
home is able to load into init's container, but home.swf is not able to load news.swf

I dont get it? I through some traces in to see if the function from home.swf was even calling the LoadNext() located in init.swf but i dont think it was? Any ideas?

thanks

External Content Loader With Multiple Content Types (trouble Loading Graphics)
Hey all!

I am yet another new project. Our flash designer here isn't a big AS guy, and asked me to write a reusable class so that he can load a variety of content types using minimal amount of code on his part. It's also going to be the main component piece in a larger external content player once I'm done with the class itself, so I am making the loading functions into public methods of the loader object than can be called from a button, etc.

I have the code for the text and html parts working (although I can't get stage.width and stage.height to work in the class or from the frame).

The problem I have is that I can't get the graphics content to load (the swf/pic content). Could you please check my code and tell me what I'm missing? I'm sure it's something simple, like it always is.

thanks a million!

-Fish


-----------------------------


ActionScript Code:
package
{
   
    /**
    * External Multimedia Loader Class
    * @author $(DefaultUser)
    * Add new MultiLoader object and insert media type (all lowercase) and object path to control initial loaded object
    * To load a new object, call the MultiLoader.load* methods (loadText, loadPic, loadSwf, or loadHtml as appropriate), passing the path to the external file.
    */
   
    import flash.display.*;
    import flash.events.*;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.TextField;
   
    public class MultiLoader extends MovieClip
    {
        private var media:String;
        private var path:String;
        public var textObj:TextField = new TextField;
        public var picObj:MovieClip = new MovieClip;
        public var swfObj:MovieClip = new MovieClip;
        public var htmlObj:TextField = new TextField;
        private var objLoader:Loader = new Loader();
        private var objType:String;
        private var textLoader:URLLoader = new URLLoader();
       
       
       
        public function MultiLoader(mediaType:String,objPath:String)
        {
            media = mediaType;
            path = objPath;
           
            if (media == "text" || media == "TEXT" || media == "Text")
            {
                loadText(objPath);
            }
            else if (media == "pic" || media == "PIC" || media == "Pic")
            {
                loadPic(objPath);
            }
            else if (media == "swf" || media == "SWF" || media == "Swf")
            {
                loadSwf(objPath);
            }
            else if (media == "html" || media == "HTML" || media == "Html")
            {
                loadHtml(objPath);
            }
            else
            {
                trace("ERROR: Media type not supported. Media type must be 'text', 'pic', 'swf', or 'html'.");
            }
        }
       
        public function loadText(txtPath):void
        {
            objType = "text";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(textObj);
            this.textLoader.load(new URLRequest(txtPath));
            this.textObj.wordWrap = true;
            this.textObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
            //this.textObj.width = this.width;
            //this.textObj.height = this.height;
        }
       
        public function loadPic(picPath):void
        {
            trace("loadPic started");
           
            objType = "pic";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(picObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(picPath));
           
            trace("loadPic completed");
        }
       
        public function loadSwf(swfPath):void
        {
            trace("loadSwf started");
            objType = "swf";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(swfObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(swfPath));
           
            trace("loadSwf completed");
        }
       
        public function loadHtml(htmlPath):void
        {
            objType = "html";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(htmlObj);
            this.textLoader.load(new URLRequest(htmlPath));
            this.htmlObj.wordWrap = true;
            this.htmlObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
        }
       
        private function removeAllChildren():void
        {
            if (objType == "pic")
            {
                this.picObj.removeChild(objLoader);
            }
            else if (objType== "swf")
            {
                this.swfObj.removeChild(objLoader);
            }
            else
            {
                trace("objType != 'pic' or 'swf.' objType = '" + objType + "'.");
            }
           
            while ( this.numChildren > 0 )
            {
                this.removeChildAt(0);
            }
        }
       
        private function addObjLoader(event:Event):void
        {
            trace("addObjLoader started");
           
            if (objType == "pic")
            {
                trace("trying to load pic");
                this.picObj.addChild(this.objLoader);
                this.picObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else if (objType== "swf")
            {
                trace("trying to load swf");
                this.swfObj.addChild(this.objLoader);
                this.swfObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else
            {
                trace("ERROR: Cannot add object loader. The 'objType' variable does not contain correct media type. The function 'addObjLoader' should only be called when objType is 'pic' or 'swf'. In this case, objType is '" + objType + "' .");
            }
           
            trace("addObjLoader completed");
        }
       
        private function addTextContent(event:Event):void
        {
            if (objType == "text")
            {
                this.textObj.text = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else if (objType == "html")
            {
                this.htmlObj.htmlText = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else
            {
                trace("ERROR: Cannot add text content. The 'objType' variable does not contain correct media type. The function 'addTextContent' should only be called when objType is 'text' or 'html'. In this case, objType is '" + objType + "' .");
            }
        }

    }
   
}

Loading Movies Inside Other Movies In An Ext Movie Holder?
Here's one for you:

I've got my main movie that has a movie holder on it (entitled movieholder.) The buttons on the left control what goes in the movie holder. In one of the movies there is a list of songs that are actually buttons. These buttons call up another movie(with MP3s). How do I get the MP3 movies to go into "movieholder" when they are being called by a button inside 'movieholder'

I'm using MX

Hope that made a slight bit of sense!

Thanks for any help,

Graeme

Loading Movies Into Movies With Scroll Bars O_O
I have a site where I'm showcasing my talents (Obviously figuring scripting out won't be one of them) and I load movies into the central area by using simple commands, and it all works. Now I need to have of of those movie to scroll around, because I'm showcasing banners and have more than 400 pixels of height can fit.

I was thinking of using the same textField system that I used for my news section, but replacibng the textField part was a different thing for Movies.

There's got to be an easier way though. Can anyone help me?

Ummm... Loading Movies Inside Movies.... Help?
I posted a question about this a month or so ago, but now (I've had to work out problems on other sites in the meantime) I'm totally ready to figure this out!

I have a VERY large Flash Web site. So, it was suggested that I chop up the site into a few smaller movies. From there, I would set up a main page with a ["target"?] movie clip nested in it. Then, when a button has been pushed, the corresponding swf loads inside the movie clip. I think I can handle that... (although a nice tutorial would be great!)

The problem I'm having is... These swf's can be 'called' from each other, meaning the same buttons will be in each movie. However, the buttons will trigger different frames in each movie, depending on which movie you're already in. I'm betting this is confusing...

EXAMPLE: Every page has 4 buttons, "Who We Are", "Success Stories", "Portfolio", and "Contact". From the Home page you can push any of these buttons and it will go to the first frame of the corresponding movie and a quick, little animation displays as it takes you into the page. That's great. The problem is that, if you were in the "Who We Are" page and clicked "Contact" it should NOT go to Frame 1 of that movie... It should go to Frame 30, because there is a specific animation that connects "Who We Are" to "Contact" that is not the same as the connection animaton between "Home" to "Who We Are". So how do I get the code to be more specific?

HELP!

~Vik

http://www.explorecore.com/index3.html

Dynamically Loading Movies Into Movies With Variables
This might be a kinda tough one. I'll explain the best that I know how.

I want to load jpg images into a movie/button (movie clip with a button instance inside of it with another movie clip inside the button), but I need to do it dynamically.

I was thinking about naming all of the files the same but just change the numbering at the end. Then I can just use an i value to obtain the next file.


Code:
for(i=1;i<5;i++){
loadMovie("something"+i+".jpg","mv_btn_"+i)
}


so, basically I have 5 buttons with 5 images to import. The buttons already have the proper numbers on them, I just need to import the clips into the corresponding button.

Sound Linkage When Loading Movies Into Movies
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.

However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far I haven’t been able to figure out how without breaking the sound. Any advice or help would be greatly appreciated.

Frustrated With Loading Movies Inside Movies.
Ok here's my sight:
http://www.fantim.org/811/index2.html
This is my second attempt at making an all flash site. I got two questions.
1. Lets say I have three movies. Movie1.swf Movie2.swf and Movie3.swf
Movie1.swf has Movie2.swf loaded inside of it. Is there anyway to make Movie2.swf load Movie3.swf inside Movie1.swf ? Does that make sence?
2. Is there anyway to load only certian parts of a movie into another movie? For example:
I have this file http://www.fantim.org/fantimshow/movies/movies.swf (Don't mind the chopiness of it) As you can see it has excess stuff on the sides. Is there anyway to load this within another movie without showing this excess stuff?
Any help would be appreciated.
Thanks

Loading/unloading Movies In Loaded Movies :|
Yeah, I know that sounds confusing. Lemme explain:


- interface.swf it's my main movie;
- interface.swf load section1.swf in a specific container called containerMC (duh! );
- section1.swf load other movie, section1a.swf;
- I need a button in section1.swf that load section3.swf in the same main container (containerMC in interface.swf), unloading section1.swf and section1a.swf.

Well... I need some tips about the action of my 'overloaded' button

Sorry about my english

[]'s
Edu

Frustrated With Loading Movies Inside Movies.
Ok here's my sight:
http://www.fantim.org/811/index2.html
This is my second attempt at making an all flash site. I got two questions.
1. Lets say I have three movies. Movie1.swf Movie2.swf and Movie3.swf
Movie1.swf has Movie2.swf loaded inside of it. Is there anyway to make Movie2.swf load Movie3.swf inside Movie1.swf ? Does that make sence?
2. Is there anyway to load only certian parts of a movie into another movie? For example:
I have this file http://www.fantim.org/fantimshow/movies/movies.swf (Don't mind the chopiness of it) As you can see it has excess stuff on the sides. Is there anyway to load this within another movie without showing this excess stuff?
Any help would be appreciated.
Thanks

Recordset, Links To Flash Movies With Dynamically Loaded Content
I am building an inventory page. The item name and image name will come from a database, and this will serve as a link to the product detail page. I have retrieved the info from an asp page and loaded them into flash no problem. The question is this:

How do you loop through the items in a "recordset", displaying each row in a clip or other object that can act as a button that links to another clip. The number of items will be changing day to day so I never know how many until polling the database.

Loading Movies Within Movies Question
Hi,
I have 2 questions.

I'm making a flash website, about 20 pages, right now contained in one movie. Since the file is up to about 400 K , I'm wanting to break out some of the pages into separate movies, and then load them up with the loadmovie command when someone clicks on a link.

1) is IS possible to have a new movie load within a first movie right?? I want to have all of the navbars and stuff in the base movie, and then when you click on something, it loads up that pages' movie onto the base. this IS possible right??

2) what happens if I don't want to unload the loaded movies, and just keep them hidden and available in the base movie, so that if the user clicks on a link twice, it doesn't have to reload it, but just diaplays it? will the accumulation of movies slow down a user's computer or crash a browser?

As I said, the whole thing totals about 400K, and there is no rocket science scripting or anything, it's all pretty straight forward.

Any insight from you Flash wizards would be GREATLY appreciated!!

Mucho Garcia!
Z33man

Loading All Movies, Even Movies To Be Loaded
hi guys.. how do u do that?

see, i have a main movie and the other movies are called later on byu loadMovie, but they have their separate loading times. what if i want to load it all in one go?

can any1 help me?

Loading Movies On Top Of Loaded Movies
I'm trying to load a movie on top of a loaded movie. For Example:
I have an interface with 4 buttons on it. Each button loads an external swf above the buttons. The loaded movies fade in on top of the lower level. I want it so that when you click button 1, it loads "movie01" and then if you click button 2 it loads (fading in) "movie02" on top of "movie01". Instead, it unloads "movie01" first, then loads "movie 02". I want it to look like the movies fade in on top of each other no matter what order you press the buttons.

I have them all loading in at level 1, is that my problem?

Preloaders For Loading Movies Within Movies
I have a main movie and within that movie other movies are loaded, but it takes too long to load. Is it possible to preload a movie within a movie? An example is at www.henrycraig.net

thanks for any help
Henry Craig
hcraig4@hotmail.com

Loading Movies Inside Of Movies
Hey Guru's,

I am trying to figure out something with flash. I am working on making my site not so big by creating multiple movies of each page therefore making the movie smaller and loading in sections instead of loading the whole thing at once. I was wondering if you knew how to do this? Do I need to create a movie that lives on level0 and then load each movie inside of that when they click one of the topics on the page? How do I go about making that load in and then once they click to a differnt topic it loads another .swf? Can i make it so that the top bar stays or anything of that nature? I am just confused on how levels work and how to get it to work for me. Any advice or references I could possibly get would be appreciated!

Loading Movies, Real Movies
okay so i know Flash can load external JPGs, and external MP3s..but what about video? can it load like quicktime .mov??? what other video formats can flash AUTOmatically load?!

Loading Movies, Real Movies
okay so i know Flash can load external JPGs, and external MP3s..but what about video? can it load like quicktime .mov??? what other video formats can flash AUTOmatically load?!

Unloading And Loading Movies Within Movies
Hi, I've been using flash for a while, but never had a need for this function before. I'm trying to create a movie with an interface resembling a vintage radio.

I need to have a set of buttons, each loading a different movie (which will consist of only audio), and also unload the movie that previously was playing. The desired effect is to resemble switching channels on the radio.

Is this difficult to do?

Loading Content Within Content
Hello, I'm a Flash animator using CS3 who is trying to grasp the scary world of “Flash Web Design”. I'm creating a website with different sections with a tool bar on top that is always present, and content per “section” that is selectable in the tool bar.

I know the basic “gotoandplay” commands, but very little afterwards, and I've done preloader stuff before. What I'm trying to do is have it so that whenever a user clicks on something on the toolbar, it'll start loading (or preloading to play) the specific content they want and then show it without needing to “switch pages”.

Any ideas of how to work this?

Loading Content Within Content
Hello, I'm a Flash animator using CS3 who is trying to grasp the scary world of “Flash Web Design”. I'm creating a website with different sections with a tool bar on top that is always present, and content per “section” that is selectable in the tool bar.

I know the basic “gotoandplay” commands, but very little afterwards, and I've done preloader stuff before. What I'm trying to do is have it so that whenever a user clicks on something on the toolbar, it'll start loading (or preloading to play) the specific content they want and then show it without needing to “switch pages”.

Any ideas of how to work this?

Loading Two Movies & Loading Entire Current Movie
well, having a bit of problems with figuring out my preloader :/. Iv been able to figure out how to load a single external movie with a dynamic preloader graphic that tracks percent and stuff, but i have not been able to figure out how to load multiple external files but useing the same graphic to track the percentage of the loading for the two as if they where 1. Also have not been able to figure out how to make a preloader for the current movie. LIke have the preloader at the beginning of the movie and have it stop, and run the preloader for the load of the rest of the movie file, then continues to play the intro of the same file after loading has been compleated. my code for what i'm able to do is below, any help woudl be helpfull :). Thank you guys and girls^^









Attach Code

var requestObj:URLRequest = new URLRequest ("waterIntroAnimation.swf");
var loaderObj:Loader = new Loader();
loaderObj.load(requestObj);

b1.visible=false;

loaderObj.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preloadProgress);
loaderObj.contentLoaderInfo.addEventListener(Event.COMPLETE,preloadComplete);

function preloadProgress(event:ProgressEvent):void{
var loadedPercent:int = event.bytesLoaded/event.bytesTotal *100;
preloader_mc.loadingBar_mc.loaderText_txt.text=loadedPercent+"%";
preloader_mc.loadingBar_mc.loaderMask_mc.scaleY=loadedPercent/100;
}

function preloadComplete(event:Event):void{
preloader_mc.visible = false;
b1.visible=true;
}

Loading One Movie Vs. Loading Multiple Movies?
Greetings All,

I'm looking for some advice on the approach to loading multiple content "panels" on a website -- let's say we have a mini-intro panel (logo, tagline, etc.) and a news panel (rotating blurbs you can click on).

From a performance and optimization stance, is it better to:

1) create each panel as its own .SWF and load each one separately on a web page;

2) create each panel separately, and then use loadMovie(); to insert one into a layout space within the other;

3) just build all the functionality into one big honkin' .SWF.

I'm leaning away from Option 3, just for "simplicity of development" reasons.

My concerns are performance quality (will one approach run slower than another?) and bandwidth issues (how will dial-up users experience different approaches?).

I'm sure some of you have run into this before. I'm interested in your opinions.

Thanks.

Loading New Content.
Im working on a site at www.skywarn3d.com. I dont know how to load new content when a link is clicked. Any suggestions?

Loading Content Plz Help
Hi,
okey i need help
i have a tiny problem, I got the relative scrolling working

http://www.shahin.ca/flashtest/test-scrolling.swf

but i don't know how content can be loaded when that specific part of image is shown, how do i make a trigger action.


plz reply or if u know any open .fla that shows this let me know

shahin1981@yahoo.com
thnx

Content Loading, Please Help
Ok, Here's the situation:

My fla. file is telling my movie to load to a certain point, so that load time is not a big issue, How do I get the separate scenes and or mc's to load individually after that, when they are clicked? is this even possible or do I have to use frames and separate swf's?

thanks
nads

Loading Content
www.dangerradio.com is what I'm working with

what i need and cant figure out how to do is when the tabs are clicked, i need the content to load IN the corresponding movieclip/tab group

ask any questions you have concerning my problem, ive tried posting this 3 times now just to be told the movie size is too big..go figure

so the file is here: www.dangerradio.com/slidenav.fla
sorry, its kind of a big file

any and all help appreciated, thanks

Loading XML Content
Hello I'm trying to load content from an XML document to text box.

I got this code from a text book where the firstChild was accessed from the XML. I want to change this to the child of the firstChild.

but my attempt doesn't work... can anyone tell me why?

Actionscript:

articleXML = new XML();
articleXML.ignoreWhite = true;
articleXML.onLoad = function(success) {
if (success) {
gotoAndStop("start");
}
};
articleXML.load("articles.xml");
function show(num) {
var xmlArray = articleXML.firstChild.firstChild.childNodes;
var currentArticle = xmlArray[num].firstChild.firstChild.nodeValue;
node.text = currentArticle;
for (var i = 1; i<=4; i++) {
if (i != num+1) {
_root["menuButton_"+i].frame.removeMovieClip();
}
}
_root["menuButton_"+(num+1)].createEmptyMovieClip("frame", 1);
with (_root["menuButton_"+(num+1)].frame) {
lineStyle(1, 0, 100);
lineTo(72, 0);
lineTo(72, 17.4);
lineTo(0, 17.4);
lineTo(0, 0);
}
}
menuButton_1.buttonLabel.text = "Node 1";
menuButton_1.onRelease = function() {
show(0);
};
menuButton_2.buttonLabel.text = "Node 2";
menuButton_2.onRelease = function() {
show(1);
};
menuButton_3.buttonLabel.text = "Node 3";
menuButton_3.onRelease = function() {
show(2);
};
menuButton_4.buttonLabel.text = "Node 4";
menuButton_4.onRelease = function() {
show(3);
};

*******

XML:

<root>
<section1>article 1
<node1> node entry 1 <node1/>
<node2> node entry 2 <node2/>
<node3> node entry 3 <node3/>
<node4> node entry 4 <node4/>
</section1>

<section2>article 2 content
</section2>

<section3>article 3 content
</section3>

<section4>article 4 content
</section4>
</root>

Using XML For Loading Content
Hi,

I am really interested in using XML to populate sites but would like if someone could describe best way to organise structure. For example if there are a lot of content areas how do u organise XML? Is it possible to put all content in one file then get textarea to load just certain tags like <homepage>blabla</homepage> or do they have to be separate files? What is the recommended way at approaching website using XML to make it optimized and easy to update, for example in a portfolio so you can easily add new projects and not have to renumber all old project like in txt files which is pain etc. Cheers

Loading Content From XML
Hey All,

So here's my deal- I have a custom-built FLV Playback component (with captions) and need to load the following items from an XML file named "xml_doc.xml":

<?xml version="1.0" encoding="UTF-8"?>
<playlist id="Here's The Video" >
<vid desc="Introduction to Biological Terrorism Agents"
src="Intro.flv"
thumb="Intro.jpg"
caption="Intro.xml"
</playlist>

On the stage, here's what things are named:

-my FLVPlayback Component is named myVideo
-my thumbnail/preview image (empty movie clip) is named myPoster
-my FLVPlaybackCaptioning Component is named captioning

So how do I get these things to all get read from the XML document? It's easy to do it all through the FLA and hard-code the paths, but I can't seem to figure it out.

Any help would be greatly appreciated.

Joe

Loading Content Into A MC
Does anyone know how to do this? I am pretty sure it's possible. I am looking for images more than text, but it would be nice to know how to load both.

Thanks,
Gerard

Loading Content From Other Url's
I have a flash file that I need to load content from a php file in another subdomain of the site. This works fine when I test the flash file but when I upload it, it doesn't work and can't seem to load the data. I've added allowScriptAccess="always" to the html code and it still won't work. Does anyone know why this might be?

Many thanks,

- Jim.

XML Content Is Loading In URL - Why?
The content of XML file i am calling is loading into the URL when i getURL and i wish to trim it or simply get rid of the content and keep the url










Attach Code

import flash.display.BitmapData;

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
image_height = [];
image_width = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
image_width = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
image_height = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;

_parent.container_mc.createEmptyMovieClip("mc_" + i, _parent.container_mc.getNextHighestDepth());
_parent.container_mc["mc_" + i]._x = 30 * i;
_parent.container_mc["mc_" + i]._y = (_parent.container_mc._height - image_height ) / 2;


var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
var bitmap:BitmapData = new BitmapData(target_mc._width, target_mc._height, true);
target_mc.attachBitmap(bitmap, target_mc.getNextHighestDepth(), "never", true);
target_mc.clear();
bitmap.draw(target_mc);
target_mc._height = 250;
target_mc._width *= target_mc._yscale/100;
target_mc.onRelease = function(){ getURL("http://www.google.com","_blank","GET"); }
};


this["image_" + i + "_mcl"] = new MovieClipLoader();
this["image_" + i + "_mcl"].addListener(mclListener);
this["image_" + i + "_mcl"].loadClip(image, _parent.container_mc["mc_" + i]);


}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");

Loading Content
hello everyone

is it possible to load into a containerMC (MX) external "html" content ?

thx in advance

LOADING CONTENT
hello everyone

is it possible to load into a containerMC (MX) external "html" content ?

thx in advance

Content Not Loading
at my site Mediaatomic.com I have PHP/MySQL talking to flash

when the holder movie opens it loads my home.swf into the content movie clip... It works fine once but if you click the home button (which runs the same function) or refresh the page it blanks out the text field and won't reload the content. does anyone know how I can fix this or what's causing the problem?

my code for the holder

ActionScript Code:
stop();goHome();function goHome() { _root.background_mc.gotoAndStop(1); _root.holder_mc.loadMovie("home.swf");}home_mc.onRelease = function() { goHome(); //_root.holder_mc.loadMovie("home.swf");};


my code for the home.swf


ActionScript Code:
/*--------- set variables------------*/var format = new TextField.StyleSheet();var path = "mediaAtomic.css";var blogStuff_lv:LoadVars = new LoadVars();/*--------- Load Stuff------------*/format.onLoad = function(loaded) { if (loaded) {  blogStuff_lv.onLoad = function(success:Boolean) {   if (success) {    blog_txt.styleSheet = format;    blog_txt.text = this.blog;   } else {    blog_txt.text="Bad PHP Read Please Refresh";   }  }; } else {  blog_txt.text="Bad CSS Read Please Refresh"; }};blogStuff_lv.load("flashFeed.php");format.load(path);

Loading XML Content From One To Another...
Is it possible to load XML content from one XML file to another? In other words I would like to make a menu that can choose which XML file is being loaded into a movieclip. If so do you gus know how?

Loading Content From XML...
Hey All,

So here's my deal- I have a custom-built FLV Playback component (with captions) and need to load the following items from an XML file:<?xml version="1.0" encoding="UTF-8"?>
<playlist id="Here's The Video" >
<vid desc="Introduction to Biological Terrorism Agents"
src="Intro.flv"
thumb="Intro.jpg"
caption="Intro.xml"
</playlist>

On the stage, here's what things are named:my FLVPlayback Component is named myVideo
my thumbnail/preview image (empty movie clip) is named myPoster
my FLVPlaybackCaptioning Component is named captioning
So how do I get these things to all get read from the XML document? It's easy to do it all through the FLA and hard-code the paths, but I can't seem to figure it out.

Any help would be greatly appreciated.

Joe

LOADING CONTENT
hello everyone

is it possible to load into a containerMC (MX) external "html" content ?

thx in advance

Content Not Loading In IE
Hello All,

site: jonrossway.com

I have a strange dilemma. The above page loads fine in Safari and Firefox. When loaded into IE 7, the dynamic content loaded via MovieClipLoader refuses to load. I have noticed this particularly after you visit the page once, close the browser, then enter the URL again. Hitting F5 fixes the issue. I am using the latest SWFObject..

Could this be a cache issue? Is there any way to fix this?

Content Loading ?
Okay, here is the situation.

I want to load information (preferably HTML files) into a movie.

Or, basically I just want to have content in my flash movie that I can easily update.

What is the simplest way I can go about doing this ??

Is there a better alternative to the loadVariableNum ?

Help With Loading HTML Content
Greetings

I was wondering if anyone know of some good tutorials / lessons for loading HTML in FlashMX?

Thanks in advance

Loading Dynamic Content
i'm having a couple of problems here.
ok, here's what i have so far...
in the past i've had no problems with loading swfs into an existing swf file. i usually just use on main movie that is at level 0 that has the menu items and everything and then load every other section into level 1. but... for some reason, when i do it with this new project, every time i import something, whether it be an external text file or another swf file, the entire work area just displays the background color. if it helps, here's the script i'm using to load files into my existing movie.

this is in a movie clip that is on the main timeline.

loadVariablesNum("myText.txt", 0)
stop();

and the text field in the frame that the action is on is "dynamic" and the variable is named correctly, in accordance to the variable name within the text file.

if somebody could help me with this, it would be much appriciated... thanks you.

Dynamic Content Loading
First of all please forgive the multiple posts. This is a new problem for you gurus.
In order to setProperty to a mc(container) with dynamically loaded content, the content must be loaded first then its properties changed. How are you guys/gals doing this? I realize that if the mc_container has a graphic placed on its timeline, then, lets say, its position can be changed before the content loads. This is of course useful for recentering or whatever is needed. BUT, what if the content is jpgs or swfs of different sizes? Is there some way to know when the content is loaded so then its properties can be seen and changed. I can think of other circumstances where this would be useful, such as if you had a box that grows to the size of your content to frame that content. The content would have to be loaded, alpha set to 0, size checked, the box size set based on the content, then the content would be made visable.
Hope this makes sense.
TIA

| Help Me To Decide..-> Loading Content|
My personal site is http://www.prodesigns.nl (still in progress and has not yet a preloader/interface)

My problem is i'm not sure how to doe the content... a lot of flash sites use separate .swf movies to load as content... but i want it to be transparent (the background of the swf)... My question is how to fix the content the best way (with preloader).

Thnx alot!

Help Needed>loading Content
Hi,I've loaded a swf file(visual) using a nextmovie script triggered by a button.It worked well.Know I've added the same code to load in content1 to 4(external swf).Know the visuals don't won't to load anymore.If I remove the script for loading the content it works.Probebly a nextmovie function only loads one content at a time how make it possible to load in two external swf's.They both have different targets to load in so ..Can someone have a look at the script and solve this prob.For me.Big thx in advance.

but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="content1.swf";
//tell the cover mc to play its closing animation
cover_content.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="content2.swf";
cover_content.gotoAndPlay("close");
}

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