Interact with content loaded in html overlay / acces accelerometer?

Hi,
is it in any way possible to interact with html content loaded in the Web Content overlay?
Or is there a way to acces the accelerometer in indesign?
greetz
Mario

Moved to DPS forum

Similar Messages

  • How do I interact with a loaded swf?

    Hi,
    I have a "lesson" that I'm building that will display a series of "pages" based on an XML file. I have simple navigation buttons that work to page through the XML file. but I'd like to use load an external SWF file with buttons to use as my navigation panel. Everything is AS 3.0. The code to load the navigation movie looks like this:
    // load navigator
       navLoader = new Loader;
       navLoader.contentLoaderInfo.addEventListener(Event.INIT, handleInit);
       navLoader.x = 50;
       navLoader.y = 200;
       lessonSprite.addChild(navLoader);
       navLoader.load( new URLRequest("Navigator1.swf"));
    The loaded navigation movie has two buttons. How do I add an event listener to those buttons so that they call a function in the parent movie so I can detect when the user clicks on the button named "GoNext" in the loaded movie?  I've tried several ways but I've had no luck. Could someone please point me in the right direction? This navigation panel is only one application of this sort of communication that I'll need in other parts of this type of lesson so I really need to figure out how to detect user interaction interaction with the loaded movie. Guess I need to know how to call a function in the parent movie from the loaded movie.
    Thanks,
    Peter H.

    Hey Pete,
    The answer that you seek and the simplest one as well will be from the MouseEvent. that  you will most likely have applied to your loaded swf.
    As long as both swfs are in the same domain, you wont have any issues with security and therefor, the MouseEvent. which bubbles up, will be able to reach your swf file which has loaded it.
    You can then write your code in your loaded swf to simply listen to the loadedMovieClip  by targeting the contents of navLoader just like this,
    navLoader.content.addEventListener(MouseEvent.MOUSE_DOWN,onDown)
    protected function onDown(me:MouseEvent){
    now providing you have given your two buttons names in your loaded swf, you will be able to perform addition tasks by receiving the name of the target.
    protected function onDown(me:MouseEvent){
    var btnClip:Movie= me.target as MovieClip
              var btnName=btnClip.name
    if(btnName==(button1)){
         //do the following
    }else{
           //it was button two
    button1 was just a random name in this case .
    This will do the trick

  • Interaction with Content behind Transparent Flex App

    Hi,
    I have a Flex application with wmode=transparent and a transparent section that allows whatever is underneath it on the HTML page to show through.  In this case, what's showing through is another Flash application.  This works fine, but I can't interact with the Flash application showing through.
    I tried setting the z-index of the Flash app to something greater than my Flex app, and that worked, but unfortunately that solution doesn't work for my case because the Flex application has components that occasionally overlay in that area, and setting the z-index of the Flash app to be higher means those components are always stuck behind it.  Also unfortunately I don't control the loading of that Flash app, so I can't load/embed it into my app to get around this problem.
    Are there any other ways to do this?
    Cheers,
    Karthik

    UPDATE:
    So, I spent an entire work-day on trying to get this to
    work.... I finally ended up hacking the flex html filter library to
    display the formatted text as best as I could. It basically created
    a bunch of "<textformat>" tags. There were still a few
    layout/indentation issues. So, I tested it, and deployed to our
    test website, and got approval from one of the managers. Then, I
    come in this morning, and the all my work is gone. "Did I deploy
    the files to right server? I know I tested it last night....", I
    asked myself. The dates on the files were from last night. Odd. So
    I ask my supervisor if I was looking at the correct website for the
    server where I deployed the files.... "Oh yeah", he said, "I had to
    roll that back, because [the manager who gave me the content]
    didn't like how it looked." Nevermind that the files included other
    changes as well (it was a nightly build, the source control for the
    source files are done through a different source control program on
    a different server), so now the whole thing looks screwed up.
    Oh well.... I really need a blog to complain about this....
    Thanks everyone for your help.

  • Firefox could not open 300 new tab with content loading

    Dear All,
    Thanks for good support in web browser world.Directly i come to the question.I have excel sheet where it has 300 hyperlinks as given below(example links 3)My Excel macro is written in such a way that this will open all the link in firefox "new tab " one by one.It was perfect and page was loading in previous versions(i could not remember the exact version but i could say an year before when i used firefox it worked well).Now i am having issues opening 300 new tabs with links.It gets started loading the page but before one page loading gets completed too many new links are opening but the page is not fully loaded at all.When i click the tab for each link and see in the browser the green clour processing round sysmbol keeps on rotating.Can you please look into this issue.
    If you want i can be contacted through email or if the information is not clear i am ready to connect through web sharing or to have a call.If you want spreadsheet for testing this issue i will send it.
    Link Used in Excel sheet example : 300 links in same site with differrent page:
    http://chartink.com/stocks/RECLTD.html
    http://chartink.com/stocks/bpcl.html
    http://chartink.com/stocks/itc.html
    Expecting your positive reply at the earliest.Thank you!
    Regards,
    Marx
    <sub>edit: removed your mail address from public display, since the only thing it will attract are spam bots. you will be notified per mail once somebody replies to the thread. (philipp)</sub>

    Hi Marx,
    With this kind of data testing it is helpful to provide context to the issue you are trying to document. This technical information is very useful to the engineers working on the performance of Firefox and I am sure this is the kind of information they would love to see.
    Therefore I would like to put you in touch with this team to see what they can do with this information. Talk to the #perf channel in irc and they should be able to put you in the right direction. I am asking currently and see what I can find. Or in the meantime check out the current tab bugs in the Performance component of bugzilla provided in the search below: [https://bugzilla.mozilla.org/buglist.cgi?quicksearch=tab%20performance&list_id=9361049]

  • Interacting with DOM objects using HTML

    Hi,
    I want to listen to "text selection" on a webpage in AS (i.e. as soon as a user highlights some text and releases the mouse button, an event gets fired). Events for cut, copy, and paste are available, but none for "text selection". I have read about cross-scripting between AS and JavaScript and understand it, although I do not understand yet how it can solve my problem. Also, is there any simpler way to do it directly in AS, without getting into JavaScript?
    Thank you very much
    Rehan.

    There's a non-standard onselectstart attribute (or "selectstart" event type) that looks to be the only HTML DOM event dispatched for text selection.
    You can listen for such DOM events from ActionScript like so:
    package {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.html.HTMLLoader;
        public class HTMLLoadderTest extends Sprite
            private var html:HTMLLoader = new HTMLLoader();
            public function HTMLLoadderTest()
                this.stage.scaleMode = StageScaleMode.NO_SCALE;
                this.stage.align = StageAlign.TOP_LEFT;
                html.loadString("<html><body><p>Something to select.</p></body></html>");
                html.width = this.stage.stageWidth;
                html.height = this.stage.stageHeight;
                html.addEventListener(Event.COMPLETE, completeHandler);
                addChild(html);
                stage.nativeWindow.activate();
            private function completeHandler(event:Event):void {
                event.target.window.document.body.addEventListener("selectstart", reportSelection);
    //Note that you have to use Object as the parameter type because the JavaScript Event class is not the same as the ActionScript Event class
            private function reportSelection( event:Object ):void
                trace(html.window.getSelection());

  • Adobe needs to develop an api for communicating with HTML Overlays & Indesign Objects

    I'm a front-end developer who has been assigned the task of developing one of our client's DPS every month. While I praise Adobe for saving a dying a industry and giving non-developers simple GUI controls, they need to develop an api for communicating from HTML Overlays to Indesign MSOs and other objects.
    I've had to do some intense animations/pages; which I in turn simply developed all in HTML5 and did an overlay. The time put into those pages could have been greatly reduced if their was a proper API in place to trigger different MSO and events. Is anybody at Adobe working on this? As DPS matures, and more developers are tasked with making folios it's imperative we have a proper way way to develop.

    We had a page for embedded movies in a lightbox; the client said customers were complaining that the folios were too large and took too long to download. So we switched to youtube streaming page, but they wanted a poster and autoplay enabled. If you have ever programmed with mobile video, you'll know devices are extremely difficult to manipulate.
    I had to do an html overlay with a bunch of transparent divs for hotspots and buttons. If I could have told Indesign to move different objects layer orders or go to a different MSO it would have saved me hours.
    Doesn't DPS support localstorage? Couldn't you guys whip up a little api to trigger events via localstorage?
    Off topic, another request:
    - enable the safari webkit inspector for debugging connected ipads with folios that have html overlays; you guys don't fully support HTML5 or certain js events and it's extremely annoying and difficult to debug. 

  • Loading dynamically with jQuery .load()

    Hi!
    I have for the last two days tried to get this to work, but without success. I'm starting to believe that it's not possible to fix.
    I have a page with a content div, and I load files (ex: about.html) into it. Now, all the pages and animations loads and works perfectly the first time, but as soon as I use .load() again, no animation shows.
    This is a very simplified summary of the code
    <html>
    <head>
         <script src="edgePreload.js"></script>
    <head>
    <body>
         <div class="link" data-page="first_page">first page</div>
         <div class="content"></div>
         <script>
              $(".link").click(function(){
                   $(".content").load($(this).data("page")+".html");
              $(".content").load("first_page.html");
         </script>
    <body>
    The first time you run the site, as I wrote before, the animations in "first_page.html" works fine. But as soon as you run .load() again (clicking on .link), all the compositions just isn't there.
    I've gone through google completely (It feels like it anyway) and I've read the api, specially the Coordinated Preloading part, but It wont help.
    What I think it is, is that the edge.1.5.0.min.js is stopping the anitmation to load more than once.
    Could someone give me any tips on what i could do to make this work?
    Thanks,
    Walkingforest

    Elaine-
    Thanks for the info!
    I've added a "stop" trigger to the animation in question.
    I can get multiple compositions to run in one page, no problem. - I just don't know how to control them from outside the animation (play(), stop(), etc...)
    I apologize for my lack of knowledge (I'm just now trying to wrap my head around the use of javscript in Edge!) and I know this may be a bit off topic but can you tell me how to add the  call (play) to the jQuery Mobile buttons?
    I have this in the HTML for the jQuery buttons:
    <div data-role="content" class="page_bkgrnd">
    <ul data-count-theme="a" data-role="listview" data-theme="d">
    <li><a href="#page2" data-transition="flip">Design</a></li>
    <li><a href="#page3" data-transition="flip">Develop</a></li>
    <li><a href="#page4" data-transition="flip">Deploy</a></li>
    <li><a href="#page5" data-transition="flip">Portfolio</a></li>
    </ul>
    </div>
    Also, does this mean that I can make different calls and "interact" with the Edge animation from outside (as in this jQuery example) the animation, or am I misinterpreting this?
    I guess I never thought that far but that could open up an entire new can of worms and a world of possibilities :-)
    NOTE - To be clear, the jQuery Mobile code is NOT within Edge).
    Thanks!
    James

  • HTML/javascript interaction with swf content - can I call swf functions from JS?

    Hi,
    I've created an AIR application where the
    intialWindow.content is a HTML page / JavaScript application. On
    this HTML page I want to include some SWF content as a plugin (a
    Flex 3 app), so I have an object tag.
    From my SWF I can call out to JavaScript using
    flash.external.ExternalInterface fine. I can also call methods
    within the AIR and Flex APIs via the window or runtime objects.
    However, if I try to call methods within my SWF from
    JavaScript, nothing happens. Further, I can pass a function
    reference from my SWF to JavaScript (via ExternalInterface), and
    while I can see a valid function reference in JavaScript, calling
    it doesn't call the function within the SWF.
    Is this not supported? Or is this something else, like an
    applicationDomain issue? My SWF object is loaded via the app:/ uri,
    so I didn't think it would be that.

    I hadn't tried that, and it does work. Thank you. Everyone
    should note though that the documentation here
    Flex
    3 - External Interface
    and
    Flash
    9 - ExternalInterface.html
    says:
    "Note: Adobe AIR currently does not support the
    ExternalInterface class."
    which by my reading means that none of this should work,
    although it clearly does.
    The page
    Example:
    Using the external API with a web page container was most
    helpful in finding the solution, since it mentions referencing the
    object id of the plugin (e.g.
    window['my-object-id'].functionToCall()) when referencing the
    callback function.
    This
    page has a more concise example.

  • Problem in loading external HTML content using SpryHTMLDataSet in Firefox

    I have a very simple placement of the contents of an HTML DIV within a subsidiary HTML file (statespecificassets.html) into a main HTML document, using SpryHTMLDataSet in Dreamweaver CS4.
    The relevant bits of code in the main HTML doc:
    In the header:
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("../../statespecificassets.html", "NN_Data_s3a");
    ds1.setColumnType("column0", "html");
    //-->
    </script>
    And at the point of inclusion of the external DIV:
    <div spry:region="ds1" class="StackedContainers">
             <div spry:repeat="ds1" class="RowContainer">
                <div class="RowColumn" style="background-color: #D7DF21;">{column0}</div>
             </div>
          </div>
    The problem: This works fine in Safari 4.0 on a Mac, and IE7 on a PC. It doesn't work in Firefox 3.0.11 (latest version) on Mac or PC: In firefox the reference content simply doesn't load. The only way I can get it to work in Firefox is if I place the main HTML doc and its subsidiary reference HTML file in exactly the same directory/ on the same level, and adjust the script reference accordingly ( var ds1 = new Spry.Data.HTMLDataSet("statespecificassets.html", "NN_Data_s3a"); ) ...But I can't/ don't want to alter my directory structure, because multiple files in other directories will need to use the reference file.
    Is there some other way of making it all-browser compatible -- possibly by adjusting a relevant bit of code in SpryHTMLDataSet.js in the Spry Assets? .. I've attached the SpryHTMLDataSet.js file for reference.
    Thank you to any kind soul who might have the nous to solve this.

    This is the latest version of SpryHTMLDataSet: http://labs.adobe.com/technologies/spry/preview/SpryHTMLDataSet.js
    Check out if works for, if not, please provide us with a online url.

  • Can't view interactive items with Content Viewer

    I have created some interactive items in InDesign CS6; rollover buttons, animation, slideshow... etc. when I click Preview at the bottom of the Folio Overlay panel it works fine but when I test with Content Viewer(both desktop and iPad 2), it's not working. Let me know if you can help me on this, I have spent last couple days to figure out this error but no luck so far.
    Thought I did something wrong so I have test with "Local Spring" tutorial and swipe 360 viewer and slideshow don't work either.
    System Info: Mac Lion OX, CS6, Adobe Content Viewer(v20), DPS tools are all updated.

    Have you tried moving it over to the actual device to test it (i.e. iPad)? I found my videos didn't look very well on the desktop version of the Content Viewer but when I moved it over to the iPad, it looked great.
    Just a thought.

  • Combo box visible and loaded but cant interact with it

    I have two swf files onSiteSearch and onSiteReg. Both work as
    expected when used alone but when onSiteReg is loaded from onSite
    Search the comboBox on onSiteReg cannot be interacted with. It is
    visible and has the correct data in it but there is no ability to
    drop down the comboBox. I have tried many suggestions I have found
    here including making sure there is an instance of the comboBox in
    the onSiteSearch but nothing seems to change.
    The onSiteSearch brings up a dataGrid and when a list item
    from the grid is click it loads the onSiteReg (see code below).
    Everything works as it should including checkBoxs and actionScript
    but I can change the selected choice in the comboBox.
    Thanks in Advance for any insight and/or help.
    var dgListener:Object = new Object();
    dgListener.cellPress = function(event) {
    txtTalentEventID.text =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    _global.thisTalentEventID =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    loadMovie("onSiteReg.swf",_level0);
    dgResults.addEventListener("cellPress",dgListener);

    Ok. I changed the code to use loadMovieNum like this:
    var dgListener:Object = new Object();
    dgListener.cellPress = function(event) {
    txtTalentEventID.text =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    _global.thisTalentEventID =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    //loadMovie("onSiteReg.swf",_level0);
    loadMovieNum("onSiteReg.swf", 2);
    dgResults.addEventListener("cellPress",dgListener);
    and now the onSiteReg comboBox works fine but now i have both
    movies on the screen at the same time and can't figure out how to
    get rid of onSiteSearch.
    Yes, I am new to this flash stuff. Have been doing CF since
    v2.0 but flash is kicking my ***!

  • Issue with site load time when exported as HTML. Addressed?

    Has the issue with website load time been addressed?
    I believe the site attempts to load the entire image content at the initial visit - meaning any galleries with numerous pictures are all included when first getting to the site. This is causing a HUGE increase in load time. I was told when I last brought it up that it was an apparent issue that needed to be addressed.
    Any type of resolution coming?
    Site for reference: www.dkrecollection.com

    Major updates of Muse are targeted to release roughly every quarter. The 1.0 release was in mid-May. The 2.0 release was in mid-August. A fundamental change to image loading would only appear as part of a major update due to the engineering and testing efforts required.
    As provided in your previous thread http://forums.adobe.com/message/4659347#4659347 the only workaround until then is to reduce the number of images in the slideshow.

  • Unable to interact with Flash content when running Firefox with restricted user

    When running Firefox with limited Windows user on Windows XP the Flash elements are displayed, the content that is set to auto-play does so even, but the flash area doesn't receive any mouse input: e.g. when I right click in the area instead of the flash context menu I get the browser context menu as if the flash plug-in wasn't even there. The exact same page on the exact same computer but with Administrator user works as expected: can press buttons, interact with flash controls and the context menu upon right-click is of course the flash one. This behavior occurs even if I disable all add-ons.

    Try uninstalling your sound card driver in Device Manager and reboot your PC.

  • API for interacting with the Content Server (formerly Stellent) repository.

    Is there any API out there that can be used to interact with the Content Server (formerly Stellent) repository? Where can I find the documentation?

    Hi Chris,
    I have downloaded CIS v8.0 to communicate with the UCM 10gR3 installed on a remote machine. I am able to search but whenever I try to checkin / checkout it throws a ClassCastException.
    I would like to know if you have any info on this. and I am working with Java.
    regards
    Ravi.

  • Can't interact with any open windows, can't interact with flash content

    I've already tried reinstalling, resetting and deleting my profile, nothing's changed.
    I can't close any Firefox window by pressing "x", or by pressing Alt+F4, I can only close it through the task manager or task bar. Minimising or going into windowed mode is also impossible.
    If a new window opens itself (e.g. A download) I can't interact with it at all - It's visible on top of the main window, but nothing I do affects it.
    I also can't interact with flash content (like pausing a youtube video)
    There is absolutely no feedback when I try. The icon doesn't change.
    I recently reset firefox, there are no add-ons, themes etc. installed, the problem persists.
    I am running Windows 7 64bit, everything else (including other browsers) appears to be working fine and a virus scan (Avast! free version) turned up nothing.
    I'd really appreciate any help!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

Maybe you are looking for