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




Loading FlashPlayer 5 Content Into FP8 Is It Possible?



I have an Ecard tutorial thats been made in Flash 5, AS 1.0 w/ PHP. The swiff works correct when loaded by itself, but loses functionality when loaded into a FP8 movie. http://rebirthmedia.net/website/Can anyone help?



General Flash
Posted on: Fri Mar 24, 2006 2:21 pm


View Complete Forum Thread with Replies

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

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 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 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 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 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");
}

Problem On 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");
}

Loading Content Issues...
Hi,
This can't be that hard a query, but I'm a designer and not that hot with my scripting, so bear with me...

Right, I have a main flash movie into which I want to load 5 other swfs; each loaded when its corresponding button is released.
So far nice and easy - at the moment, on each of my 5 buttons, I have the following script...

on (release) {
loadMovieNum("filename.swf", 99);
}

...where "filename.swf" is replaced with the correct swf name depending on the button.

My problem is, that I want a transition between one movie loading and the next.
ie. If movie1 has been loaded in from pressing button1, when button2 is pressed, I want Movie1 to fade out and then Movie2 to fade in. I don't know how to create a transition like this.

Anyone know how I would script it so this can happen?

Cheers in advance for your help...

Pre-loading Scrollpane Content
Hi

I've got a pretty simple movie.
2 scenes

second scene has scrollpane, to load external swf as content.
I have an action layer with this.
eggs_sp.loadScrollContent("eggs000.swf");
Works fine.

The first scene is to be the preloader.
with this script running the show.

if (eggs_sp._framesloaded >= _totalframes) {
gotoAndPlay ("Scene 2", "1");
} else {
total_bytes = eggs_sp._framesloaded.getBytesTotal();
loaded_bytes = eggs_sp._framesloaded.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
}

This is not working.
Help!

Thanks in advance
eggs

Loading Content Into A Frame
I have a five button nav bar that I would like to place within a frame.
I would like to load content into an adjacent frame depending on which button is selected in my nav bar.
How would I code this?

Thanks

Dynamic Content Loading
Hi All,

I've got a little question:

Is it possible to swap the contents of a movie clip using actionscript if this movieclip was created non-dynamically (read using Flash GUI)?

I've got some placeholder movieclips on my stage, that I move around during the animation. However in the first frame I attempt to load jpgs in each movieclips (they each contain a white square so I can position them properly in the flash gui)

The problem I am having is that if I do the following:

wImg.unloadMovie();
wImg.loadMovie("aFile.jpg");
trace(wImg._url));

rather than getting the URL of the jpg, I get the URL of my flash .swf file... It never loads the jpg...

So i'm a little flumuxed. Anyone have any ideas?

many thanks,

Tom.

Loading Content In Background
Hi,

