Flash4u
%Europe/Berlin %374 %2005, 08:59
Heey mensen, ik kwam het volgende AS tegen in een Flash-movie, wie kan mij meer duidelijkheid geven wat de verschillende functies allemaal doen? Vooral SN gedoe vind ik raar :S // Action script...
// [Action in Frame 2]
if (_url == "http://home.wanadoo.nl/~mjhoeve/Patent.swf")
{
listeningLC = new LocalConnection();
listeningLC.comeBack = function (SN)
{
if (SN == "122345567642232112875556214")
{
geopend = true;
_parent.SerieNr = SN;
if (_parent._currentframe == 1)
{
with (_parent)
{
play();
} // End of with
} // end if
}
else
{
_parent.SerieNr = "0";
} // end if
};
listeningLC.connect("sims");
}
else
{
if (!geopend)
{
getURL("http://home.conceptsfa.nl/~mjhoeve/frames.htm", "_blank");
geopend = true;
} // end if
with (_parent)
{
gotoAndStop(1);
} // End of with
} // end if
// [Action in Frame 3]
if (_parent.SerieNr == "0")
{
if (!geopend && !eerstekeer)
{
getURL("http://home.conceptsfa.nl/~mjhoeve/frames.htm", "_blank");
geopend = true;
} // end if
if (eerstekeer)
{
eerstekeer = false;
} // end if
} // end if
Voorbeeld is te zien op deze website (http://www.villavoltaweb.nl/Sim.htm) bij Interactief - Simulaties
// [Action in Frame 2]
if (_url == "http://home.wanadoo.nl/~mjhoeve/Patent.swf")
{
listeningLC = new LocalConnection();
listeningLC.comeBack = function (SN)
{
if (SN == "122345567642232112875556214")
{
geopend = true;
_parent.SerieNr = SN;
if (_parent._currentframe == 1)
{
with (_parent)
{
play();
} // End of with
} // end if
}
else
{
_parent.SerieNr = "0";
} // end if
};
listeningLC.connect("sims");
}
else
{
if (!geopend)
{
getURL("http://home.conceptsfa.nl/~mjhoeve/frames.htm", "_blank");
geopend = true;
} // end if
with (_parent)
{
gotoAndStop(1);
} // End of with
} // end if
// [Action in Frame 3]
if (_parent.SerieNr == "0")
{
if (!geopend && !eerstekeer)
{
getURL("http://home.conceptsfa.nl/~mjhoeve/frames.htm", "_blank");
geopend = true;
} // end if
if (eerstekeer)
{
eerstekeer = false;
} // end if
} // end if
Voorbeeld is te zien op deze website (http://www.villavoltaweb.nl/Sim.htm) bij Interactief - Simulaties