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




Html From Xml Will Not Load Into A Movieclip, Please Help



Hi I have a swf file with one dynamic text box and a ui scroll bar beside it. I have this AS code:var theXML1 = new XML();theXML1.ignoreWhite = true;theXML1.onLoad = function(succes:Boolean) { if (succes) { _root.article1_txt.htmlText = theXML1; } else { _root.article1_txt.htmlText = "Error loading data."; } };theXML1.load("xml/mainNodes.xml");This loads my html to article1_txt fine. When I load this swf (which is an about me page and works ok when viewed alone) into my main container the xml contents will not load. The scroller will load though. All my swf files are in the same directory so I don't think it can be that. Any ideas as to why it will not load?ThanksMatt.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-02-2008, 09:58 PM


View Complete Forum Thread with Replies

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

Load External Html File In An Empty Movieclip
Hi everyone!

Can anyone help me solving this question.
Is it possible to load an external html file in an empty movie clip? I want to load an html file, as if it was an external swf, in a determinate position and with determinate size of the main movie.

Is it possible?
I guess so.

Thanx in advance

Musher

"On Press" - Load Movieclip And Html Page.
Hello fellas.

I got a "huge" problem.. or should I call it "lack of knowledge"...

The thing is, I'm building a homepage in dreamweaver. But the menu itself is made in Flash.

The problem is:

When I press my button I want it to load the animation on the button first (the button is a movieclip) then go to the link (homepage).

How do I do that?

I'm kinda basic, so I'd be greatful for basic guiding.

Thanks in advance.

Liq

Load Movieclip From Libary Into Another Blank Movieclip On Stage (URGENT PLEASE)
hi all i just need to know how to load a movieclip into a blank movie clip all in the same movie?! please help many regards peter thanks in advance!

How To Load Image Into Movieclip Inside Movieclip That Is Dynamically Created?
Hello Kirupa Cats!

I am building a menu from an XML file, and I'm cool with cyclying thru the xml data to create menu items.

For every menu item in my XML file, I'm using attachMovie to insert a movie clip called menuitem from my library into a movieclip called menuholder. This works no problem, my menuholder movieclip is poplulated with as many menuitem movieclips from the library as designated by the xml data.

However, inside the library movieclip called menuitem, I have another movieclip on its stage, called mc_menuImage. I want to load an image into that movieclip, and I'm taking the URL for the image from the XML data.

My problem is I can't seem to figure out how to fully identify the movieclip mc_menuImage to load the image. It may have something to do with the fact that the library movieclip is being loaded dynamically, but the movieclip inside the library movieclip exisits pysically on the stage. I don't know...here's the code I'm working with:

THE CODE:

var xmlMenu:String = "menu.xml";
menuholder = createEmptyMovieClip("menuholder", -1);

