How to set src attribute of embed tag to a swf in resource ?

Hi all,
I'm working on a C++ project that uses Internet Explorer engine (through Microsoft Web Browser component) to render HTML pages.
All HTML and images files are in the project resource, and the final artifact is a standalone*.exe.
I have an embed tag like this to add the *.swf
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width="314" height="64" id='player1' name='player1'>
   <param name='movie' value="res://appName.exe\res\torreVermelha.swf">
   <param name='allowfullscreen' value='true'>
   <param name='allowscriptaccess' value='always'>  
   <embed id='player1'
          name='player1'
          src='res://appName.exe\res\torreVermelha.swf'
          width="314" height="64"
          allowscriptaccess='always'
          allowfullscreen='false'/>
</object>
The file torreVermelha.swf is also inside the resource, but I can't access it from HTML.
So, how can I embed a *.swf from resource?

Obviously because I've misplaced it.
My bad.

Similar Messages

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • How to set two attributes as  a primary key in database ?

    how to set two attributes as a primary key?
    Take COffeesbreak as an example ,
    let's suppose that there are cof_name ,sup_id,price and so on;
    the same cof_name may be suplied by more sup_ids,
    and one sup_id may suply more cof_names.
    so the Primary key should be set the cof_name and sup_id ,
    how to set ?
    (of course that i konw if I set a cof_id,the problem will be easy work out
    but now there are those like above)
    I set that as following:
    create table coffees (cof_name VARCHAR(32) PRIMARY KEY,sup_id INTEGER, PRIMARY KEY,PRICE INTEGER )
    THE database print error :cant add more primary keys!
    thanks in advance

    You can only use the PRIMARY KEY declaration on a column if it is the only Primary Key column.
    Use the PRIMARY KEY constraint statement instead.
    create table coffees (
      cof_name VARCHAR(32),
      sup_id INTEGER,  
      PRICE INTEGER,
      PRIMARY KEY ( cof_name ,sup_id )
    )Dave

  • How to set an attribute while creating an XML?

    Hi All,
    I am required to create an XML in the following manner :
    here  <ITEMS ITEMCOUNT="2"> where ITEM is an element and itemcount=2 is the attribute which means their are 2 line items
    - <HEADER>
      <PR_NO>sap pr no</PR_NO>
      <REVISION_NO>0</REVISION_NO>
       </HEADER>
    - <ITEMS ITEMCOUNT="2">
    - <ITEM>
      <PR_LINE_NO>1</PR_LINE_NO>
      <ITEM_DESCRIPTION>Security Locks</ITEM_DESCRIPTION>
      </LOCATIONS>
      </ITEM>
    </items>
    Please suggest how to set the attribute ITEMCOUNT?
    Thanks,
    Lina

    I am also trying to do something similar to this.  I tried the suggestion given but it still only allows 1 parameter.  A snippet of my .icd file is below.
    Attribute (ROI Settings) {
    Value (Integer) {
    Min (0)
    Max (79)
    Increment (1)
    Display {
    Multiplier (8.000000)
    Offset (0.000000)
    Precision (0)
    Units (Pixel)
    Default (0, 0, 0, 0)
    Current (0, 0, 0, 0)
    Action (Serial) {
    Command (ROI %d, %d, %d, %d\r)
    Response ()
    Timeout (1000)
    Delay (100)
    Any answer or help is appreciated.
    Thanks,
    Bruce

  • How to set session attributes in a bean?

    How do I set a session attribute in a server-side bean?
    I'm not sure if I asked the question the right way. What I meant is, while it's easy to set session attributes in a JSP page (session.setAttribute("sessionname", "sessionvalue")), I'd want to set such an attribute within a server-side bean defined in this web application. But what is the syntax for doing it?

    Here a simple bean that stores something in the session and retrieves something from it.
    import javax.servlet.http.HttpSession;
    public class TestBean {
      private String value;
      public void doSomething(HttpSession session, int a, int b) {
        if (a+b > 0) {
          session.setAttribute("ab",Boolean.TRUE);
        } else {
          session.setAttribute("ab",Boolean.FALSE);
      public void init(HttpSession session) {
        if (session != null) {
          Boolean b = (Boolean)session.getAttribute("ab");
          if (b == Boolean.TRUE) {
            value = "a + b is greater than zero";
          } else {
            value = "a + b is not greater than zero";
        } else {
          value = "no session";
      public String getValue() {
        return value;
    }In your JSP, use something along the lines of :
    <%
      TestBean bean = new TestBean();
      bean.init(session);
      bean.doSomething(session,1,2);
    %>If your bean only lives during one request, you can pass the session to the constructor, which stores it in a private variable. This saves passing the session each time.
    Hope this helps,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to set a attribute value of a sub node binded to a table.. pls respond.

    Hi friends,
    I have context defined like this.
         Head_node ( table 1)
              Item_node ( table 2, sub node ).  ( now this im saving in global internal table).
    so now when i hit save button, im passing my internal table (it has col1- sales order no, col2 item details(table type, which can have more than one record) to a FM, to create sales order.
    My sales order is getting saved.
    But the function module will return some new values (like sales order number, item number etc).
    Now i want these values to be updated in my context.
    Meaning whenever after that i do get_attribute, i should get these new (sales order no, item no ) also.
    I dont know how to set the context values of sub nodes , so im missing these values.
    kindly respond back to me..
    thanks in advance,
    Niraja

    Its very simple.
    Follow these steps. e.g you want to get the new sales order number. Define a attribute in ur node (or set of attributes in ur case as per reqruirement) say new_so_number.
    Check your FM, if its returning new_so_number then it's fine, otherwise you have to change the FM to return the new_so_number or you have to get from db table somehow, which best suites your req.
    So once you have new_so_number after calling the FM, say in lv_new_so_number field. Then write this code to set the attribute (change the variables as per your context attributes)
    DATA lo_nd_head TYPE REF TO if_wd_context_node.
      DATA lo_el_head TYPE REF TO if_wd_context_element.
      DATA ls_head TYPE wd_this->element_head.
      DATA lv_new_so_number LIKE ls_head-new_so_number.
    * navigate from <CONTEXT> to <HEAD> via lead selection
      lo_nd_head = wd_context->get_child_node( name = wd_this->wdctx_head ).
    * get element via lead selection
      lo_el_head = lo_nd_head->get_element(  ).
    lv_new_so_number = new_so_number. " (You got this as a exporting parameter of FM etc..)
    * get single attribute
      lo_el_head->set_attribute(
        EXPORTING
          name =  `NEW_SO_NUMBER`
          value = lv_new_so_number ).
    Hope it works.

  • How to add src, alt and title tags to a PS generated Web Photo Gallery

    I do some web design and need to add some tags to a web photo gallery created by Photoshop. Maybe this question should be directed to the GoLive / Dreamweaver Forum but since the gallery was created in PS I thought I'd start here.
    I need to add src, alt and title tags to the images in the web gallery. Normally this is as simple as working on the code in the html page in which the image sits but the PS gallery doesn't seem to be that simple.
    Can anyone tell me exactly how, and which files I need to work on, to add these tags to each of my 42 gallery images?
    Thanks.
    John.

    You can't do it in Photoshop.
    You can open the pages in a text editor adn easily ad any tags you want. They are simply html pages.
    If you really want to, you can use Dreamweaver or Golive. Using a text editor is generally faster and easier because you can just copy/paste between the files and not have to worry about code rewriting in the WYSIWYG applications. Don't believe the GoLive/Dreamweaver hype about "round trip code" they both will alter code.

  • How to set block attributes in oracle forms 6i

    Dear gents,
    I have two blocks on one canvas, How can I set different attributes (say different colors) for each record separately given a certain condition in a multi record block.?
    Looking forward hearing from you.
    Many thanks,
    Steve

    Hi,
    You can use SET_ITEM_INSTANCE property.
    Regards,
    Chris.

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • How to set the attributes of request in JSF Programming

    Hi All,
    for setting the attribute values for session, we do something like below.
    setValue("#{sessionScope.PREFERED_TOTALDAYS}",request.getParameter("txtDays")!=null?request.getParameter("txtDays"): ""+jobRowSet.getInt("PREFERED_TOTALDAYS"));
    Now my query is for setting the attribute values of request what is the code I need to use??
    thanks,
    sudhakar

    Just replace "sessionScope" with "requestScope". That will set the attribute request scope.
    Regards
    -Jayashri
    Creator team.

  • How to use cm_nodeName attribute of search tag in content queries ?

    hello,
    i want to know about cm_nodeName,cm_path attributes of search tag.Actually i want to directly reterieve concerned node,so that content should be directly reterieved from that node and it should not search into all the present nodes in repository,to improve performence.
    Problem is that above mentioned tags are not working.
    Peply as soon as possible

    You could always write your own authenticator (i do not know if you can configure BEA directly)

  • How to parse an attributes of a tag like HPF index = "4"

    Sorry I am very new to XML parser and I have to parse a document that look like this
      <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <FideLice>
    - <Channel index="0">
      <BigKnob>0</BigKnob>
      <SmallKnob>0</SmallKnob>
      <FEV>0</FEV>
      <Phase>0</Phase>
    - <HPF>
      <hpf index="0">0</hpf>
      <hpf index="1">0</hpf>
      <hpf index="2">0</hpf>
      <hpf index="3">0</hpf>
      </HPF>
    - <SILK>
      <silk index="0">0</silk>
      <silk index="1">0</silk>
      <silk index="2">0</silk>
      <silk index="3">0</silk>
      </SILK>
      </Channel>
    - <Channel index="1">
      <BigKnob>0</BigKnob>
      <SmallKnob>0</SmallKnob>
      <FEV>0</FEV>
      <Phase>0</Phase>
    - <HPF>
      <hpf index="0">0</hpf>
      <hpf index="1">0</hpf>
      <hpf index="2">0</hpf>
      <hpf index="3">0</hpf>
      </HPF>
    - <SILK>
      <silk index="0">0</silk>
      <silk index="1">0</silk>
      <silk index="2">0</silk>
      <silk index="3">0</silk>
      </SILK>
      </Channel>
    </FideLice>I look at SAX parser and I dont see where I can parse out the attribute of the tag, in this case is to determine which index of <Channel> am I looking at

    hi there,
    you can override the following method:
    @Override
    public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
    you can use "atts" to access attributes!!!

  • How to set field attributes type such as enumeration / boolean / text in Search UIBB when creating search creatria dynamically using default_config?

    Hi Experts !
    I am trying to build search UIBB where I need to configure the search criteria dynamically in the IF_FPM_GUIBB_SEARCH~GET_DEFAULT_CONFIG method.
    Please can anyone tell me is it possible to set the attribute types in dynamic configuration .... because I need to create a drop down field in the selection screen.
    Thanks !

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • How to set an attribute of a HTML tag with a value in the Servlet

    I have a HTML page and a Servlet.
    The HTML page sends a request to the Servlet.
    The Servlet has to read the contents of the HTML page. When the Servlet encounters the body tag it should set the bgcolor attribute of the body tag with a string(For eg.a string called color with a value blue) in the servlet.
    After doing this the Servlet has to update the original HTML page with the changes (in the body tag).
    I need a help on this.

    Hi sangee,
    you could get what you want to do by using a Java Server Page instead of both a HTML page and a Servlet.
    I should code something like this:
    <%Strung color="yourColor"%>
    <html><head><title></title></head>
    <body bgcolor="<%=color%>
    </body>
    </html>

  • How to set column attributes in table control?

    I have the following requirement to build a table by using table control:
    if content of col 1 = 'Y', enable input for col 2 for that line only.
    if content of col 1 = 'N', disable input for col 2 for that line only.
    So the input attribute for col 2 in each line can be different.
    How can I achieve this?
    I have tried using loop at screen or loop at tablecontrol-cols into wa_cols statements,
    but these will change the entire column attributes to either on or off, and not on individual line.
    Instead of changing the COLUMN attributes, I think I should change the CELL attributes. 
    What is the syntax for that, is there something like tablecontrol-field?
    Thanks for any help in advance.

    I still not able to get the field attributes set on individual lines.
    These are my codes, can you help again.
    PROCESS BEFORE OUTPUT.
      MODULE pbo_0200.
      MODULE zitem_change_tc_attr.
      LOOP AT   lt_asset_item
           INTO ls_asset_item
           WITH CONTROL zitem
           CURSOR zitem-current_line.
        MODULE ZITEM_CHANGE_FIELD_ATTR.
        MODULE zitem_get_lines.
      ENDLOOP.
    MODULE zitem_change_field_attr OUTPUT.
    loop at screen.
      if ls_asset_item-replace_asset = 'X'.
         if screen-group1 EQ 'FR4'.        "these are the columns I want to turn input ON or OFF.
          screen-input = '1'.
          modify screen.
         endif.
      endif.
    endloop.
    Endmodule.
    At debug mode, the screen-input did change to '1'.  Can I check the return code of the MODIFY SCREEN statement?
    I tried to initialize the colums to be output only at screen definition, but it still doesn't help.
    I don't think I have to do anything at the PAI event.
    PROCESS AFTER INPUT.
    MODULE save_cursor_position.
      LOOP AT lt_asset_item.
       FIELD ls_asset_item-replace_asset
         MODULE get_replace_asset ON REQUEST.
        CHAIN.
         FIELD LS_ASSET_ITEM-REPLACE_ASSET.
         FIELD ls_asset_item-replace_cost.
          MODULE zitem_modify ON CHAIN-REQUEST.
        ENDCHAIN.
        FIELD ls_asset_item-mark
          MODULE zitem_mark ON REQUEST.
      ENDLOOP.
      MODULE zitem_user_command.
    Thanks again.

Maybe you are looking for