T-Bounce
%Europe/Berlin %774 %2010, 19:34
Hey,
Ik ben bezig met een template aan te passen maar als ik exporteer, krijg ik volgende fout en werkt mijn fullscreen knopje niet meer :
There is no property with the name 'displayState'.
Dit is mijn code nochtans:
stop ();
function resizeSite(textObj, buttonObjSeand, buttonObjClear, closeObjSeand, closeObjClear)
{
var _loc1 = {};
closeObjSeand._visible = false;
closeObjClear._visible = false;
titleTextInfo = "Exit full-screen mode (Esc) to enter text";
titleTextButton = "Exit full-screen mode (Esc) to send the form";
_loc1.onFullScreen = function (isFullscreen)
{
if (isFullscreen)
{
textObj.htmlText = titleTextInfo;
buttonObj.useHandCursor = false;
closeObjSeand._visible = true;
closeObjSeand._x = buttonObjSeand._x;
closeObjSeand._y = buttonObjSeand._y;
closeObjSeand._width = buttonObjSeand._width + 5;
closeObjSeand._height = buttonObjSeand._height + 5;
closeObjClear._visible = true;
closeObjClear._x = buttonObjClear._x;
closeObjClear._y = buttonObjClear._y;
closeObjClear._width = buttonObjClear._width + 5;
closeObjClear._height = buttonObjClear._height + 5;
closeObjClear.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
closeObjSeand.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
}
else
{
closeObjSeand.useHandCursor = true;
textObj.htmlText = " ";
closeObjSeand._visible = false;
closeObjClear._visible = false;
} // end else if
};
if (Stage.displayState == "fullScreen")
{
textObj.htmlText = titleTextInfo;
buttonObj.useHandCursor = false;
closeObjSeand._visible = true;
closeObjSeand._x = buttonObjSeand._x;
closeObjSeand._y = buttonObjSeand._y;
closeObjSeand._width = buttonObjSeand._width + 5;
closeObjSeand._height = buttonObjSeand._height + 5;
closeObjClear._visible = true;
closeObjClear._x = buttonObjClear._x;
closeObjClear._y = buttonObjClear._y;
closeObjClear._width = buttonObjClear._width + 5;
closeObjClear._height = buttonObjClear._height + 5;
closeObjClear.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
closeObjSeand.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
} // end if
Stage.addListener(_loc1);
} // End of the function
en deze geeft ook fouten:
_root.mov2_bott.mov2.fs.onRelease = function ()
{
_root.scroller.gotoAndStop("s0");
trace ("ааааааааааааа");
if (Stage.displayState == "normal")
{
Stage.displayState = "fullScreen";
}
else
{
Stage.displayState = "normal";
} // end else if
};
var listener1 = {};
listener1.onFullScreen = function (isFullscreen)
{
if (isFullscreen)
{
trace ("entered full-screen mode");
}
else
{
trace ("exited full-screen mode");
} // end else if
};
Stage.addListener(listener1);
_root.scroller._x = 4.502000E+002;
_root.scroller._y = 2.707000E+002;
_root.scroller.gotoAndStop(2);
Hopelijk kan iemand mij helpen, indien nodig, zet ik de fla wel online
Ik ben bezig met een template aan te passen maar als ik exporteer, krijg ik volgende fout en werkt mijn fullscreen knopje niet meer :
There is no property with the name 'displayState'.
Dit is mijn code nochtans:
stop ();
function resizeSite(textObj, buttonObjSeand, buttonObjClear, closeObjSeand, closeObjClear)
{
var _loc1 = {};
closeObjSeand._visible = false;
closeObjClear._visible = false;
titleTextInfo = "Exit full-screen mode (Esc) to enter text";
titleTextButton = "Exit full-screen mode (Esc) to send the form";
_loc1.onFullScreen = function (isFullscreen)
{
if (isFullscreen)
{
textObj.htmlText = titleTextInfo;
buttonObj.useHandCursor = false;
closeObjSeand._visible = true;
closeObjSeand._x = buttonObjSeand._x;
closeObjSeand._y = buttonObjSeand._y;
closeObjSeand._width = buttonObjSeand._width + 5;
closeObjSeand._height = buttonObjSeand._height + 5;
closeObjClear._visible = true;
closeObjClear._x = buttonObjClear._x;
closeObjClear._y = buttonObjClear._y;
closeObjClear._width = buttonObjClear._width + 5;
closeObjClear._height = buttonObjClear._height + 5;
closeObjClear.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
closeObjSeand.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
}
else
{
closeObjSeand.useHandCursor = true;
textObj.htmlText = " ";
closeObjSeand._visible = false;
closeObjClear._visible = false;
} // end else if
};
if (Stage.displayState == "fullScreen")
{
textObj.htmlText = titleTextInfo;
buttonObj.useHandCursor = false;
closeObjSeand._visible = true;
closeObjSeand._x = buttonObjSeand._x;
closeObjSeand._y = buttonObjSeand._y;
closeObjSeand._width = buttonObjSeand._width + 5;
closeObjSeand._height = buttonObjSeand._height + 5;
closeObjClear._visible = true;
closeObjClear._x = buttonObjClear._x;
closeObjClear._y = buttonObjClear._y;
closeObjClear._width = buttonObjClear._width + 5;
closeObjClear._height = buttonObjClear._height + 5;
closeObjClear.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
closeObjSeand.onRelease = function ()
{
textObj.htmlText = titleTextButton;
};
} // end if
Stage.addListener(_loc1);
} // End of the function
en deze geeft ook fouten:
_root.mov2_bott.mov2.fs.onRelease = function ()
{
_root.scroller.gotoAndStop("s0");
trace ("ааааааааааааа");
if (Stage.displayState == "normal")
{
Stage.displayState = "fullScreen";
}
else
{
Stage.displayState = "normal";
} // end else if
};
var listener1 = {};
listener1.onFullScreen = function (isFullscreen)
{
if (isFullscreen)
{
trace ("entered full-screen mode");
}
else
{
trace ("exited full-screen mode");
} // end else if
};
Stage.addListener(listener1);
_root.scroller._x = 4.502000E+002;
_root.scroller._y = 2.707000E+002;
_root.scroller.gotoAndStop(2);
Hopelijk kan iemand mij helpen, indien nodig, zet ik de fla wel online