var xmlMenuData:XML = new XML();
xmlMenuData.ignoreWhite = true;
xmlMenuData.load( xmlMenu );
xmlMenuData.onLoad = function(loaded) {
if (loaded) {
var mImage:Array = new Array();
var mRootNode = this.firstChild.childNodes;
totalMenuItems = mRootNode.length;

// fill array
for (var i = 0; i<totalMenuItems; i++) {
mImage.push(mRootNode[i].attributes.menuImage);
}
}

//make the menu
for (var i = 0; i<totalMenuItems; i++) {
var menuitem = menuholder.attachMovie("menuitem", "menu"+i, i);
menuitem.id = i;

/* now here I thought I could just do this: */
menuitem.mc_menuImage.loadMovie(mImage[i]);
/* but that doesn't work... */

};


When I trace menuitem I get this: _level0.menuholder.menu0, _level0.menuholder.menu1, etc, so I figured the syntax menuitem.mc_menuImage would identify the movieclip inside menuitem, but to no avail. Maybe it has something to do with levels, I'm not sure...

So I don't know, any suggestions? Thanks so much!!!

Getting Flash To Load HTML Pages Into Iframes In A Seperate HTML Page
Hi everybody

Does anybody know how to get Flash to load HTML pages into a seperate HTML page?

I'm currently running an animation within a webpage, and my client would like to be able to have some captions in HTML on the page that go with specific parts of the animation.

He wants the captions done in seperate HTML pages so that they can be changed into different languages at a later date.

I am loading these captions (HTML pages) into <iframes> on the page.

So far so good..... however...

I need to be able to get flash to load the HTML pages into the <iframes>, in certain points within the animation.

So... Does anybody know how to get Flash to load HTML pages into a seperate HTML page?

I'm guessing getURL is used somewhere, but I don't know the exact code.

Hope you can help!

Deadhands

Getting Flash To Load HTML Pages Into Iframes In A Seperate HTML Page
Hi everybody

Does anybody know how to get Flash to load HTML pages into a seperate HTML page?

I'm currently running an animation within a webpage, and my client would like to be able to have some captions in HTML on the page that go with specific parts of the animation.

He wants the captions done in seperate HTML pages so that they can be changed into different languages at a later date.

I am loading these captions (HTML pages) into <iframes> on the page.

So far so good..... however...

I need to be able to get flash to load the HTML pages into the <iframes>, in certain points within the animation.

So... Does anybody know how to get Flash to load HTML pages into a seperate HTML page?

I'm guessing getURL is used somewhere, but I don't know the exact code.

Hope you can help!

Deadhands

Load Movieclip From Library Into A Movieclip On The Stage?
Alright I am losing my mind trying to figure out something so simple, I can load external swfs no problem, but How do you access a movieclip from the library?

I have a main swf, and a movieclip in the library named feb93_mov. Basically I want to on MOUSE_DOWN load the library item "feb93_mov" into swfloader_mc on the stage. But I cant write an instance name for "feb93_mov" cause it's not supported, so how do I access it then?

Here is my code what is wrong with it?:


ActionScript Code:
feb93_btn.addEventListener(MouseEvent.MOUSE_DOWN, feb93down);
function feb93down(event:MouseEvent):void
{
    loadMe4();
}

var loadMe4 = function():void
{
        var feb93_mov:MovieClip = new MovieClip();
    swfloader_mc.addChild(feb93_mov);
}

Load A Movieclip Into A Other Movieclip From A Loaded Swf File
do somebody know how I can do if I have a flashmovie that is the skin and into that movie I load two .swf files (one with the menu and one with the start text). Have 2 empty movieclips one called "meny" and the other "main". but the problem is that when I load the meny externally the actions that i have on the buttons doesn't work as if I would have the menu in the skinmovie.

I have these action to the info button:

on (release) {
loadMovie("info.swf", main);
}

and these action work if i have the menu in the skinmovie but no when i load it from a .swf these actions don't function.

Anyone that know how I could rewrite thes action that it would work?
Thanks

Load A Movieclip Into A Other Movieclip From A Loaded Swf File
do somebody know how I can do if I have a flashmovie that is the skin and into that movie I load two .swf files (one with the menu and one with the start text). Have 2 empty movieclips one called "meny" and the other "main". but the problem is that when I load the meny externally the actions that i have on the buttons doesn't work as if I would have the menu in the skinmovie.

I have these action to the info button:

on (release) {
loadMovie("info.swf", main);
}

and these action work if i have the menu in the skinmovie but no when i load it from a .swf these actions don't function.

Anyone that know how I could rewrite thes action that it would work?
Thanks

Can I Load A Html File By Flash Link To An Html Iframe ?
Is it possible to create links in a flashmovie and force them to show several html-files in to a iframe, defined by the html document, which loaded the movie up ?? ( sorry 4 my bad english )

Load HTML Page Into HTML Frame On Release [MX04]
I've got a minor glitch here.


Code:
getURL("about.htm", "bottomFrame");
It works, but instead of loading the "about.html" file into the "bottomFrame", it opens it in a new window; regardles of browser.

Funny thing is, this file worked perfectly about 4 months ago, and now its cactus. Anyone?

HTML Code In Flash To Load An HTML Page In A Frame
Hello.

I have an existing website built in html, with three frames. One on the top for the banner, one on the left for navigation, and a larger window to the right of the navigation for the main content. I want to replace the content in my navgation frame with a flash built navgation menu, and when my menu items are selected, it will load a new page in the content frame.

I currently have this working fine in html. I can make my buttons link to a URL no problem in flash, but how do I tell it to load the content into the other frame? I haven't started this process yet, and figured I'd ask first to get any ideas.

Thanks.

Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

Html Link To Load Swf Then Load Specific Xml File
Hi I'm still learning a lot to do with actionscript and not even sure if this can be done so this is a long shot!

I want to have a link in html to load an xml file in a swf - haha does that make sense??

Eg: The user to be able to click on the websites link on "http://crushdesign.co.uk/links.html"
Then that take them to "http://crushdesign.co.uk/portfolio.html" BUT in the Web section of the swf!

Thanks guys

Load MovieClip Into Empty MovieClip
Is it possible to load a series of MCs in to an empty MC on the stage? I have a bunch of MCs in my library and I want them to load and unload with buttons the same way you would with external swfs. I don't want to use swfs because I know that I'm going to go back in an change the absolute address for each, later. Plus there all so small, I'd hate to have to make seperate .swf's for all of them.

Thanks In Advance,

Load Movieclip Into A Movieclip On Stage
On the loading of my page, I need to load an english text movieclip into one that's on stage. Also on stage is a button to push for the Japanese translation. When this button is pushed, I need to load the japanese movieclip into the place where the english version is and for the english to go away. How do I do this?

How To Use A Button In A MovieClip To Load A Swf Into A MovieClip
Hi,

I'm trying to use a button contained in a movie clip on the stage to load a SWF into another movie clip on the main stage. I have gotten it to work when attaching the action script directly to the button, however I would like to have all my action script contained in one frame. Any ideas on how to accomplish this?
I'm using ActionScript 2.0

Thanks,
Adam

Load Movieclip Inside Movieclip
I'm familiar with the loadmovie script and loading an external swf file into an empty movieclip, but is it possible to load a movieclip inside an empty movieclip, all within the same swf? I don't want to use external files because I really don't have much content and it would be easier to just make everything in one swf file.

Load External Html Txt , Using Ext Txt To Load MC In _level
Hi Everyone,
thank God for Forums,

I really need some help and much appreciate if you guys can me.

I have flash movie load a ext txt file:
http://www.zootopia.net/test/

The txt file is HTML formatted so flash reads it as html.
I use html link in the ext txt file - ie. <a href="#">this is a link</a>

My Aim:
Is it possible to have the html link tell flash to load another MC into a new level or goto frame 2?, then load another ext txt file??

eg. <a href=" gotoFrame 2 and load another ext txt file">

What do you guys think, love to know any suggestions

Load Only A Section Of Html Into Html
on a certain page (html? xhtml? php?), there's flash. when i click a button in this flash, i want it to load only a section of html into the main html.

this is the tricky part.
i don't want flash to send a command to load a whole new page. i just want a section of the html to switch / change. is this even possible? it'd be sorta like a frame in html.......... but is there an alternative to frames?
a workaround, a much more better way of accomplishing this?

PLS HELP - How Do U Load In Load In Dynamic Html Instead Of Txt?
im usingthis script here

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

and i want to load in a html file instead of a txt file. what do i change below?

loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.kirupatext;
};


