Off stage object's

Hello Adobe community,
I need a little help with a project i' m working. I' m trying to create a web site and i'm using flash catalyst because i want some specific actions on it. On flash catalyst stage, i have an image with specific dimensions, let's say 1600x1200, and a button in front of the image. Also i have an object, let's assume an image, dimensions 1600x400, outside the stage, on the right side. When i'm clicking the button, this object is moving, from right to left, and is entering in the stage replacing the first image. This is my project, and here is where my problem begins. I'm having the "classic" problem with scale, so after a litllte research i found something here.  I'm importing the fxp file to flash builder. On the <Application> tag, in the Main.mxml file, i'm removing the width and height attributes and replece them with this attribute: preinitialize="systemManager.stage.scaleMode='showAll'" . From flash builder menu, i'm choosing Project > Export Release Build to publish a version of my swf. I create an index.html page and i embeding the swf there. So,
The file is only scaling horizontally, which means that i only see a part of my page, something like 3200x300 on the top of the screen. The rest height is cropped and the page is blank
I can see the object that was outside the flash catalyst stage and shouldn't be visible.
Any idea how can i fix those two things? 

When i'm using this code:
<title>Untitled Document</title>
<style type="text/css">
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
</style>
</head>
<body>
   <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="100%" height="100%">
<param name="movie" value="file:///C|/Users/user/Desktop/project scale/Main.swf" />
<param name="quality" value="high" />
<param name="LOOP" value="false">
<param name="SCALE" value="exactfit">
<embed src="file:///C|/Users/user/Desktop/project scale/Main.swf" width="100%" type="application/x-shockwave-flash" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" loop="false" scale="exactfit" />
</object>
</body>
the result is this:
the blue arrow shows the area, that shouldn't shown, and the black arrow shows the area that should be my index page. The stage i used i flash catalyst and flash builder is the size of the image shown with the black arrow, 1600x1200. The rest are (blank area) is cropped..
If i set dimensions on the above html code:
body {
    width:1600px;
    height:1200px;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
and the result is this:

Similar Messages

  • Off-stage objects affecting performance

    Hello,
    I have a list of 50 rows (with images and buttons and stuff)
    that the user has to be able to scroll through, and it has to wrap
    around, top to bottom. So imagine a 1x50 spreadsheet, but you
    really only see 4 rows at a time. Common sense says that you would
    only build a little of it above, and a little below the stage so
    that you can scroll smoothly and shuffle things as needed. For
    reasons I won't go into (ok, it was easier) I built the entire 50
    row "spreadsheet", and then do my scrolling, and then shuffle
    things to the top and bottom of my list as needed. My question is,
    do all those things that are off the stage eat up performance? They
    have buttons with listeners, graphics, and references to other
    objects in them. At some point if it gets too big, I know that the
    mere task of moving things becomes noticeable, but this list will
    never get over 100. thanks.

    yes. just because you can't see them, they still must be
    tracked and maintained by flash.

  • How do I hide off stage objects ?

    Hello,
    I have just started an internet course on Flash. The second assignment is creating a 720 x 90 animated banner ad. When I test the movie in Flash Professional the objects that I have outside the stage are still showing.
    I want to start an object outside the stage on one side and have it go across and out the other side.
    How can I just show just what's in the stage ?
    I am using version CS5.
    Thanks

    Ok cool thanks guys.
    I think I understand whats going on. If I view the .swf file it will show everything, but if I view the same movie in .html the objects will be confined to the stage parameters I set. In this case 720 x 90.
    Is that correct ?
    I guess my next question is where is that darn html file ? Or how can I save my movie to a .html file ?

  • How far off stage can I move a tweened object

    Flash Pro CC 2014, all updates.
    I have a movie clip that is about 5500 pixels wide. I need to have it enter and exit across a 1920 x 1080 stage. As I try to move it to the left, it won't let me motion tween it far enough to get it off stage. It reaches the point where the left side of the object is at -3780 and that's the limit. I can drag it farther but when I release it the movie clip snaps right back to this distance.
    Also, I need to activate roving frames so the motion is smooth, but for some reason I don't get the option, it's grayed out in the menu. Don't know if this relates to problem #1 or if I am just doing something wrong.
    This one is a hot potato, as usual, I have someone hyperventilating to get this back to them.
    Thanks for any help!

    Except that it still won't work. That's one of the first things I tried.
    If I position the mc at x = 1980 so it's left edge is just off stage, then motion tween the span, then go to the last frame of the span, I enter -5478 into the x value in the properties panel and it turns it back to -3779 when I change focus just like when I drag it. It's like there's a limit on how far it will let me go.
    If the mc is not in a tween I can slide it left forever (thank you unlimited pasteboard), but in a tween it refuses to go past x = -3789. Is there a tween limit somewhere? It won't go more than 7740 to the right either, just snaps right back when you release it or change focus in the properties panel.

  • Animating A Stage Object

    I want to cause objects to move off stage after a button is
    pressed. I've looked at different as3 code examples but can't get
    them to work. My goal is to have several objects move smoothly off
    stage in the up, left, right, and down directions after button is
    pressed. Thanks

    I recommend using the Tweener classes for small motion
    tweens, it is very easy to implement and use...
    http://code.google.com/p/tweener/
    Once you know how that works, you have to put this in your AS
    code
    button_btn.addEventListener(MouseEvent.CLICK, moveItems);
    function moveItems(event:MouseEvent) :void {
    //insert code here to move objects
    }

  • Placing something off stage in flex

    Hi there, I am looking to make a state where an object or
    component starts "off stage" and advances to a state in which it
    will be "on stage". This was pretty easy to do in flash, however I
    tried putting something off stage with AS, and my flex app just
    added a scroll bar. I know i could just over ride the scroll bar to
    not show, however I am not sure if I might actually need it later.
    I am sure it must be a pretty simple thing to do - but I am just
    not sure in flex!

    Thanks for the reply! I figured thatr one out last night, but
    also had to kill the horizontal scollbar to get it to work.

  • Accessing stage objects from other objects

    I have drawn colored rods which I have placed in the library and have put one of each on the stage with instance names like
    blueRod_mc, etc.
    I place them around with time-line code like
    blueRod_mc.x = 300.0;
    I have now created an Actionscript class called Problem.
    I build a new object from Problem which I have called Riddle.
    But when I put blueRod_mc.x = 300.0 in a method (of Problem),
    I get the message that blueRod is not accessible.
    So I tried
    stage.blueRod_mc.x = 300.0;
    That did not work either.
    What does work? How can I modify properties of stage objects like blueRod from
    within an AC3 object like Riddle?

    public class Problem {
      private var number1:String ="";
      private var number2:String ="";
      private var rigor:Number = 1;
         // rigor: -1 is 3 steps, -2 is 4-5 steps, -3 is 6-7 steps
      private var step:Number = 1;
      private var numSteps:Number = 3;
      private var solving:Number = 0;
      private var true1Length:Number;
      private var true2Length:Number;
      private var tuple = new Array(6);
      public function Problem():void  {
       // constructor code
       var i:Number;
       var j:Number;
       for (i = 0; i < 6; i++) {
                     tuple[i] = new Array(3+5);
                     for (j=0; j < 3; j++) {
                       tuple[i][j] = new Array(8+7);
       buildIt();
       planIt();
    Just insert bolded code where you need to.

  • Simple "next" buttons & off stage question

    Hi, just getting myself reaquainted with Flash after not using it since ActionScript 1.0 was around.
    I'm having trouble creating a simple "storybook" for my son. I'm wanting to add a "next" button in the corner of each page to jump to (and play) the next scene. I've tried with frame labels and numbers, been searching online for 2 days but nothing I've found seems to work.
    Can anyone help?
    here is the fla file: http://db.tt/IbZeiv6
    Also, the things I make are for my Android phone and tablet, is there a way I can stop the things off stage from showing?
    for example, I am making it mainly for my tablet, but if I play it on my phone, it has a slightly different aspect ratio so there's white borders at the top & bottom (project has a white background) and if something is slightly off stage it shows over the white background at the top/bottom, is there a way to stop this?
    thanks in advance

    Should be like this:
    stop();
    cover_next.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void{
        gotoAndStop(1,"Page1");
    For off stage please use mask on the stage. Better change your framerate(FPS) to 24.

  • Off stage printing

    I have a director movie from which I wish to print. I have
    created the image I wish to print, which is made up of several
    sprites, and put a border sprite around this. What I wish to be
    able to do is to print this group of sprites from off stage. The
    user should never see them appear on screen. I have previously used
    code along the lines of:
    stageImage = (the stage).image
    spriteImage = stageImage.crop(sprite(83).rect)
    member("printimage").image = spriteImage
    to take a section of the stage and store it as a cast member
    which I can then print. However because I want my section to be
    taken from offstage I am unsure how to do it. I have tried taking
    using the sprite(83).rect to define the image but this doesn't
    work.
    Any help will be most appreciated.

    I don't think you should be any different than the rest of us
    and escape the
    hassle of assembling printable pages using Print-O-matic;)
    But Print-O-matic is the way to go hands down.
    Craig Wollman
    Lingo Specialist
    Word of Mouth Productions
    212-928-9581
    www.wordofmouthpros.com
    "thismonkey" <[email protected]> wrote in
    message
    news:er49ct$h7q$[email protected]..
    > Another issue is that the combined size of the table of
    sprites I which to
    > print is bigger than my stage so I cant simply place it
    on stage and print
    > the
    > stage either.
    >
    > The on screen feedback is displayed over 3 screens where
    as the printed
    > feedback puts all 3 pieces into one big table (hence
    being bigger than
    > stage
    > size) and this is what I want to print.
    >
    > I have used printomatic before, but I cant simply amend
    cast members to
    > the
    > document as they need to print out in the correct
    location or else the
    > feedback
    > (and ticks/crosses) will not line up/be relevant. Also a
    problem with
    > printing
    > off individual sprites, hence I need to grab a
    'screenshot' of the table
    > from
    > off stage, store it as a cast member which I can then
    print.
    >
    > Im trying to give as much info as possible as I am
    running out of ideas.
    >

  • Off-Stage Buttons

    Hey guys.
    I'm trying to write code for flash to scroll through a series
    of vertical buttons on the stage. There are off stage buttons that
    the movie needs to go to when you scroll down. Known problem of
    Flash Lite is that you can't scroll or detect any buttons that are
    off-stage. Has anyone encountered a problem like this before? I've
    searched around and got no real good results.
    My first theory to do this is more of tracking on-stage
    buttons and using it to move the movie and bring off-stage buttons,
    on stage. But it starts to make the code complacated. I was hoping
    to just to write code that track if its off-stage and then go, hey
    bring it on stage.
    Any help would be super appriciated. Thanks alot!!!

    A common approach to creating a scrolling menu is to put your
    buttons in a movie clip, acting as a container, then set the movie
    clip _y property to reposition the movie clip so that the offscreen
    buttons appear on screen and the previously on screen buttons move
    off screen.

  • What's the variable gpuAccelerate in stage object for?

    Hi!
    What's the variable gpuAccelerate in stage object for?
    It's per default false.
    I've tried to find an answer to this but I couldn't get one from tech docs.
    It also doesn't seem to change paints (looking at one of my animations in Canary's Inspector) if true.
    Thanks,
    Volker

    Hi Darrel, hi Elaine!
    @Darrel: I'm aware of the hardware (GPU) acceleration options in different browsers/systems. I'm just wondering _what_ the boolean in the script output of Edge actually does.
    @Elaine: But _when_ would it switch on GPU in the animations and _where_ (which browsers/platforms)? There's no documentation I've found so far about it and the var is included in every animation with default 'false'.
    And what are the possible pitfalls?
    After beautifying edge-1.5.0.min.js it seems that it just enables the translateZ trick for (some) Webkit based browsers.
    if (this.gpuAccelerate && f[0].style && (typeof n === "undefined" || n === "" || n === "none")) f[0].style.webkitTransform = "translateZ(0)";
    But Edge does anyways already use 3D transitions in its animations?
    Thanks,
    Volker
    Message was edited by: Volker_E

  • Hide contents off stage problem

    i'm dynamically pulling in a few flash banners onto a website i have.  my problem is kind of weird and i havent been able to find any info, so any help is greatly appreciated.
    objects that appear outside of the stage area are showing up on screen despite the publish settings and everything else i can think of indicates the flash should be showing exactly at 728x90.  it's really weird, especially given that if i publish an html page from flash directly, that page does NOT display anything outside the stage box.  are there any params i can set in the embed that will basically hide overflow of content off the stage?
    hope those rambles make sense.
    thanks
    j

    Easiest way to do this is just to make a mask in your fla on top most layer and put all your animations under that.
    FP still plays content that is on stage but outside of the stage bounds if the "window" is streched beyond stage size. This can happen if your swf is set to noScale and your embed dimensions are larger than your swf dimensions.

  • Generate quote off custom object--HTML in narrative duplicates table

    Hi,
    I am trying to build a quote header and lines off a custom object. Quote header works, but I am using a separate narrative report called from a web link to show the quote item lines data. The narrative section displays my basic table header and lines, but since the report returns two rows for the selected parts, the table with the header and lines is displayed twice, once for each row returned by the report itself.
    I just want one instance of the table, one header and two lines, not separate tables for each part.
    Here is the sample html placed in the narrative section of the report.
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2"><BR><H3>TABLE TITLE</H3>
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TD>@5</TD><TH>Column B</TH><TD>@8</TD>
    </TR>
    </TABLE>
    Many thanks for any input.

    Hi,
    Instead of putting it all in the Narrative section you could use the Prefix and Postfix like below:
    <!-- Prefix -->
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2">
    TABLE TITLE
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TH>Column B</TH>
    </TR>
    <!-- Narrative -->
    <TR ALIGN="CENTER"><TD>@5</TD><TD>@8</TD>
    </TR>
    <!-- Postfix-->
    </TABLE>

  • TitleWindow PopUp Can Be Dragged Off Stage!

    I am making a popup window using a custom TitleWindow component which is opened by clicking a "Settings" button using the following method:
    private var titleWindow:TitleWindow;
    private function popUp():void {
        titleWindow = PopUpManager.createPopUp(this, CustomTitleWindow, true) as TitleWindow;
        PopUpManager.centerPopUp(titleWindow);
    Everything is working fine, however, I am able to drag it completely outside the stage!  If the user releases the mouse while the window is off the stage, then there is no way to find/grab it again and bring it back on the stage!  Of course, this situation is not too acceptable for customers.  Is there any way that I can limit the popup window to the boundaries of the stage?
    Also, if the user clicks the "Settings" button multiple times, multiple popup windows will be opened!  I don`t want to make the popup window modal.  Is there any way to limit instances of the popup window to one?
    Thank you in advance for any help anyone can give!
    Matt

    Hi Matt,
    Here's a solution for bounding the moves of a TitleWindow:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" >
        <fx:Script>
            <![CDATA[
                import mx.managers.PopUpManager;
                import spark.components.TitleWindow;
                import spark.events.TitleWindowBoundsEvent;
                private var titleWindow:TitleWindow;
                private function popUp():void
                    titleWindow = PopUpManager.createPopUp(this, TitleWindow, true) as TitleWindow;
                    PopUpManager.centerPopUp(titleWindow);
                    titleWindow.addEventListener(TitleWindowBoundsEvent.WINDOW_MOVING,
                                                 titlewindow1_windowMovingHandler);
                protected function titlewindow1_windowMovingHandler(event:TitleWindowBoundsEvent):void
                    // These are the new bounds when the window is moved.
                    // You can modify them to alter the result of when the TitleWindow moves.
                    var endBounds:Rectangle = event.afterBounds;
                    // left edge of the stage
                    if (endBounds.x < 0)
                        endBounds.x = 0;
                    // right edge of the stage
                    if ((endBounds.x + endBounds.width) > this.width)
                        endBounds.x = this.width - endBounds.width;
                    // top edge of the stage
                    if (endBounds.y < 0)
                        endBounds.y = 0;
                    // bottom edge of the stage
                    if ((endBounds.y + endBounds.height) > this.height)
                        endBounds.y = this.height - endBounds.height;
            ]]>
        </fx:Script>
        <s:Button click="popUp()" />
    </s:Application>
    Basically, I add an event listener for the "windowMove" event on the TitleWindow and limit where it can move around in the application. You can see the ASDoc for TitleWindowBoundsEvent for more information. Hope this helps!
    -Kevin

  • Constructer arguments stage object

    Hi Everyone
    I have a game I’m currently working on and I’ve
    got some library movie clips with actionscript attached, the
    constructors for the actionscript files have several arguments
    obviously when I instantiate the movieclip via code with the new()
    statement I simply pass those arguments in no problem, but how do I
    pass in the arguments when I drag an instance to the stage from
    within flash. All I currently get is an error message
    “incorrect number of arguments”.
    Any help greatly appreciated its driving me nuts not knowing
    how to do this

    Ive been messing around with the code since and its not
    reporting the same error now cant remember exactly what the old
    message was but this is what its reporting now.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    heres my constructor
    public function Button(xnum:int, ynum:int)
    {this.x = xnum;
    this.y = ynum; }
    the button is dragged to the stage in flash before its
    compiled.
    without the arguments it works fine no errors ie
    public function Button()
    {}

Maybe you are looking for

  • Bad quality pictures in dim light

    When I'm in dim light situations, (Bar) my pictures are grainy and really dark. When I used several of my friends iPhones to take additional pics, I noticed 1) the image on the screen before taking the picture is brighter. 2) the picture is is better

  • Export Query Data to Excel

    Hey guys, I have a cfm page that I am using to query data, and the  result set is displayed on the same page when a user clicks submit. My question is, I would like to create a clickable icon where, after a  user runs the query and the data table dis

  • [SOLVED] Mouse Acting Up When Using Cinnamon In Non-Root Accounts

    I have recently installed Arch linux on my computer, alongside Ubuntu and Windows. I installed cinnamon and xorg from the official repositories, and was happy with the experience. However, I wanted to transition from a root account to a normal user a

  • New computer build for video editing, daily use of Premiere Pro, what do you all think ?

    I'm building a new PC for using video editing softwares with because my old one is getting tired. I'd like to know what people think of that configuration. I plan on using this computer with the latest versions of After Effects and Premiere, i'm also

  • Safari and the BBC

    I'm using a macbook with 10.4.8 and realplayer through safari. Every 2or 3 mins I get a connection timed out message when listening to the BBC, any ideas?