亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? placement.java

?? java版本的flash文件(swf)播放器
?? 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.movie;

import java.io.*;
import java.util.*;
import com.anotherbigidea.flash.*;
import com.anotherbigidea.flash.interfaces.*;
import com.anotherbigidea.flash.writers.*;
import com.anotherbigidea.flash.readers.*;
import com.anotherbigidea.flash.structs.*;

/**
 * A Placement holds the transformation and other values relating to the 
 * "placement" of a Symbol Instance within a particular frame.
 * 
 * They can also denote an "UndefineSymbol" operation.
 */
public class Placement
{
    protected boolean isAlteration;
    protected boolean isReplacement;
    protected int frameNumber;
    protected Instance  instance;
    protected Transform matrix;
    protected AlphaTransform cxform;
    protected String    name;
    protected int ratio     = -1;
    protected int clipDepth = -1;
    protected boolean isRemove = false; 
    protected Actions[] clipActions;
    
    protected Symbol symbolToFree;
    
    /**
     * Return true if the placement represents an UndefineSymbol operation
     */
    public boolean isUndefineSymbol() { return symbolToFree != null; }    
    
    /**
     * Return true if the placement is replacing the symbol at a given
     * depth with a new symbol
     */
    public boolean isReplacement() { return isReplacement; }
    
    /**
     * Return true if this placement is an alteration to an Instance that
     * was placed in a previous frame.
     */
    public boolean isAlteration() { return isAlteration; }
    
    /**
     * Get the number of the frame within which this placement takes place
     */
    public int getFrameNumber() { return frameNumber; }
    
    /**
     * Get the Symbol Instance represented by this Placement
     */
    public Instance getInstance() { return instance; }
    
    /**
     * The transform may be null
     */
    public Transform getTransform() { return matrix; }
    
    /**
     * The color transform may be null
     */
    public AlphaTransform getColorTransform() { return cxform; }
    
    /**
     * The name only relates to MovieClip instances and may be null.
     * The name is only present on the first Placement of an Instance.
     */
    public String getName() { return name; }
    
    /**
     * The ratio only relates to Morph Shapes and will be -1 otherwise.
     * The ratio is from zero to 65535 and denotes the degree of the morph
     * from the initial shape to the final shape.
     */
    public int getRatio() { return ratio; }
    
    /**
     * The clip depth defines the range of depths which will be clipped by this
     * symbol.  All symbols placed at depths from depth+1 to clipDepth (inclusive)
     * will be clipped.  If this symbol is not a clipping symbol then the clip
     * depth will be -1.
     * 
     * The clip depth is only present on the first Placement of an Instance.
     */
    public int getClipDepth() { return clipDepth; }
    
    /**
     * If true then this Placement denotes the removal of the Instance from
     * the stage.
     */
    public boolean isRemove() { return isRemove; }
    
    /**
     * Get the actions for a movie clip
     */
    public Actions[] getClipActions() { return clipActions; }
   
    /**
     * Set the actions for a movie clip
     */
    public void setClipActions( Actions[] clipActions ) { this.clipActions = clipActions; }
    
    /**
     * An UndefineSymbol operation
     */
    protected Placement( Symbol symbol )
    {
        this.symbolToFree = symbol;
    }
    
    protected Placement( Instance instance, int frameNumber )
    {
        this.instance    = instance;
        this.frameNumber = frameNumber;
        this.isRemove    = true;
    }
    
    protected Placement( Instance instance, Transform matrix, AlphaTransform cxform,
                         String name, int ratio, int clipDepth, int frameNumber,
                         boolean alteration, boolean replacement, Actions[] clipActions )
    {
        this.instance     = instance;
        this.frameNumber  = frameNumber;
        this.matrix       = matrix;
        this.cxform       = cxform;
        this.name         = name;
        this.ratio        = ratio;
        this.clipDepth    = clipDepth;
        this.isRemove     = false;
        this.isAlteration = alteration;
        this.isReplacement = replacement;
        this.clipActions  = clipActions;
    }