any help greatly appreciated.
si

Load Order In Html - Swf Load Last?
Is there a way to make sure that a flash swf loads last in an html page? I have a preloader built into my flash content. The first time someone accesses the html page it loads fine but the second time around there is a lag and it seems like the embedded preloader (in swf) is completely loading file before html page will load.

Load A Flash W/html AND Load A XML
I was reading the tutorials on one the photo album and I don't know how to insert the Flash into a web page And load the XML. every time I try the XML does not load.

any help would be apriciated.

thanks

Call An Swf File To Load Into Html Document From Seperate Swf File In HTML.
I am trying to get advise on the best way to do this or how to do this. I have a layout that the customer is happy with, in an HTML document, but the SWF files will be seperated because of the layout. If you go to this link, you will see what I mean. It all takes place inside of the black bar...

http://www.hairdrezzersonfire.com

I want the icon movie on the left to play first and after it is done, I want to be able to call the main SWF file to play in the center of the black area. After that's done, I want that main SWF file to call the text logo movie to play that comes in on the right side of the screen.

I assume that I will use a placeholder of some sort in an HTML cell and it will be replaced by the swf file, but I don't know how to call it with actionscript. Any ideas?

Load Movieclip Into A Movieclip
I have preloaded all my images into my movie, but I am having some trouble using them. They all got loaded into movieclips named mc1, mc2, etc.

And I can get the images to show up just by using something simple on the root level like mc1._y=200. And then I can see it fine. However I'm trying to load mc1 into another movieclip (myloader). Basically my buttons are switching which movieclip(mc1 , mc2) shows up in the movieclip named myloader.

