Unloading FlashPaper Document from Flash Movie

I'm using the following script to play a FlashPaper movie clip:
// function: loadFlashPaper
// Parameters:
//   path_s: path of SWF to load
//  dest_mc: Movie clip to hold the imported SWF
//  width_i: New size of the dest movie clip
// height_i: New size of the dest movie clip
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){          
dest_mc._visible = false;          
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false)     {
return;
} else {
clearInterval(intervalID);          
dest_mc._visible = true; // Now show the document
loaded_o.onLoaded(fp);
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
// Function called once the FlashPaper SWF is embedded:
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", true);
fp.showUIElement("Print", true);
fp.showUIElement("Find", true);
fp.showUIElement("Tool", true);
fp.showUIElement("Pop", true);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", true);
fp.showUIElement("Overflow", true);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
// Now we're ready to start
// Create the destination movie clip to hold the SWF:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",100);
// Position it on the stage:
theDocMC_mc._x = -220;
theDocMC_mc._y = -150;
// Load the FlashPaper SWF into the clip,
//   size it, and trigger the onLoaded() function:
loadFlashPaper("MarketingDoc.swf", theDocMC_mc, 500, 350, this);
Everything works fine on all pages including the page with the FlashPaper movie. The problem is after I visit the page with the FlashPaper movie my file starts to play through all the pages and wont stop.
I'm new to flash and this has been driving me mad. Any tips would be greatly apprciated.
files attached for example of my problem:
Thanks.

jollygrizzly wrote:
> This might seem like a bit of a silly question. I have a
PDF I want to upload
> and make available to download from my flash website. I
originally did this by
> uploading the file to '4share' but my employer did not
like it saying it was a
> bit confusing and full of adverts. If I upload the PDF
with the rest of my
> site to the remote folder how do I connect a button in
the website to
> automatically start a download of the file? Should I
have the file in an html
> document, or is it a simple case of getURL on the
desired button? If so, what
> do I need to do to the PDF before the link will work
correctly.
>
getURL action and instead of URL, path to your file on sever.
Depends on user end, if the browser has DPF plugin, the file
will
automatically open so if you want to force download, zip that
file.
ZIP always prompt download dialog.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • Download a document from  flash movie

    This might seem like a bit of a silly question. I have a PDF
    I want to upload and make available to download from my flash
    website. I originally did this by uploading the file to '4share'
    but my employer did not like it saying it was a bit confusing and
    full of adverts. If I upload the PDF with the rest of my site to
    the remote folder how do I connect a button in the website to
    automatically start a download of the file? Should I have the file
    in an html document, or is it a simple case of getURL on the
    desired button? If so, what do I need to do to the PDF before the
    link will work correctly.
    Many Thanks
    JG

    jollygrizzly wrote:
    > This might seem like a bit of a silly question. I have a
    PDF I want to upload
    > and make available to download from my flash website. I
    originally did this by
    > uploading the file to '4share' but my employer did not
    like it saying it was a
    > bit confusing and full of adverts. If I upload the PDF
    with the rest of my
    > site to the remote folder how do I connect a button in
    the website to
    > automatically start a download of the file? Should I
    have the file in an html
    > document, or is it a simple case of getURL on the
    desired button? If so, what
    > do I need to do to the PDF before the link will work
    correctly.
    >
    getURL action and instead of URL, path to your file on sever.
    Depends on user end, if the browser has DPF plugin, the file
    will
    automatically open so if you want to force download, zip that
    file.
    ZIP always prompt download dialog.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Obtaining the full file path specification from Flash Movie and QuickTime icons?

    How do you obtain the full file path specification from Flash
    Movie and QuickTime icons? I want the path and the file name that
    is contained in these icons. I am using a "dive" to run through the
    icons of a file, and when I come upon these two types of icons, I
    want to obtain the above information that is contained in them. I
    certainly can look in the property dialog box to get this info, but
    there are many icons in these files, and I want to generate a list
    of info based upon the various types of icons that I am processing.
    Thanks

    > How do you obtain the full file path specification from
    Flash Movie and
    > QuickTime icons? I want the path and the file name that
    is contained in
    > these
    > icons. I am using a "dive" to run through the icons of a
    file, and when I
    > come
    > upon these two types of icons, I want to obtain the
    above information that
    > is
    > contained in them. I certainly can look in the property
    dialog box to get
    > this
    > info, but there are many icons in these files, and I
    want to generate a
    > list of
    > info based upon the various types of icons that I am
    processing. Thanks
    >
    For Flash
    Trace(GetIconProperty(iconID, #pathName))
    for QuickTime
    Trace(GetIconProperty(IconID, #filename))
    For full scripting reference for each of these sprites, open
    up the
    Properties panel for each sprite and press the Help button
    that appears on
    the properties page ... or else navigate to these folders for
    the Flash and
    QT help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\FlashAsset\Help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\QuicktimeAsset\Help
    You don't want to know how many times I asked Macromedia to
    stop hiding that
    Help!
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Launching FW from Flash Movie

    Is there a way to launch FW from Flash Movie when user
    presses a buttons?
    Bascially, when user clicks a button in Flash Movie, FW
    launches and execute some scripts.
    Thanks,

    Not a Flash expert, but I don't think so. Why do you want to
    do this?
    alex
    babo_ya wrote:
    > Is there a way to launch FW from Flash Movie when user
    presses a buttons?
    >
    > Bascially, when user clicks a button in Flash Movie, FW
    launches and execute some scripts.
    >
    > Thanks,

  • Avatars from flash movies

    Hi!
    I want to create an application that creates small avatars from flash movies. How to solve this task better? It seems that I should receive each change of flash movie...

    This forum is about C++ programming in general, and using the Solaris Studio C++ compiler for Solaris and Linux in particular.
    I think you are more likely to find an answer in a forum about using Flash. Try adobe.com.

  • How to remove document from Flash drive after printing from a PC

    Hi All,
    Here's my problem: Today I needed to print an MS Word file at a printshop, so I saved the document onto my Flash drive and took it to the shop. There, the staff printed the document from a PC and handed the drive back to me.
    Now, back at home, I want to delete this document from the Flash Drive. I plug in the drive, select the document and drag it to the trash. But then I get this message: " The operation cannot be completed because you do not have sufficient privileges for document X".
    This is a document I created from scratch, so I should have read/write privileges, yet the document on the drive is Read Only.
    I went back to the shop, and they get the same message.
    If I try to use disk utility to erase the disk, it appears as an MS-DOS FIle System (FAT 16) disk, and the erase buttons are "greyed out".
    How can I erase this document? Or how I can I reformat the drive?
    Any help much appreciated!~
    12 iBook G4,1.2 GHz, 768 RAM   Mac OS X (10.4.7)  

    I think I just solved my own problem. Just tried pressing the option and command keys at the same time while dragging the document into the trash and now it's gone. For good, I hope....Phew!
    12 iBook G4,1.2 GHz, 768 RAM   Mac OS X (10.4.7)  

  • Fi Document from MM movement

    Hy Expert,
    by which transaction I can find the determination of FI document starting from MM movement?
    Thanks.
    Bye

    Where in customizing I can fix the mapping between MM and the financial document type
    It is in OMBA where if you click "Goods Issue Document Type"  or "Goods Receipt Document Type", you can see the relevant transactions there.  Along side, you can also see the corresponding FI document type assigned to each of those transactions.  Of course, all FI documents you can see in OBA7
    thanks
    G. Lakshmipathi

  • Exporting from flash movies without quicktime

    I used to convert flash movies in dv (for further editing in imovie or Final cut express). With the latest QT update this is not possible anymore (and a lot of my projects are unreadable...). Anyone knows an (possibly inexpensive) way to convert a .swf file in dv or something else digestible from QT or visualhub? (visualhub relyes on QT support for converting flash movies, so this is not doable...)
    Thanks in advance.

    Buy a cheap external HD and install an older version of Tiger (and QuickTime) on it. Use http://perian.org and QuickTime Pro to make the conversion.
    QuickTime 7.3.1 no longer supports Flash media formats.

  • Opening Office Documents from Flash

    Hi, we're working with a product called ProForm to create online courses that are Flash-based.  It's a pretty cool product, created by Rapid Intake and using ActionScript 2 as the basis.
    In a recent course I've been running into a problem.  I've created a custom Flash movie as one of the "pages" in the course.  In that movie I have links that use the getURL function to connect to some local files, and target a new window with the "_blank" option.  I've used this method many times with no issues, and when working with PDFs (thanks, Adobe! ) it works just fine across all browsers tested.
    The problem we're seeing is that when we try to use this method to connect directly to Office documents, the links fail to open the documents in Internet Explorer.  When using Firefox, they work fine, and soon after clicking the link the user receives a dialog asking if they wish to save or open the document.  This is the behavior which we expected in IE, and which one can achieve by holding the CTRL button and clicking the link (and don't ask me how that was figured out, 'cuz I don't know).  But when just clicking the link in IE, a browser window briefly pops up, then the thing disappears and nothing else happens - no file opens, no dialog appears, nothing.  Very frustrating.
    So if anyone has any experience with this issue and can offer any advice, I'd really appreciate hearing about it.  While we can work around this (e.g. - converting Office docs to PDFs) it's not our first choice, and since none of our development team understands exactly what is happening and why, it would be useful for future development efforts for us to be educated.  Thanks in advance for any help.

    Just to try to help the comprehensibility of the issue, I've posted demo page to illustrate the situation: http://www.zoomiechaser.com/demo/button_test.html
    If you use IE and click on the link, the page will download as expected.  If you click the Click Me button in the Flash movie, you'll see either a pop-up warning bar, or, if you allow pop-ups, you'll see a window flash quickly on the screen then disappear.  I hope this helps, and that you kind souls can help me in return! 

  • Interacting with html documents from flash

    Hi,
    I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
    The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
    The "Europe.html" for example contains a list of countries.
    In this mission I have 2 problems:
    1.       What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
    2.       What script do I have to put inside the html document?
    Any help will be much appreciated. thank you
    Arie M.

    assign your button an instance name (in the properties panel after selecting your button) and use that name in the actions panel:
    yourbutton.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    navigateToURL(new URLRequest("map.html"),"youriframe")

  • Problem downloading files from flash movie?

    For some reason, on my Mac Book Pro (running OSX 10.5.4) I am unable to download a file from a flash movie (.swf). All other macs in the office are capable, and I can download files from other sources, just not from a flash movie. It allows me to choose where to save the file, but when the download starts, the progress bar remains at 0%.
    Does anyone know what causes this?

    There's no such thing as Final Cut HD 5.0.4. If what you really have is Final Cut Pro 5.0.4, then you should be able to capture and edit HDV. But, you haven't told us what camcordr you have, so it's difficult to help.
    The usual procdure for resolving this situation looks something like this:
    1) With the camcorder powered on and connected, open System Profiler, and see if it sees the camcorder. (SP is in the /Applications/Utilities folder.)
    2) If SP sees it, then with FCP not running, power down the camcorder, then start Final Cut again. When the window opens saying FCP can't find your HDV device, power on the camcorder and click continue. Try it again.
    3) If Log & Capture doesn't see it, then Quit FCP, shut down the Mac, power down the camcorder. Wait 20 seconds. Power up the camcorder, boot up again, open FCP & try it.
    4) If L&C still doesn't see it, then trash your FCP preferences, and try it again.
    5) Report back here.
    EDIT: You are using the HDV Easy Setup, aren't you?

  • Save Bitmap from Flash Movie

    How i can save or export an image(jpg or other) from a Flash
    movie into hard disk or rendering it in a page of browser.
    thanks

    Please search the forum - this question comes up once or
    twice a week
    currently
    Remove '_spamkiller_' to mail

  • Open PDF in Acrobat from flash movie

    Hi all,
    I have made a flash autorun splash screen for a CD containing numerous pdf' files. When I click on the files in the flash movie however, they open in a browser window. Is there any way to make them open in acrobat by default?

    probably not.  you can't change a user's default settings.  and you can't force the execution of a file like acrobat without knowing its location.

  • Creating a DVD from flash movies (flv)

    Does iDVD 6 support flash movies (flv) importing?
    -pom-

    Does iDVD 6 support flash movies (flv) importing?
    No. You could probably convert the files to DV video (which is supported) using VisualHub at http://www.techspansion.com/visualhub/
    You can try it for free.
    Keep in mind that the DV files will be MUCH larger. DV runs about 12 to 13 GB per hour of content.

  • Playback of sounds from flash movie files in authorware

    Ive imported a flash movie file into authorware but the sound
    is not playing back. In flash, I created a movie that includes
    graphics and sounds. The movie plays perfectly when I open the
    flash player but it doesnt play when imported into Authorware. Ive
    tried publishing the flash file as quicktime but had a problem with
    the handler on my computer. Does anyone have any
    suggestions?

    If you click the 'Options' button on the Property panel for
    the Flash
    movie, is the 'Playback > Sound' checkbox actually checked
    in the
    resulting dialog box?
    When published as QT, what does 'had a problem with the
    handler on my
    computer' mean? Do you have QT installed on the playback
    machine? Are
    you using Insert > Media > Quicktime?
    Erik
    dcastil4 wrote:
    > Ive imported a flash movie file into authorware but the
    sound is not playing
    > back. In flash, I created a movie that includes graphics
    and sounds. The movie
    > plays perfectly when I open the flash player but it
    doesnt play when imported
    > into Authorware. Ive tried publishing the flash file as
    quicktime but had a
    > problem with the handler on my computer. Does anyone
    have any suggestions?
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.macromedia.com/support/forums/team_macromedia/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware

Maybe you are looking for

  • Can you trade in more than broken ipod touch at a time?

    we have had a lot of accidents with our ipod touches in our 11 people family, we probably have 4 or more 3rd generations lying around not doing anything, my sister has a working ipad, but she wants to get a 5th generation ipod touch, can she trade in

  • Error displaying a jpg file loaded into a table with blob field

    This may not be the correct forum for this question, but if it isn't could someone direct me to the correct one. I have created a table with a blob field in which I have loaded a jpg image. This appeared to work correctly, but when I try to display t

  • How do I make a facebook page with a premade template? [was:help]

    how do I make a facebook page with a premade template i bought on etsy? I have asked this 10 times now In all diffrent section here. I guess I dont even know how to ask a question in photo shop?? I am very glad I am only on the trial. This is soooo N

  • Need Help with checking of 2 queries

    hi, I dunno how to check for query that needs 2 of the table component in order to display. I need to check for this: private void _init() throws Exception { weekly_datesDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionB

  • Upload a PDF file

    Hi all, I have post url and PDF file path how do i upload pdf file. As i did in .net like webclient.UploadFile(posturl,pdfpath); please let me know if nay body has an idea thanks Naveen