summaryrefslogtreecommitdiff
path: root/libbuild/WebCat-swf/src/pt/tumba/parser/swf/ImportedSymbol.java
blob: 92adb607dadb8e4922c3cddec073a64367a72ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package pt.tumba.parser.swf;

import java.io.IOException;

/**
 *  A Symbol that is to be imported (within the Player) from another Flash
 *  movie. The import/export feature only works with Flash version 5 and up.
 *
 *@author     unknown
 *@created    15 de Setembro de 2002
 */
public class ImportedSymbol extends Symbol {
    /**
     *  Description of the Field
     */
    protected String name;
    /**
     *  Description of the Field
     */
    protected String libName;


    /**
     *  Constructor for the ImportedSymbol object
     *
     *@param  id       Description of the Parameter
     *@param  name     Description of the Parameter
     *@param  libName  Description of the Parameter
     */
    protected ImportedSymbol(int id, String name, String libName) {
        super(id);
        this.name = name;
        this.libName = libName;
    }


    /**
     *  The import name of the symbol
     *
     *@return    The name value
     */
    public String getName() {
        return name;
    }


    /**
     *  The library name (another Flash movie)
     *
     *@return    The libraryName value
     */
    public String getLibraryName() {
        return libName;
    }


    /**
     *  Description of the Method
     *
     *@param  movie             Description of the Parameter
     *@param  timelineWriter    Description of the Parameter
     *@param  definitionwriter  Description of the Parameter
     *@return                   Description of the Return Value
     *@exception  IOException   Description of the Exception
     */
    protected int defineSymbol(Movie movie,
            SWFTagTypes timelineWriter,
            SWFTagTypes definitionwriter)
             throws IOException {
        return getNextId(movie);
    }
}