actionscript 3 - Flash Builder SWFLoader Embed Giving Errors -


i working on flash mobile project in flash builder 4.7. getting 4 "flex problem" errors when embedding source of spark swfloader object in mxml. errors occur in range of flex sdks, 4.6 4.14. years have not had problem doing such embed, began crop up. similar code works on coworkers computer, despite our setups seemingly identical. troubleshoot error, created new flex mobile project, code in mxml being:

<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009"                 xmlns:s="library://ns.adobe.com/flex/spark">      <s:swfloader source="@embed(source='logo.swf')"/>  </s:application> 

the errors are:

1084: syntax error: expecting rightbrace before end of program. line 29 1084: syntax error: expecting rightbrace before stream. line 25 1084: syntax error: expecting rightparen before s. line 25 1094: syntax error: string literal must terminated before line break. line 25 

there no path given errors. project has no line 25 or 29, don't know error occurring.

the 'logo.swf' file in right location. vector graphic no action script code in it.

edit: source of problem appears nature of embedding swf, external swfloader. below mxml code, script embed in place of swfloader embed, gives same 4 errors previous:

<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009"                 xmlns:s="library://ns.adobe.com/flex/spark">      <fx:script>         <![cdata[             [embed(source="logo.swf")]             [bindable]             public var swfcls:class;         ]]>     </fx:script>  </s:application> 

while not complete solution, found workaround problem. appears once workspace has bug, stays there. new projects created within have bug.

my solution create new workspace, create new dummy project embedded swf did work, , import previous project had been having error new workspace. alas, old program's bug disappeared. apparently, if workspace has working program in it, subsequent should not have problem.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -