string - dynamic change url flash builder -


I am trying to create an app with a list of words and sound for each word of this word

XML

  & lt; Bla & gt; & Lt; List & gt; & Lt; Words & gt; Hello & lt; / Words & gt; & Lt; Audio & gt; Hello.mp3 & lt; / Audio & gt; & Lt; / List & gt; & Lt; List & gt; & Lt; Words & gt; Bye & lt; / Words & gt; & Lt; Audio & gt; Bye.mp3 & lt; / Audio & gt; & Lt; / List & gt; & Lt; / Bla & gt;   

Source:

  & lt; S: Navigation content & gt; & Lt; S: Button label = "LISTIN" Click = "PlaySund ();" /> & Lt; / S: navigationContent & gt;   

Script:

  & lt; Fx: script & gt; & Lt ;! [CDATA [Import Flash. Media. *; [Embed (source = "acceptance / voice / {data. Audio}")] [bindable] public work sndCls: class; Public var snd: sound = new sndcls () as sound; Public var sndChannel: sound channel; Public Function Place (): Zero {sndChannel = snd.play (); } Public function stopSound (): zero {sndChannel.stop (); }] & Gt; & Lt; / Fx: script & gt;   

I have an error here:

  [embed (source = "acceptance / sound / {data. Audio}")]  < / Pre> 

Error message:

  Unable to transcode {data.audio}.   

What can I do to fix this: Using Flash Builder 4.6

embed = compiler instructions embeds not all in any order capability You must either embed all the assets or load it dynamically ...

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -