Linking to a part (anchor) in FlashPaper

I am trying to create a simple system that will let me open a
FlashPaper .swf file to a certain section.
I need this navigation to come externally, such as passing a
link in, calling a variable, etc. I have Macromedia Director and
have FlashPaper working in Director. I could also pass the call via
an html page.
Is there any way to do this?
Ryan Deluz

The quick answer is the function goToLinkTarget, but this is
very poorly implemented in version 2 of FlashPaper.
My solution and code to help goToLinkTarget work better
follows:
I am going to use Zinc to pass the link in via command line
(as I couldn't get FlashPaper in director to resize properly). I
created a function that will read the original names as shown in my
Word Document.
FlashPaper starts by changing the names of the links
(anchors) when a word document is converted. It does not expose an
interface to get these new names, so I don't know how people were
assumed to use the goToLinkTarget function.
The following code should work to load a .swf FlashPaper and
create a map of its links for easy use. I hope this helps people.
This also includes code to dynamically resize FlashPaper so
that it looks good in a resizable player.
//LOAD FLASH PAPER
Stage.scaleMode = "noScale";
Stage.align = "TL";
//create MovieClip holder for FlashPaper
//create instance of MovieClip holder and place on stage
var mFlashPaperMC:MovieClip =
_root.createEmptyMovieClip("mFlashPaperMC",
_root.getNextHighestDepth());
var mFlashPaper;
var mBookmarkMap:Object;
//flash paper interface
var mFlashPaperListener:Object = new Object();
mFlashPaperListener.onLoaded =
function(mFlashPaper:Object):Void {
//loading is complete, so we can now adjust the current
page, zoom, etc.
//mFlashPaper.setCurrentPage(mFlashPaper.getNumberOfPages());
//mFlashPaper.setCurrentZoom(33);
mFlashPaper.addListener(this);
mFlashPaper.showUIElement("Brand", false);
mFlashPaperMC.toolbar_mc.brandClip_mc._visible = false;
mBookmarkMap = mapBookmarks(mFlashPaperMC);
goBookmark("Home", mFlashPaper, mBookmarkMap);
//mFlashPaper.setCurrentPage(mFlashPaper.getNumberOfPages());
//LISTENS FOR RESIZE AND RESIZES FLASH PAPER
var mStageListener:Object = new Object();
mStageListener.onResize = function() {
mFlashPaper.setSize(Stage.width, Stage.height);
Stage.addListener(mStageListener);
loadFlashPaper("QuickStartHelp.swf", mFlashPaperMC,
Stage.width, Stage.height, mFlashPaperListener);
stop();
function loadFlashPaper(path_s, dest_mc, width_i, height_i,
loaded_o) {
var intervalID = 0;
var loadFunc = function () {
dest_mc._visible = false;
mFlashPaper = dest_mc.getIFlashPaper();
if (!mFlashPaper) {
return;
if (mFlashPaper.setSize(width_i, height_i) == false) {
return;
dest_mc._visible = true;
clearInterval(intervalID);
loaded_o.onLoaded(mFlashPaper);
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
function mapBookmarks(flashPaperMC) {
//associative array to store book marks
var asArray:Object = new Object();
trace(flashPaperMC);
trace(flashPaperMC.fpBookmarks_array);
trace(flashPaperMC.fpBookmarks_array.length);
for (var i = 0; i<flashPaperMC.fpBookmarks_array.length;
i++) {
trace(flashPaperMC.fpBookmarks_array
.publicName_str);
asArray[flashPaperMC.fpBookmarks_array.publicName_str] =
flashPaperMC.fpBookmarks_array
.anchorName_str;
//store this bookmark name
for (var j = 0;
j<mFlashPaperMC.fbBookmarks_array.length; j++) {
asArray[flashPaperMC.fpBookmarks_array
[j].publicName_str] =
flashPaperMC.fpBookmarks_array[j].anchorName_str;
trace(asArray.toString());
return asArray;
function goBookmark(theName, flashPaperI, bookmarkMap) {
flashPaperI.goToLinkTarget("anchor:"+bookmarkMap[theName]);
}

Similar Messages

  • You have created a link to another part of your book but how do you get the reader back to the original page?

    Using iBooks Author to make a book you have created a link to another part of your book but how do you get the reader back to the original page?

    Asking me to be verbore is a dangerous thing  :-)
    When you eneter information into iTunes Producer for uploading, the info must match what is in the internal metadata. In this case, the book is called Mississippi, but in  iTunes Producer it is spelled Misssissippi. There is an extra "s". This will cause an error.
    - Fabe

  • Linking Edge Button to Anchor - cheat was working but now isn't...

    Hi,
    There seems to be a few older questions relating to this but none of them look like they've been answered..  I'm hoping some people may have cracked it now!
    So, I have made a button in Edge Animate (which has mouse roll over animations) and imported it into Muse.  It's a down arrow at the top of a scrolling site for people who like to click.  I want to link it to an anchor a little way down the page.  I've read that it can be done with code in Edge but this makes the page jumps to the anchor rather than the nice smooth scroll.
    I created a small transparent rectangle, added the hyperlink to the anchor and placed it on top of the .oam file.  This was working fine for a while, but testing it today I can see there's an issue with the layers - the rectangle is shielding the button so the roll over effects no longer action.  I've tried making the rectangle smaller but then the animation only works if you hover carefully around the outside.
    Help!
    Thanks

    Still looking for a solution   Anyone got any ideas?
    You can see my problem here: ramotion.co.uk - After a couple of seconds the down arrow appears, if you hover the mouse on the very edge you see the animation but you need to go to the middle of the arrow for the link to work...
    Please help!

  • Open link in background when anchor's attribute "href" contains javascript

    Hi community,
    I support web enterprise-level application with some legacy parts, where some windows are opened by using window.open command inside of anchor's href attribute. (e.g. <a href="javascript:MyFunction('../someurl', '2')" ../> ... function MyFunction(url,
    id) { window.open(url, id) ...)
    Now I have to open link in the background by pressing ctrl + click (or middle click), but for IE (9, 10, 11) it always becomes focused.
    Are there any ways to open those new tabs in the background (only when ctrl is pressed)? 
    P.S. I know that it would be better to provide actual link inside of href attribute, but unfortunatelly I don't have such options, due to application specific.
    Thank you in advace for your help!

    Hi Rob,
    thank you a lot for reply!
    I think mine issue not related to security and popup blocker settings. What I try to achieve is similar behaviour as we have for links (<a>) with href attribute fullfilled with actual url. Specifically
    * by single click new tab should be opened focused (this is fine)
    * by shift + click it should be opened in new browser window (this is also fine)
    * by middle (ctrl + click) new tab should be opened in background. This feature doesn't work well, because new tab alway opens focused and this is what I'm trying to fix, or at least find official proof that IE works in this way with javascript
    inside href attribute
    Here is example:
    http://jsfiddle.net/hj3gud9j/
    It works as expected in chrome but not in IE
    Yours sincerely, 
    Eugene Novykov

  • Html link to a named anchor within a PDF file?

    So, I want a link on a web page to hop to a specific part of
    a pdf file.
    Same thing as using named anchors really. The issue I see
    here is that the
    web pag (link) has no real notion of pdf's implementation of
    anchors, so how
    could it know to utilise them?
    I assume this is not possible, but need to make sure.
    Thanks.

    It is possible. You can link to a page in any pdf document,
    or link to a 'Named Destination'
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf

  • Linking to Word Document anchors

    Hi,
    I realise this isn't strictly a jsp question but I want to put a link in my jsp that will link to an anchor (bookmark) created in a word document.
    1) is this possible - I suspect not ( I can currently only get it to link to the top of the word doc)
    2) if so - how!!
    Thanks for any help

    I think that the people in M$ are the only ones who know... and most probably they are not going tell you!

  • Linking to a named anchor

    Can someone help me. I'm trying to link a java applet to a named anchor but I don't know how. Please help.

    You can't really create a direct link to an applet because an applet is an object of a HTML document. So you really have to create a link to an HTML that contains the applet. If what you're trying to do is to dynamically load an applet onto the current document, you can try to create a <DIV> (in IE or NN6) or a <LAYER> (in NN4+), create a link like this:
    Load Applet
    then, write a JavaScript function named loadApplet to load the applet into the DIV or LAYER:
    V.V.

  • Link to other parts of the page

    How do I link text from higher in the page to something that is near the bottom of the page

    1. Give the item you want to link to an html id by highlighting it and adding a unique name (no spaces or special characters) to the Id box in the Property Inspector. Make sure you don't accidentally select the overall container that holds all of the items you want to link to, setting anchor links this way will bring you to the top of the item selected.
    2. Highlight the item/text you want to use as a link and put that id, preceded by the # symbol, in the Link box of the Property Inspector.
    That should do it.

  • Link, as a part of the message displayed

    Hi,
    I need to display a message in my view, using the message manager APIs. This is straightforward.
    But a part of this message needs to be displayed as a link, so that when I click on it, a new window opens up.
    How do I put in this link inside the message?
    Thanks,
    Shalini Mohan.

    hi,Shalini.
    Using Message directly, you can not achieve what you want easily.
    Instead, i thought out one way, you can judge and check whether it can help you a little.
    You don't use the Message manager directly, that means: don't display your message.
    Now, you have one context attribute named "context_msg" which has type "String".
    In addition, you have defined one Link-to-action UI element  which is bound with the context attribute "context_msg".
    When you get the message, use the following
    message e001(ID) with <variable> into lw_msg.
    or if you use Exception class
    lw_msg = lo_exp->get_text( ).
    Then you can set the context attribute "context_msg" with the "lw_msg".
    Now, you can implement your action handler for the action of Link-to-action as you want, i.e. open another pop-up window.
    I don't know whether it can fit your requirement or not.
    Hope it can help you a little.
    Best wishes.

  • Linking to a Named Anchor link in a PDF

    Does anyone know if you can create a link in the Dreamweaver
    editor to another page of an PDF other than page 1.
    For example, something like this.
    <a href="
    http://www.website.com/new_site/pdf/PAGE2.pdf#RHS"
    target="_blank">Page 2</a>
    Or does anyone know if you can add a named anchor in a PDF
    document?

    http://kb.adobe.com/selfservice/viewContent.do?externalId=317300
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "QuantumPete" <[email protected]> wrote in
    message
    news:fqka6p$i2j$[email protected]..
    >
    > Does anyone know if you can create a link in the
    Dreamweaver editor to
    > another
    > page of an PDF other than page 1.
    >
    > For example, something like this.
    >
    > <a href="
    http://www.website.com/new_site/pdf/PAGE2.pdf#RHS"
    > target="_blank">Page 2</a>
    >
    > Or does anyone know if you can add a named anchor in a
    PDF document?
    >

  • Create link to another part of the form

    Hi all,
    I have created a dynamic form that contains two work plans. Users will fill out one or the other, but not both. I want to provide links to the beginning of each work plan. I cannot reference specific page numbers as the form is dynamic and the page count will change as the form is filled in. What is the code I need to use to do this. I assume I have to reference specific form objects, such as the tables housing the work plans, but I'm not sure what code I need to use.
    Thank you in advance.
    Jennifer

    Jennifer, I use a Button object. First, add a field on the page you want to go to. At the beginning of the work plan add a Button using this JavaScript on the Click Event:
    xfa.host.setFocus("Page1.SubformName.TextField");
    (change your subform/field names as needed). The field can be visible or hidden. When you click on the button, your cursor will jump to that spot. I use this function to jump through multiple page documents.

  • Is there a way to create links to certain parts of a video?

    I would like to have links at certain time stamps within my video (which is a recording of my screen I did not use Power Point), this way I can call out important points and the viewer can go straight to them. Is this possible in Adobe Presenter 9?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

  • Recipient of my emails cannot open links included in my emails because the link appears as part of the text. They have to copy and paste the link on their end. How can I get the links in my email to appear as a link they can just click on?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/879143''
    I have Windows Vista

    Just above the textarea that you use to enter the message text on the "Compose New Mail page" there is usually a button bar with buttons to add text formatting like Bold and Italic.<br />
    That toolbar may also have a button to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each (e.g. Insert hyperlink).
    * Make Link - https://addons.mozilla.org/firefox/addon/make-link/

  • Linking page to Named Anchor on multiple spry tabbed panels

    I am a Dreamweaver (cs5) "beginner" with little HTML knowlege.  I am doing a site for an artist friend with several art gallery images.  I have created a separate .html page for each image from the gallery (the gallery pages are built within several tabs in a spry tabbed set).  When it came time to link my image page back to the particular gallery page, it did not work, only the default panel could be linked.  I found Gramps' answer to another persons question that was similar to mine, only that person was using spry collapsible panels.   Gramps answer:  <a name="myAnchor"></a>, then URL origin page: ourPage.html?col2=open#myAnchor, and it apparently worked.  I tried this using "tabbedpanel2" which is probably wrong; at any rate.... nothing seems to work. 
    For my first time doing this, can anyone put this in the simplest form, using my own page, link names?  I have spent several day not getting anywhere.
    Spry Panel page is called: store_sheet.html
    namedAnchor on this page is called: o-pg2
    origin page is called: 009.html
    Because I'm not very good in HTML, I usually highlight what I am going to code so that I can find where it is at in the split screen, then I edit.  This is how raw my knowledge-base is at this point.
    Any help and advise would be greatly appreciated.  I'm several days behind because of this glitch.

    On the first page, the peeling turnips image looks like this -
    <p><a href="shop_originals/001.html"><img src="shop_originals/peelingturnips.jpg" width="188" height="254" alt="original"></a></p>
    The next image in the row looks like this -
    <p><img src="shop_originals/02.jpg" width="188" height="254" alt="original"></p>
    So, just select that image and link it to the detail page, e.g.,
    <p><a href="shop_originals/002.html"><img src="shop_originals/02.jpg" width="188" height="254" alt="original"></a></p>
    The on that detail page, make the continue shopping link like this -
    <a href="../store_sheet.html#o-002"><strong>Continue Shopping</strong></a>
    Is that what you wanted?

  • Sometimes I use Firefox as my browser to access my Yahoo email. If I put a link in my emails, no one can open the link because the link appears as part of the text. They have to copy and paste the link.

    I have Windows Vista.

    Just above the textarea that you use to enter the message text on the "Compose New Mail page" there is usually a button bar with buttons to add text formatting like Bold and Italic.<br />
    That toolbar may also have a button to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each (e.g. Insert hyperlink).
    * Make Link - https://addons.mozilla.org/firefox/addon/make-link/

Maybe you are looking for

  • Lenovo ThinkPad X230 Expresscard Help

    I have a Lenovo ThinkPad X230 (which I love dearly) and have a few question about ports and booting.  I would first like to verify that the port on the left side of the laptop directly above one of the USB ports is indeed an ExpressCard 54.  I have s

  • Double click on email inbox doesn't open email in a new window

    When I double click on any message (inbox, other smart folders, etc), the email doesn't open inside a new window. I have to view the email in the preview screen below the little dot at the bottom of the inbox window. I can reply - when I click reply,

  • Wrt54gl still tells i touch and iPad they are in Chicago after I moved to New York

    I recently moved from Chicago to upstate NY. My 9 month old wrt54gl works fine with one exception. Any iPad, itouch with a map application identifies that it is located at my old apartment in Evanston. I can find no entry on the setup pages to addres

  • ITunes 7.5 crashing after installing new iLife/Mac OS

    After installing the new version of Mac OS X and iLife my iTunes has been crashing constantly. Initially everything was fie, but now everytime I try to play song from my iTunes library (in an external HD with over 10k songs in AAIF) or play a CD it c

  • MobileMe Preference Pane missing

    Where can I get the MobileMe preference pane if it's not showing up in my system preferences? I have an iPod touch (which has MobileMe running just fine) and a MacBook (running OS 10.5.4 and MobileMe running just fine) and a mac desktop (also running