PDA

View Full Version : Load a panorama in a flash


AlexLM
09-15-2007, 08:43 PM
Hi people,

I try to load the panorama in a flash.. like in my website made in flash, and it's not working..

This is my code, in as3 (the code is good):

var myLoader:Loader = new Loader();
addChild (myLoader);
var url:URLRequest = new URLRequest("room.swf");
myLoader.load (url);
var infoLoader:LoaderInfo = LoaderInfo(myLoader.contentLoaderInfo);
//-------------------------------
var intervalLoad = setInterval(getSeconds,1,myLoader);
function getSeconds(mClip){
trace(infoLoader.bytesLoaded);
trace(infoLoader.bytesTotal);
}

.. and the movie is loaded I saw it in the trace.. but the screen still white.

Can someone help me please..

I speak french as well, so if you are more comfortable in french, go for it.

Thanks!

clodomi
09-16-2007, 09:19 PM
Bonjour Alex,

Ouf, ça fait du bien de parler français ;)
As-tu ouvert ce fichier "embedPano.fla" qui se trouve dans le dossier "examples" fourni avec FPP !
Il te faut Flash CS3 je crois pour l'ouvrir (peut-être que le 8...). Voilà je ne peux t'aider plus loin : je ne sais si je peux faire un copier coller ici en public, vis à vis de Denis !
Je t'ai mis le code dans un message privé. Voilà !

A bientôt