<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Label 'L_0_0' points at non-existent action! exception"]]></title>
		<link>http://forum.jswiff.com/posts/21.page</link>
		<description><![CDATA[Latest messages posted in the topic "Label 'L_0_0' points at non-existent action! exception"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Label 'L_0_0' points at non-existent action! exception</title>
				<description><![CDATA[ I'm trying to remove the embedded URL in getURL function to using clickTAG function as follows..<br> <br> on (release) {<br>     if ((clickTAG.substr(0, 5) == "http:") || (clickTAG.substr(0, 6) == "https:")) {<br>         getURL (/:clickTAG, "_blank");<br>     }<br> }<br> <br> I'm seeing following exception.<br> <br> java.lang.IllegalArgumentException: Label 'L_0_0' points at non-existent action!<br> 	at com.jswiff.swfrecords.actions.ActionBlock.getAction(ActionBlock.java:274)<br> 	at com.jswiff.swfrecords.actions.ActionBlock.getOffset(ActionBlock.java:296)<br> 	at com.jswiff.swfrecords.actions.ActionBlock.replaceBranchLabelWithRelOffset(ActionBlock.java:306)<br> 	at com.jswiff.swfrecords.actions.ActionBlock.write(ActionBlock.java:253)<br> 	at com.jswiff.swfrecords.ButtonCondAction.write(ButtonCondAction.java:322)<br> 	at com.jswiff.swfrecords.tags.DefineButton2.writeData(DefineButton2.java:165)<br> 	at com.jswiff.swfrecords.tags.Tag.initData(Tag.java:137)<br> 	at com.jswiff.swfrecords.tags.Tag.write(Tag.java:110)<br> 	at com.jswiff.swfrecords.tags.TagWriter.writeTag(TagWriter.java:53)<br> 	at com.jswiff.swfrecords.tags.TagWriter.writeTags(TagWriter.java:115)<br> 	at com.jswiff.swfrecords.tags.TagWriter.writeTags(TagWriter.java:96)<br> 	at com.jswiff.SWFWriter.write(SWFWriter.java:88)<br> <br> ------------<br> <br> here is the code.. <br> <br>                     if (act instanceof GetURL) {<br>                         getURL2 = new GetURL2((byte) 0, false, false);<br>                         actions.remove(act);<br>                         constPool = new ConstantPool();<br>                         constPool.getConstants().add("clickTAG");<br>                         constPool.getConstants().add("substr");<br>                         constPool.getConstants().add("http:");<br>                         constPool.getConstants().add("https:");<br>                         constPool.getConstants().add(_blank);<br>                         actions.add(constPool);                       <br>                         <br>                         Push push = new Push();<br>                         Push.StackValue stk = new Push.StackValue();<br>                         stk.setInteger(5);<br>                         push.addValue(stk);<br>                         Push.StackValue stk2 = new Push.StackValue();<br>                         stk2.setDouble(0.0);<br>                         push.addValue(stk2);<br>                         Push.StackValue stk3 = new Push.StackValue();                        <br>                         stk3.setInteger(2);<br>                         push.addValue(stk3);<br>                         Push.StackValue stk4 = new Push.StackValue();                        <br>                         stk4.setConstant8((short)0);<br>                         push.addValue(stk4);<br>                         actions.add(push);<br>                         <br>                         actions.add(new GetVariable());<br>                                                <br>                         Push push2 = new Push();<br>                         Push.StackValue stk5 = new Push.StackValue();<br>                         stk5.setConstant8((short)1);<br>                         push2.addValue(stk5);<br>                         actions.add(push2);<br>                         <br>                         actions.add(new CallMethod());         <br>                         <br>                         Push push3 = new Push();<br>                         Push.StackValue stk6 = new Push.StackValue();<br>                         stk6.setConstant8((short)2);<br>                         push3.addValue(stk6);<br>                         actions.add(push3);<br>                         <br>                         actions.add(new Equals2()); <br>                         <br>                         actions.add(new PushDuplicate()); <br>                         <br>                         actions.add(new If("L_0_0"));<br>                         actions.add(new Pop());<br>                         <br>                         Push push4 = new Push();<br>                         Push.StackValue stk7 = new Push.StackValue();<br>                         stk7.setInteger(6);<br>                         push4.addValue(stk7);<br>                         Push.StackValue stk8 = new Push.StackValue();<br>                         stk8.setDouble(0.0);<br>                         push4.addValue(stk8);<br>                         Push.StackValue stk9 = new Push.StackValue();                        <br>                         stk9.setInteger(2);<br>                         push4.addValue(stk9);<br>                         Push.StackValue stk10 = new Push.StackValue();                        <br>                         stk10.setConstant8((short)0);<br>                         push4.addValue(stk10);<br>                         actions.add(push4);<br>                         <br>                         actions.add(new GetVariable());<br>                         <br>                         Push push5 = new Push();<br>                         Push.StackValue stk11 = new Push.StackValue();<br>                         stk11.setConstant8((short)1);<br>                         push5.addValue(stk11);<br>                         actions.add(push5);<br>                         <br>                         actions.add(new CallMethod());<br>                         <br>                         Push push6 = new Push();<br>                         Push.StackValue stk12 = new Push.StackValue();<br>                         stk12.setConstant8((short)3);<br>                         push6.addValue(stk12);<br>                         actions.add(push6);<br>                         <br>                         actions.add(new Equals2());<br>                         <br>                         actions.add(new Not());<br>                         actions.add(new If("__end"));<br>                         <br>                         Push push7 = new Push();<br>                         Push.StackValue stk13 = new Push.StackValue();<br>                         stk13.setConstant8((short)0);<br>                         push7.addValue(stk13);<br>                         actions.add(push7);<br>                         <br>                         actions.add(new GetVariable());<br>                         <br>                         Push push8 = new Push();<br>                         Push.StackValue stk14 = new Push.StackValue();<br>                         stk14.setConstant8((short)4);<br>                         push8.addValue(stk14);<br>                         actions.add(push8);<br>                         <br>                         actions.add(new GetVariable());<br>                         actions.add(new Pop());<br>                         actions.add(new Pop());<br>                         <br>                         Push push9 = new Push();<br>                         Push.StackValue stk15 = new Push.StackValue();<br>                         stk15.setString("/:clickTAG");<br>                         push9.addValue(stk15);<br>                         actions.add(push9);<br>                         <br>                         actions.add(new GetVariable());<br>                         <br>                         Push push10 = new Push();<br>                         Push.StackValue stk16 = new Push.StackValue();<br>                         stk16.setString("_blank");<br>                         push10.addValue(stk16);<br>                         actions.add(push10);<br>                         <br>                         actions.add(getURL2);<br> ]]></description>
				<guid isPermaLink="true">http://forum.jswiff.com/posts/100#333.page</guid>
				<link>http://forum.jswiff.com/posts/100#333.page</link>
				<pubDate><![CDATA[Wed, 23 Jan 2008 08:45:06]]></pubDate>
				<author><![CDATA[ robocop]]></author>
			</item>
	</channel>
</rss>