Hi, Thanks for taking the time to look at my thread, I hope the title of this thread wasnt too confusing but here’s what Im TRYING to achieve…
Ive searched the forums, but im puzzled. Can someone talk me through this please…
I have a main movie with a dynamically created menu (uses data gathered from an XML file). Each menu item has an Action and Variables associated with this action.
(snippet of related functions in AS)
Actions = Object();
Actions.gotoURL = function(urlVar) {
getURL(urlVar, "_blank");
};
Actions.loadSlideShow = function(dataFileName){
var = "photoGallery.swf"+dataFileName;
loadMovieNum(var,"content_mc","POST");
};
Now as you can see from my XML file above one of my menu options is a photo gallery. What I would like to to is have one swf, i.e. photoGallery.swf, and load this into an empty movie clip called content_mc and pass it different XML files (same format, but different content). (see my loadSlideShow() function)
Oh darn in the transfew from MX pro 2004 to MX I lost all the synmbols and forgot to replace them :(. Here’s my attachment again, and ive tested it this time
Hi again, im still having great trouble with this. Please help…
Basically all im looking for is some help with creating a loading function (a prototype) which passes variables to the swf movie to be loaded. Any ideas ?
:stunned: .yer I wouldnt mind getting away myself…I dont understand why you dont see the menu !? Im using MX ?? I mean the file was originally MX 2004, but i fixed and tested it…Hmm lemme me check again …
Lol Just wanted to chat about this, doing this on the forum would be kinda … unsuitable.
Anyway, mindfriction – I used an object stored in _root to transfer data from the one swf to the other. I would’ve done it another way, but there was some trouble with load delay and for some reason, my onEnterFrame handler which I used to check when it has completed loading was ignored. So here they are.
They’re in MX 2004 format, to ensure no data loss.
… But you mentioned there was another way? What might that be?..Im curious because im trying to limit the use of _root and global vars/ objs if you know what I mean ;), I would rather pass it as some sort of argument to a method or something like that…
But that didn’t work, because there is a delay between the loadMovie command and the moment at which the external movie is loaded and executes the command that sets the xmllink value in the textbox. You are basically setting the external movie’s xmllink property when it hasn’t loaded yet.
So I figured this can be solved by using an onEnterFrame handler to check when getBytesLoaded and getBytesTotal are equal, and then set whatever variable you like. But for some reason, the onEnterFrame handler got ignored. So I did it that way.