I'm not sure what the best way to do this is. Should I use attachmovie or something like that? Or I can get it to load in using the moviecliploader, but then I am basically just loading the image into flash again. I know it would work since the images would be cached, but that seems like unnecessary work since the images are already loaded into movieclips at the beginning.

I hope that made sense.

What do you think the best option would be?

Load A Movieclip In Another Movieclip
I have a problem, i'm using this to load a movie into my main movie.


Code:
on (release) {
_root.bildspel.loadMovie("bildspel.swf");
But now i want to make a link in the file "bildspel.swf" that loads another movie in the same file as "bildspel.swf" loads into.

Somebody who know how to do this?

Load A Movieclip In Another Movieclip
I have a problem, i'm using this to load a movie into my main movie.


Code:
on (release) {
_root.bildspel.loadMovie("bildspel.swf");
But now i want to make a link in the file "bildspel.swf" that loads another movie in the same file as "bildspel.swf" loads into.

Somebody who know how to do this?

Export Movieclip To Html
I've drawn a piechart in Flash 2004 MX, how can I display it in html file.

I've used FSCommand to export text in html format. But now I feel frustrated to export a piechart...anyone help ?

Is It Possible To Load A Url In A Movieclip
Is it possible to load an url in a movieclip on your site?
If this is possible can someone tell me how to do that, because I really don't know.

Load Into A Movieclip?
Im turning mad .. about this... please help ...


I need to load a swf into a movieclip.... It works great!!
but the actions I have in the swf doesent work when I load it into the moviclip...


........................
It works great if I load it into the root of my main movie!??

How Do I LOAD A MOVIECLIP?
I need to load a movieclip with actionscript.

thanks in advance

Load Movieclip
I have a movieclip on the main timeline, when it plays it's last frame I want to go to and play a different movieclip that is also on the main timeline. How do I do this? I'm using Flash 5.

Why Will A MovieClip Not Load?
I cannot figure out why my movie clip will not load? All the files worked on my local drive, but when I uploaded the files and tested it... the movie clip does not start.
Here's the code I have placed in a button to call the movie:

on (release){
gotoAndPlay("Load Home Menu");
function PlayTime(){
loadMovieNum("Message.swf", 2);
clearInterval(ID);
}
ID=setInterval(PlayTime, 5000);
}

I also tried a simple loadMovieNum(), and no go.. the file Message.swf is not even cached on my computer from the web.. anyone come across something like this?

Note: chmod settings are correct.

thanks

Load Mp3 Into Movieclip
Hi folks,

I'm trying to load an MP3 (dynamically) into a movieclip- I'm using the following code which brings the MP3 into my project, but how do I get it from there into a movieclip?

mySound = new Sound();
mySound.loadSound("/introduction.mp3", true);
mySound.start();
fps = 12;

Thanks!
Dpower

How To Load A Swf Into A Movieclip?
How can I import a swf file into a movieclip?

Load MovieClip With BTN
Is there a way to load/unload a movie clip with a button once i click it?

Load Pix Into Movieclip
how do you tell a button to load into a specific mc? if possible i want the ceter of the pic to be located at 0,0 in the mc so the pic is centered. any help would be appriciated.

thanks,
ausitn

Load A Movieclip
I try to press "w" to perform the fight movieclip. But it only perform frame 1 of that movie clip. Does anyone know what happens?

The fight movieclip is put in frame 4 of that main character.

Load A Movieclip Abd A Flv
Hi trying to load a mc and a progress bar to a flvplayback component to a new x and y coordinate when a flv lusing this code but it doesnt seems to work

// Set Videos Behavior

loadMovieNum("english_meny.swf", 2);
// Create a videos object to hold a video
// playlist and event handler functions...
var videos:Object = new Object();

// Set up to 7 video feeds in a single component
videos.list = new Array();
videos.list[0] = "a_film_1.flv;
videos.list[1] = "a_film_2.flv", createEmptyMovieClip("holder" , "100");
loadMovie("jann1.swf" , "holder");
holder._x = 20;
holder._y = 100;
videos.list[2] = "a_film_3.flv";
videos.list[3] = "a_film_4.flv";
videos.list[4] = "a_film_5.flv";
videos.list[5] = "";
videos.list[6] = "";
videos.loop = true;
videos.length = 1;
videos.loaded = false;

// Path to FLVPlayback components
var m = this.janne;

// Set the path of the first video feed
m.contentPath = videos.list[0];

// Set a 'ready' event handler to load the videos
videos.ready = function( evt:Object ):Void
{
if(!this.loaded){
this.loaded = true;
for( var n=1; n<this.list.length; n++ ){
if( videos.list[n].indexOf(".flv") != -1 ){
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
}
}
m.activeVideoPlayerIndex = 0;
}
}
m.addEventListener("ready",videos);

// Set a 'complete' event handler to load the next video
videos.complete = function( evt:Object ):Void
{
var nextIndex = Number(evt.vp)+1;
if( nextIndex == this.length){
if( this.loop ){
nextIndex = 0;
}else{
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
m.play();
}
m.addEventListener("complete",videos);

// End Set Videos Behavior

How To Load SWF Into MovieClip In AS3
I need to convert some project to AS3 and I hit to folllowing problem:

in AS2 I had had 2 movie clips (let say Local_mc and Import_mc). Import_mc I used for importing external swf with command:


Code:
loadMovie("file:///N_1b.swf", Import_mc);
after import both Local_mc and Import_mc had similar content with the same structure and I switched between the by asigning one of them to other mc pointer :

Actual_mc:MovieClip = Import_mc;
or Actual_mc = Local_mc;

Then I worked with them by pointing Actual_mc.DrawingBoard_mc.Shapes_mc...etc

In AS3 I am not able to import directly to some mc. I must make loader, load to it, but how to include content of loader to my structure - to import_mc movieclip?

Load Php Url In A Movieclip
Hello all,
I m using following code to display a php url content in a movieclip:-

this.createEmptyMovieClip("clp",this.getNextHighestDepth());
var listener:Object = new Object();
imgLoader = new MovieClipLoader();
imgLoader.addListener();
imgLoader.onLoadStart = function(tragetClp:MovieClip)
{
trace("inside onLoadStart event")
};
imgLoader2.onLoadInit = function(tragetClp:MovieClip)
{
trace("inside onLoadInit event.")
};
imgLoader2.loadClip("

Best Way To Load Movieclip
flash MX:


Ok im making a portfolio sight and want to have it were you click a button and it displays a image on the stage. want the image to have a preloader and then wipe in thus using movie clip.

what is the best way to target the movie clip and have it play on the stage at fixed position on the stage.

ie. do you use external MC's or do you call them from inside the movie.

thanks in advance

Load Movieclip
Hi,


I am trying to load /duplicate a simple movie clip and am unable to do.
I am attaching the code.
its simple but it doesnt seem to be working at all.


Ramya--

the code is pasted below:

operand1 = Math.random();
a1.text = Math.round(operand1*10);
counter = int(a1.text);
duplicateMovieClip(movblue,"myclip",1)
stop();


here movblue is a movie clip.

<img> To Load Movieclip
How do I load a movie clip into a textfield? I read macromedia flash help but I didn't understand it well. It says I have to use the <img> tag, but what path should I write in the src propetry?

PS: the <img> file is in an external text file which loads its contents into a dynamic text field

Load MovieClip
Hello,
I have a main flash movie. I am trying to load in another swf file into it.
When the file swf loads into the main movie, it does not work, meaning that the ComboBox and data that it is pulling from a mysql db are not working, nothing is happening, any ideas?

Thanks

Load Movieclip
Hi,


I am trying to load /duplicate a simple movie clip and am unable to do.
I am attaching the code.
its simple but it doesnt seem to be working at all.


Ramya--

the code is pasted below:

operand1 = Math.random();
a1.text = Math.round(operand1*10);
counter = int(a1.text);
duplicateMovieClip(movblue,"myclip",1)
stop();


here movblue is a movie clip.

Load MovieClip At X, Y
I'm sure you can do this but I have no idea how.

Say I have a Movie Clip that is identified as "MC1"

How can I (using actionscript on a pushbutton) make the Movie Clip appear and play at the coordinates 100,100?

I know I can just put MC1 on another frame and link the button to there but is it possible to make the movie clip appear at those coordinates so I dont have to link it to another frame?

Thanks
-Alok

How To Load A Movieclip
I need help on how to load a movie clip.

I was a able to unload the movie using the ff:
//this.swapDepths(999);
this.removeMovieClip();//


But I cannot load it back to the stage using a button.

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