Flex is unhappy about the SWF you're trying to embed.  Your Embed syntax looks fine, but it appears that your SWF contains a button (built in Flash?) that is either corrupted, or else our decoder is getting out of sync for some other reason.
 
Since Flex doesn't really support Flash buttons very well anyway, can you strip this asset out of the SWF before embedding?
 
Even if you get it working, please submit a bug with your SWF, there aren't any cases where we consider uncaught exceptions to be acceptable.
 
-rg
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of martin schioeth
Sent: Tuesday, June 27, 2006 4:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embed(source,symbol) results in internal build error

Hi,

I’m trying to embed an exported symbol from a swf

I get “An internal build error has occurred. Please check the Error Log.”

I have absolutely no idea how to fix this, and i’m going slighty mad…. I should think my syntax is exactly the same as the documentation specifies.

////// ERROR LOG ///////

Error 2006-06-27 13:32:57.817 Uncaught exception in compiler

java.lang.IllegalArgumentException: symbol 32006 not defined

                      at flash.swf.Dictionary.getTag(Dictionary.java:172)

                      at flash.swf.TagDecoder.decodeButtonRecord(TagDecoder.java:2068)

                      at flash.swf.TagDecoder.decodeDefineButton2(TagDecoder.java:1211)

                      at flash.swf.TagDecoder.decodeTag(TagDecoder.java:285)

                      at flash.swf.TagDecoder.decodeTags(TagDecoder.java:169)

                      at flash.swf.TagDecoder.parse(TagDecoder.java:119)

                      at flex2.compiler.media.MovieTranscoder.getDictionary(MovieTranscoder.java:162)

                      at flex2.compiler.media.MovieTranscoder.extractDefineTag(MovieTranscoder.java:188)

                      at flex2.compiler.media.MovieTranscoder.doTranscode(MovieTranscoder.java:84)

                      at flex2.compiler.media.AbstractTranscoder.transcode(AbstractTranscoder.java:128)

                      at flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:161)

                      at flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:71)

                      at flex2.compiler.as3.EmbedEvaluator.generateSource(EmbedEvaluator.java:259)

                      at flex2.compiler.as3.EmbedEvaluator.generateSources(EmbedEvaluator.java:324)

                      at flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:80)

                      at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:86)

                      at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:330)

                      at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:36)

                      at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:910)

                      at flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:244)

                      at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:63)

                      at flex2.compiler.as3.EmbedExtension.parse(EmbedExtension.java:39)

                      at flex2.compiler.as3.Compiler.parse(Compiler.java:313)

                      at flex2.compiler.mxml.ImplementationCompiler.parse(ImplementationCompiler.java:148)

                      at flex2.compiler.mxml.Compiler.parse(Compiler.java:89)

                      at flex2.compiler.API.parse(API.java:1631)

                      at flex2.compiler.API.parse(API.java:1592)

                      at flex2.compiler.API.batch2(API.java:285)

                      at flex2.compiler.API.batch(API.java:764)

                      at flex2.compiler.API.compile(API.java:889)

                      at com.adobe.flexbuilder.project.compiler.Compiler.compile(Unknown Source)

                      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown Source)

                      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown Source)

                      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)

                      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)

                      at org.eclipse.core.runtime.Platform.run(Platform.java:783)

                      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)

                      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)

                      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)

                      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)

                      at org.eclipse.core.runtime.Platform.run(Platform.java:783)

                      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)

                      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)

                      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)

                      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)

                      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)

                      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

//////// ERROR LOG /////////

//////// CODE /////////

<?xml version="1.0" encoding="utf-8"?>

<SCOEngineGraphics

                      xmlns="dk.delc.sco.*" xmlns:mx="http://www.adobe.com/2006/mxml"

                      layout="absolute"

                      width="100%" height="100%">

                      <mx:Script>

                                            <![CDATA[

                                                                

                                                                 [Embed(source="graphics/parts.swf", symbol="background")]

                                                                 [Bindable]

                                                                 public var imgBackground:String;

                                            ]]>

                      </mx:Script>

                      <mx:Image x="30" y="30" source="{imgBackground}"/>

</SCOEngineGraphics>

//////// CODE /////////

Cheers.

-flashbordon


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/376 - Release Date: 26-06-2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to