A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: print the ScrollPane contents

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    19

    print the ScrollPane contents

    Hello

    I have a 1.swf file which loads an external 2.swf in it and displais it. I want 1.swf to have a button for printing the external 2.swf only. How do I do that?

    It actually adds 2.swf in a ScrollPane.

    I tried to print it like this:

    var content1 = my_sp.content();
    print(content1,"bmovie");

    where my_sp is the ScrollPane but thus it prints 1.swf and not the contents of the ScrollPane only .....


    Thank you in advance !

    Eva

  2. #2
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    ScrollPane.content is a property, not a method:
    var content1 = my_sp.content;
    should do the trick.
    My letters on the F1 key have faded, how are yours today?

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    no, I tried that first and in that case it doesn't show the printer window at all. I mean that it doesn't even try to print anything.

  4. #4
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    I just tried it, and it works..
    may i have a look into your fla ?
    My letters on the F1 key have faded, how are yours today?

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