Javascript flash intercommunication.

Hi All,
I am a new to flash. Hence i am not sure how to ask these
questions. But let me try my best.
I have to actually show a banner ad after a flash movie has
been completed.
The banner ad is currently served using javascript.
Here are the questions:
1. I need to know somehow that flash movies is complete. Is
there a way i can from javascript figure out that the flash movie
has ended? I understand that i can call javascript function from
ActionScript. I don't have have control over flash code, then what
is the right way to identify the completion of flash.
2. Is it possible to detect click on the flash component and
pass control to javascript. Again without embeding any code in to
flash. That is, will the click on the flash bubble up to the HTML
container holding it?
3. Is it possible to force completion of flash movie from
javascript?
4. What is the platform support for javascript flash
intercommunication. I don't see Linux in the support list.
5. If i cannot do away without having hooks in the flash
code, please point me to best practices and other articles that's
there.
6. What the are points that has to be kept in mind while
doing this?
Currently our banner ads render fine in most browsers and in
most of the platforms. So i need the support on Major browsers and
platforms.
Any pointers or information in this regard will he very
helpful.
Thanks in advance.
Cheers,
Vijay.

Hi folks,
I haven't got any response. Did i ask something very silly or
am i asking in the wrong forum? I need information for evaluation.
Response even to any one question will be very useful. Any leads
will also be great. If what i have asked in not feasible kindly let
me know.
Cheers,
Vijay

