Same swf file, different database content displayed

I have built a Flash file that displays database content. I
would like to use the exact same Flash swf file on different HTML
pages, but display different content from my database connection.
How does one basically go about achieving this (I don't like cookie
solutions)?
My database has a column called zones. I would like one copy
of my swf to grab content for zone_1 and another copy of the swf to
grab content from zone_2. I am sure others have encountered this
design challenge and I am wondering how to go about it, and at the
same time, only have one .swf file displaying the appropriate (or
"set") zone data.

OK... Got it to work. But only if I let Flash publish the
html page and then I added the object and embed FlashVar tags, in
this format:
OBJECT
<param name="FlashVars" value="myURL=Welcome">
EMBED
FlashVars="myURL=Welcome"
Don't be sloppy with this one.....
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="420" height="520" id="roses_current" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="roses_current.swf"
/><param name="FlashVars" value="myURL=Welcome"><param
name="quality" value="high" /><param name="bgcolor"
value="#ffffff" /><embed src="roses_current.swf"
FlashVars="myURL=Welcome" quality="high" bgcolor="#ffffff"
width="420" height="520" name="roses_current" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>

Similar Messages

  • Does the Flash 8 and Flash Lite 2.0 has the same SWF file format?

    Flash Lite 2.0 is based on the Flash Player 7 and supports
    most of the features in that version of Flash Player, also, the
    Flash Lite 2.0 provides serval features not avaliable in Flash
    Player 7.
    My Question:
    I've download the File Format Specification of Macromedia
    Flash (SWF) and Flash Video (FLV) Version 8 from Adobe web site,
    but, I don't know whether the Flash Lite 2.0 has the same SWF file
    format?
    If the SWF file format is different, where can I get the file
    format for Flash Lite 2.0?
    Thanks in advance.
    Sandy.

    > Flash Lite 2.0 is based on the Flash Player 7 and
    supports most of the
    > features
    > in that version of Flash Player, also, the Flash Lite
    2.0 provides serval
    > features not avaliable in Flash Player 7.
    >
    >
    My Question:
    > I've download the File Format Specification of
    Macromedia Flash (SWF) and
    > Flash Video (FLV) Version 8 from Adobe web site, but, I
    don't know whether
    > the
    > Flash Lite 2.0 has the same SWF file format?
    > If the SWF file format is different, where can I get the
    file format for
    > Flash
    > Lite 2.0?
    Yes .. it is a little different .. got some extras and has
    some
    restrictions. But there is a lot that is the same.
    There is a separate section on mobile devices (in the Adobe
    site where you
    can get info on the format (or at least, there was for flash
    lite 1.x)

  • Embed same SWF file multiple times in Flash file

    I want to include the same SWF file multiple times in the same flash file. I have a plain box that is clear, that becomes visible when clicked. I want to create a grid of them (about 50+). If I copy the layers and actions, they interfere with each other so I want to embed multiple SWF files into one file and then save it to embed in an interactive PDF. If I save one square and embed it into the PDF multiple times, the file becomes too big to work. How can I embed interactive SWF files over and over into 1 SWF file? I don't have a ton of knowledge with Flash....

    you edit your html file to embed multiple copies of your swf.
    it's generally easier to control the layout if you use swfobject (but you can just copy the code published by flash pro) to embed the swf.

  • Font in SWF file different once inserted and previewed in Captivate 5

    I have inserted a SWF File as an animation into my captivate 5 movie. When I view the SWF file independently, thus, outside of Captivate, the font looks exactly as it should: in Arial. However, once I have inserted the SWF file into Captivate and preview the Animation, the font changes to something which looks like Times New Roman.
    A colleague tested the file on her computer also and experienced the same issue.
    Does anyone have an idea what could solve this? Does a setting need to be changed in Flash or in Captivate?
    Thank you so much!!

    OK.  Changing to a different font to test is a good strategy.  Stick with a standard Windows font, e.g. Verdana.
    There have been some issues with fonts getting corrupted that were reported several months ago when Cp5 first came out.  Caused some wierd behaviour including preventing Cp from opening at all: http://forums.adobe.com/message/3441458#3441458
    Hope yours turns out to be something much simpler.

  • Bug: showing data in tables with same name, 2 different databases

    Hi,
    two connections, to databases "a" & "b". Both logged into the same schema, "s".
    If you select table "t" in db "a" and then select the same table in db "b", the tab is not refreshed - you have to either select a different object first, or explicitly hit refresh.
    regards,
    William

    I can reproduce this consistently on 9.2.0.1.
    You need to have connections to the same schema in two different databases and the schemas must have the same table.
    1 Open connection in schema 1
    2 Select the table in the Tables node
    3 Select the Data tab
    4 Open connection to schema 2
    5 Select the table in the Tables node (without going to any other tabs or objects)
    What should happen is the details of the second table should occupy the main display tab and the data tab should be refreshed to show the data of the new table.
    What actually happens is the main display tab apparently switches to the table in the new connection as shown by the tooltip (table@connection_name), but the data in the data tab stays the same. Refresh doesn't seem to work, only switching to a different object and back again.
    The columns tab does seem to refresh properly.

  • How to load and unload same SWF with different xmlFilePath?

    I have a slideshow on my homepage and try to load and unload same instance with different xmlFilePath based on language on the same page.
    var flashvars = {
            xmlFilePath: escape("http://www.bodto.com.tr/kik.aspx"),
            xmlFileType: "OPML",
            lang: swfobject.getQueryParamValue("lang")    
            //initialURL: escape(document.location)   
          var params = {
            bgcolor: "#000000",  
            allowfullscreen: "true",
            wmode:"transparent",
            allowScriptAccess: "always"
          var attributes = {}
              swfobject.embedSWF("/swf/slideshowpro.swf", "flashcontent", "550", "400", "10.0.0", false, flashvars, params, attributes);
    Actionscript3
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Based on above informations, how could I achieve it?

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

  • SWF file different from internal movie testing

    ok i made a basic website in flash when i test the movie
    while my file is open everything works fine, no errors pop up or
    anything, but when i go to drag the swf file into a web browser,
    random movie clips as well as all of my buttons are missing and the
    code dosent work like it should, I have absolutely no idea why my
    file works in one place and not another so if anyone can give me
    any feed back at all id appreciate it

    I would recommend trying different browsers if you haven't
    already. I am working through a similar issue with a dynamic Flash
    menu and it is veryyyyy different in IE then in Firefox. Also, if
    you have a test site we could look at that might get you more help
    too.

  • Can keyboardEvent and mouseEvent work in the same .swf file?

    I'm nowhere near an expert on Flash or action script, so this is probably a simple thing to solve. But so far I haven't figured it out.
    I put together a rather simple interactive .swf file using graphical "buttons" to navigate through different screens. Afterwards, I was told to add in two keyboard events as well: one to navigate to the next screen and one to restart the .swf file.
    Using the keyboard to navigate the way I explained above works fine--that is, until I use the mouse to click on a button. Once I do that, the keyboard events no longer work. For example, if I start off the .swf file by pressing the Space bar on the keyboard to navigate to another page, it works fine. If I then press the "R" key on the keyboard to restart the .swf file, that works fine as well.
    However, the first time I click on one of the buttons on the stage to navigate to another screen, the keyboard events no longer work. I can press the Space bar, and nothing. I can press the "R" key to restart the .swf file, and nothing. It's as if using a mouse event disabled the keyboard events or made the .swf file stop "listening" for keyboard events. The only way I can get the keyboard events to work again is by clicking somewhere on the stage and THEN pressing the appropriate keyboard key. I'm guessing that's because I put the focus back on the stage, maybe?? (again, not an expert here)
    My code is ridiculously simple, and it's on the first frame:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    Is there anything I need to do to this to make sure the .swf file is always "listening" and registering the keyboard events?
    Thanks..

    use:
    trace("defined");
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey);
    function onKey(event:KeyboardEvent):void
    trace(event);
        if (event.keyCode == Keyboard.SPACE)
            gotoAndPlay(currentFrame + 1);
         if (event.keyCode == 82)
            gotoAndPlay(1);
    test by clicking one of your buttons and watching the output panel for "defined".  if you don't see that, you're not defining a keyboard listener when that button is clicked.  if you do see it, then click a keyboard key.  (if you're testing in the flash test environment make sure you disable keyboard shortcuts.)   if you fail to see the keyboardevent trace, you're removing or disabling your listener after it's defined.

  • Help swf file different from internal movie testing

    ok i made a simple website and when i test it while the file
    is open it works fine but when i drag the swf file into a web
    browser random movie clips are missing, my buttons are gone and the
    code dosent work right, Im totally clueless as to how to fix this
    since it works fine and with no errors in my flash file so if
    anyone has any idea what i should do that would really help cuz im
    outta ideas

    "Laur56" <[email protected]> wrote in
    message news:e4g5hf$btf$[email protected]..
    > ok i made a simple website and when i test it while the
    file is open it works
    > fine but when i drag the swf file into a web browser
    random movie clips are
    > missing, my buttons are gone and the code dosent work
    right, Im totally
    > clueless as to how to fix this since it works fine and
    with no errors in my
    > flash file so if anyone has any idea what i should do
    that would really help
    > cuz im outta ideas
    Check for publish version not matching the player. If
    publishing for player 8, make sure your browser has that version of
    the
    player.
    tralfaz

  • Running the same application in different database table- giving error:

    Hi All,
    I m new to JSF, spring and Hibernate web application. I have done a web project using JSF, Hibernate and Spring. We have to maintain the Data records which is stored in mysql db. Now there are different table is there such as example Employee Details and Company Details. So we created two seperate application o tomacat, For both Application we use same functionality except the JSP FILE Name and table name (Which is changed according to Application).
    In the employee.hbm.xml
    I changed the table name according to application. Two table (Company Details & Employee Details)...
    Now while running the application on the tomcat server, only one application is running at a time. if we start running the Employee Application, then Company Application is giving the below error,
    Error in Log:
    The resourse is already in used/busy.
    Interesting thing is only one Application is running at a time and other is in stop status.
    Could you please help us, how to overcome the error,
    Is it not possible to run both the application on different browsers.
    In logs the below error is showing:
    java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
    Could you please give some idea to sort out the below issue.
    Thanks in advance.

    Yes, I've changed the DynamicJDBCBindingFilter Class in this way:
    method doFiletr
    String usrName = request.getParameter(USERNAME_PARAM);
    String pswd = request.getParameter(PASSWORD_PARAM);
    String URL = request.getParameter(URL_PARAM);
    session.setAttribute(Configuration.DB_USERNAME_PROPERTY, usrName);
    session.setAttribute(Configuration.DB_PASSWORD_PROPERTY, pswd);
    session.setAttribute(Configuration.DB_CONNECT_STRING_PROPERTY,URL);//
    This is for retrieve the JDBC URL from the login page
    Then i've modified the DynamicJDBCEnvInfoProvider to accept this new parameter
    if(mJDBCURL!=null)
    ((Hashtable) connEnvironment).put(Configuration.DB_CONNECT_STRING_PROPERTY,mJDBCURL);
    Finally i modifed the DynamicJDBCSessionCookieFactory
    tho put this new parameter in DynamicJDBCEnvInfoProvider class
    EnvInfoProvider provider = new DynamicJDBCEnvInfoProvider(
    (String)session.getAttribute(Configuration.DB_USERNAME_PROPERTY),
    (String)session.getAttribute(Configuration.DB_PASSWORD_PROPERTY),
    (String)session.getAttribute[b](Configuration.DB_CONNECT_STRING_PROPERTY));
    cookie.setEnvInfoProvider(provider);
    But when I test the application it doesn't works.
    With the correct parameter the login fails.
    I'm not using a DB on my local machine, but one on another machine which has not the Dept table.
    thanks for help

  • Need to run the same query on different databases with the same argument

    Hi folks,
    I've a script: obj, which has simple stuff, when I execute @obj
    this asked me for the object_name
    and in return gives me object/s if it exists in this (connected) db.
    Now to check in 2 other dbs, I've to disconnect from here and then connect to those dbs and run the same @obj there and give the same argument, e.g., EMP and it'll return the answer.
    What is desired ... if not very hard on you :-(
    Some thing like @objAll
    asked only once object_name ... e.g., I gave EMP
    now go to all the 3 dbs and give me the result in ONE spool file only.
    What do you think, is this tough, I did something, but it was not involved connecting to different dbs, within the same script, but here we cannot create db links and have to disconnect and connect to the db to get some information.
    Please do reply, if my question is not understandable or any ...
    Thanks in advance.
    Best regards.
    Edited by: user8604530 on Jun 27, 2012 1:51 PM

    As far as i understand from your question : you cannot create db links ? right..
    well another option is to create a shell script , something like this :
    vi check.sh
    export ORACLE_SID=db1
    sqlplus / as sysdba <<EOF
    select query comes here;
    exit;
    EOF
    export ORACLE_SID=db2
    sqlplus / as sysdba <<EOF
    select query comes here;
    exit;
    EOFchmod 777 check.sh
    This does the job for you.. I am unsure how to pass the parameters in sql while running through a sheel script.. but if thats possible you will be able to achieve what you want.
    Regards
    Kk
    Edited by: Kk on Jun 27, 2012 2:44 PM

  • Same font file, different font family in software

    Hi guys
    I'm not sure if this is the right place for my question but I'm having some trouble with fonts on my iMac.
    A few weeks ago, I bought three fonts/font files online, and installed them on my MacBook Pro with Fontexplorer X Pro. Now on the Macbook I can find them in the same Family in no matter which software like Adobe InDesign, Photoshop, Illustrator or in Word, Excel...
    Last week when I installed my brand new iMac, I also setup the same 3 font files via Font Explorer X Pro the same way as I did it on the MacBook Pro. Suddenly, on the iMac, the 3 fonts now are divided in 2 font Families, with a difference: TT and OTF.
    Quite annoying since for one client in particular, I constantly need to switch between those three font types which I could do in just some arrow clicks on the keyboard, but since they are now in different families because of the OTF and TT difference, I need to click on the font list every time etc...
    Does anyone know if I can select something like "do not separate OTF and TT" or... ?
    Thanks!
    Bob

    Yes, it does.
    But is there a way to have OTF and TTF fonts in one family and in one list in InDesign? I mean, they are the same font family with the only difference that one of the three fonts now appears as OTF, which it didn't a few weeks ago on the older MacBook.
    Best regards
    Bob

  • Need to connect different swf files into one site

    I need to make this site like presentation for my next exam. I found a good template for a slide show. The presentation will be structured like this: 
    MAIN PAGE with sidebar which links to:
    slide one with slideshow 1
    slide two with slideshow 2
    slide three with slideshow 3
    slide four with slideshow 4
    due to the nature of the code thou i cannot put the different slideshows into the same .swf file in different scenes (i copied and pasted them in each scene and modified the actionscript so they would refer to different pictures) because they will create conflict with each other. now they question is can i use the sidebar to link to different swf files but still make it look like it was just one big swf?
    thank you!

    Here is what you have to do
    Create a document named main.swf in that document put 4 buttons and instance (button1_btn, button2, button3_btn, button4_btn).
    Change the name to your slideshows to slide1.swf, slide2.swf, slide3.swf and slide4.swf.
    Now go to the actionScript panel of your main.swf and paste the following code:
    //load external content
    var loader = new Loader
    addChild(loader)
    loader.x=0;
    loader.y=0;
    button1_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide1.swf"));
    button2_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide2.swf"));
    button3_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide3.swf"));
    button4_btn.addEventListener(MouseEvent.CLICK, function(){
             loader.load(new URLRequest("slide4.swf"));
    any problems let me know!!!

  • .SWF files usage in Catalog for B2B Webshop Display

    Hi All,
    We are on CRM 5.0, We have a requirement to upload .swf or flash file in catalog and to display on the Webshop Home page.
    so far we are using .jpg file,we have not used .swf in E-commerce, does anyone has an idea if we can use .swf file in catalog to display on the B2B Webshop.
    Is it supported or not?
    Please provide your valid Inputs on this, are there any prerequisites for this functionality to work like if additional configuration is required and what are those steps? .
    Thanks in advance.
    Thanks&Regards,
    Sri

    Webshop welcome page
    Using the OBJECT or EMBED tags in the JSP you should be able to embed the shockwave or flash files in any JSP. The content being a static file residing in the mime server defined in XCM and can be relatively addressed using ISA tags like MimeURL. Example: <isa:mimeURL name=u2018welcomeMovie.swfu2019 />
    Catalog
    Pretty same technique to render, but need to be indexed for the right target object - catalog area / subarea or the catalog item.
    (1) You maintain the document classes / types that can be assigned to a catalog area and/or item in the Customizing
    (2) CRM IMG: SAP NetWeaver -> Application Server -> Basis Services -> ArchiveLink -> Basic Customizing -> Edit Document Classes).
    (3) Insert SWF document class of Mime type application/x-shockwave-flash if not defined already.
    (4)CRM IMG: SAP NetWeaver -> Application Server -> Basis Services -> ArchiveLink -> Basic Customizing -> Edit Document Types)
    (5) Insert new Document types like ECO_SWF for SWF mime type.
    (6) Web shop templates must be adapted to visualize new documents within the Web shop.
    (7) Define templates for folders: SPRO: CRM -> Basic Functions -> Content Management -> Define Templates for Folders. Select the area you defined in your Catalog type and add the Document type you have defined above.
    (8) Add a new folder ECO_SWF. Select properties and assign the new document type ECO_SWF to
    the attribute document type.
    In the JSP for product details, you can use isa:imageAttribute tag with its key value used in the above configuration for document types (ECO_SWFA) and embed them as you would do for a flash movie in HTML.
    u2018<isa:imageAttribute guids=u2018DOC_PC_ECO_SWF,DOC_P_ECO_SWFu2019
                 name=u2018webCatItemu2019 / >u2018 width=500
                 height=400  >
    where webCatItem is the current catalog item (WebCatItem) in the particular JSP.
    For help, you can refer to example 6 in the "SAP E-Commerce 7.0: Examples and Tutorials"

  • Is there any way to display a pdf inside of a swf file?

    Are there any software that will convert Word documents or pdf into swf files that ca be displayed inside of a Flash movie. Currently, I am using FlashPaper but the software is not supported anymore by Adobe. I am creating eLearning courses and having a pdf open inside of a course without opening multiple makes for a better learning experience. Any help will be greatly appreciated.

    http://cookbooks.adobe.com/post_PDF_2_SWF_Conversion-4701.html

Maybe you are looking for