JSwiff
flash movies the java way
JSwiff Forum
  Search   Recent Topics     Member Listing    Back to home page 
Register / 
Login 
Label 'L_0_0' points at non-existent action! exception  
Forum Index -> How Do I...
Author Message
robocop


Joined: Jan 7, 2008
Messages: 2
Offline

I'm trying to remove the embedded URL in getURL function to using clickTAG function as follows..

on (release) {
if ((clickTAG.substr(0, 5) == "http:") || (clickTAG.substr(0, 6) == "https:")) {
getURL (/:clickTAG, "_blank");
}
}

I'm seeing following exception.

java.lang.IllegalArgumentException: Label 'L_0_0' points at non-existent action!
at com.jswiff.swfrecords.actions.ActionBlock.getAction(ActionBlock.java:274)
at com.jswiff.swfrecords.actions.ActionBlock.getOffset(ActionBlock.java:296)
at com.jswiff.swfrecords.actions.ActionBlock.replaceBranchLabelWithRelOffset(ActionBlock.java:306)
at com.jswiff.swfrecords.actions.ActionBlock.write(ActionBlock.java:253)
at com.jswiff.swfrecords.ButtonCondAction.write(ButtonCondAction.java:322)
at com.jswiff.swfrecords.tags.DefineButton2.writeData(DefineButton2.java:165)
at com.jswiff.swfrecords.tags.Tag.initData(Tag.java:137)
at com.jswiff.swfrecords.tags.Tag.write(Tag.java:110)
at com.jswiff.swfrecords.tags.TagWriter.writeTag(TagWriter.java:53)
at com.jswiff.swfrecords.tags.TagWriter.writeTags(TagWriter.java:115)
at com.jswiff.swfrecords.tags.TagWriter.writeTags(TagWriter.java:96)
at com.jswiff.SWFWriter.write(SWFWriter.java:8

------------

here is the code..

if (act instanceof GetURL) {
getURL2 = new GetURL2((byte) 0, false, false);
actions.remove(act);
constPool = new ConstantPool();
constPool.getConstants().add("clickTAG");
constPool.getConstants().add("substr");
constPool.getConstants().add("http:");
constPool.getConstants().add("https:");
constPool.getConstants().add(_blank);
actions.add(constPool);

Push push = new Push();
Push.StackValue stk = new Push.StackValue();
stk.setInteger(5);
push.addValue(stk);
Push.StackValue stk2 = new Push.StackValue();
stk2.setDouble(0.0);
push.addValue(stk2);
Push.StackValue stk3 = new Push.StackValue();
stk3.setInteger(2);
push.addValue(stk3);
Push.StackValue stk4 = new Push.StackValue();
stk4.setConstant8((short)0);
push.addValue(stk4);
actions.add(push);

actions.add(new GetVariable());

Push push2 = new Push();
Push.StackValue stk5 = new Push.StackValue();
stk5.setConstant8((short)1);
push2.addValue(stk5);
actions.add(push2);

actions.add(new CallMethod());

Push push3 = new Push();
Push.StackValue stk6 = new Push.StackValue();
stk6.setConstant8((short)2);
push3.addValue(stk6);
actions.add(push3);

actions.add(new Equals2());

actions.add(new PushDuplicate());

actions.add(new If("L_0_0"));
actions.add(new Pop());

Push push4 = new Push();
Push.StackValue stk7 = new Push.StackValue();
stk7.setInteger(6);
push4.addValue(stk7);
Push.StackValue stk8 = new Push.StackValue();
stk8.setDouble(0.0);
push4.addValue(stk;
Push.StackValue stk9 = new Push.StackValue();
stk9.setInteger(2);
push4.addValue(stk9);
Push.StackValue stk10 = new Push.StackValue();
stk10.setConstant8((short)0);
push4.addValue(stk10);
actions.add(push4);

actions.add(new GetVariable());

Push push5 = new Push();
Push.StackValue stk11 = new Push.StackValue();
stk11.setConstant8((short)1);
push5.addValue(stk11);
actions.add(push5);

actions.add(new CallMethod());

Push push6 = new Push();
Push.StackValue stk12 = new Push.StackValue();
stk12.setConstant8((short)3);
push6.addValue(stk12);
actions.add(push6);

actions.add(new Equals2());

actions.add(new Not());
actions.add(new If("__end"));

Push push7 = new Push();
Push.StackValue stk13 = new Push.StackValue();
stk13.setConstant8((short)0);
push7.addValue(stk13);
actions.add(push7);

actions.add(new GetVariable());

Push push8 = new Push();
Push.StackValue stk14 = new Push.StackValue();
stk14.setConstant8((short)4);
push8.addValue(stk14);
actions.add(push;

actions.add(new GetVariable());
actions.add(new Pop());
actions.add(new Pop());

Push push9 = new Push();
Push.StackValue stk15 = new Push.StackValue();
stk15.setString("/:clickTAG");
push9.addValue(stk15);
actions.add(push9);

actions.add(new GetVariable());

Push push10 = new Push();
Push.StackValue stk16 = new Push.StackValue();
stk16.setString("_blank");
push10.addValue(stk16);
actions.add(push10);

actions.add(getURL2);
 
  Forum Index -> How Do I...
Go to:   
Legal notes
Powered by JForum 2.1.4 © 2005 - Rafael Steil