SWFaddress deep linking between multiple swfs

Hi, I am using SWFaddress to create deep linking within my
website. It works great within the main swf, however when I load a
new swf, the history chain becomes broken. I think it is to do with
the Actionscript on the 1st frame on the loaded swf.
The Actionscript in the 1st frames of both swf files is:
#include "SWFAddress.as"
function btnRelease() {
SWFAddress.setValue(this.deepLink);
function btnRollOver() {
SWFAddress.setStatus(this.deepLink);
function btnRollOut() {
SWFAddress.resetStatus();
SWFAddress.onChange = function() {
var value = SWFAddress.getValue();
if (_currentframe == 2 && value == '/') {
play();
} else {
var frame = _currentframe;
gotoAndStop('$' + value);
if (frame == _currentframe) {
gotoAndStop('$/error/');
return;
SWFAddress.setTitle(formatTitle(value));
Should I amend the Actionscript in the loaded swf? The
Actionscript in the 1st frame of a button is:
this.deepLink = '/welcome/';
this.onRelease = _root.btnRelease;
this.onRollOver = _root.btnRollOver;
this.onRollOut = _root.btnRollOut;
stop();
Hope someone can shed some light on this.
Many thanks

Bar,
Why do you create separate projects? You can have multiple app defs in one project, all generating into their own subdirectories. See chapter on Team-based development in Dev Guide for more info.
Anyway, even with separate projects (meaning separate web applications when running within JDev, you could still deploy everything in one ear file) this can be done. In this case, the deep link should be a goLink rather than a commandLink, and you should pass the deeplink query context as a request parameter, for example
UrlToCallOtherApp?deepLinkId=123
Then, in the deeplink target group, you should set the Enable DeepLinking expression to something like #{param.deepLinkId!=null} (or #{param.deepLinkId!='', if first one does not work}
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • SWFaddress deep linking between multiple mcs

    I am using SWFaddress deep linking to create a URL history in
    my website.
    When I load a swf into a new level, the history sequence is
    broken. Is there a way I can have different levels 'talk' to each
    other to create a seamless history chain?
    The Actionscript in the first frame of my button on _level20
    is:
    this.deepLink = '/services/';
    this.onRelease = _parent.btnRelease;
    this.onRollOver = _parent.btnRollOver;
    this.onRollOut = _parent.btnRollOut;
    stop();
    The Actionscript in the first frame of _level10 is:
    #include "SWFAddress.as"
    function btnRelease() {
    SWFAddress.setValue(this.deepLink);
    function btnRollOver() {
    SWFAddress.setStatus(this.deepLink);
    function btnRollOut() {
    SWFAddress.resetStatus();
    SWFAddress.onChange = function() {
    var value = SWFAddress.getValue();
    if (_currentframe == 2 && value == '/') {
    play();
    } else {
    var frame = _currentframe;
    gotoAndStop('$' + value);
    if (frame == _currentframe) {
    gotoAndStop('$/error/');
    return;
    SWFAddress.setTitle(formatTitle(value));
    Many thanks

    Instead of _parent
    use _level0 / _level20

  • Deep Linking between applications

    I've asked about this before but my problem is a little different this time.
    I have multiple projects (jpr) with an app def file in each one of them so they are all separated into different folders. I have setup the projects so that there is a main project that is dependant on all the others. I can change the URL to go to any of my projects this way. I want to setup deep linking so that it will deep link from one project into another.
    Do I need all the page defs in one common folder for this to work and also is it possible to get JHS to point to a pagedef folder outside its current project folder?
    Bar

    Bar,
    Why do you create separate projects? You can have multiple app defs in one project, all generating into their own subdirectories. See chapter on Team-based development in Dev Guide for more info.
    Anyway, even with separate projects (meaning separate web applications when running within JDev, you could still deploy everything in one ear file) this can be done. In this case, the deep link should be a goLink rather than a commandLink, and you should pass the deeplink query context as a request parameter, for example
    UrlToCallOtherApp?deepLinkId=123
    Then, in the deeplink target group, you should set the Enable DeepLinking expression to something like #{param.deepLinkId!=null} (or #{param.deepLinkId!='', if first one does not work}
    Steven Davelaar,
    JHeadstart Team.

  • Html link to multiple swf files on 1 html page

    i have a html page that has multiple (20) links to video files, i would like to play these files in the same position, within the same html page. therefore saving myself having 20 html files with the separate swf files embedded. firstly i was planning on converting my .mov files to swf to make then smaller.
    my query is, what is the best way to 'house' a swf file(s) that plays when clicked on the relative link on that page.
    i have build the page using CSS and have limited javascript knowledge although im keen to learn.
    cheers

    VIDEO GALLERY --
    You need a Flash player that supports a playlist.  If you're good with Flash and Action Script you could build a custom player.  If not, pick-one from the links below:
    Wimpy Rave simple to deploy, dirt simple to update playlists by uploading media to wimpy folder.
    WWD Player --
    http://www.woosterwebdesign.com/flvplayer/
    JW Player --
    http://www.longtailvideo.com/
    FlowPlayer --
    http://flowplayer.org/
    YouTube --
    http://code.google.com/apis/youtube/getting_started.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Sharing SharedObjects between multiple .swfs

    Relatively simple problem; I have a project that I think may be more manageable if I break it up into multiple small .swf files rather than having a gargantuan mega .swf.
    Now, I know that I could use a root .swf and load data from the others, but I think that it'll be a lot easier to debug and update if I'm using separate self-contained .swfs, so this is the direction I'm currently investigating.
    However, the .swfs won't really work unless I can have user-data persist between them, so I'm wondering if I can load a SharedObject saved by another .swf file? Are there any important caveats that I need to be aware of?
    In particular, can anyone give me sample code that would allow me to do this with both an online and offline copy of the files; i.e - if I run the same set of .swfs from haravikk.com, and locally, I want them to still be able to share data with one-another. In this case though I won't need to worry about sharing data between a local copy and haravikk.com, just so long as the files themselves can pass data within whatever domain they're loaded it should be fine.

    To do this I still need to make sure that all .swfs are retrieving/flushing their SharedObjects to the same domain though, right?
    I'm curious, is there a good way to work out what the right domain is dynamically?
    For example; say I have "Menu.swf", and "About.swf", both store in the same folder "MySite", so the files are located at "MySite/Menu.swf" and "MySite/About.swf" respectively. To avoid tying the files to a particular domain-name (so it can still work offline) I'd like to grab the current location of the .swf, and remove the file-name so that I have a domain containing just the enclosing folder.
    Is there a best way to do this? Basically so I can have my .swf files using a consistent domain for storing/saving, while still supporting relocating the files, so they will work offline if I copy them to my local machine for example.

  • Navigation Between multiple SWF files

    ok so I'm still working on this project and it got literally huge... at least huge enough to consume all of my 3 GB RAM memory and crash my Adobe Flash CS4. Anyway, I decided to put the site on several swf's but the problem is that I've never done that before so I have no idea how to navigate between them.
    Basically I have a main swf file, inside it there's an image (let's say its instance name is "projects_btn") that should take me to "Projects.swf", and I want to click on an "x" sign (its instance name is "xSign_btn") inside Projects.swf that would take me back to the main swf file "Bnaider2.swf".
    Any suggestions? thanks in advance...

    1. ok that link was very useful, thanks alot. project.swf is loading properly. But I donno what's going wrong, it just doesn't unload the project.swf when I click the xSign here's the code, maybe I've screwed something up:
    //On the main timeline of the project.swf file:
    xSign.addEventListener(MouseEvent.CLICK, xClickHandler);
    function xClickHandler(e:MouseEvent):void
         dispatchEvent(new Event("backHome"));
    // On the main time line of Bnaider.swf file:
    projectsImg2.addEventListener(MouseEvent.CLICK, onProjectsClick);
    function onProjectsClick(e:MouseEvent):void {
         var urlReq:URLRequest=new URLRequest("project.swf");
         var proLoader:Loader = new Loader();
         proLoader.load(urlReq);
         proLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderHandler);
         function loaderHandler(e:Event):void {
              addChild(proLoader);
         function loaderCompleteHandler(event:Event) {
              (event.currentTarget.content as MovieClip).addEventListener("backHome",xClickHandler);
         function xClickHandler(event:Event):void {
              proLoader.unload();
    2. the projects section of my site is divided into four swf's. First "project.swf" should load when I click on projectImg2 inside Bnaider.swf which is working fine so far (but doesn't unload once I click the xSign). Then I want "project2.swf" to load/run once I click on a button instantiated as "nextSwf" inside "project.swf". And on project2.swf as well, there's an xSign that once clicked  it should take me back to Bnaider.swf... and the same thing with the other two swf's. So... I donno, this is really getting too complicated for me, but if anyone could help I would really appreciate it cuz the whole project is due this Saturday and I've still got a few more things to work on as well... Thanks in advance...

  • Link between multiple subvi

    I am programming an application to control two differents instruments. My applications has to be modular, so I created multiple subvi. I have problem when I passed the parameters between the differents subvi. Because I have a lot of controls and indicator, I use cluster to pass them between my subvi. But, I have a problem because when I do changes in a cluster, I have to modify all the subvi than include this cluster. I was wondering if there was a better way to pass indicator and control between subvi.
    Thank you

    Initially, you will need to replace all the control clusters in your app with the type def control cluster (using All functions - select a vi..'). No way around this (i think).
    Then, if you wish to add a control to the typedef, right click on the type def, select 'Open type def', add the control to the cluster then Save. This will update all the clusters in your app.

  • Dashboard Content Linking between Tabs

    Hi all.
    I'm trying to link several analytics within a corporate dashboard.
    I've tried linking between Xcelcius SWF and Webi, and between Dashboard Analytics and it works fine.
    But my problem is that due to design considerations, I've got to link analytics that are placed in different tabs.
    Whe I click on "Content Linking", I can only see those analytics in the same tab.
    It is not possible to link two analytics placed in different tabs?
    Thanks in advance.

    Hello everybody.
    It seems that it's not possible to link analytics between tabs, at least based on this official SAP response:
    Based on the case description I have further investigated on your requirement and would like to inform you that in Interportlet Communication its not currently possible between tabs because we treat each tab as a seperate dashboard.   
    So I have to redesign my dashboards layout.
    Thanks to all.

  • Help Please, Linking from a swf in a Scrollpane to positions on the main timeline

    I have a scrollpane where I have loaded a swf of many small images that are set up as buttons.
    How do I create the link between this swf/actionscript to the main fla/timeline that the scrollpane is contained in?
    Thanks

    Buttons function with eventListeners, if they are actual button symbols then you should have an unique instance name, otherwise convert them to symbols and name the instances, if they are symbols and named then you can code them to do whatever you want.
    Add an event listener and function call for each button in the actionscirpt of the swf and provide the targets of the frame, anchor, or label for the event in the function.
    img1_btn.addEventListener(MouseEvent.CLICK, img1Handler);
    img2_btn.addEventListener(MouseEvent.CLICK, img2Handler);
    img3_btn. etc...
    function img1Handler(event:MouseEvent):void
         //go to and stop on the frame to display
         //you can also use frame labels or anchors
         // gotoAndStop("label");
         gotoAndStop(2);
    function img2Handler(event:MouseEvent):void
         //if you put the images in scene 2 for example then call the Scene the frame is in.
         // in this case for example, frame 3, Scene 1
         gotoAndStop(3, "Scene 1");
    Duplicate for each button/img.
    Have fun.

  • Links between pages not working

    I can't seem to get links between pages in my folio to work. Links between multiple pages of a single article will work, but when I try to link from one article to another article, nothing happens.
    Using CS 5.5, Folio builder 1.1.3.
    Thnx,

    The Help page for this is: http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-8ad81e812b10bfd837-80 00.html#WS67cb9e293e2f1f606f59889512d69320e0d-8000
    The syntax for your Hyperlink is: navto://articlename#1
    Replace articlename with the name of the article you want to jump to, and replace the number 1 here with the specific page number you want to link to, remembering that DPS wants to count from zero rather than from one. So...
    navto://Fish_Fingers#2
    ...would link to the third page of the article named 'Fish_Fingers'.
    Ali

  • Linking between swf's - file size problem

    I"m building a presentation & have two separate swf's. One is about 80 mb, the other is 40 mb. When I tried to export the larger one, I got a warning that it exceeded 16k frames. I figured out how to work around that. But now I need to integrate both swf's. If I take the smaller one & import it into the larger one as a new scene, will that blow up my export ability again? Can I link between two separate swf's using some sort of gotoAndPlay function? What are my options here? Any help is appreciated. Thanks.

    Gotcha. Thanks!

  • Linking between SWF files

    I need to general advice while protyping my website. I'm
    creating separate somewhat large swf files for each page of my
    website. Therefore, each will need its own html file if I don't
    want it take 3 years to go between pages. I'm confused how to link
    between the each page using a button in flash. Is this an action
    script thing? My links will be static text buttons. Thanks.

    Thanks. I think I get it, but I want to be sure. I think I
    need to be a little clearer:
    One SWF file inserted as my entire index.html page. Right now
    I have a static text button in the SWF file home page that says
    "About Us". I'm designing a new page that will also be its own SWF
    file for "About Us". I have a new www.xxxxx.com/aboutus.html page
    that I plan to put the file in when finished. In the text button on
    the homepage, do I use AS3 URLRequest("
    http://www.xxxxxxx.com/aboutus.html")
    to navigate. Thanks.

  • Link between swf files.

    Hello. I need to find a way to link multiple .swf files, so I may have a menu and after clicking a button go from there  to any swf file and back. But i need something that works in AS 2 and 3 because my files are in both ActionScripts. It shouldn't be a problem, right? Ive been looking for and trying different things but i can't do it.
    Hope someone can help
    Thanks.

    Also I have this code that works in AS3 but only for one button, when I try to make another one flash marks error. I cant link another button with another file.
    var loadedSWF:Loader = null;
    * Loads an SWF and adds it to container once complete
    * @param file The URL to the SWF to load
    * @param container The container to add the SWF to
    function loadSWF(file:String, container:MovieClip=null):void
        if(container == null) container = MovieClip(root);
        // removes the previously loaded SWF
        if(loadedSWF != null)
            if(loadedSWF.parent) loadedSWF.parent.removeChild(loadedSWF);
        var req:URLRequest = new URLRequest(file);
        loadedSWF = new Loader();
        loadedSWF.load(req);
        addChild(loadedSWF);
    mybutton.addEventListener(MouseEvent.CLICK, _click);
    function _click(e:MouseEvent):void
        loadSWF("myfile1.swf");

  • Windows 2008 AD Sites and Services: Multiple Connection links between same sites

    Hello,
    Our AD Sites  & Services is showing Multiple Connection links between the same sites. How is this possible and can i delete extra ones?  

    Hi,
    As Calin Liviu mentioned, you do not have to manage connection objects. In fact, changes that you make to connection objects that the KCC creates automatically are ignored.
    If the site is added to more than one site link, it might be an interim site between other sites that are added to this site link.
    Understanding Replication Between Sites
    http://technet.microsoft.com/en-us/library/cc771251.aspx
    Please check the replication issue, and post the result to here.
    Regards.
    Vivian Wang

  • Sharing information Instantly between multiple Local SWFs without a server

    Hey there everyone, so here is my problem:
    I would like to Have a string (JSON object)  that is shared across X number of SWFs that are running locally on the users machine. In addition to that, I would like to 'instantly' (with in a few MS) know when said JSON object has been updated. This needs to be done _without_ a remote server, and in AS3 (duh )
    What I've tried:
    Shared Object - Great for storing information across multiple SWFs and have had no problems reading / writing however since it is not remote there is no event (that i know of) to listen to on SWF_A to tell me when SWF_B has changed the SO
    Local Connection - this would work with the Shared Object, in place of event listeners to tell everyone else when to update.  However, you cannot 'connect' to the same name more than once.  Becase of this, each application would need to know the name of every other SWF that the user is currently running, and notify individually
    And yes, I thought of Timers, and no, they are not the ideal /acceptable solution.
    Looked for 3rd party libraries, haven't found any.
    Any insight would be super useful.  Thank you.
    -Andrew

    Yea, I thought about that also, kind of creating a stack, however there are 2 main issues with that.  A timer is still implemented for the 'controlling SO' swf to check for updates, and when / where does the main SWF get created.  Let's say the user has a SWF off my home page www.myexampleurl.com, one a subsequent page: www.myexampleurl.com/checkScores.php, and one in a MySpace widget (LOL myspace) www.myspace.com/myspaceIsLame then the main homepage would create this SWF, however if the user doesn't have the homepage open, where would the SWF go?  This would require working out each application to determine if it  has premissions to open up it's own instance of this swf to handle things.
    To do it right, seems like it would take a long time, and to do it fast, seems like it would get super sloppy super fast.  I do appreciate your help though!
    Any other thoughts?
    -Andrew

Maybe you are looking for

  • Aspect Ratio Scripting

    I am trying to author a dvd with 16:9 and 4:3 letterbox video & menus. I want the DVD to check the player to see whether the aspect ratio is set to 4:3 or 16:9. This works in all of the set top DVD players I have tried it in(presuming the player and

  • Camera Roll Album cannot be selected

    The Camera roll Album ( photos app ) located at the top of the screen, cannot be selected as it's partially hidden beneath a transparent grey screen with the title "Albums" on it! This used to be ok before 4.3 but now the only way to select Camera Ro

  • Recorded Animations Not Working In Presenter (8.0.1)

    My animation timings are not working when published to Presenter (8.0.1). Narration timing is good, but all the animations simply manifest one after the other, not as I recorded them as I clicked through (and yes each one is set for "click"). I also

  • Problem with iPhoto 1.1.1

    Just imported my vacation pictures, but they showed up in the Photo Library not in the Last Import File. In addition, I am unable to drag and drop pictures from the Photo Library to to new or old albums and once I exit and re enter iPhoto the picture

  • IOS contact lists revert to all when one contact is deleted

    Running iOS 7.0.3 on mini. I have multiply contact lists as a result of syncing with our Exchange 2010 sp3 server. Was attempting to delete old contacts and each time I do all of my contact lists, including "suggested contacts" enable themselves. To