Similar Messages

  • offtopic javascript + flash

    the evil content people are asking me evil questions which i must direct to you:
    is it possible for a flash file embedded on a page to call a javascript function?
    does flash even know about the page it is executing in?
    the problem is that certain links need to popup a div that asks the user "do you want to leave this page?". we have that fully working using javascript, but the links on the flash are not triggering our JS.
    let the flames begin!

    You need to adjust your allowscriptaccess tag, at the least.
    And it's certainly possible that we missed something. If you can
    repro after reading the following then please open a support case.
    Do read "Security changes in Flash Player 9" (
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html)

  • Javascript, Flash and Bookmarks

    We are using Captivate 8 to create our courses.  On slide 3 through 12 I have one web object per slide which brings up a web page containing a streaming video player that points at a video hosting company that we rent space on.  Our website is hosting the HTML containing the steaming video player used for each slide.
    On each of these slides (3 through 12) I have some JavaScript (upon page load) which is trying to set the suspend data and making sure that the current slide is being bookmarked.  I have tried calling the suspend data call and even the set Bookmark call and both have the same results:  Nothing happens.
    I am testing it out on a PC running Flash and am using Fiddler to watch the transactions.  Once the videos have started (starting on slide 3), I do not detect any activity to update the bookmark information going back to our LMS.
    Once the student is past all of the slides containing the video web objects, then the bookmarking seems to start working correctly again.
    It appears that Captivate is converting the slides to a Flash Movie with iframes used to display the video itself.  But it appears that while the flash movie is playing the slides with the videos, no communication goes on between the course and the LMS.
    The videos on each slide is only about 5 to 10 minute long.
    We are having more and more students who get somewhere past the 3rd video slide and then their session times out for some reason (usually inactivity) but when they attempt to restart the course, they taken back to the first video slide again.
    We are not ready to go exclusively HTML5, so I need our bookmarking to work with the Flash-version of our course.
    Any help or advice would be greatly appreciated.
    Thanks

    I have used 2 different approaches and neither one seems to work.
    The first was:
    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */
    (function(){
      var KeepItActive = {
      checkComms: function() {
      this.showConsoleLogs = 'no';
      try {
      this.currSetExitResult = SCORM2004_CallSetValue("cmi.exit", SCORM2004_SUSPEND);
      if (this.showConsoleLogs == 'yes') {
      console.log("Result is type of " + typeof this.currSetExitResult);
      console.log("Set Exit to Susspend worked =  " + this.currSetExitResult);
      if (this.currSetExitResult || this.currSetExitResult == 'true' ) {
      this.currSlideName = SCORM2004_GetBookmark();
      if (this.showConsoleLogs == 'yes') {
      console.log("Current Slide Name =  " + this.currSlideName);
      } else {
      if (this.showConsoleLogs == 'yes') {
      console.log("Set Exit to Susspend Failed");
      }  catch (err) { //otherwise assume failed.
      if (this.showConsoleLogs == 'yes') {
      console.log("The Catch of the try-catch feature was activated");
      KeepItActive.checkComms();
    The second was:
    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */
    (function(){
      var KeepItActive = {
      resetBookmarks: function() {
      try {
      var strBookmark = null;
      var callReturn = null;
      strBookmark = this.SCORM2004_GetBookmark();
      callReturn = this.SCORM2004_SetBookmark(strBookmark);
      }  catch (err) { //otherwise assume failed.
      if (this.showConsoleLogs == 'yes') {
      console.log("The Catch of the try-catch feature was activated");
      SCORM2004_GetBookmark: function () {
         SCORM2004_ClearErrorInfo();
         return SCORM2004_CallGetValue("cmi.location");
      SCORM2004_SetBookmark: function(strBookmark) {
         SCORM2004_ClearErrorInfo();
         return SCORM2004_CallSetValue("cmi.location", strBookmark);
      KeepItActive.resetBookmarks();

  • Deep mysteries of javascript/Flash

    I have a menu system which employs both Flash and a
    javascript popout. See it here:
    www.embracethefuture.org.au/test.
    Clicking an item in the flash menu calls a javascript function to
    open the relevant pop-out menu. Whent he user's mouse moves out of
    the menu area, the menu is hidden by js, then a callback is made to
    Flash to reset the appearance of the menu (the illuminated white
    arrow has to go back to yellow). It works just fine and dandy in
    Mozilla etc, and I'm pretty sure it was working in IE6, but in IE7,
    Flash cannot add the callback function. I get a javascript error
    that there is no such element as 'sidemenu'. I thought it might
    have to do with the fact that the flash content is written in by
    javascript (to avoid the need to activate controls), but the error
    still occurs when I hard code the flash.
    I'm not posting any Actionscript or Javascript because I am
    almost certain there is no fault there. I was wondering if any guru
    out there knows of this problem with Javascript callbacks in IE7
    and a solution to it.

    I solved this. The problem was that I had converted to
    ASP.NET and the flash was embedded in a server form, which created
    problems for IE. I found a workaround. Cheers.

  • Pop up Javascript + Flash

    I have a doubt in a syntax error, somebody can help me?
    The script is:
    on(release){
    getURL("javascript:void(window.open('
    http://www.flashmasters.com.br','FlashMasters',
    'width=800,height=600,top='+(window.screen.height/2-600/2)+',left='+(window.screen.width/2 -800/2)+'
    ,scrollbars=yes,toolbar=no,menubar=no,status=no,location=no,resizable=no'))");
    My e-mail: [email protected]
    thanks

    Are you attempting to use javascript to open a file?
    I just want to make sure I understand....
    If that is what you want to achieve, try this
    getURL"javascript:NewWindow=window.open('somefile.html','newWin','fullscreen=Yes');NewWind ow.focus();void(0);");
    Hope this helps
    Doug

  • Flash inserted via Javascript not working in IE.

    I am having issues viewing flash that has been inserted via
    javascript in Internet Explorer. I had to uninstall my flash about
    a week ago. I've since reinstalled flash and reinstalled flash
    player for all my browsers. All flash shows where it hasn't been
    inserted via javascript (ie. youtube.com) but javascript flash is
    not showing at all in IE. Firefox is working fine. Any help in
    resolving this issue for IE would be greatly appreciated.
    Duncan

    I'm having the same exact problem. I've uninstalled,
    reinstalled, the works. Flash works great in my alternate browser,
    Opera, but not with IE.

  • Running javascript .jsx from cs panel under Flash Pro environment?

    Hi!
    To my great surpise I found out I can run .jsx scripts from cs extension panel on Flash Pro.
    Are there any documentation on javascript flash-specific objects exists in the universe (of Adobe)?
    Thank you!

    It seems like I found the answer
    The documentation is here -
    http://help.adobe.com/en_US/flash/cs/extend/index.html
    just need to replace the fl. object to app. when using jsx

  • Invisible Flash?

    Hi guys I am trying to figure out if its possible to overlap two flash files in one html page and not have the background showing in the foremost swf? almost like a png with transparent background?
    Cheers, Oli.

    Another alternative is to use the HTML attribute, WMODE, for the <object>/<embed> tags. (In professional contexts, I use SWFObject (free JavaScript Flash Player detection lib at http://swfobject.googlecode.com) to specify any and all Flash SWF params in HTML. Set WMODE to "windowless" on the topmost SWF and its background will drop out to show anything (HTML elements, including another SWF) behind it. Beware, however, that this behavior places additional burden on the user's computer processor.
    HTH.
    -Robert
    Robert Reinhardt
    Creator, videoRx.com
    Author, Flash Bible series and Video for Adobe Flash CS4 Professional Studio Techniques
    Adobe Community Expert
    http://blogs.flashsupport.com/robert

  • Flash player not working for facebook game "resort world"

    Windows 7, 64bit
    Flash Player ver. WIN 10,1,85,3
    I'm having trouble with the specific game on facebook called "resort world", everytime i try to access it, the page just keeps refreshing itself non-stop.
    I ran the uninstaller, restarted my computer and installed a fresh copy of the flash player again and I still have the same problem. I've also checked http://www.adobe.com/software/flash/about/ and the flash works fine. Also to mention, other games on facebook do work, I have tried this game on internet explorer 32bit as well as 64bit, google chrome and mozilla firefox and they all do the same thing. I have friends with 32bit windows 7 and 64bit windows 7 and the game works just fine. Anyone can help me find a solution to this problem? Thanks

    I was playing YouTube videos for an hour last night then YT says JavaScript/Flash Player Error. So I installed the new version w/o uninstalling the old one & I'm still getting the same error (in Firefox 3). Then I went to Control Panel in Win XP Pro and uninstalled 2 items of Adobe Flash so there were none left. Rebooted. Reinstalled the new version of Flash Player & I get no improvement. I've griped at YT Help, now I'm griping here. I can see YT videos embedded in MySpace Forums. I can watch the 2 videos in my YT Video Log at full screen even but the HQ/Normal button is missing for some reason). But if I try to play any other YT video, I get the JavaScript/Flash Player error message and no video box. I can hardly navigate around my YT channel at all now. I can't do much of anything but log in, log out and look at two video log videos.

  • Flash Player not working for Youtube

    I have Windows Me (yes im very old school) and am using Internet Explorer and for some reason flash player 9.0 will not work for youtube. I was just on youtube, watching some video, listening to music and it was working perfectly fine. I clicked on another video and got a message that 'javascript might be turned off or I got a old version of flash'. I downloaded flash again and youtube still will not work. The weird thing is if I go onto different video websites, I can get videos to work, just not youtube.
    If anyone has any suggestion or things I can do to get youtube to work again, I'd appreciate it a lot. Thanks guys!

    I was playing YouTube videos for an hour last night then YT says JavaScript/Flash Player Error. So I installed the new version w/o uninstalling the old one & I'm still getting the same error (in Firefox 3). Then I went to Control Panel in Win XP Pro and uninstalled 2 items of Adobe Flash so there were none left. Rebooted. Reinstalled the new version of Flash Player & I get no improvement. I've griped at YT Help, now I'm griping here. I can see YT videos embedded in MySpace Forums. I can watch the 2 videos in my YT Video Log at full screen even but the HQ/Normal button is missing for some reason). But if I try to play any other YT video, I get the JavaScript/Flash Player error message and no video box. I can hardly navigate around my YT channel at all now. I can't do much of anything but log in, log out and look at two video log videos.

  • Workaround for Flash Player 10 crash bug

    My company develops Flash based e-learning modules, we've
    been building modules based on our current codebase for a few years
    now without problem. In our most recent project we've run into a
    new bug where the Flash Player completely stalls the browser - this
    has happened to 8 out of 20 users in our trial - seems to be
    specific to WinXP / IE6 / FP10. It happens at different points
    within the module.
    So far we have been unable to reproduce this on any of the
    computers in our office - I've have tried IE6, FP10.0.12.36 and
    FP10.0.22.87. I've even tried testing with a debugging proxy and
    throttled the connection down to 56kb.
    Our code is using the Javascript Flash gateway, the original
    Macromedia code which communicates via GetUrl and LocalConnection.
    I have a hunch that the bug could be triggered during
    communications.
    Does anyone here know about any bugs in FP10 that could be
    triggering this - and more importantly does anyone know of any
    workarounds that I could use to solve the problem. Downgrading the
    Flash Player version at the client's site is unfortunately is not
    an option.
    Advice appreciated,
    Greg.

    We're using the Macromedia Flash Javascript Gateway - we've
    been using it for years without problem.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1429543&fo rumid=15
    Is there a new way to do two-way communication between flash
    and javascript?

  • Can I bundle flash player with a free downlodable gaming service that requires flash? Or can I download it for the user without making users to step out  from my product to a completely different flow?

    We have a free downloadable gaming service that requires flash player in order to operate properly.
    I am trying to figure our how can I make users who don't have flash to download it, but I don't want these users to leave my service and start a different download flow in a different website (adobe's) .
    I thought about several different options but don't know what would be considered legal or legit:
    1. download flash along with my product- this means I will have to add another offer screen to my installation? if so, it will damage my conversion.
    2. downloading flash for the user without consent- probably will result with AV alerts
    3. open an iframe for users who don't have flash where I'll ask users to download flash--> that still will redirect users to adobe website to complete the process, which will damage my usage...
    any comments on the above or additional ideas?
    Thanks
    Tom

    Unfortunately, I don't think that our license currently grants the rights that you're looking for.  We do allow for the inclusion of original installers on physical media to address the situation of installation where an Internet connection is not guaranteed to be available; however, the Adobe download center serves an important role in the cost-recovery efforts for the continued development, maintenance and distribution of Flash Player, which is a tremendously expensive undertaking. I think it's unlikely that we would agree to allow the inclusion of Flash Player installers in scenarios where the host installer requires an internet connection.
    Here is a brief summary of the rights granted by this license:
    Licensee is permitted to distribute Adobe Web Players to multiple clients in a closed intranet environment.
    Licensee is permitted to distribute Adobe Web Players to multiple end-users by including the Player installers on CDs, DVDs or other physical media.
    Usage of Adobe Web Players is only permitted for supported platforms; usage rights on non-PC devices or embedded systems are not granted by this license.
    Licensee must use the installers as-is without modification.
    Licensees, at their discretion, are entitled to display the Flash Enabled and/or Shockwave logos on products or intranet sites according to the Style Guide.
    On the plus side, you don't have to worry about serving your users outdated or vulnerable Flash Player versions, and keeping those embedded copies constantly updated would be a lot of overhead.
    Chrome and Internet Explorer on Win8+ always have Flash Player built-in, so those users are generally going to be in good shape (and you shouldn't redirect them to the download anyway, because we'll just give them a message about it already being installed).  IE11 eliminates JavaScript support for conditional comments and various other methods for fingerprinting and targeting IE with IE-specific logic, so you'll want to pay attention to that experience, particularly on Win8+ (i.e. your detection logic might need to be tweaked on this config, if it's depending on isMSIE to do the correct thing... there is a lot of busted Flash detection in the world on this target at the moment...)
    For NPAPI browsers (Safari, Firefox), users are going to have to close the browser to complete the install process, so I don't think that offering the download in an iframe is going to buy you much, and would probably make it more difficult to complete the installation steps, ultimately doing more harm than good. 
    In the case of Safari, the installer re-launches Safari at the end of the installation process, and it does so without reopening all of the previously opened tabs.  I'm hoping that we won't have to live with that issue much longer, but I want to be transparent about the impact to your user experience.  Safari users are going to lose the tab with your site in it during the installation process no matter what. 
    There's also an install mechanism called Express Install, which you can invoke automatically when you detect that Flash Player is not installed, or is below the version that you require.  Off the top of my head, I don't know exactly what happens in every possible install scenario (patch update vs. feature update, by OS and browser).  I think some configs require you to restart and others like IE on Windows don't.  It's all dictated by browser limitations, which are constantly moving targets. 
    In short, we recommend that everyone use SWFObject2 for detecting Flash from JavaScript, and they make it pretty easy to invoke upgrades via ExpressInstall.
    SWFObject: Javascript Flash Player detection and embed script | deconcept

  • Please help with a tutorial on Abode Flash

    Have been using abode photoshop for years. Downloaded flash each time it tells me to upgrade, but never used it. would dearly love to use it in my new website.
    Can someone tell me how to access it on my computer. I dont have an icon of flash that specifically says Flash, unlike photoshop and reader. Although it see that is installed on the computer, how to access it.
    Obviously I am not not savy, but would love help.
    Many thanks
    Debby

    Hi Debby and Tony,
    Are you referring to Adobe Flash Pro or Adobe Flash Player?
    Adobe Flash is a multimedia and software platform used for authoring of vector graphics, animation, games and rich Internet applications (RIAs) that can be viewed, played and executed in Adobe Flash Player. Flash is frequently used to add streamed video or audio players, advertisement and interactive multimedia content to web pages.
    Flash manipulates vector and raster graphics to provide animation of text, drawings, and still images. It allows bidirectional streaming of audio and video, and it can capture user input via mouse, keyboard, microphone and camera. Flash applications and animations can be programmed using the object-oriented language called ActionScript. Adobe Flash Professional is the most popular and user-friendly authoring tool for creating the Flash content, which also allows automation via the JavaScript Flash language (JSFL).
    You can download the trial version of Adobe Flash Pro from : https://creative.adobe.com/products/flash
    Tutorials
    http://www.adobe.com/accessibility/products/flash/tutorial.html
    http://tv.adobe.com/videos/flash-tutorial/
    Adobe Flash Player is the standard for delivering high-impact, rich Web content. Designs, animation, and application user interfaces are deployed immediately across all browsers and platforms, attracting and engaging users with a rich Web experience
    Flash Player is a free software and you can fownload it from http://get.adobe.com/flashplayer

  • Passing variables to Javascript

    Does anyone know how to pass a variable to javascript in As2? Thank you!

    Javascript / Flash Communication
    Here's a link that provides some information on that...
    http://kb2.adobe.com/cps/156/tn_15683.html

  • Should I learn flash?

    I'm in the first year of my degree and don't really have to spend much time studying because I've done most of it before. We learn the basics of HTML, CSS, Javascript, Flash, Photoshop etc but it's not specific enough to get a decent job with.
    I want to focus my attention (and money) on learning one main thing and mastering it but aren't sure which to go for. I like using flash and love all of it's capabilites but also realise how important it could be to maybe master photoshop and look at digital art type stuff.
    Or maybe learn CSS or something like that.
    I want to maybe go in to website design, but am also interested in many other things. I mean, even if I do go in to web design, should I learn flash or should I focus my attention on photoshop and HTML?
    I'm not really an arty type, I don't want to just be a programmer I want to at least do some design.
    I want to look at how easy things are to learn, how fun it would be, if it would be useful in a few years and also the demand for it.
    Thoughts?
    Cheers!!

    It really depends on what you want to do mainly when you start your career.
    Personally, I wanted to learn everything to be as valuable as possible in not only a corporate setting, but also personal projects.
    I attended Art Institute for Web Development and took classes on all the most popular platforms and applications. The list includes...
    XHTML/CSS
    Photoshop
    Flash
    Dreamweaver
    AS 3.0
    PHP/MySQL
    On top of that, we learned about things like Color Theory, Design Theory and other Web Dev concepts.
    In the grand scheme of things though, what I learned in school is only a fraction of what I've learned once I graduated and started working. I continue to learn things everyday, it is pretty much endless.
    So getting to your question about Flash...
    I think it is a valuable skill set to have. I wouldn't stop at Flash though. You still need basic knowledge, if not, advanced knowledge of XHTML/CSS and PHP/MySQL because your Flash projects will most likely require those technologies to implement in real world applications.
    It's a crazy journey to say the least and every day, things get crazier with technology evolving so quickly.
    The topics I outlined above are things you want to have a strong foundation in.
    From there you can really focus on what type of work you want to do. I pretty much do a little bit of everything but like you are wondering, it does limit how far you can master one particular thing. But with time, I believe you can master most if not all of the topics.
    Hope that helps.
    Dey

Maybe you are looking for

  • Update Acrobat 9 Pro in Yosemite

    Can Adobe Acrobat Pro 9 be updated in OS 10.10.2?

  • How do I restore "Weather" app?

    I accidentally deleted my "Weather" app (the one that's included with every new iPod Touch). I thought "no problem," the app will still be on my Mac, so I can restore it from there. Wrong! I didn't find it there either. In fact, I don't find other "o

  • Create additional Notes

    Hi, I want to add new additional notes to Activities - Appointments - Overview section similar to existing Notes. I have created Appointment XBO and added following code. [Label("Sales Call Objective")] element SalesCallObj : LANGUAGEINDEPENDENT_EXTE

  • Problems with BYOD onboarding with ISE 1.3 Internal CA

    This implementation is leveraging the ISE 1.3 internal CA to enroll certs to authenticated BYOD users. The authentication/authorization profiles and policies are configured for wireless supplicant provisioning for AD authenticated IOS and Android dev

  • Music Skips when playing an album in iPhoto

    FROM A PREVIOUS POSTED THAT WENT UNANSWERED: I am using iPhoto 08 to do some slideshows...for a while now, the music keeps skipping! And this is getting on my nerve really...can anybody help me out? I don't think it's the RAM (Just upgraded to 2GIG D