How to gotoandplay frame label when stage resizes?
Is there a piece of code that I can add into my Animate project that will gotoandplay a frame or movie clip when the stage resizes? I've got 2 movies - one for desktop and one for mobile. I want to go to the mobile version when the stage resizes. The code that I am putting together is not working and I don't know why as I'm just a beginner
Any help or advice is much appreciated ...
var stageListener:Object = new Object ();
stageListener.onResize = function ()
{
if (Stage.width >= 600)
{
stageListener.gotoAndPlay("mobileArtwork");
}
}
Stage.addListener(stageListener);