Is it possible to load a SWF in background (i don't want it to appear immediatly)
I want to load it in background and on a specific frame to show it.

thanks

Loading Content Question
What is the best way to check for content to be completely loaded. I am loading content from a text file and on the initial load I am getting an undefined statement in my textfields.

My first 3 frames.

Frame 1
//
loadVariablesNum("content.txt", 0);
loader = "false"

Frame 2
empty

Frame 3
//
if (loader == "False")
{
gotoAndPlay(2);
}
else
{
gotoAndPlay(4);
}


In my text file that I load, the last variable is loader = "True"


Why doesn't this work, its seems pretty simple.

Loading Preloader And/or Content
I want to use a mouse trailer as a preloader for my fash site so that the user has something to play with while they wait (the content is a 2Mb swf!).
I know that flash player loads fonts, sounds etc before anything else, causing a blank screen followed by the preloader starting at about 40% (when my preloader is on the first frame of my content).
I was wondering what the best way to set up my swfs so that my preloader (4K) appears straight away and completely loads the rest of the site before allowing access to it.
Should I load or place the content swf into the second frame of my preloader swf or something like that? And is it possible for my preloader and content swfs to be running at different fps?
Thanks.

Pause In Loading Content To Mc
I have this mc that plays and depending upon which button is selected different content is displayed in the dynamic text boxes within the mc. Problem is, that sometimes there is a pause from loading new content.
I've uploaded the fla to avoid any confusion.

Thanks,

Robb

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

Loading External Content
Hi. I am making my first site using the loadMovie(); action (pretty sad...). Anyway, since I'm to this, (loadMovie), I was wondering, first of all, what the best way of doing this would be. Secondly: what are levels? And thirdly how do I preload external content...do I just put a preloader within the movie I'm loading, ect... Lastly, what should the actions on my menu be (ie. load this movie, unload all other movies, if that's even possible ).

Thanks,
Sportzguy933

Loading Content Via XML In Flash
Hi there

I need to show some content in my site's daily updating page which shows the daily recipes, weather, and quote of the day kinda stuff. For which we dont want to update the flash file daily for the text and the images coming in to it, I have made up the design, placed my Dynamic text boxes, placed the images in a mc with instance names, now can anyone help me giving any example for how to connect and get the data and images path from the XML file into Flash so in this way the admin just needs to fill up the XML file and the flash file gets the data according to it everytime.

Any help would be really appreciated.

Thanks,
F.

Preloader Not Loading Before Content.
Hi - using Flash MX7

I have a preloading scene at the beginning of a movie. It says it's loading the whole movie before starting. The problem is, the preloader clip doesn't seem to load until the whole movie is loaded.

Am I doing something really wrong?

Thanks in advance.

Deck

[F8] Loading New Content To Containers
I'm creating a spreadsheet simulation that has five containers. I'm using the following code for this, and it is working just fine. My question is about managing listeners. I need to load different swfs to these containers and I am not sure how (In the past, I just loaded external SWFs).

Hear is the loading code for one container:

Code:
this.createEmptyMovieClip("dataFile", this.getNextHighestDepth());
var mc1Listener:Object = new Object();
mc1Listener.onLoadInit = function(_loadedMC1:MovieClip) {
if (_loadedMC1 == _root.dataFile){
_loadedMC1._x = 0;
_loadedMC1._y = 150;
}else{
trace("I'm afraid _loadedMC1 (for the data rows) didn't load, or is not defined!" + _loadedMC1);
}
};
var MCdata:MovieClipLoader = new MovieClipLoader();
MCdata.addListener(mc1Listener);
MCdata.loadClip("Summary.swf",this.dataFile);


Can I reuse the same code? Do I need to deleate the listener first? Should I delete all assets to the first container and start over?

Some Dynamic Content Not Loading In Ie7
my site www.whiteroomproductions.com works fine in firefox and opera but encounters problems in internet explorer 7. The about us, team, news and projects page wont load which are dynamically loaded. The latest flash player is installed. Its weird because the other pages work. If anybody knows a solution to this please help as i've run out of ideas. Thanks

Jack

Loading Content From XML Help Needed, Please.
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 captioningSo 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 From One Movieclip To Another?
Hello all!

ok heres the deal. I have a bunch of images in a movieclip attached to a scrollpane. When an image is clicked, I want to "copy" the image selected and open it in a movieclip on the main stage. I have no idea how to accomplish this. and help is appreciated.

Loading External Swf With XML Content
I'm having issues after loading an external .swf into my main movie. Here are the specifics -

The external .swf contains a flash mp3 player that I built which brings in two mp3's via a small xml script.

Upon loading which works fine it seems like the xml part is not getting triggered.

Any help would be appreciated....

Loading Content From A Remote ASP
Hello,

I don't know if this is more an Actionscript question or a general question, but here it goes.
I'm loading content from an ASP using the XML class. If I run the project inside flash, the ASP reads properly, but if I run the SWF on the Flash Player, I get a security error saying that I can't access a website on the web. For testing purposes I set my SWF file as secure on the security definitions, so now I'm able to run my SWF properly (it also loads the ASP properly).

Now here's my problem: if I run the SWF embedded in an HTML file, the ASP output is never loaded (I'm opening the .html file locally on my browser).

What is the problem here? Does it have something to do with the security settings of my Internet Explorer? Or is there any other issue that I'm not considering at the moment?

Best regards,
Norberto

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???

Dynamic Content Not Loading In FF
Hi,
i have a curious problem with dynamically generated flash content in FireFox. You can view the site under http://www.kenvelo.mmfilm.sk. If you go into the deepest category of the dropdown menue, to the prodcuts browser, there is a strange issue with the content. In IE everything works fine, but in FF, if you change the product (select a different product from the list to the left), nothing happens.
The content ist generated dynamically from the library on hand of some data loaded from a PHP server-side script. The code that loads the data follows:

Code:
lan_init_object = new XML();
lan_init_object.ignoreWhite = true;
lan_init_object.onLoad = function (ok)
{
if (ok)
{
.....script that generates the content........
}
}
tmp = myRandom();
loader = new LoadVars();
loader.cachecommand = 'bypass';
loader.seed = Math.round(Math.random()*500);
loader.sendAndLoad(_global.site+"webapi/site_category_detail."+_global.webapi_extension+"?main_cat="+_global.main_cat+"&sub_cat="+_global.sub_cat+"&sub_cat2="+_global.sub_cat2+"&tmp="+tmp,lan_init_object,"GET"); // i've tryed POST also, no effect
//lan_init_object.load(_global.site+"webapi/site_category_detail."+_global.webapi_extension+"?main_cat="+_global.main_cat+"&sub_cat="+_global.sub_cat+"&sub_cat2="+_global.sub_cat2+"&tmp="+tmp);
In my opinion, the statements that should be executed on load don't get executed for some reason in FireFox. The commented out lan_init_object.load didn't work also (in FF, still IE worked). I have figured out that there is a problem with the browser cache in FF, so that's why we have implemented the random parameters to the URL, unfortunately with no effect. The server-side script also sends correct headers for content-type.
Now let's not forget that this same method is used to load the initial data the product_browser displays - and, wow - this displays in FF too. The embed is a normal SWF.Object embed, nothing modifyed, the change_product function does not invoke any SWF.Address changes that could explain this behaviour.

Im working in Flash for some time now, but this is new and strange at same time for me. Can someone maybe gime a tip for this?

Thanx really much, Michael

Loading Xml Content Into Textfield
I'm loading some content from an .xml file and it's all fine,- a for loop goes through the content and I trace out 3 entries in the XML. However I want to display the results in a dynamic textfield, but I can't get the 3 entries to list, I can only access one specific entry by using the square operator like imageName[2].

My code:

ActionScript Code:
var myXML:XML = new XML();

myXML.ignoreWhite = true;

myXML.load("text.xml");

myXML.onLoad = function(success) {
if (success) {
var myImage = myXML.firstChild.childNodes;
for (i=0; i<myImage.length; i++) {
var imageNumber = i+1;
var imageName = myImage[i].attributes.name;
var imageURL = myImage[i].firstChild.nodeValue;

// Traces out entries
trace ("My image number "+imageNumber+" is titled "+imageName+" and its URL is "+imageURL+".")

//TRYING TO LIST ALL imageName ENTRIES IN THE DYNAMIC TEXTFIELD "txt_mc"
txt_mc.htmlText = imageName[i];
        }
    }
};
XML:

ActionScript Code:
<gallery>
<image name="school">image1.jpg</image>
<image name="garden">image2.jpg</image>
<image name="shop">image3.jpg</image>
</gallery>

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