Display a .swf file in the Gallery example

Is it possible to display a .swf file instead of a .jpeg in
the Gallery example? Any help would be appreciated.

You "CAN" do it, but it would probably be kind of clunky. A
detailed region rewrites the code and in theory you should be able
to write in a new SWF. I don't mean, write in a new "location" but
re-write out the entire tag.
Hope this helps.

Similar Messages

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Opening SWF Files in the Application window

    Hello Everyone,
    We have a problem in opening .swf files in our application.
    We had quick time movies(.mov) which we used to open and
    play inside the application window, using QuickTime Framework APIs
    in the code.
    Presently we had converted these quicktime movies(.mov) into
    .swf files and we are unable to open the same using Quick Time
    Framework in MacOSX.
    Can you please suggest me as how should I proceed, i.e which
    framework should I use in the code to open and play .swf files in
    the application window?
    It will be better, if you can send me a small sample code to
    use in my application for MacOSX.
    Awaiting for your kind reply,
    Thanking you,
    With Best regards,
    Anil.

    Hi Vaibhav,
    I need to display the serarch results in the same window.
    I have followed the steps mentioned by you in the thread
    <i> Search Results in the Same Window..as we have in SDN</i>
    Even after making changes to 2 PAR files mentioned in the above thread, on click
    of Search button nothing happens.
    It will be great if you can send me your modified PAR files, to identify where i am
    going wrong. My mail id is [email protected]
    Thanking you,
    Vikas

  • Spreadsheet component - bottom grid line not displaying in swf file

    Hi,
    I'm having an issue with the spreadsheet component. I'm using the "Ignore blank cells in Values" option on the behavior tab. This works fine. The problem I'm having is the bottom grid line in the spreadsheet table is not displaying in the swf file. The bottom grid line displays correctly in Preview mode....but is not displaying in the swf file. Anyone have any ideas on why?
    Thanks

    I'm not sure if I've interpreted your response correctly.  Our entire dashboard app is built on the swf files being called from the URL buttons.  We are not using HTML files.  Are you saying that if I do a file export to HTML that the swf file generated from this will display the bottom grid lines?
    I noticed that the spreadsheet component grid lines display correctly in the swf when not checking the ignore blank cells option in the behavior tab.
    So what would be our options here.....either uncheck the display grid lines for the spreadsheet component to not display the grid lines at all, or do not use the ignore blank cells option in the behavior tab to display a fixed number of rows each time?
    Thanks for the response, Matt.

  • Call and display Xcelsius SWF file from an SAP Transaction

    Hello Experts ,
                          Could you please suggest if it is possible to Call and display Xcelsius SWF file
    from an SAP Transaction and if Yes how can this be achieved.
    Regards ,
    Jerin.

    Jerin,
    It is possible to embed a Xcelsius model into an SAP WebTemplate (Anil promised to write a blog about this very soon). After that you can include the WebTemplate in the GUI menu, Role menu or Portal.
    Henk.

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • When can support the AS3 swf files in the Director?

    AS3 has existed for a very long time, but Director 11 con't
    support it.
    So, I want know that when can support the AS3 swf files in
    the Director?
    Thanks.

    Director 11 supports AS3, but to my knowledge you cannot use
    components in your flash file.
    Z.

  • Is there any way to compile FLA files into SWF files on the command line?

    I am using Adobe Flash CS4 Professional on Windows XP.  To facilitate automated nightly builds, I have been searching for a way to compile my SWF files from the FLA files under source control, but without luck.  The tools in the Flex SDK looked promising, but we do not use Flex.  Thanks!

    Seen these?

  • Unable to load next swf file in the browser.

    Hi,
    Im facing problem while loading the next swf file in the
    browser.
    I have divided my files and named it as 1.swf, 2.swf, and so
    on and i wrote the script 4 calling next swf.
    It is working when i called thru HTML in local system. When i
    upload into my server and called thru php, next file is not
    loading.
    Code in the button : :
    on (release)
    { loadMovie("2.swf", 0);
    Any ideas or suggestion?
    Help would be appreciated.
    thnq.

    I'd suggest looking that these notes
    1045941 - HTTP Client: Incorrect request URI II
    Note 1144511 - Blank screen when starting CRM WebClient or IC WebClient
    1244321 - Simplifying error analysis in CRM WebClient UI
    1242835 - IDES CRM 2007
    1168941 - Simplifying system setup  
    612670 - SSO for local BSP calls using SAP GUI HTML Control

  • Importing another swf file into the flash-homepage (swf is a gallery)

    hi there!
    have a problem that i cant resolve myself ..
    i downloaded a free of use gallery from juliuswebdesign.com (this gallery) and i'm trying to load it in my flash site ..
    now, the gallery works if i open it directly (i open the swf file)
    BUT
    when i try to load the external swf file into my site
    loadMovie("image_gallery.swf", box);
    then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
    once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.
    if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..
    something must be wrong ..
    i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery ..
    i'ts like something in my site "blocks" the gallery beeing loaded..
    any suggestions?

    to the gallery's fla add the following and retest:
    this._lockroot = true;

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • Not displaying photos and video in the Gallery

    Is it possible to prevent photos that you might not want your mother to see from being displayed in the Gallery, i.e. have them stored on the phone (mine is a 5230) and viewable via File Manager, but not viewable in the Gallery?
    Solved!
    Go to Solution.

    pimmers wrote:
      I no longer seem to be able to create new posts.  On my screen I can't see a button for creating a new post.  
    You mean you can't start new topic?  on Phone or PC? Log in and choose the section like "Nseries" or XSeries" and you'll get "Start New Topic" first to "Board Options"  on every section's main page,   Look at the attached screenshots,  On mobile version the button to start new topic is next to "Search Board" as you can see.
    pimmers wrote:
     Also, on my screen it describes me as a "visitor", which doesn't seem right.  Or is it?  
    No problem there, Look at this for explanation :/t5/News-and-Announcements/Rankings/td-p/1001
    Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
    Current Phones: Nokia N9, iPhone 4
    Attachments:
    Desktop.jpg ‏122 KB
    Mobile.jpg ‏78 KB

  • What is needed to view a SWF file on the web?

    Do users just need a version of FlashPlayer?

    If you are placing it in a web page, then you normally have to use special embedding code to have it display.  I don't know if Illustrator provides the necessary code, but if you have Flash, it can generate the code that code in the web page.  Dreamweaver can also do it, though I find it less reliable in doing so.  Otherwise, if you link directly to the swf file it should open in a browser window and fill up the window.

  • Unable to stream SMIL files unless the html page, swf file and the smil ffile are on the FMS server.

    When I place the .swf, smil and http files on the FMS server the SMIL stream test sample works fine
    But When I move the files to my web server I get Connection error.
    This is the same issue discussed in http://forums.adobe.com/thread/554107
    I added a ‘base’ variable but it did not work for me.
    The SMIL file has the correct path to the sample files and FMS server
         <meta base="rtmp://200.200.200.23/vod/" />
    I am able to stream files from my html file on my webserver not the FMS server by pointing to the FMS server at rtmp://200.200.200.23/vod/mp4:sample1_1500kbps.f4v
    Is this a domain security setting? If so, where do I change it?
    If not How do I get FMS to stream SMIL files without installing a webserver with FMS?
    Thanks,

    Hi,
    I think there is bug with that videoPlayer.swf which is used by index.html of webroot folder of FMS to play media files, its not able to parse smil file correctly. I used some other player and used the smil file and kept it on http server other than fms server so it was able to dynamically stream videos. So I would suggest you to create your own player which uses smil file. You can take help from the below link to create player:
    http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1_05.html
    Regards,
    Amit

  • Quiz results not displaying in swf file

    I am creating an interactive cd which basically runs a blank
    projector which then loads in various swf files from fscommand
    folder as and when required.
    Part of the CD is a quiz - created using one of the standard
    flash templates. When this is loaded into the main projector as a
    swf file it runs perfectly until it gets to the "results page" - at
    this point it returns the blank templates e.g Answered = 0.
    If you export the quiz as a projector file it runs fine and
    gives the results as expected too.
    Is there a way to make it run properly as a swf?

    Hey Arunbe,
    To be honest I'm pretty new to the Action Script side of
    things - I'm not actually very sure where and how I check that the
    variables are declared properly?!
    I would really appreciate any pointers you could give me in
    this area!!
    I have attached some code from the quiz - it might not be the
    right thing though!
    Thanks for any help you can offer!!!
    Stevie

Maybe you are looking for