Flash button in html page

Hello,
I have created button in flash and I want that each time I
press on the button, html page will open in frame name mainFrame in
my site the problem is the html page always open in new window.
As you can see in the code attach, I have two frames in my
page one called leftFrame and the flash button is in there, and the
other is mainFrame which i want to open test.html in
any idea how to solve this?
thanks

What happens if you use the full absolute url instead of a
relative url?

Similar Messages

  • Run a function in flash when click a button on HTML page

    dear friends,
    i have loaded my swf in an html/ aspx page. when i click a button in html page, i want to pause my swf movie. Actually swf has another movie clip i want to stop that. any option pls help me. possible send me some sample coadings.. i tried with externalInterface but no result..
    or if i click a button in html page, i want to run a function existing in loaded swf....
    thanks in advance...
    Thanks and Regards,
    Syed Abdul Rahim

    Dear Mr.ned,
    Greetings! i tried to put the id also, still its not working.. any ideas? find below my codings:
    flash code:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("methodName", method );
    function method() {
        mytxt.text = "call from java script";
        trace("called from javascript");
    HTML code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>jscr_rd</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <p>
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!--
    <p align="left"></p>
    -->
      <!-- saved from url=(0013)about:internet -->
      </script>
      <script language="javascript" type="text" >
    function methodName() {
       jscr_rd.method();
       window.alert("hi.. u clicked me?");
    </script>
      <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','550','height','400','id','jscr_rd','align','middle','src','jscr_rd','quality','high',' bgcolor','#ffffff','name','jscr_rd','allowscriptaccess','sameDomain','allowfullscreen','fa lse','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','jscr_rd' ); //end AC code
    </script>
      <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="jscr_rd" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="jscr_rd.swf" />
          <param name="quality" value="high" />
          <param name="bgcolor" value="#ffffff" />   
          <embed src="jscr_rd.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="jscr_rd" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />   
      </object>
      </noscript>
    </p>
    <form name="form1" method="post" action="">
    <input name="but" type="button" value="click me" onClick="methodName()">
    </form>
    <p> </p>
    </body>
    </html>
    pls check advice me
    Thanks and Regards,
    Syed Abdul Rahim

  • How to show a MPEG4/H.264 video in Flash in an HTML page?

    Maybe my title isn't clear. I am hoping someone can shed some
    light on the h264 use in flash.
    Instead of displaying a progressive download .FLV video , I
    am trying to have an MPEG4 /h.264 approx. - a 30meg video display
    in flash in an .html page. Quicktime is easy to do, but Flash is my
    goal.
    I read several articles on h264 and flash 9, including this
    adobe
    H264 article but was hoping there might be an easier and maybe
    quicker solution. I did try renaming the .mp4 extension to .flv in
    dreamweaver but it did not display the video. (...unless it was
    downloading the video completely before displaying...not sure)
    There is a ton of sites, blogs and articles on h.264 and how
    flash 9 will display it...but when it comes to how one might
    actually have h.264 in flash on their own site...I am finding it
    difficult to figure out.
    Forgive my lack of action script and Flash knowledge...any
    direction is appreciated.
    Erick

    ...well I did follow that article on playing an h264/mpeg4
    video in flash. It works well, but how would you add playback
    controls?
    FLVPlayback component only allows you to source an FLV video
    not h264/mpeg4.
    This is probably a simple as3 answer...but I am not
    knowledgeable on as3 to know what code to add.
    Any suggests or direction that I should look would be great.
    In the meantime I am researching actionscript 3 to find and anwer.
    E.

  • Calling a function in flash on an HTML page

    Hi,
    I need help regarding how to call a flash function from an HTML page. The idea is to have a link on my page (HTML link) that once clicked displays a movieclip in flash. I know i have to use the asfunction in HTML. So far I have just created my swf file with a function called showInfo. I've embedded the flash into an HTML page. I have then added a link on the HTML page as follows:
    <a href="asfunction:showInfo">Link name</a>
    but when I click it says:
    "Firefox doesn't know how to open this address, because the protocol (asfunction) isn't associated with any program."
    is there a piece of code I need to write in flash for this to work?
    Thanks
    Eugene

    have your html link call a javascript function and use the externalinterface class in flash to communicate between javascript and actionscript.

  • Flash button to detail-page

    I made a button in. This button is part of a repeated region
    in a master-page and should "onClick" go to the detail-page.
    I don't know if it is possible to make a detail-page link to
    a flash-button in Dreamweaver? Or is there a possibility to give
    the detail-link already in Flash?
    This is the detail-link in Dreamweaver:

    Ulitasch wrote:
    > I don't know what is " FlashVars and level0 scope"?
    FlashVars is one way to pass variables to a Flash movie from
    HTML very
    similar to query strings in the URL. if you pass a var named
    foto, it
    can be accessed with: _level0.foto
    take a look at Flash help for FlashVars and levels
    > What do I have to put in: var_to_flash=<?php echo
    ...; ?>',
    > Do I replace <?php echo ...; ?> with the link to
    the detail page?
    > "../portfolio/index.php?foto=<?php echo
    $row_rsPORTFOLIO2['foto_order']; ?>"
    just the var name and its dynamic value:
    foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>
    as the path and page name seems to be static it doesn't make
    sense to
    include them in the var; put them in the Flash movie:
    getURL("../portfolio/index.php?"+_level0.foto);
    > And what do I put in the places after:
    AC_FL_RunContent('...','...','
    > Sorry, this is very new for me..
    Dreamweaver 8.0.2 generates that code when you insert a Flash
    movie and
    Code Rewriting > Active content option in Preferences is
    selected:
    AC_FL_RunContent('codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',...
    and don't worry. everybody learn new things each day!

  • Flash plays before html page is completely loaded

    A flash intro for a website's homepage starts to play before
    the html page
    elements are completely loaded and visible. The html page is
    not
    complicated so it would seem the flash is even slowing down
    the loading of
    the html and it looks bad, but not terrible. Is there a way
    to, like,
    prioritize the loading of the page elements?

    Sorry, I didn't design the HTML page but I'm sure it was
    tested in a few
    different browsers. I'm not sure if it happened on all or
    some. The sites
    already live so the designer did not think it was a problem.
    Just thought
    there may be a stacking order or something that would load
    the background
    before the Flash starts playing. Thanks for your help.

  • Can not link flash buttons to other pages

    i cant get my flash buttons to link to any pages. i keep
    getting warning messages. please can some one help

    You have to do this when you create the buttons in DW, or
    when you make them
    in Flash.
    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TEEJAY123" <[email protected]> wrote in
    message
    news:fo4scm$1oa$[email protected]..
    >i cant get my flash buttons to link to any pages. i keep
    getting warning
    >messages. please can some one help

  • Flash file in html page

    Hey guys, i made an flash swf and i want to put it in an html page and upload it. But when i go to the page i cant see nothing, here is the file:
    http://triplew.com.gr/cathedral/try.rar
    Whats wrong? I save it first to the www folder (wamp server local) and then i upload it to the site.

    thank you the problem was at the flash version problem solved

  • How to embed Flash Player into HTML page

    Hello,
    I have a question for some gurus who know very well the
    Javascript.
    Namelly what i want is to add <object> tag to the
    current html page programatically with using JAVA SCRIPT.
    As IE is more forgiving it displays the object properly but,
    in Firefox it behaves a bit different. Actually it doesn't appear
    at all in Mozilla browser. Any good sample would be great help.
    I was wondering what i am doing wrong?
    Thanks :)

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • Flash image and html pages

    I do have an SWF sequence of images in the main html page. In
    the second page I do have sections. Each section has a title of an
    image of the SWF file. The role of this section is to describe the
    image.
    I trying to whenever I click on each image of the SWF in the
    main page, I should be directed to its description in the second
    page, meaning, that the second page should be loaded and its scroll
    down bar should go down and stop where the specific section
    (describing the image I’ve just clicked on) starts.

    I do have an SWF sequence of images in the main html page. In
    the second page I do have sections. Each section has a title of an
    image of the SWF file. The role of this section is to describe the
    image.
    I trying to whenever I click on each image of the SWF in the
    main page, I should be directed to its description in the second
    page, meaning, that the second page should be loaded and its scroll
    down bar should go down and stop where the specific section
    (describing the image I’ve just clicked on) starts.

  • Flash Animation in HTML page

    I have an HTML site (unfortunately only an intranet site so I
    can't share) that has swfs used in various places. The home page of
    the site has a movie that I would like, if possible to only play
    when a user enters the site. If, during a session they leave the
    home page for another page within the site, and then come back to
    the home page, I would prefer them not to see a particular
    animation again because once they've seen it, it can be annoying to
    see it each time they come back to the home page. Is there a way,
    with javascript, to make this happen? I don't think it is anything
    I can build into the movie with flash.

    what about using cookies and two versions of the page--one
    with and one without animations? an if statement could look at the
    cookie and load accordingly, maybe.

  • Want an invisible button to html page

    the last method was a very complicated one I found at
    http://www.adobe.com/education/resources/k12/instructional/digitaldesign/pdfs/ddcg_cs3_uni t7_student_guides_a4.pdf
    I got three error messages when I did that
    here is my action script:
    import flash.events.IEventDispatcher;
    import flash.events.MouseEvent;
    this.nameit.addEventListener();
    MouseEvent.CLICK;
    not_set_yet.addEventListener(MouseEvent.CLICK,gotohtml);
    function gotohtml(event:MouseEvent) {
    navigateToURL("aboutme.html");

    ok, that gets me through making the invisible button, which I
    have been able to do successfully, but yours are good clear
    directions.
    But THEN what do I do to create a hyperlink to the url? Could
    you tell me step by step? I have tried 6 or 7 variations found in
    books or on the web, none work
    in CS3 with ActionScript 3.0
    I can't find the getURL command...have tried manually typing
    following various directions.
    and do I apply the getURLto the button hit stage or the
    keyframe on the timeline
    actually, I tried both and neither worked when I tested the
    movie.
    thanks for your help, you can see I know nothing!

  • How to synchronize two flash in an html page?

    I've placed two seperate flash on my page but i want them to
    be played at the same time. but how?
    One idea is that one of the flashes sends some data to
    another. But i don't know how to do it by actionScript.
    By defult these two are not loaded at the same time
    Happy new year

    Hello! I try input a .swf file in my homepage, but it doesn't
    work. Can anyone know what would be the problem?
    The link is:
    www.e-promo.hu
    The swf must be at the bottom of the page...

  • Linking a flash button to a html page

    Hi, I was wondering if anyone knew the best way to link a
    flash button to a page in DW?
    Thanks

    Place this actionscript into the hit area of your flash
    button, then export the flash as a .swf and place onto the
    dreamweaver page...
    on(release){
    getURL("YOUR_DESIRED_PAGE.html","_self");
    This will open the new html page in the same window. Hope
    that helps.
    You can get a cheap but awesome tutorial on Flash buttons
    here...
    http://www.cartoonsmart.com/smooth_buttons.html
    No, I don't know the guy and I don't get a commission. The
    tutorials really helped me, that's all.

  • Open all html pages in one window w/button

    I'm trying to figure out how to have all of my pages for my
    site open under one browser window instead of opening up a new
    window when each button is clicked.
    I built Flash buttons for the pages and they work fine...they
    just open up the pages in individual windows.I'm new at this and
    haven't figured out how to get the pages to open up in the main
    (index.html) browser window. I've tired doing it using in
    Dreamweaver the Add Behaviors, GoToURL selection but it doesn't
    work...
    Also, I'm not using frames within Dreamweaver....
    Here is the code for the flash button that I tried and it
    didn't work....
    The 2nd block of code is what I used to open the pages and it
    does work...
    Any help would be appreciated and well worth a cold pint when
    we meet!
    Bob Davis
    dp Davis Productions....
    =

    Strangely yes you do.
    iChat invokes the same A?V protocols from any Buddy list.
    If the person at the other end is on iChat or AIM on a PC then it will be able to Video or Audio chat to them.
    It will not be able to Video chat to MSN or Yahoo or Jabber only Buddies (those clients that can't Video chat or don't use the same protocols as iChat and AIM).
    The exception is to people on a OS X server network with the iChat server which is actually a Jabber server - but the individual users will be using the iChat Client.
    9:59 PM Thursday; November 1, 2007

Maybe you are looking for

  • Reference faces-config.xml file from java code.

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code. For example: Navigation Rule: <navigation-rule> <from-view-id>*</from-view-id> <navigation-case> <from-outcome>pricingEngine</from-ou

  • How do I get snow leopard to install on my MBA 1.1

    I seem to have lost my retail snow leopard disc (I have the box, but no disc inside) so I've been trying all my discs from other macs bought from that era with other versions of Snow Leopard (10.6.3, 10.6.6, 10.6.4, etc.).  None of these will install

  • How to Resize a picture

    hi I am using web cam acquiring image using lab view. i want to reduce the size of the picture before saving it .currently the size of the iamge is 300*200. i want to save it in smaller size becaz iwill be displaying this image on mobile and that req

  • Redwood script - NPE for duplicate(), but the job exists.

    Hi Everyone, M33.104 - build version. I'm tried the following code JobDefinition newABAPJob = jcsSession.getJobDefinitionByName("DUP_TEST"); if (newABAPJob == null) { newABAPJob = jcsSession.getJobDefinitionByName("SAP_AbapRun").duplicate(); newABAPJ

  • I need to access/pass variables'(s) of a .swf file into another .swf file.

    Hi all, I have basic knowledge of Flash and AS3.0. Suppose i have a flash swf file(main.swf). In this main.swf file, i loaded another swf file(sub.swf) by writing the following code snippet in main.swf file as shown in Attach Code: Now, how to acess