A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Is there a code to allow print screen?

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    149

    Is there a code to allow print screen?

    I want to make a online resume for a friend. Is it possible in Swish to click on a button and the text showing will go to print? Can someone help with an alternative if not possible in Swish.
    Wherever you go........ There you are.

  2. #2
    Senior newbie Ozzworld's Avatar
    Join Date
    Oct 2001
    Location
    Phoenix, Arizona
    Posts
    481
    Hello,


    No there is no such action in swish. But i have come across a javascript code for it before. Now i have searched for it some on yahoo and came up empty handed. Take a look at some popular java/html sites and i think you might find what you need.


    Ozzie
    Sorry i couldnt have been of more help
    PS. There are many options already to print, Internet Explorer has a print button on menu, most keyboards have a "print scrn" button. just a thought

  3. #3
    Ein wilder Mann sauvage's Avatar
    Join Date
    Oct 2002
    Location
    Weißesdorf
    Posts
    855
    try this

    i suppose you have a button. go to your action panel and add event
    e.g. on(press)
    then add action and choose javascript
    in that window for javascript below, simply type the line below

    window.print()

    pls don't add anything to that line.

    i assume you are using Windows here

    gooooooooood luck

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    149
    Who'd guess it would be that simple? Works like a charm. Thanks so much. I know who is top dog now.
    Wherever you go........ There you are.

  5. #5
    Ein wilder Mann sauvage's Avatar
    Join Date
    Oct 2002
    Location
    Weißesdorf
    Posts
    855
    glad it works
    the best solution is often the simplest as you'd doubtless know.
    now, 'ow about playin' summertime on dat horn of yos so ah kin close mah eyes an' imagine ayem back on mah ol' plantation?

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