Branch Always

SWF Action
Action Category: 
Action Details: 
Action Identifier: 
Action Structure: 
signed short   f_offset;
Action Length: 
2 byte(s)
Action Stack: 
Action Operation: 
ip += f_offset;   // ip past the branch action
Action Flash Version: 
See Also: 

Jump to the specified action. The offset is added to the current execution pointer as it is after reading the branch instruction.


The offset must be such that when added to the current execution pointer it points to a valid action (i.e. you cannot jump in the middle of a Push Data or any other multi-byte action.)

The offset cannot point outside of the current block of execution, although it can branch to the very end of the block. So if you are inside a With or Try block, a Branch Always cannot be used to exit that block. This can be a problem if you are trying to implement some advanced functionality in an ActionScript compiler such as a goto instruction.