Package flash.swf

Examples of flash.swf.Frame


  {
    // create a dependency graph based on source file dependencies...
        final DependencyGraph<CompilationUnit> dependencies = extractCompilationUnitInfo(units);

        // create a single frame - this is a simple movie
    final Frame frame = new Frame();
    frames = new ArrayList<Frame>();
    frames.add(frame);

        exportDependencies(dependencies, frame);
View Full Code Here


      List<CompilationUnit> a = new ArrayList<CompilationUnit>();
     
      for (Iterator<CompilationUnit> i = exportedUnits.keySet().iterator(); i.hasNext(); )
      {
        CompilationUnit u = i.next();
        Frame frame = exportedUnits.get(u);
        if (f == frame)
        {
          a.add(u);
        }
      }
View Full Code Here

        List frames = movie.frames;
        Set<String> symbols = new TreeSet<String>();
       
        for (int i = 0, size = frames == null ? 0 : frames.size(); i < size; i++)
        {
            Frame f = (Frame) frames.get(i);
            for (Iterator j = f.exportIterator(); j.hasNext(); )
            {
                DefineTag t = (DefineTag) j.next();
                if (t.name != null)
                {
                    symbols.add(t.name);
View Full Code Here

    assetNames = new String[count][];
    definitionNames = new String[count][];
   
    for (int i = 0; i < count; i++)
    {
      Frame f = movie.frames.get(i);
      List<CompilationUnit> units = movie.getExportedUnitsByFrame(f);
            List<String> aList = new ArrayList<String>(), dList = new ArrayList<String>();
      for (int j = 0, size = units == null ? 0 : units.size(); j < size; j++)
      {
        CompilationUnit u = units.get(j);
View Full Code Here

  {
    boolean result = true;

    for (int i = 0, frameSize = movie.frames.size(); i < frameSize; i++)
    {
      Frame f = movie.frames.get(i);
      for (int j = 0, codeSize = f.doABCs.size(); j < codeSize; j++)
      {
        DoABC t = f.doABCs.get(j);
        BytecodeBuffer buffer = new BytecodeBuffer(t.abc);
        try
View Full Code Here

      movie.version = configuration.getTargetPlayerMajorVersion();
      assert movie.version >= 9;
      movie.size = new Rect(100 * 20, 100 * 20);
      movie.framerate = 12;

      Frame frame = new Frame();
      movie.frames = new ArrayList<Frame>();
      movie.frames.add(frame);

      for (Iterator<Entry<String, AssetInfo>> i = u.getAssets().iterator(); i.hasNext();)
      {
        Entry<String, AssetInfo> entry = i.next();
        String className = entry.getKey();
        AssetInfo assetInfo = entry.getValue();

        writeU32(out, addString(pool, className));
        if (assetInfo.getPath() != null)
        {
          writeU32(out, addString(pool, assetInfo.getPath().getName()));
        }
        else
        {
          writeU32(out, addString(pool, ""));
        }
        writeLong(out, assetInfo.getCreationTime());

        DefineTag asset = assetInfo.getDefineTag();
        frame.addSymbolClass(className, asset);

        if (asset.name != null)
        {
          frame.addExport(asset);
        }
      }

      TagEncoder handler = new TagEncoder();
      MovieEncoder encoder = new MovieEncoder(handler);
View Full Code Here

            // so it ends up in the swc.
            if (getInheritanceDependenciesOnly() && rootClassName != null)
                includes.add(rootClassName);
               
            DependencyWalker.LinkState state = new DependencyWalker.LinkState( linkables, externs, includes, unresolved );
            final Frame frame = new Frame();

            DependencyWalker.traverse( null, state, true, true, getInheritanceDependenciesOnly(),
                                       new Visitor<Linkable>()
                                       {
                                           public void visit( Linkable o )
View Full Code Here

            int counter = 0;
            DependencyWalker.LinkState state = new DependencyWalker.LinkState( linkables, externs, includes, unresolved );
            for (Iterator<FrameInfo> it = frameInfoList.iterator(); it.hasNext();)
            {
                FramesConfiguration.FrameInfo frameInfo = it.next();
                final Frame f = new Frame();
              f.pos = ++counter;

                if (frameInfo.label != null)
                {
                    f.label = new FrameLabel();
View Full Code Here

        movie.framerate = framerate;
        movie.width = width;
        movie.height = height;
        movie.size = new Rect(width * SwfConstants.TWIPS_PER_PIXEL, height * SwfConstants.TWIPS_PER_PIXEL);

        Frame frame = new Frame();
        movie.frames = new ArrayList<Frame>();
        movie.frames.add(frame);

        PlaceObject po3 = new PlaceObject(Tag.stagPlaceObject3);
        po3.matrix = new Matrix();
View Full Code Here

  {
    // create a dependency graph based on source file dependencies...
        final DependencyGraph<CompilationUnit> dependencies = extractCompilationUnitInfo(units);

        // create a single frame - this is a simple movie
    final Frame frame = new Frame();
    frames = new ArrayList<Frame>();
    frames.add(frame);

        exportDependencies(dependencies, frame);
View Full Code Here

TOP

Related Classes of flash.swf.Frame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.