?? swfactionsimpl.java
字號:
/****************************************************************
* Copyright (c) 2001, David N. Main, All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name of the author may not be used to endorse or
* promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
****************************************************************/
package com.anotherbigidea.flash.writers;
import java.io.IOException;
import com.anotherbigidea.flash.interfaces.SWFActions;
/**
* A pass-through implementation of the SWFActions interface
*/
public class SWFActionsImpl implements SWFActions
{
protected SWFActions acts;
/**
* @param acts may be null
*/
public SWFActionsImpl( SWFActions acts )
{
this.acts = acts;
}
public SWFActionsImpl()
{
this( null );
}
/**
* Set the pass-through target
* @param acts may be null
*/
public void setSWFActions( SWFActions acts )
{
this.acts = acts;
}
public void start( int conditions ) throws IOException
{
if( acts != null ) acts.start( conditions );
}
public void end() throws IOException
{
if( acts != null ) acts.end();
}
public void done() throws IOException
{
if( acts != null ) acts.done();
}
public void blob( byte[] blob ) throws IOException
{
if( acts != null ) acts.blob( blob );
}
public void unknown( int code, byte[] data ) throws IOException
{
if( acts != null ) acts.unknown( code, data );
}
public void initArray() throws IOException
{
if( acts != null ) acts.initArray();
}
public void jumpLabel( String label ) throws IOException
{
if( acts != null ) acts.jumpLabel( label );
}
public void gotoFrame( int frameNumber ) throws IOException
{
if( acts != null ) acts.gotoFrame( frameNumber );
}
public void gotoFrame( String label ) throws IOException
{
if( acts != null ) acts.gotoFrame( label );
}
public void getURL( String url, String target ) throws IOException
{
if( acts != null ) acts.getURL( url, target );
}
public void nextFrame() throws IOException
{
if( acts != null ) acts.nextFrame();
}
public void prevFrame() throws IOException
{
if( acts != null ) acts.prevFrame();
}
public void play() throws IOException
{
if( acts != null ) acts.play();
}
public void stop() throws IOException
{
if( acts != null ) acts.stop();
}
public void toggleQuality() throws IOException
{
if( acts != null ) acts.toggleQuality();
}
public void stopSounds() throws IOException
{
if( acts != null ) acts.stopSounds();
}
public void setTarget( String target ) throws IOException
{
if( acts != null ) acts.setTarget( target );
}
public void jump( String jumpLabel ) throws IOException
{
if( acts != null ) acts.jump( jumpLabel );
}
public void ifJump( String jumpLabel ) throws IOException
{
if( acts != null ) acts.ifJump( jumpLabel );
}
public void waitForFrame( int frameNumber, String jumpLabel ) throws IOException
{
if( acts != null ) acts.waitForFrame( frameNumber, jumpLabel );
}
public void waitForFrame( String jumpLabel ) throws IOException
{
if( acts != null ) acts.waitForFrame( jumpLabel );
}
public void pop() throws IOException
{
if( acts != null ) acts.pop();
}
public void push( String value ) throws IOException
{
if( acts != null ) acts.push( value );
}
public void push( float value ) throws IOException
{
if( acts != null ) acts.push( value );
}
public void push( double value ) throws IOException
{
if( acts != null ) acts.push( value );
}
public void pushNull() throws IOException
{
if( acts != null ) acts.pushNull();
}
public void pushRegister( int registerNumber ) throws IOException
{
if( acts != null ) acts.pushRegister( registerNumber );
}
public void push( boolean value ) throws IOException
{
if( acts != null ) acts.push( value );
}
public void push( int value ) throws IOException
{
if( acts != null ) acts.push( value );
}
public void lookup( int dictionaryIndex ) throws IOException
{
if( acts != null ) acts.lookup( dictionaryIndex );
}
public void add() throws IOException
{
if( acts != null ) acts.add();
}
public void substract() throws IOException
{
if( acts != null ) acts.substract();
}
public void multiply() throws IOException
{
if( acts != null ) acts.multiply();
}
public void divide() throws IOException
{
if( acts != null ) acts.divide();
}
public void equals() throws IOException
{
if( acts != null ) acts.equals();
}
public void lessThan() throws IOException
{
if( acts != null ) acts.lessThan();
}
public void and() throws IOException
{
if( acts != null ) acts.and();
}
public void or() throws IOException
{
if( acts != null ) acts.or();
}
public void not() throws IOException
{
if( acts != null ) acts.not();
}
public void stringEquals() throws IOException
{
if( acts != null ) acts.stringEquals();
}
public void stringLength() throws IOException
{
if( acts != null ) acts.stringLength();
}
public void concat() throws IOException
{
if( acts != null ) acts.concat();
}
public void substring() throws IOException
{
if( acts != null ) acts.substring();
}
public void stringLessThan() throws IOException
{
if( acts != null ) acts.stringLessThan();
}
public void stringLengthMB() throws IOException
{
if( acts != null ) acts.stringLengthMB();
}
public void substringMB() throws IOException
{
if( acts != null ) acts.substringMB();
}
public void toInteger() throws IOException
{
if( acts != null ) acts.toInteger();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -