[
https://issues.apache.org/jira/browse/FLEX-27880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-27880.
----------------------------------
Resolution: Won't Fix
Can't fix. Flash Player issue not Flex SDK issue
> gotoAndPlay don't works well when frameLabel is not exists
> ----------------------------------------------------------
>
> Key: FLEX-27880
> URL: https://issues.apache.org/jira/browse/FLEX-27880
> Project: Apache Flex
> Issue Type: Bug
> Components: .Unspecified - Compiler
> Affects Versions: Adobe Flex SDK 4.5.1 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Browser: Other (specify version)
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. create movieclip
> 2. inside/outside run code assign to instance of MovieClip:
> gotoAndStop("custamLabelNotExistInMovieClip")
>
> Actual Results:
> throws error: [Fault] exception, information=ArgumentError: Error #2109: Nie
> znaleziono etykiety klatki custamLabelNotExistInMovieClipw scenie
> custamLabelNotExistInMovieClip.
>
> Expected Results:
> go to first frame (like in older SDK)
>
> Workaround (if any):
> // extends MovieClip
> override public function gotoAndPlay(frame:Object)
> {
> if (frame is String && !existFrame(String(frame))) gotoAndPlay(1);
> else super.gotoAndPlay(frame);
> }
>
> private function existsFrame(frame:String):Boolean
> {
> for each (var label:FrameLabel in currentLabels)
> {
> if (label.name == frame) return true;
> }
> return false;
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira