Saving/Printing work from within a .swf file

Okay so here's the deal. I have to create a flash game in
which users will be creating artwork. When users are done with
their artwork we want them to be able to SAVE their work, EMAIL it
to a friend, and PRINT it out all within the .swf file.
HOW IN THE WORLD DO YOU DO THIS?????? I have been searching a
researching and going through many forums and tutorials trying to
see if anyone out there can help but I have come up with nothing.
Although I did come a across a website that was able to achieve
what we are looking to do in this flash game.
Click here to view
Snowflake Website
On this website users can make snowflake art the old fashion
way but this time on the web within a flash site. When users are
satisfied with their snowflake they can save it and the snowflake
is added to an ever growing database of user created snowflakes
that also can be viewed by others at anytime. Users are also given
the option of emailing their snowflake design to friends and
downloading their design as a JPEG or and EPS file. You can also do
the same to any of other numerous snowflake designs with the
snowflake design database.
HOW IN THE WORLD DO YOU DO THIS??? I have contacted the
agency that was responsible for creating this site for their help
as well but any assistance I can get from you guys would be greatly
appreciated as well.
Still quite confused but eagerly awaiting your
responses.

Printing object:
on (release) {
//creates the object of the class printjob
var pj:PrintJob = new PrintJob();
//starts the procedure
//opens the windows printing window
pj.start();
//sets the printing area (i may be made outside the stage,
so using the A4 area and adding any other information that should
not appear on screen)
area = {xMin:0, yMin:28, xMax:465, yMax:296};
//printing options - true=bitmap / false-=vetor... bitmap
generates a bigger file, but results in better quality for images,
vector is smaller and a good option if you work just with text
options = {printAsBitmap:true};
//adds the page the the printing queue
pj.addPage(_root, area, options, null);
//sends the page to the printer
pj.send();
//deletes the object to clear memory (very important)
delete pj;

