How to involve a swf file in jsf

The code below works in jsp
<embed>
src="a.swf"
</embed>
but it didn't work in jsf. I also tried <h:graphicImage value="a.swf"> and it didn't work either. Who know the solution?
Thanks in advance!

Problem solved

Similar Messages

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • How to Preloading a swf file in one application

    hello friends,
    How to preload a swf file in one application??
    i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this module in second panel when the user is doing logi. and when user logged in that time i have to show the second panel hiding the first panel.
    so how to do this i m not getting can anyone help me??
    Thanking you,
    Gajanan

    i have created a jar file.Now i want to reuse this
    jar file in another java program.Could anyone please
    guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code.

  • How can I associat ".swf" files with flashlite 2.1

    How can I associate ".swf" files with flashlite 2.1? When I
    install flash lite 2.0,it can do ---- click .swf files system can
    autoly use flashlite to play.But now I install flashlite 2.1,it
    lost this ability return as "unknow files formate".
    Now,how can I reassociate ".swf" with flashlite 2.1?
    first: I must use flashlite 2.1.
    second:I must click .swf file directly.
    I know another way to open :open the player and then find the
    .swf,and open it. But ,unfortunately,I can not use this way to
    open.Now I will be looking for another way.

    unfortunately, the 2.1 developer edition you have installed
    has not overwritten the original version integrated into the
    symbian OS by the manufacturer. This means that the only way to
    open the 2.1 files is to open the 2.1 player from your apps menuu,
    and click on the swf file. You will only get direct access if the
    updated player is in a firmware update for you handset.
    Matt
    http://www.outside-media.co.uk/blog

  • When do you think a preloader is necessary?  How large should a swf file be to justify it?

    I'm looking for opinions on preloaders.  When do you use a preloader?  How large must a swf file be before you to put a preloader in it? I am working on a small program that is 80kb in size right now and I'm not sure if I should add a preloader.

    About 500kb, you should use a preloader.
    Below? It depends on your file. If everything is on frame 1 , maybe it's better to use one.
    You can test it  with "Simulate Download" (Control - Test Scene ->  View - Simulate Download)

  • How can I convert .swf  file to exe file?

    thanks

    Hi
    Thank for your choise.
    If showing only white screen, please download the lastest version, v2.03.
    http://www.bullrushsoft.com/download.html
    This problem occurs in Win7 sp1, especially IE has been upgraded to v10.
    Our SWF to EXE Converter must need the FlashPlayer plugin for IE, it 's not a atandalone program.
    So it only 880KB.
    Our online converter is the adobe flash player exe, it can be embed the swf  into, and standalone, so its size > 4MB.
    More details, please visit http://www.bullrushsoft.com/online.html
    Best Regards.
    2013-08-11
    Bullrushsoft Support Team
    From:  mmshahid73
    Date:  2013-08-11  02:52:01
    To:  Sandro_brs
    Cc: 
    Subject:  _How_can_I_convert_.swf fileto_exe_file?
    Re: How can I convert .swf file to exe file?
    created by mmshahid73 in Flash Ad Development - View the full discussion
    Hi, I used bullrushsoft SWF to EXE converter, but the created EXE file showing only white screen, i think i need to add flash player also but i don't know how to add flash player duriing swf to exe conversion.
    Because when i converted swf into exe from my pc, it showing size 880 KB where swf file size is 413 KB, onthe other hand, I convert the same online which is playing correctly but the converted file size is 4.57 MB.
    Am i right?
    Kindly help
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5583680#5583680
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5583680#5583680
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5583680#5583680. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Flash Ad Development by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I script SWF files instead of JPG files in XML loader?

    I have a SWF loader (greensock.com platform) and a thumbnail image scroll underneath it made of small image buttons. Each image button has a link which loads a new SWF file into the SWF loader above. Here is the code for each button which loads the bigger SWF file into the loader above:
    Button3.addEventListener(MouseEvent.CLICK, Button3_PlayPopUp);
    function Button3_PlayPopUp(event:MouseEvent): void {
        //setting the sourceVar
        sourceVar="3.swf";
        //making the SWFLoader load
        //as setting the soureVar after the SWFLoader is created won't do anything unlesss
        //I also re-create the SWFLoader with the new sourceVar when the button is clicked
        loader_howToLoader2.url = sourceVar;
        loader_howToLoader2.load(true);
    Then I decided to load all button via XML loader. I followed the tutorial on XML loaders which deals with loading jpg images and assigning URL links to them in the following manner first in XML file:
    <image src="appThmb_imgs/appThmb_imgs117x175/A-illuminatorUpLit_117x175.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com"/>
    and then in AS3 like this:
    var xmlLoader:URLLoader = new URLLoader();
    thisOne.link = imageList[item].attribute("url");
    function clickScrollerItem(e:MouseEvent):void {
    //trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);
    var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);
    try {
    navigateToURL(urlRequest);
    catch (e:Error) {
    // handle error here
    trace(e);
    My question is: How do I apply the code to each individual small thumbnail button to load a bigger image into the SWF loader above? Do I have to add something to XML file or this way it will never work with jpg images? Can url in XML file set the source var (//setting the sourceVar), since they are all individual and then somehow apply the making SWL loader to load part (//making the SWFLoader load) as a standard somewhere in the AS3 code?

    O.K. Here is my COMPLETE function.
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    function LoadXML(e:Event):void {
        trace("xml load complete");
        xmlData = new XML(e.target.data);
        //trace(xmlData.image); //we'll see each image xml element listed in the output panel with this xmlList
        buildScroller(xmlData.image); //rather than trace the xmlList, we send it to our buildScroller function
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
        trace("build Scroller");
        //var scroller_x:int=0;
        for (var item:uint = 0; item<imageList.length();item++) {
            var thisOne:MovieClip = new MovieClip();
            //thisOne.img_width=imageList[item].attribute("width");
            //outline
            var blackBox:Sprite = new Sprite();
            blackBox.graphics.beginFill(0xFFFFFF);
            blackBox.graphics.drawRect(-1, -1, 86, 128);//-1,-1 places rectangle 1px left and up.86, 128 draws rectangle 1px wider on all sides of placed image dimenstions of 84x126
            thisOne.addChild(blackBox);
            //scroller_x += thisOne.img_width + 20;
            //var currentX = currentImageWidth+spaceBetween;//modified line to adjust variable thumb widths
            thisOne.x = (84 + padding) *item;//84 is the width of the loaded images and 15 (which was before paddign var) is the padding
            //thisOne.x = scroller_x;//modified line to adjust variable thumb widths
            thisOne.itemNum = item;
            thisOne.title = imageList[item].attribute("title");
            thisOne.link = imageList[item].attribute("url");
            thisOne.src = imageList[item].attribute("src");
            thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
            //trace(thisOne.itemNum, thisOne.title, thisOne.link, thisOne.src);
            //Loading and Adding the Images
            //image container
            var thisThumb:MovieClip = new MovieClip();
            //add image
            var ldr:Loader = new Loader();
            //var url:String = imageList[item].attribute("src");
            var urlReq:URLRequest = new URLRequest(thisOne.src);
            trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
            ldr.load(urlReq);
            //assign event listeners for Loader
            ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);//tells us when the loading is complete
            ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);//tells us if there are any typo errors when the loading is complete
            thisThumb.addChild(ldr);
            thisOne.addChild(thisThumb);
            //create listeners for this thumb
            thisOne.buttonMode = true;//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);//traces the title when the mouse is over the bounding box in the Output Panel
            thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);//traces the title when the mouse is out the bounding box in the Output Panel
            //add item
            scroller.addChild(thisOne);
    But I am not sure if I expressed myself clearly. All what you have indicated happens. Images are being loaded and url strings are working. I can not figure out how to tweek the code so instead of url specified in xml file I can load swf image into the SWF loader on the same screen?

  • How to call a .swf file in another .swf file?

    Hi all,
    I am new to flash and ActionScript3.0. Presently, I am using
    flash CS3 and the code I need is in ActionScript 3.0.
    Suppose, I have a .swf file(viz., file1.swf). Now, i am
    developing one more .swf file(viz., file2.swf), in which I need
    to execute file1.swf when a CLICK event is listened on button
    present in second file(i.e., file2.swf).
    In how many ways, we can get this.
    And, please I need code very urgently.
    Help me.

    You use the Loader class to load external content like swf's
    or images. If
    you click the main entry for Loader Class in the AS3 help,
    there's an
    example of loading an external swf.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to tell a swf file in web was made by flash or flex?

    the swf file in web, how to tell it was made by Flash or
    Flex? accurately!

    Im not sure, but I would think that right now the main way to
    tell the difference would be to find out if it requires Flash
    Player 8.5 or not. Currently, Flash swfs only go to 8.0. Another
    way is to look at the source of the HTML file. I notice that Flex
    puts an incredible amount of code into the HTML file.
    Thia

  • How to load External swf file in AIR

    I try this code its working in computer but when I publish this file in .apk or .ipa , my external swf file is not opening
    (I include my external file as well)
    places_btn.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
         trace("you clicked me");
         var loadit = new Loader();
         addChild(loadit);
         loadit.load(new URLRequest("scene02.swf"));

    thx boss its working great
    I have 3 scenes; load scene code is working great
    1. How can I unload the scene?
    2. Can I unload all scenes or one by one?
    can I unload some think like this
    Load scene 2 , unload scene 1 and scene 3
    Load scene 3, unload other all scene
    i try this
    load2.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene02.swf"), _lc);
              loadit.unload();
    load3.addEventListener(MouseEvent.MOUSE_DOWN, newvid1);
    function newvid1(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene03.swf"), _lc);
              loadit.unload("scene01.swf scene02.swf");

  • Embed .swf file or how to hide your .swf file on the web for protection

    Hi, is it possible to hide your .swf file so that it can not be taken.  Is there a way to protect it?  if someone please post the chain of commands on how to do this.

    http://www.google.co.in/#hl=en&source=hp&q=swf+encryption+software&oq=swf+encryption&aq=2v &aqi=g2g-v8&aql=&gs_sm=e&gs_upl=848l6367l0l9310l22l20l3l2l2l0l324l3334l1.4.7.3l15&bav=on.2 ,or.r_gc.r_pw.&fp=bdf9e41683b1cd0a&biw=1024&bih=609

  • How to make transparent SWF files ???

    Hi all, plz i have 2 questions ,,, First, how can i remove
    the title menu from the swf file so when i lanuch it (( locally not
    in a browser )) the upper bar which has the min,max,close buttons
    hidden,,, is that possible ??????
    Second, Is it possible to export a transperent flash movie
    ??? for example i want to make a flash movie in the shape of a
    circle ,, so when any one open the swf file just the circle appears
    without background or frame for the window,, Can i do this with
    flash ???
    Thanx alot...

    On Sat, 9 Feb 2008 08:17:13 +0000 (UTC), "Ghost Of Death"
    <[email protected]> wrote:
    >Hi all, plz i have 2 questions ,,, First, how can i
    remove the title menu from
    >the swf file
    I don't remember exactly, but you need to find a doc about
    fscommand
    paramers. There is such doc somewhere at Macromedia / Adobe
    websites.
    I saw it some time ago. The is a parameter like "mainmenu" or
    so,
    which can be "true" or "false". As far as I remember there
    was such
    thing.
    > Second, Is it possible to export a transperent flash
    movie ???
    Flash movie itself is "transparent" uless an explicit
    background shape
    is used. It is another question how to make Flash Player box
    to be
    transparent. Web browsers support so called windowless mode,
    but Flash
    Projector (SAFlashPlayer.exe) - does not.
    Personally I use my own projector, written in Delphi, which
    uses
    special third-party component, supporting windowless mode.
    There are
    other tools, supporting it. Try to search Google for
    "TFlashPlayerControl".

  • How can we compress SWF files and optimize tool?

    I need to reduce SWF file size up to 70%, quality will not be sink.
    Is this possible in adobe software? please help...

    Iam working on banner production, is their any better software/tools for SWF optimization/compression?
    I got one  SWF and FLA from other creative team,  SWF size is below 50 KB look's better quality, I have changed some small amends, when i was exporting it from FLA... the SWF file weight goes to 90KB, i compressed image quality then, expoted again... the file size goes to 70KB. how can i do  50KB in better quality.
    Thank you for your help!

  • How to load large SWF files?

    I have created a flash game which is about 11 MB in size and i have created the progBar in the first frame of the swf...
    But it only shows the loading process after few MBs of data beign loaded...which might take some time and cause the user to close the tab..
    I dont want this to happen...How i could tell the user at least that the swf is loading without any percentage and all the animations..
    Like putting a <div> tag at the back of swf file..so until the swf load the div tag with "loading" message can be shown...I tried this method but it wasnt working for me and i dont know why.
    I hope flash masters at this forum could help me.
    Tq

    gameLoader.source="MapleCity0.1.13.12_800.swf";
    gameLoader.load();
    gameLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    gameLoader.addEventListener(Event.COMPLETE, completeHandler);
    gameLoader.addEventListener(IOErrorEvent.IO_ERROR, catchScoreIOError);
    function progressHandler(event:ProgressEvent):void {
        var uiLdr:UILoader=event.currentTarget as UILoader;
        var kbLoaded:String=Number(uiLdr.bytesLoaded/1048576).toFixed(1);
        var kbTotal:String=Number(uiLdr.bytesTotal/1048576).toFixed(1);
        ui.myLabel.text=kbLoaded+" of "+kbTotal+" MB"+" ("+Math.round(uiLdr.percentLoaded)+"%)";
        ui.myProgressBar.setProgress(event.bytesLoaded, event.bytesTotal);
    function completeHandler(event:Event):void {
        ui.visible=false;
        gameLoader.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
        gameLoader.removeEventListener(Event.COMPLETE, completeHandler);
    function catchScoreIOError(event:IOErrorEvent) {
        if (event.type=="ioError") {
            ui.myLabel.text="Cannot establish a connection to the server. Please try again later.";
        } else {
            ui.myLabel.text="ERROR : "+event.type;

  • How to embed multiple SWF files into TinyMCE editor

    Hello,
    I am looking for help with Captivate 3. I have a demonstration recording that gives me two swf files, one for the actuall recording, another for the skin. The company I work for uses Helpstream for knowledge base content. The articles I enter need to sometimes have videos embeded. They use a tiny mce editor, and I'm not sure how to embed the two files together. After publishing the recording, I tried to take the object code from the html file, and use that, but that did not work.
    Any suggestions on how I can do this? Is there some setting that I need to have before publshing that will combine the skin and recording into one flash file? Currently I use Camtasia, but I would like to create more advanced video content and start using CAptivate full time.
    Thanks!
    Marianne F

    Hi there
    Clicking Project > Skin > Borders tab and DE-selecting the Show Borders option will eliminate the skin.SWF from being created.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for