A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Print and be damned!

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    56

    Print and be damned!

    Trying to get a movie to allow users to print what's on screen at any given timeat a frame named "3tenses".

    Found a bit of code tried it got this error - no idea what it means or what I do.


    CODE
    printbutton.onRelease = function():Void
    {
    print(Stage, "3tenses");
    };

    ERRORR MESSAGE
    Bounds type must be bmovie, bframe or bmax
    print(Stage, "3tenses");


    Grateful for any help.

    Cheers

    Huw

  2. #2
    Space Midget Wrangler
    Join Date
    Sep 2002
    Posts
    129
    Good Day Huwrich,

    What the code is doing is printing the whole stage, but the error is that the term "3tenses" should not be there. What should be there is either bmovie, bmax, or bframe

    A quote from

    http://www.adobe.com/support/flash/a...ionary625.html

    ""
    bmovie Designates the bounding box of a specific frame in a movie as the print area for all printable frames in the movie. Assign a #b frame label to the frame whose bounding box you want to use as the print area.

    bmax Designates a composite of all of the bounding boxes of all the printable frames as the print area. Specify the bmax parameter when the printable frames in your movie vary in size.

    bframe Designates that the bounding box of each printable frame be used as the print area for that frame. This changes the print area for each frame and scales the objects to fit the print area. Use bframe if you have objects of different sizes in each frame and want each object to fill the printed page.

    ""
    printbutton.onRelease = function():Void
    {
    print(Stage,"bmovie");
    };

    Best Regards,

    Plasnid
    A little pain never hurt anyone

  3. #3
    Space Midget Wrangler
    Join Date
    Sep 2002
    Posts
    129
    Good Day Huwrich,

    What the code is doing is printing the whole stage, but the error is that the term "3tenses" should not be there. What should be there is either bmovie, bmax, or bframe

    A quote from

    http://www.adobe.com/support/flash/a...ionary625.html

    ""
    bmovie Designates the bounding box of a specific frame in a movie as the print area for all printable frames in the movie. Assign a #b frame label to the frame whose bounding box you want to use as the print area.

    bmax Designates a composite of all of the bounding boxes of all the printable frames as the print area. Specify the bmax parameter when the printable frames in your movie vary in size.

    bframe Designates that the bounding box of each printable frame be used as the print area for that frame. This changes the print area for each frame and scales the objects to fit the print area. Use bframe if you have objects of different sizes in each frame and want each object to fill the printed page.

    ""
    printbutton.onRelease = function():Void
    {
    print(Stage,"bmovie");
    };

    Best Regards,

    Plasnid
    A little pain never hurt anyone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center