Similar Messages

  • Runtime.exe() is not working from within a jar file.

    Hi All,
    I have a jar file which have classes and a package in it.
    One of these classes is calling another class which is present in the package.
    The code i am using it is as follows:
    Runtime r=Runtime.getRuntime();
    Process p=null;
    p=r.exec("java deep.slideshow.PlayShow");It is working fine when i am executing it without making jar file.
    But when i make a jar file of all these things , this exec() is not working.
    I have tried a lot.
    If any body has any idea suggest me.
    Thanks

    thanks a lot for your reply friend.
    I tried the same you tell me to do by using the cmd;
    java -cp my.jar package.class  And then tried to make the jar file with the help of eclipse,
    after adding my jar file into classpath of my project in eclipse.
    Its working fine on my local system.
    But when i put this jar file on some other system it does not call my jar file(obviously bcz it will not the find the jar file according to the classpath set on my local system. )
    Is there any way that i can keep this jar into my project and then can give the classpath dynamically
    so that it can pick the file from my project automatically.?
    Later on i will pack this whole thing into a full jar file and it will work on a single click.
    Is it possible or not ?
    Please suggest me.
    Thanks

  • Call a external SWF by press the button within another SWF file but the second SWF file play Externely

    Hello Guyz.
    i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2

    try this
    http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123

  • How to live stream vp6 from a browser/swf file.

    Hello,
    Currently we have a swf file application that runs in a browser and takes the live video stream from the camera on the computer and streams a live sorenson spark stream to the fms 3.5 server.
    Question is:
    How to live stream vp6 from the browser/swf file on the camera computer, instead of the sorenson spark. (We seem to be stuck only on sorenson spark).
    Thank you.

    Hi Vince,
    Jay has explained it about as best as can be done.  What you have now is a
    SWF that lives in a browser.  With Flix, you can eliminate the SWF
    altogether.  Or if there is logic that still will require the SWF, then both
    Flix and the SWF will live in the browser at the same time (and can talk via
    ExternalInterface).
    fyi .. When using Flix, if Flix does not eliminate the SWF altogether, you
    will remove from your SWF all logic for acquiring Camera and Microphone.  As
    Jay has reiterated, Flix Publisher will now be doing all that.
    If your SWF includes logic other than video/audio, e.g. maybe text chat,
    then you may need logic in your SSAS to associated the video from Flix with
    anything else from the SWF since each will have its own NetConnection to the
    FMIS application.
    In case it might help, following is On2's heavily commented JavaScript for
    invoking Flix Publisher:
    http://publisher.on2.com/fp_doc/3-1-5-5/samples/scripts/flixpub_conf.js
    And the full docs for the Flix SDK are here:
    http://publisher.on2.com/fp_doc/3-1-5-5/index.html
                    hth,
                    g

  • Swipe up to control screen not working from within an app?

    Hi everyone,
    Iphone 4, ios 7.0.6 user.  From the home screen, I can "swipe up" on my iphone to get to a control screen where I can control the music player, turn on/off the flashlight, etc.  I used to be able to swipe up while within an app (for example, while looking at a website on safari) and get to this same screen, however currently it doesn't work when an app is open, only from the home screen.
    Any suggestions to get this working from within an app as well?
    thanks,

    Settings > Control Center > Access Within Apps > Turn switch ON (green side showing)

  • PDF link of type "open a file" won't work from within web-browser

    Hi!
    I have a pdf-document in which I have created a link of the type "Open a file" ( in this case it is a word document, but the type of file doesn't matter).  When I click this link directly in Acrobat (Acrobat 9 Standard) it works just as excpected, that is, the document opens in word, after I've confirmed to Acrobat that it's ok to open.
    Opening the pdf itself from within a web-browser (IE8) is no problem. The document is opened by the Acrobat plug-in, inside the web-browser, as expected. The "hot-spot" to the link is also there, but when I click on the link, Acrobat (I think it's Acrobat and not the web-browser) asks me if it's ok to "Connect to file://///C:/testdoc.doc". And when I confirm this nothing happens (of course, since there are way too many slashes added after the "File:" beginning of the string.
    When I doublecheck the link in Acrobat Standard with the link tool, it look perfectly allright (under "Actions" I find the heading "Open a file" and under that the text "File: C\testdoc.doc").
    Anyone know where the problem lies?
    Thanks for any help!
    Regards
    Per Williamson
    Stockholm
    Sweden

    I found mention online that linking to a zipped pdf file will cause the browser to download the PDF to the local user's PC where they can complete and submit the form (the mailto: command button works when the PDF is opened locally rather than within a browser window).  If there is a more "elegant" solution, I would be grateful for your advice.

  • Links don't work on Menu Bar: swf file location error too.

    Hi folks, I'm using CS5 and Menu Bar 2.0 and am getting this error when attempting to save files using a particular template: http://imm.io/3chF
    When I upload my site, some of the links are faulty, presumably to do with this error. I've tried using Menu Bar 1 and get the same error message.
    The files it asks for are already in my root directory as well as in the Scripts directory. Where should they be?
    FYI my test site is at http://www.arrowmark.co.nz/web4/portfolio.html.  Links work from this page, but they do not work within other pages  based on that template. Eg you can get from there to tatler.html but  that's where the linkage fails.
    Thanks in advance for advice on this problem.
    Jo

    Hi,
    looking to your source code from "portfolio.html" you can't have a working link, 'cause there always these "#"-placeholders are "waiting" for their job:
    <li> <a href="tatler.html">Prime, Tatler, 12Bar</a>
              <ul>
            <li> <a href="#">Marketing</a></li>
            <li> <a href="#">Sales</a>
                </li><li> <a href="#">Web</a>
                            </li><li> <a href="#">Image Editing</a>
                            </li><li> <a href="#">Photography</a>
                            </li><li> <a href="#">Publications</a>
                            </li><li> <a href="#">Collateral</a>
                            </li><li> <a href="#">Editorial</a>
                            </li><li> <a href="#">Event Management</a>
                                  </li></ul>
    for example: </li><li> <a href="imageEditing.html#">Image Editing</a> aso.
    What concerns your swf-file: In my IE8 it's working, so it seems it's on the right place, or did I misunderstood your question?
    Hans-G.

  • Moving the timeline from a loaded swf file

    Hi,
    I have been at this problem for awhile now.
    I have a two swf files, whic are loaded using ths code as an example:
    stop();
    var req:URLRequest = new URLRequest("Enchilada_A.swf");
    var loader:Loader = new Loader();
    function imageLoaded(event:Event):void {
        ldContainerB.addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
    loader.load(req);
    The first one is triggerrd by a MC button that is on the timeline.
    That first swf loads fine.
    At the end of that file(which is short animation)
    I have code that says:
    MovieClip(parent).gotoAndStop("frameThree");
    I have also tried:
    MovieClip(root) and
    if (movie Clip is parent) {
    MovieClip(parent).gotoAndStop("frameThree");
    and/MovieClip(parent).nextFrame();
    I have also tried placing this. or root. into the code.
    I am not talking to the timeline from this swf file.
    Once the timeline moves to the next Frame the new swf file can load.
    My solution was to combine both swf files into one, which loads from the timeline button.
    It works and I can gt by but I really woud like to learn how to load a swf and talk to the timeline fro more flexibilty.
    I'm out of strategies.
    Is my code in the wrong place(at the last frame of the animation?
    Should it be written on the timeline by creating a new var that has a function once the animation is completed.
    Any suggestions and/or commens would be greatly appreciated.
    Thanks.

    Thanks,
    I finally had a chance to get back to this project and used your suggestions, whichare definitiley helpful. I also, created a new and very basic version of the project so I could easily see what was happening.
    This is the code that works:
    stop();
    MovieClip(parent.parent).nextFrame();
    trace(container_mc);
    I'm still trying to understand how the child parent relationship is working but this will get me going in the right direction.

  • How to call swf file within another swf file using xml

    hii,
    I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3. i need some logics. thanks in advance

    This is the AS3 forum and your posting involves AS2 code.  You should repost in the AS2 forum...
    http://forums.adobe.com/community/flash/flash_actionscript
    Aside from that, your problem might lie in the following lines...
    _root.createEmptyMovieClip("sub_container1", 1);
    loadMovie(sub_SWFPath[1].attributes.url, "sub_container1");
    You create the new movieclip, sub_container1,  in the _root, but you do not assign the loadMovie to load into that same movieclip (unless you have a _lockroot = true assigned in your sub-swf).  In any case, you should repost in the AS2 forum to pursue resolution.

  • Copy and/or Cut and Paste no longer works from within Firefox yet I can Paste to Notepad and yet again copy the same text from within Notepad or any app will not Paste back into Firefox, thanks

    I 'Copy & Paste' from within Firefox quite often but for some reason the function has stopped working when using some sites, even the menu item 'Paste' is greyed out, yet I can open Notepad and 'Paste'. I tried pasting into 'Notepad' then copying from Notepad and pasting back into Firefox, which I've found in the past sometimes works but today even that does not work. I accept it may not actually be a Firefox problem but I have noticed since upgrading to the latest version, I am having several problems with crashing and hanging exceedingly long execution of the browser.

    See:
    *http://kb.mozillazine.org/Clipboard_not_working

  • Help needed in accessing the url from which a swf file has been loaded

    Hi All,
    Can anyone help me out in finding the url of the swf file
    from which it has been loaded? The purpose of the url is, I am
    loading some flv files using relative path. I just want to achieve
    the same by appending the relative path to the parent swf url from
    where the parent was loaded.
    I am a newbie to AS3, So please don t mind if this is a silly
    question.
    Can anyone help me on this.
    Thanks in advance,
    Prabakaran Srinivasan.

    Hi,
    Thanks for the reply. I think the option you gave is only
    applicable when the AS3 class comes in the DisplayObject hierarchy.
    I want this information in an AS3 class which does not extend any
    of the Sprite or its super class hierarchy. Can you let me know the
    possibility of fetching the value from such a class which i
    specified???
    Thanks,
    Prabakaran Srinivasan.

  • Unable to display the Content of a data file from within another data file in Oracle webcenter portal.

    We have a Content Presenter taskflow. This task flow is added to a jspx page. The taskflow fetches the content from the contributor data file. The contributor data file is having a WYSIWYG editor. The content of the WYSIWYG editor is being displayed correctly through the task flow.
    We have some links in the WYSIWYG editor. These links again point to some data files. When we click on these links from within the portal, then we are getting a blank page(the url of this blank page is: http://localhost:7101/eWSIBPortal/faces/oracle/webcenter/sitestructure/render.jspx?datasource=UCM%23dDocName%3AWSIB_ARTICLE) and not displaying the content of the data file that we are pointing to from the WYSIWYG editor.
    We want to display the content of these data files(which we have pointed from WYSIWYG editor) in-line within the portal.
    Please help us to resolve this issue and let us know if any information is required from our end.

    Thanks for reply. However, can I use XSQL to dump the formated text to a file? or just can display to client through web browsers?

  • Controlling printer formatting from within program

    Hi Experts,
    I have a requirement in which the user wants to that the printer's default setting of format 'X_65_1024'  should be changed to 'X_65_255' in case of if he executes this perticular report.
    The output of the report is ALV list display.
    Is it possible to control printer's setting from within the program?
    I serached and found two FMs.
    'SET_PRINT_PARAMETERS' and 'GET_PRINT_PARAMETERS' .
    But I am unable to understand how to use these FMs.
    Is there any other way to achieve this?
    Any pointers to resolve this issue would be very helpful.

    Hi,
    look here:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm
    All Print Parameters are described.
    And a little code example:
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = lv_pdest
          copies         = lv_count
          list_name      = lv_lnam
          list_text      = lv_prtxt
          immediately    = lv_flg_prn
          release        = ' '
          new_list_id    = 'X'
          expiration     = lv_days
          line_size      = 255
          line_count     = 65
          layout         = 'X_65_255'
          sap_cover_page = ' '
          cover_page     = ' '
          receiver       = lv_prrec
          department     = lv_prabt
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid.
      IF lv_valid <> space.
        NEW-PAGE PRINT ON
          PARAMETERS ls_params NEW-SECTION NO DIALOG.
    ENDIF.
    Hope it helps.
    Regards,
    David

  • Loading class from an external .swf file

    Hi,
    My flash application has lots of resources which will change all the time. In order to keep the the user from having to download my main .swf file over and over again, and in order to keep the main file's size low, I would like to put the resources into separate .swf files and load them dynamically from a url using a Loader.
    Once downloaded I would like to extract the classes that are in the resource swf and use them in the main swf. Can anyone share some code for doing this? Note that I am not just interested in using a symbol from the resource swf. I would like to use a class, with all of its methods and everything, and my main swf does not contain the class definition. Only the resource swf does.
    Thanks!!

    This is a great question for flash programming.
    And when you know the answer to this, you are likely to use it on daily basis like the top level programmers  of an agency.
    ApplicationDomain is your answer and the adobe docs has a chapter on this.
    ApplicationDomain is where all of your classes will be loaded into and when you use a loader you have the ability to target this with the laoderContext.
    AplicationDomain.currentDomain loads all classes into the main app and if your main app already has these classes, then the app uses the parents classes
    new Application.Domain() specifies a seperate repo of classes that are loaded in so that classes in the main app will not be confused by the classes in a loaded swf. that refer to the same names.
    this locks down the communication between the swfs but will use the newer updated classes on the child when a child is loaded in with the same class names as the parents.
    new ApplicationDomain(currentDomain)  will enclose a new repo with the parent repo of the class definitions.

  • Can keyboardEvent and mouseEvent work in the same .swf file?

    I'm nowhere near an expert on Flash or action script, so this is probably a simple thing to solve. But so far I haven't figured it out.
    I put together a rather simple interactive .swf file using graphical "buttons" to navigate through different screens. Afterwards, I was told to add in two keyboard events as well: one to navigate to the next screen and one to restart the .swf file.
    Using the keyboard to navigate the way I explained above works fine--that is, until I use the mouse to click on a button. Once I do that, the keyboard events no longer work. For example, if I start off the .swf file by pressing the Space bar on the keyboard to navigate to another page, it works fine. If I then press the "R" key on the keyboard to restart the .swf file, that works fine as well.
    However, the first time I click on one of the buttons on the stage to navigate to another screen, the keyboard events no longer work. I can press the Space bar, and nothing. I can press the "R" key to restart the .swf file, and nothing. It's as if using a mouse event disabled the keyboard events or made the .swf file stop "listening" for keyboard events. The only way I can get the keyboard events to work again is by clicking somewhere on the stage and THEN pressing the appropriate keyboard key. I'm guessing that's because I put the focus back on the stage, maybe?? (again, not an expert here)
    My code is ridiculously simple, and it's on the first frame:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    Is there anything I need to do to this to make sure the .swf file is always "listening" and registering the keyboard events?
    Thanks..

    use:
    trace("defined");
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
    trace(event);
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    test by clicking one of your buttons and watching the output panel for "defined".  if you don't see that, you're not defining a keyboard listener when that button is clicked.  if you do see it, then click a keyboard key.  (if you're testing in the flash test environment make sure you disable keyboard shortcuts.)   if you fail to see the keyboardevent trace, you're removing or disabling your listener after it's defined.

Maybe you are looking for

  • Flash Becoming More Trouble Than It Is Worth

    I play a lot of Flash games, including Evony. There are many people who have noticed problems with these games since the latest Flash update. So, please do not give us your standard "this must be a user error because we are perfect" answer. Since thi

  • Why are my eyedropper targets changing when I select my adjustment layer?

    Consider this simple document with 2 layers and an adjustment layer: Note the eyedropper targets. They read as expected: Now, observe what happens when I click my adjustment layer (this is a new Levels adjustment that has NOT YET BEEN TOUCHED - so th

  • Oracle 11g Installation issue

    Hi: I am trying to install 11g on linux from VNC viewer and got error " [INS-32012] Unable to create directory" at "Typical Installation step. I have for example given Database file location as /u01/app and this directory is created on linux and it i

  • PB12.5.2, MS Web Browser, IE 10

    We have been using the Microsoft Web Browser that comes with the Internet Explorer to open up PDF images from our PB application. This has been working fine until we upgraded the InternetExplorer to Version 10. Is there any compatability issues? Now

  • I'm having trouble using the Ipod Updater

    Itunes is not recognizing my ipod. I was told by the apple support to download the Ipod Updater and restore my factory settings. I downloaded the Ipod Updater as instructed, but when I go to open the program is keeps saying "Error reading setup initi