Is it possible to load a with MMF2 created application with swf? That would be extremely important to me for flashgamelicences.
EDIT: DONE, i have write in the chat the problem...
Printable View
Is it possible to load a with MMF2 created application with swf? That would be extremely important to me for flashgamelicences.
EDIT: DONE, i have write in the chat the problem...
can you explain how you managed to load the mmf created swf with a premade swf loader? I assume that's what you are talking about in your post?
Yes please share your solution! It may be handy to others (like me :D )
[color:#660000]At the moment, you can NOT start a swf in the mmf-application..
..but you can start a own swf (sponsor swf) before your mmf-flashgame is starting...
here my code (actionscript 3) ;)[/color]
Code:var laden:Loader = new Loader(); // Create a new loader
// where the flash is created.. x and y coordinates..
laden.x = 0;
laden.y = 0;
laden.contentLoaderInfo.addEventListener(Event.COMPLETE, geladen);
// create a child - laden
addChild(laden);
var url:URLRequest = new URLRequest();
// Is the swf finaly loaded.. start this function..
function geladen(evt:Event) {
trace("Movie successful loaded!");
}
// This is the loading swf-script
function loadgame() {
url.url = "http://www.MYURL.com/MyFlash.swf"; // The flash-url was load
laden.load(url); // load the flash
}
// Here start the loadgame-function
loadgame();
Does this "embed" your SWF in the preloader, or does it "point" to an external SWF?
I think it is the latter looking at the code. If so, do you know how to embed the MMF SWF in a preloader so that it is all in a single SWF file?
Thanks.