FLVPlayback skin position on stage resize

Hi, Got weird problem. on stage resize the skin's hit area of
FLVPlayback instance floats away from the supposed position. When
setting 100% scale to the FLVPlayback instance, it works correctly.
This happens with skinAutoHide = true.

Read this artical, it helped me with the same problem. Put
the skin in the same directory as the webpage file that calls your
main movie.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=608abffd

Similar Messages

  • Reference to FLVPlayback Skin object

    So I have a problem with the FLVPlayback. I'm using a
    customized version of the SteelOverPlaySeekMute skin, and it works
    very well. The only problem is, that Macromedia coded the
    FLVPlayback.skinAutoHide poorly, in that it only hides when an
    onRollOut is triggered for your FLVPlayback. However, if the
    FLVPlayback is the same size as your Stage, this will NEVER get
    triggered. I'm finding a way around this by using a MouseListener
    with a setInterval to hide the controls by changing the
    FLVPlayback.skin to an empty string, and then back to my custom
    skin when the mouse moves again. However this is a very clunky
    method of handling it, and when the skin first loads back again
    after hiding, the playback handle is at the begining and then jumps
    to the right position. It's kinda ugly.
    So is there any way to reference my skin object so I can set
    the _alpha property or something, or do I need to go and code my
    own custom UI?

    Hi all ,
    I'm totally no where by this statement :
    " In Practice, a reference argument is anothercopy
    y of a reference to the Orginal object "
    can any one please explain me further ?In Java there are two kinds of variables. Onewhich
    holds the value of a primitive (like say an int)and
    another which holds a reference to an object.
    Both types of variables are passed in the same wayto
    methods. A copy of the content of the variable is
    assigned to the method parameter. So in the case ofa
    primitive it's a copy of a value and in the caseof
    an object its a a copy of a reference.Sorry , But I remember I read in java all the
    arguments are by Value and NOT by reference .....
    Is that diff for object and primitive type ?Arguments are passed by value.
    As UJ said, that value might be a primitive, or it might be a reference. A variable's value is NEVER an object in Java.
    http://javadude.com/articles/passbyvalue.htm
    http://java.sun.com/developer/JDCTechTips/2001/tt1009.html#tip1
    http://www.javaranch.com/campfire/StoryPassBy.jsp
    http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html
    http://www-106.ibm.com/developerworks/library/j-praxis/pr1.html
    http://www.cs.toronto.edu/~dianeh/tutorials/params/
    http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#38698
    http://radio.javaranch.com/channel/val/2004/05/21/1085125887000.html

  • Is there a way to use/fix FLVPlayback skins provided with the product?

    Some of the "skins" for the FLVPlayback component cannot be used as delivered in the Flash Professional CS5 package.
    For instance, if you try simply to run the .swf file: MinimaSilverPlayBackSeekCounterVolMuteFull.swf in Program Files/Adobe/Adobe Flash CS5/Common/Configuration/FLVPlayback skins/ActionScript 3.0, you get the following error message:
    VerifyError: Error #1014: Class fl.video::UIManager could not be found.
    Such a skin cannot be used in a published application (though it will work within the Flash IDE in Test mode).
    Not all the skins have this problem. However, at least all of the Minima prefixed ones do. Of course the one I wish to use is broken. Is there a way I can fix this? If I try to publish the corresponding .fla (in FLVPlayback skins/FLA/Action Script 3.0 I get "Warning: unable to load SWC FLVPlaybackAS2.swc".

    Well I don't really understand the position you are taking here. Did you try to run the examples I gave?
    I will be a sport, though, and back up here and explain more fully.
    I had originally built a rather trivial application to experiment with the FLVPlayback component. I did this with AS-3, by the way.
    As I tried different skins I found, strangely, that when I used one of the Minima ones (for instance, the one that I listed several times above), that it would run fine in the IDE in test mode, however when I ran the published application it would not run correctly. It generated instead this error message about the fl.video class not being found.
    In trying to determine the cause of this, I found that this same error would be generated, just by trying to run the Minima skin (swf) in the Flash player by itself. And sure enough those skins that did NOT have the problem with my trivial app also did not generate any error when the swf was run in the Flash player.
    So, as you hopefully can see, I took my application out of the equation here. The question of interest is why do some of the unmodified swf skin files generate the class not found error and can they be fixed (or is there anything I can do to fix them) so that error does not happen. I had even tried to use the original FLA file for the skin (as I described in my earlier post) and recompile it. However that caused a compile error (listed in the original post) that is indicative of some AS2 being mixed in, possibly from some sub-component.
    So I guess all I was hoping for was that you would try to run the AS3 Minima...swf skin listed earlier straight from the product installation. Just run it with the Flash player. If it doesn't generate the error for you then perhaps there is something odd about my CS5 installation, or environment, or ...
    If you don't want to try this, that is your perogative. Perhaps someone else can/will. Or perhaps I can submit this as a bug? (I do not know the mechanism for that)
    I am not trying to be argumentative here. Rather, I have tried to isolate the issue. I don't know how else I can make this clear.

  • Non-Standard Buttons in FLVPlayback skin

    I posted this before but I don't think I explained it very
    well. I'm trying to add a non-standard button to my FLVPlayback
    skin, but it's not showing up. Can you add new buttons (with new
    functionality) to FLVPlayback skins or can you only edit the
    existing ones? This should be similar to adding a logo, does anyone
    have a tutorial or anything on adding a logo to an FLVPlayback
    skin?

    Look
    Here Edit the bar at the bottom of the Skin FLA, and add what
    you want to that... unlock all layers, select all, then resize, add
    a layer and put what you want. Then when selecting a skin for your
    FLVPlayback component, select Custom Skin, and target it.

  • FlvPlayback Skin Custom Button calling external function

    Hi,
    I have a custom movie clip in the flvplayback skin and I am looking for a way to call an external js function. This is what I got inside the skin
    my_object.addEventListener(MouseEvent.CLICK, externalFunction);
    function externalFunction(){
        ExternalInterface.call("ExternalFunction");
    Unfortunately, the ExternalFunction is not being called at all. What am I missing here?
    Any help is highly appreciated. Thanks

    Here you go.
    <div id="customEngine_Container" style="z-index: 10001; border: 0px none; width: 400px; height: 550px; position: fixed; bottom: 100px; right: 100px;">
    <object width="400px" height="550px" id="customEngine_Container_o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <param name="movie" value="customEngine.swf"><param name="quality" value="high">
    <param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
    <param name="menu" value="false"><param name="wmode" value="transparent">
    <object width="400px" height="550px" id="customEngine_Container_o" type="application/x-shockwave-flash" data="customEngine.swf">
    <param name="movie" value="customEngine.swf">
    <param name="quality" value="high">
    <param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
    <param name="menu" value="false"><param name="wmode" value="transparent">
    <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>
    </object>
    </object>
    </div>
    May I ask, how is it relevant to AS skin calling JS?

  • CS5.5 AS3 FLVPlayback issue adding to stage or library

    I am unable to add the Action Script 3 FLVPlayback component to my stage or library in Flash CS5.5 when working with an action script 3 document.
    Under components in the video folder i click and drag anyone of the FLVPlayback components (FLVPlayback, FLVPlayback 2.5 or FLVPlaybackCaptioning) to the stage and nothing happens. I am unable to add it to my library as well. All the other actionscript 3 components under the Video folder work. (BackButton, BufferingBar, CaptionButton, etc...)
    If I create an actionscript 2 document the FLVPlayback component drags to the stage and adds to the library just fine. So this appears to be an actionscript 3 issue only.
    I have 2 other employees in my office using the same product and none of them have this issue. Only me.
    I have tried to uninstall the product and reinstall but nothing helps.
    I have Flash CS3 installed on my PC and the product has the same symptoms as the Flash CS5.5 trial version that I am running.
    I did not try this with Flash CS3 before I installed the CS5 trial. So I do not know if it worked prior to my CS5 evaluation.

    Microsoft Windows XP
    Professional
    Service Pack 3
    Video component
    Date Created: 3/17/2011
    Date Modified: 3/17/2011
    User folder
    Not sure what you are asking for here.
    Thanks for your assistance,
    Message was edited by: jimder

  • Modify Flvplayback skin with counter problem

    Hi
    I am trying to customise a FLVPlayback Skin that has a counter in it, (MinimaFlatCustomColorPlayBackSeekCounterVolMute.fla)
    If i modify any of the skins without a counter there is no problem however when i try to publish one of the skins with a counter i get these compiler errors:
    Warning: unable to load SWC FLVPlaybackAS2.swc
    1046 type was not found or was not compile time constant: NetstreamPlayOptions
    Any ideas?
    cheers
    Grant

    Hi,
    Someone had found a workaround
    "Just remove all from your source paths in the publish settings when  you look to ActionScript 3.0 setting for your Skin FLA ! ( as default  you can see here some path to video folder where is SWC files)"
    but the counter prolem remains as the counter does not work in this case ...
    may be someone has a better solution can reply ...
    Cheers

  • Stage Resizing on "Clicked" External SWFs

    Hello everyone!
    Thanks for checking this out.
    This has been bugging me for almost a week now. I hope I may find some assistance here. I've Googled for this and everytime I encounter an article with the solution and people saying it worked great for them, I thought it's going to help me too, but didn't. I'm pretty sure I did exactly what was instructed but mine is just weird.
    I hope you can try to look at my files and see what's wrong, anyway this is just a simulation of my real project (which has the same problem) at a very small scale so it should be very easy to look at. I believe it's so easy to solve but I just couldn't nail it. Here's a brief description:
    There's this main.swf that loads two external swfs in a UILoader upon click of the corresponding button. By the way, the code inside the external swfs listens for a stage resize... So, when user clicks on button 1 (named "LOAD 1"), it loads "content1.swf". User decides to resize the window, and layout resizes accordingly (in this case, they all center horizontally). User clicks on button 2 (named "LOAD 2"), it loads "content2.swf". Everything looks fine, apparently. But when user tries to resize the window again, an error pops up in the Output panel...
    Honestly, I've built a new one here at my desktop using var loader:Loader = new Loader(); concept instead of the UILoader Flash component but still no luck. Please, hear me out. I don't think I want to give up.
    Thanks!

    Try this:
    Rename setComp() and resizeComp() in content1 to setComp1() and resizeComp1()
    Rename setComp() and resizeComp() in content2 to setComp2() and resizeComp2()
    Now try resizing and you'll see the error being thrown with the new function names.
    I think your problem deals with unloading your content. You should maybe try to properly unload content1 before loading content2 and vs. versa and see if that fixes your problem. I suspect that the resizeComp2 is still trying to resize an object that doesn't exist on the stage anymore, but the function is still loaded into memory and running. Unloading your swfs might clear this up.

  • How to add [playheadtime / totaltime] to FLVPlayback skin

    I need to add [playheadtime / totaltime] to my FLVPlayback
    skin so that I can see it while the video is in fullscreen mode.
    Thanks in Advance,
    Siraj R Khan
    [email protected]

    Answer: You can add your movieClip or button to FLVPlayBack
    component, like i did.
    uFlvPlayer.addChild(PlayTime_txt);
    It works in FullScreen mode now.

  • Showing Hand cursor in  FLVPlayback Skin

    How can we show hand cursor in FLVPlayback Skin for Flash 9?
    I have tried giving "MC.buttonMode = true" but it didnt help.
    Any suggestions?
    Thanks in Advance,
    Siraj Khan
    [email protected]

    Flash & Flash 9 provide you ready-made skins for
    FLVPlayback component. It includes Play/Pause button, Volume bar,
    Scrub, FullScreen button etc. By default when a user moves the
    mouse over any of the components / buttons it doesn't show mouse
    turning as hand cursor. I hope it clarifies the your doubt. Kindly
    let me know if u need further clarifications.
    Thanks for responding,
    -Siraj

  • Custom FLVplayback skin buttons

    I have searched all over the web and have found multiple site
    with titles about customizing the FLVplayback skin. But they all
    seem to fall short when it comes to loading a developers own
    custome graphics.
    Now, I might have just simply missed the boat or I am
    overlooking the obvious. But I can't seem to find any examples or
    details about how to use my own custom graphics created in
    photoshop, and put them in place of the default graphics used in
    the Flash provided skins.
    I ma looking for someone to suggest a book on this subject or
    link to a detailed tutorial on how this is done.
    Thanks

    erm.. You just need to grab the single buttons from the
    component library and replace the graphics with your owns. It's
    also explained in the help file of Flash how to do that.
    If you need any help, let me know.

  • Resizing and positioning a stage with a background image

    Hey guys,
    I'm trying to get some specific behaviour on a stage as I think it'll work out best for the application I am doing. The module I am working on right now consists of a stage with an imageview bound to the width and height and an image inside. I'm eventually looking to setup some animations and such which will overlay on the image but I want the window to be resizable in various ways.
    Right now, when the stage is created I manually set the width and height so the image fits perfectly in the stage. For resizing, I want the user to be able to drag either the height or width or diagonal sliders but have the original aspect ratio of the stage retained. I have the preserveRatio variable set to true in the ImageView which makes the image not become distorted, but the stage can be extended horizontally/vertically/diagonally to any ratio which I'd rather not have. In terms of fullscreening, I'd like to allow it and have the image centred.
    I've tried to see if the LayoutInfo class can help me out, but it doesn't seem to have any implementations which are too useful for what I am trying to do. So does anyone know how I can accomplish the above? I'm very new to JavaFX so if anyone can make any other suggestions in terms of the objects I am using and what's best practices for what I am trying to do, it would be much appreciated. I've looked into using PathAnimation and PathTransition for the animations I am using and while they'd do most of the job well, I need to be able to place objects, modify speeds, locations etc. so I'll probably just end up making some custom drawing methods.
    Thanks in advance,

    Similar request in [JavaFX rezising-scaling scene & elements|http://forums.sun.com/thread.jspa?threadID=5437642]...
    Mmm, I made various experiments. The difficulty is to watch both dimensions, because when one change, the other must be changed as well, but the watch is then triggered, making a cascade of changes... I solved it (partly) with a boolean disabling the secondary change.
    def image = Image
        url: "file:///D:/images/forest_0003_1024.jpg";
        preserveRatio: true
    def startSize = image.width / 3;
    var bResizingWidth: Boolean;
    var bResizingHeight: Boolean;
    var stw = bind scene.width on replace
    println("Width -> {stw}");
        ResizeStage(true);
    var sth = bind scene.height on replace
    println("Height -> {sth}");
        ResizeStage(false);
    var scene: Scene;
    var iv: ImageView;
    def stage = Stage
        title: "Proportional Stage"
        scene: scene = Scene
            content: iv = ImageView
                image: image
                preserveRatio: true
                fitWidth: startSize
    def frames: java.awt.Frame[] = java.awt.Frame.getFrames();
    //~ println(frames[0]);
    def insets = frames[0].getInsets();
    //~ println("T={insets.top} L={insets.left} B={insets.bottom} R={insets.right} ");
    def insetX = insets.left + insets.right;
    def insetY = insets.top + insets.bottom;
    function ResizeStage(bIsWidth: Boolean): Void
        if (stage.width == 0) return; // Init, nothing to do
        if (bResizingHeight and bIsWidth) // One dim is changed, don't react on setting of other dim
            bResizingHeight = false;
            return; // Just ignore secondary change
        if (bResizingWidth and not bIsWidth) // Idem
            bResizingWidth = false;
            return; // Just ignore secondary change
        if (bIsWidth)
            bResizingWidth = true;
        else
            bResizingHeight = true;
        println("Stage: {stage.width} x {stage.height}");
        def ratio = image.width / image.height;
        if (bIsWidth)
            stage.height = scene.width / ratio + insetY;
            println("H {scene.width} -> {stage.height}");
        else
            stage.width = scene.height * ratio + insetX;
            println("W {scene.height} -> {stage.width}");
        iv.fitWidth = scene.width;
    }There are still some glitches, but it roughly works...
    [EDIT] Changed to avoid resizing the dimension that the user is changing. Result is more logical but slightly worse... (?)
    Edited by: PhiLho on 29 mai 2010 13:24

  • Edit FLVPlayback skin

    I am creating my own skin for the FLVPlayback component. I coped an existing one, renamed it and made some changes very easily.
    However, I want my player to have fewer buttons. I had a go at removing some buttons from the layout_mc but when I published I found that the buttons I had taken out were appearing in the video playback area of the stage (I'm not really surprised it didn't work because the manuels say that layout_mc isn't actually put onto the stage at runtime, its just used for working out where things will go...)
    ANyway, how to I successfully delete a button such as the fast forward
    thanks
    Edward

    Here you go.
    <div id="customEngine_Container" style="z-index: 10001; border: 0px none; width: 400px; height: 550px; position: fixed; bottom: 100px; right: 100px;">
    <object width="400px" height="550px" id="customEngine_Container_o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <param name="movie" value="customEngine.swf"><param name="quality" value="high">
    <param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
    <param name="menu" value="false"><param name="wmode" value="transparent">
    <object width="400px" height="550px" id="customEngine_Container_o" type="application/x-shockwave-flash" data="customEngine.swf">
    <param name="movie" value="customEngine.swf">
    <param name="quality" value="high">
    <param name="FlashVars" value="movieUrl=customEngine-demo-video.flv&amp;skinUrl=customSkin.swf&amp;width=400&amp;height=550&amp;">
    <param name="menu" value="false"><param name="wmode" value="transparent">
    <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>
    </object>
    </object>
    </div>
    May I ask, how is it relevant to AS skin calling JS?

  • How to control stage resizing

    My main file displays a large number of dynamically generated graphics. I have a listener to remove and then re-position the graphics if the browser is re-sized:
    stage.addEventListener(Event.RESIZE, stageResized)
    //When stage is resized, remove all children from the main component.
    //When empty, refresh the stage content
    public function stageResized(e:Event):void{
       while(mainUIComponent.numChildren>0){
            mainUIComponent.removeChildAt(0)
            addContentToStage()
    My problem is that the function works perfectly if I use the Browser Maximize/ Minimize buttons, but not if the window is re-sized manually by dragging the browser window at the bottom-right side. If I drag the window to resize, many graphics are left unerased on the stage, but all the new graphics are drawn leaving a terrible mess. If I go back to select the Maximize/ Minimize again, the screen is cleaned properly once more.
    Can anyone recommend an approach to clear out all the old graphics on a manual drag?

    Maybe add your event listeners to the Application object, and ensure width and height are 100%?
    If this post answers your question or helps, please mark it as such.

  • Nested MC's position regarding stage

    Arrgh! Here it is.
    I have a master MC that's added to the stage via
    addChild(p2_mc).
    Inside that p2_mc, i have others MC'S (added to the stage
    manually, not via addChild).
    One of them is instanced fond_mc
    I want to position that fond_mc in the middle of the stage
    using that line of code WHEN the stage is resized. Obviously, the
    following line is into the resize function:
    fond_mc.x = stage.stageWidth/2;
    I works but returning faulty results because it uses left
    corner of the mc instead of registration point, which is top and
    center.
    I tried all math formula i could think of to no results.
    Keeps positionning the fond_mc wrongly.
    I know this is related to registration OR stage measurement.
    Is there a way to reset stage.stageWidth values INSIDE the
    resize function?
    Thanks!

    ahhh. so then when the container is brought to the stage it
    *is* being aligned at 0, 0 correct?
    ...> nope, it is aligned when created with this
    var p2_mc:MovieClip = new P2;
    MovieClip(root).addChild(p2_mc);
    p2_mc.x = stage.stageWidth/2;
    p2_mc.y = 0;
    The problem is WHEN i resizes, the children clips INSIDE the
    container has no references that i can understands.
    As i said, when i add this inside the resize function at root
    level, it works:
    p2_mc.x = stage.stageWidth/2;
    because in my test files, p2_mc is added BEFORE the resize
    function kicks off. And the childs move accordingly around the
    stage.
    But in my project file, p2_mc is dynamically created only
    when the user press a button. Therefore, the resize function isnt
    seeing p2_mc first hands and gives me error.
    I want to avoid adding ALL of my navigation clips to the
    stage on frame 2 (after the preloader) and BEFORE resize function
    is run. That would work i guess, but ill have to manually rendering
    them visible or not.

Maybe you are looking for

  • Controlling background width/height in 3.5

    Hello all, I'm stuck on a problem I've been trying to solve in 3.5.  I've seen a few solutions in 4.0 and above, but that doesn't help my situation. I want the application background image to maintain its aspect ratio, while still being as large as p

  • Table name for plant assign to costcenter

    Dear Experts , Please tell me table name " plant assigned to cost center " display the list Thanks Bhaskar

  • Php form mailer/Flash help

    I have a php form that I am using with my Flash file. It works great so far, but I would like to get confirmation from the php in the Flash file, that the info has really been sent. I think it is already sent up in the php, but I don't know how to ha

  • Pictures in web pages will not print

    I cannot get the pictures that come with web pages to print on my Brother printer.

  • 1 1242 per 8,000/sq ft ?

    What would the estimated output power level be when using a 1242 with rubber ducky antennea in warehouse be to get 1 1242 per 8,000/sq ft for use with 7921Gs? I'm guessing 6mw-12mw? I'm guessing that at 50mW I'd have way too much power for 1 1242 per