    protected void flushDefinitions( Movie movie, 
                                     SWFTagTypes timelineWriter,
                                     SWFTagTypes definitionWriter )
        throws IOException 
    {
        if( symbolToFree != null ) return;
        
        if( (! isAlteration) && ! isRemove )
        {
            //--Make sure that the symbol is defined
            Symbol symbol = instance.getSymbol();

            symbol.define( movie, timelineWriter, definitionWriter );
        }
    }    
    
    protected void write( Movie movie, 
                          SWFTagTypes movieTagWriter,
                          SWFTagTypes timelineTagWriter )
        throws IOException 
    {
        if( symbolToFree != null )
        {
            int id = symbolToFree.getId();
            timelineTagWriter.tagFreeCharacter( id );
            return;                                              
        }
        
        int depth = instance.getDepth();
        if( depth < 0 ) return;
        
        if( isRemove )
        {
            //--Remove the instance            
            timelineTagWriter.tagRemoveObject2( depth );
            return;
        }

        //--Check whether the Instance has been placed
        if( ! isAlteration )
        {
            //--Make sure that the symbol is defined
            Symbol symbol = instance.getSymbol();
            int id = symbol.define( movie, timelineTagWriter, movieTagWriter );

            int flags = 0;
                
            if( clipActions != null && clipActions.length > 0 )
            {
                for( int i = 0; i < clipActions.length; i++ )
                {
                    flags |= clipActions[i].getConditions();
                }
            }
            
            SWFActions acts = timelineTagWriter.tagPlaceObject2( 
                                               isReplacement, clipDepth, depth, id,
                                               matrix, cxform, ratio, name, flags );

            if( clipActions != null && clipActions.length > 0 )
            {
                for( int i = 0; i < clipActions.length; i++ )
                {
                    acts.start( clipActions[i].getConditions() );
                    acts.blob( clipActions[i].bytes );
                }
                
                acts.done();
            }
        }
        else
        {
            //--Instance is placed - this is just a move
            timelineTagWriter.tagPlaceObject2( true, clipDepth, depth, -1,
                                               matrix, cxform, ratio, null, 0 );
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲大片一区二区三区| 91在线国产福利| 成人app软件下载大全免费| 在线免费观看不卡av| 日韩精品专区在线影院观看 | 欧美一区二区三区四区高清| 国产精品网曝门| 久色婷婷小香蕉久久| 欧美视频一区二区三区在线观看| 久久久久久久久久看片| 亚洲成人三级小说| 色欧美片视频在线观看| 欧美激情资源网| 美女视频黄久久| 欧美艳星brazzers| 亚洲欧洲一区二区在线播放| 国模套图日韩精品一区二区| 欧美日韩激情一区二区三区| 亚洲天堂精品在线观看| 懂色av一区二区夜夜嗨| 精品日韩一区二区三区| 婷婷国产在线综合| 欧美偷拍一区二区| 一区二区三区高清不卡| 91天堂素人约啪| 国产精品久久久久久久裸模 | 亚洲一二三四久久| a级高清视频欧美日韩| 日韩不卡手机在线v区| 99精品久久久久久| 中文字幕一区不卡| 成人深夜视频在线观看| 国产日韩精品一区二区浪潮av | 欧美成人在线直播| 美女视频一区二区三区| 91精品国产91久久久久久一区二区| 伊人一区二区三区| 91电影在线观看| 亚洲曰韩产成在线| 欧美在线短视频| 亚洲图片欧美色图| 69堂成人精品免费视频| 日本一不卡视频| 精品国产精品网麻豆系列| 国产一区不卡精品| 久久久777精品电影网影网 | 精品不卡在线视频| 国产麻豆精品95视频| 久久精品人人做人人综合| 国产mv日韩mv欧美| 国产精品蜜臀av| 91久久精品一区二区| 亚洲一区二区三区视频在线播放| 欧美久久一二区| 黑人精品欧美一区二区蜜桃| 久久久综合网站| eeuss影院一区二区三区 | 一片黄亚洲嫩模| 91超碰这里只有精品国产| 蜜芽一区二区三区| 中文字幕二三区不卡| 欧美视频一区二| 久久99精品久久久久久国产越南 | 韩国女主播成人在线观看| 国产三级久久久| 在线观看亚洲专区| 国产综合色在线| 亚洲欧洲精品天堂一级 | 欧美一级xxx| 成人精品国产一区二区4080| 亚洲国产一二三| 久久久精品免费网站| 一本久久a久久精品亚洲| 看国产成人h片视频| 国产精品不卡在线| 91精品国产美女浴室洗澡无遮挡| 粉嫩aⅴ一区二区三区四区 | 欧美色网一区二区| 激情文学综合网| 亚洲精选视频在线| 精品日韩一区二区三区免费视频| 精品日韩在线一区| 91首页免费视频| 韩国精品免费视频| 性感美女久久精品| 国产精品少妇自拍| 欧美大片国产精品| 91久久人澡人人添人人爽欧美| 激情亚洲综合在线| 视频一区在线视频| 亚洲黄色av一区| 久久精品人人爽人人爽| 777亚洲妇女| 91免费视频观看| 国产精品中文字幕欧美| 日本三级亚洲精品| 一区二区三区免费| 国产精品麻豆网站| 久久久久久久久一| 精品伦理精品一区| 91麻豆精品国产91久久久久 | 日韩国产欧美在线播放| 尤物av一区二区| 最近日韩中文字幕| 国产目拍亚洲精品99久久精品| 日韩一级完整毛片| 欧美喷水一区二区| 欧美日免费三级在线| 色综合夜色一区| 国产欧美综合在线| 精品区一区二区| 制服丝袜中文字幕一区| 欧美日韩一级大片网址| 91成人网在线| 在线亚洲精品福利网址导航| 91在线观看地址| 色婷婷综合久久| 97久久超碰国产精品| 99久久婷婷国产综合精品电影| 成人在线综合网| 99久久777色| 色综合久久中文综合久久97| 99精品国产视频| 在线观看三级视频欧美| 欧美亚洲丝袜传媒另类| 欧美日本韩国一区二区三区视频 | 奇米精品一区二区三区在线观看一| 一区av在线播放| 亚洲成人高清在线| 麻豆免费精品视频| 国产一区福利在线| 成人免费av在线| 一本到高清视频免费精品| 91福利视频久久久久| 欧美亚洲国产一区二区三区va | 国产精品传媒在线| 一区二区三区免费网站| 视频一区中文字幕| 精品一区二区在线播放| 成人中文字幕电影| 欧美三区在线观看| www日韩大片| ...xxx性欧美| 日本欧美一区二区三区乱码| 欧美精品一二三四| 日韩欧美一区在线观看| 国产欧美精品一区| 亚洲综合视频网| 久久电影网站中文字幕| 不卡电影免费在线播放一区| 欧美日韩亚洲综合在线| 日韩精品一区二区三区在线| 国产精品国产三级国产aⅴ无密码| 一区二区三区四区不卡在线 | 久久久久久电影| 亚洲欧洲精品成人久久奇米网| 亚洲国产精品久久艾草纯爱 | 婷婷国产在线综合| 国产成人在线观看| 欧美色国产精品| 国产欧美日韩在线| 日韩福利电影在线| 91在线视频播放地址| 欧美xxxx在线观看| 亚洲蜜桃精久久久久久久| 久久成人av少妇免费| 在线免费亚洲电影| 久久这里只有精品首页| 亚洲狠狠爱一区二区三区| 国产成人一区二区精品非洲| 欧美日韩情趣电影| 国产精品拍天天在线| 轻轻草成人在线| 91福利在线观看| 国产精品五月天| 九九视频精品免费| 欧美挠脚心视频网站| 亚洲精品国产无天堂网2021 | 欧美精品一区二区久久婷婷| 一区二区三区精品在线观看| 国产乱码一区二区三区| 欧美一级片在线看| 亚洲第一搞黄网站| 色偷偷一区二区三区| 中文字幕永久在线不卡| 国产精品综合av一区二区国产馆| 欧美一区二区三区啪啪| 亚洲va国产天堂va久久en| 91首页免费视频| 国产精品福利一区二区三区| 国产高清精品在线| 久久欧美一区二区| 久久69国产一区二区蜜臀| 欧美一区二视频| 亚洲国产精品麻豆| 91成人在线精品| 成人动漫视频在线| 中文一区一区三区高中清不卡| 国产一区欧美日韩| 国产亚洲一区字幕|