First focused button nudges the stage upwards?

Hi,
I'm testing a Flash Lite (3+) application in full screen on a Nokia E71.
I have a list of various sized movieclips on a page (scrollable page, I've built my own UI).
These movieclips are acting as buttons (triggered by "onPress" functions).
I have a scrollbar anchored to the right side of the page, showing how much content sits below the fold. This scrollbar's track height is set to the stage's height, so it'll always fit snug from top to bottom on the right side of the page.
If the first button hangs over, or sits below the fold, Flash Lite nudges my whole content up to show that button clearly when it's focused for the first time.
But no "_y" postion data seems to have changed for me to programatically nudge it back again.
It's like the _root of the Flash Lite movie has had it's _y position nudged upwards by the difference between the fullscreen screen height and the regular (with soft key and title bar) screen height.
Any ideas what's going on, and how I can override it?
Cheers,
- James.

Hi,
The problem has been solved by "fp_david" on the Forum Nokia discussion boards:
http://discussion.forum.nokia.com/forum/showthread.php?p=680306
The simplest is to change the stage size so it is smaller than the screen of the phone you’re running it on. In cs3/4 got to the Stage’s properties menu and change the Stage’s default width and height to 50. This is the easiest fix.
Set the stage size to, say, 10x10, and the nudging ceases.
Cheers,
- James.

Similar Messages

  • Does live streaming video disable event of a button on the stage?

    When a video is streamed from flash Media Server then the
    event assigned to any button on the stage doesn't work at runtime,
    Code example:
    var myNC:NetConnection = new NetConnection();
    myNC.connect("rtmp://server.domain.com/application");
    var myNS:NetStream = new NetStream(myNC);
    myNS.play("myNStream");
    But when the video is streamed without connecting rtmp URL
    and just requesting normal URL, the event of button works.
    Code example:
    var myNC:NetConnection = new NetConnection();
    myNC.connect(null);
    var myNS:NetStream = new NetStream(myNC);
    myNS.play("stream.flv");
    The video streaming is done using NetConnection and NetStream
    class in ActionScript 3.0.
    Does anyone know What's the matter?

    There is no straightforward way in LabVIEW to do on-the-fly H.264 compression.  If you want to send images over TCP, you can do so by converting the image to an array, flattening the array to a string, sending it over a TCP or UDP connection, then on the receiving end you unflatten from string to array and convert the array back to an image.  You can reduce the resolution of the image using the IMAQ Resample VI before you convert the image to an array.  Look up the UDP and TCP examples in the NI Example Finder to see how to create the sender and receiever VIs.
    www.movimed.com - Custom Imaging Solutions

  • How do you tell if the first mouse button or the 2nd mouse button is clicke

    Hi guys,
    I need to figure out if the first mouse button is clicked or the 2nd mouse button is clicked.
    it seems that there is a method that is suppose to return an integer value dpeneding on what button is clicked but I printed out what is being returned and it seems it keeps printing out 0 for both the first and second.
    Here is my code:
      private void initMouse()
              addMouseMotionListener
             new MouseMotionAdapter()
                public void mouseDragged( MouseEvent event )
                    System.out.println("event:" + event.getButton());
                    if(event.getButton() == MouseEvent.BUTTON2)
                        brushColor = Color.LIGHT_GRAY;
                        System.out.println("Button 2 pressed");
                    else
                       // System.out.println("nope");
                   xvalue = event.getX();
                   yvalue = event.getY();
                   repaint();
            }Even when I compare to the constants event.MOUSEBUTTON1 its never true nor is MOUSEBUTTON2, what am i doing wrong here?
    THanks

    there are a number of ways, here's one of them
    SwingUtilities.isRightMouseButton(event)//<---'event' is from your code)

  • [RESOLVED] Double text label on focused button in the Eclipse

    Hi!
    After update in addition to this I get one more thing: in the Eclipse (both in a CDT and in a PDT) labels on a focused button gets doubling now.
    It looks like this:
    There is no such an artefacts in other java (and non-java) apps which I have.
    Any ideas?
    Offtopic: may someone for whom English is native language to comment my grammar? :-)
    Last edited by beaux_monde (2014-02-07 13:55:19)

    It looks like I resolved this issue by myself.
    I use qtcurve. And if I uncheck "Embolden text" in a "Default Button" in a qtcurve settings label doubling goes away... But this was detected in the Eclipse only.

  • How to Create Buttons outside the stage area

    I am able to create my flash project and make it function
    they way I intended, however, I need to be able to place the
    buttons, that control the flash, outside of the flash stage, in a
    different location on the web page, is this possible ?

    Could it be as simple as naming the external button the same
    as the potential flash button, or does the flash movie only
    recognize button presses within the flash movie. I suspect this is
    true.
    Is there any example code that would enable this ?

  • Making a complex button with the Tween class...not sure why this isn't working.

    Hi all,
    I'm trying to make a button which scales up on rollover and
    scales down on rollout and I wanted to use the Tween class to do it
    because I'm going to be making a bunch of these buttons and I want
    the code to be as efficient as possible.
    So right now I have a circle in a movie clip, and here's what
    I have on the first frame of that circle's actions layer:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function grow(who) {
    var tw:Tween = new Tween(who, "_xscale", Strong.easeOut,
    100, 400, 1, true);
    var tw2:Tween = new Tween(who, "_yscale", Strong.easeOut,
    100, 400, 1, true);
    function shrink(who) {
    var tw3:Tween = new Tween(who, "_xscale", Strong.easeOut,
    400, 100, 1, true);
    var tw4:Tween = new Tween(who, "_yscale", Strong.easeOut,
    400, 100, 1, true);
    this.onEnterFrame = function() {
    trace(rewind);
    if (rewind == true) {
    shrink(this);
    this.onRollOver = function() {
    rewind = false;
    grow(this);
    this.onRollOut = function() {
    rewind = true;
    The circle scales up just fine but when I rollout it doesn't
    scale back down. I did a trace to see if my tween was being called
    and sure enough it was. So I did another trace to see if the
    _xscale or _yscale was changing and they both were going down to
    around 290 on rollOut although there's no noticeable difference in
    the size of the button, it just looks like it's sitting there.
    I was also wondering if importing the whole class library
    will add very much to my file size?
    Also, since I'm going to have a lot of these buttons on the
    stage at the same time (these buttons will be like markers all over
    a map so there'll probably be around 50+) would it be a bad idea to
    have that many onEnterFrame checks running simultaneously? Is that
    going to slow the user's CPU way down?

    Thanks for the suggestions guys.
    I tried your code and got the rollOut to work but the button
    blinks rapidly if the user rolls out and then rolls back in
    quickly. Here is a link to the swf:
    http://www.stationarynotes.com/studioI/buttonTest.swf
    It also has to reach a complete stop the first time the
    button expands or else it won't run the shrink function on rollOut.
    I put all of my code on the first frame of the movie clip's
    actions layer so here's what mine looks like:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function grow(who) {
    var tw:Tween = new Tween(who, "_xscale", Strong.easeOut,
    100, 400, 1, true);
    var tw2:Tween = new Tween(who, "_yscale", Strong.easeOut,
    100, 400, 1, true);
    tw.onMotionFinished=function():Void{
    who.onRollOut = function() {
    shrink(who);
    function shrink(who) {
    var tw3:Tween = new Tween(who, "_xscale", Strong.easeOut,
    400, 100, 1, true);
    var tw4:Tween = new Tween(who, "_yscale", Strong.easeOut,
    400, 100, 1, true);
    this.onRollOver = function() {
    grow(this);

  • Dynamically loaded swf to communicate with MovieClip on the stage

    I have a heck of time here with an issue. I have an xml document that when a certain button on the stage is clicked it loads it's corresponding external swf into an empty movieclip on the stage. This empty movie clip is a holder for all external swfs.
    So what I'm trying to do is when an external swf is loaded that has buttons on it, I need those buttons to communicate with the main timeline and remove a mc that is on the Stage. I need the currently loaded swf(s) to be able to do this. So whatever the currently loaded external swf is that's loaded, I need it to talk to the main timeline. (I have quite a few external swfs that need to do this) So I imagine I need to somehow target the currently loaded external swf to get it to talk to the main timeline.
    The code below in summary doesn't work but it doesn't give errors either. I don't pretend to know what I'm doing and I haven't been successful in searching for a solution to this particular issue. If someone could give me guidance or direct me to a solution. I'd so much appreciate it.
    // main timeline object
    var index:Object=this;
    function loadComplete (e:Event) {
            TweenMax.to(index.mcholder,1, {alpha: .5});
    // add the current module to the mcholder movieclip by using addChild
            index.mcholder.addChild(e.currentTarget.content);
           (e.currentTarget.content as MovieClip).addEventListener("eventTriggered", startListener);
    function startListener(e:Event):void {
    var ext_swf:MovieClip;
    ext_swf = e.currentTarget.content as MovieClip;
    trace("external swf");
    ext_swf.button1.addEventListener(MouseEvent.CLICK, talktomainswf);
    function talktomainswf():void {
    TweenMax.to(index.mc_thatsonthestage, 1, {x:1000});
    // now we have the first load we set firstLoad to false
            index.firstLoad = false;
        function loadError (e:Event) {
            trace("error");

    You can use the event dispatcher to communicate between external swfs and a main timeline,
    like so:
    //in an external swf
    //Once loaded
    function onLoadComplete(event:Event):void
         //dispatch an event in the form of a string
         dispatchEvent(new Event("Talk to Main Timeline")); 
    //On the Main timeline
    //listen for "Talk to Main Timeline"
    stage.addEventListener("Talk to Main Timeline", listenForCallsFromExternalFiles, true);
    //if the event is heard, do this:
    function listenForCallsFromExternalFiles(e:Event):void
         trace("I heard ya, now do stuff...");
    That's the basic idea anyways, I use it all the time.
    hope that helps,
    ~chipleh

  • Generic function to place a component on the stage in ActionScript-3.0

    Hi all,
               I am new to flash and ActionScript 3.0.I am learning ActionScript 3.0.
               My requirement/need  is the AS3 code for placing any type of Component(viz., Button, CheckBox, ComboBox, ListBox, radiobutton, Slider, Scrollbar,Label,TextField, etc.,) on the stage with desired width,height, X and Y parameters(values) which we mention in "Properties" tab of Properties Window in flash.          Hence, What i need is, (say)a generic ActionScript 3.0 method/function, which places any of the components present in "Components Panel" onto the stage.
                    i.e., As per my idea, the function prototype or signature may be like this:
                         function addComponent(int <width>, int <height>, int <XPos>, int <YPos>)
               Plzzz... Can anyone help me in this context....  It is a general query i think so. i.e., A basic programmer's task for defining a function for my requirement.           I think,                if I want to add a Button onto the stage at 100,100 pixel position and the button component's width and height are 50,50 respectively, (i.e., button.X=button.Y=100 && button.width=button.height=50).
               So, a button must be placed at 100,100,             then, the sample code looks like this:
                                  Button <btn_instance> = new Button();     //creates Button instance
                                  <btn_instance>.addComponent(50,50,100,100);// properties of button.
    I hope someone will help me.
    Thanks in advance..
    Srihari.Ch

    (OTTOMH) you could have a function similar to:
    function placeComponent( container:DisplayObjectContainer, component:UIComponent, w:int, h:int, xpos:int, ypos:int ):void
      container.addChild( component );
      component.move( xpos, ypos );
      component.setSize( w, h );
    called with:
    var b:Button = new Button();
    placeComponent( this, b, 100, 20, 200, 200 );
    You were alost there

  • How to tell who is on the Stage?

    How can I tell which movie currently is on the Stage, to be
    able to remove
    it?
    For example, I have 3 buttons on the stage:
    button "Banana"
    button "Apple"
    button "Orange"
    When I press "Apple", the movie clip "ApplePie" is attached
    to the movie
    container on the stage:
    _root.Banana.onRelease = function(){
    _root.MovieContainer.attachMovie("ApplePie","ApplePie",1,
    {_x:0, _y:0});
    Now, if I press Orange, I want to remove previous movie clip
    from the stage
    and attach new - "OrangePie".
    But how can I know what movie clip is currently on, to be
    able to remove it?
    I may have 50 buttons, and I can't know which of them was
    pressed
    previously..
    Any ideas?
    Thanks in advance,
    B.

    Thanks :)
    I didn't know that loading another movie would remove
    previously loaded..
    "Rob Dillon" <[email protected]> wrote in message
    news:fv4gou$bi3$[email protected]..
    > You can create a variable to hold the name of the
    currently loaded movie.
    > If you only need one movie on the stage at any time,
    then just have one
    > movieClip on the stage that you load the others into.
    >
    > If as in your example code, everything is loaded into a
    clip named
    > MovieContainer, then you don't need to unload the
    current movie. Loading a
    > new
    > movie into the same movieClip will remove the current
    movie by default.
    >

  • Forcing a symbol within a symbol to play out when a button on the main timeline is clicked?

    I have a buttons that play to symbols on the timeline. Once another button is clicked on the timeline the symbol will playout then start playing the next symbol. This is the code used on the onClick event on the introduction button.
    var current = sym.getVariable("current");
       if (current != "") {
          sym.getSymbol(current).play("out");
          sym.getSymbol("intro").play("in");
       else {
          sym.getSymbol("intro").play("shortIn");
       sym.setVariable("current", "intro");
    The problem I'm having is with the technology symbol. I have buttons within this symbol that link to other symbols. I would like these symbols to playout like the other buttons, but the content of the symbol stays on the stage and does not play out when I select a button on the Stage. Here is the code I have on the click event on the button within the symbol.
    var current2 = sym.getVariable("current2");
       if (current2 != "") {
          sym.getSymbol(current2).play("out");
          sym.getSymbol("optical1").play("in");
       else {
          sym.getSymbol("optical1").play("shortIn");
       sym.setVariable("current2", "optical1");
    Any help would be greatly appreciated. Thank you very much!

    Thank you very much for responding so quickly! When I do this all of the nested timelines play from the out label on their timeline. I want the one that is currently being viewed to be the only one that plays out, not all of the symbols within the symbol. Here is the code I'm using on the buttons on the main timeline:
    var current = sym.getVariable("current");
       if (current != "") {
          sym.getSymbol(current).play("out");
          sym.getSymbol("spec").play("in");
       else {
          sym.getSymbol("spec").play("shortIn");
       sym.setVariable("current", "spec");
       var techSym1 = sym.getSymbol("tech").getSymbol("techSym1")
             if (current = "techSym1") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym1").play("out");
       var techSym2 = sym.getSymbol("tech").getSymbol("techSym2")
             if (current = "techSym2") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym2").play("out");
       var techSym3 = sym.getSymbol("tech").getSymbol("techSym3")
             if (current = "techSym3") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym3").play("out");
       var techSym4 = sym.getSymbol("tech").getSymbol("techSym4")
             if (current = "techSym4") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym4").play("out");
       var techSym5 = sym.getSymbol("tech").getSymbol("techSym5")
             if (current = "techSym5") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym5").play("out");
       var techSym6 = sym.getSymbol("tech").getSymbol("techSym6")
             if (current = "techSym6") {
                sym.getComposition().getStage().getSymbol("tech").getSymbol("techSym6").play("out");
    If just techSym1 is being shown on the screen I don't want techSym2 and all the others to be shown going out at all, just techSym1.
    Thank you,
    Kristin

  • Open HTML page from the stage

    How can I open a HTML page by pressing a button on the stage?
    I've created a rollover button and I'm trying to make it open
    an existing html page from the local disk (not an internet URL).
    But I can't make it open with Lingo or behaviour.
    Please help.
    Thanks a lot.
    Gideon.

    goToNetPage "
    http://somewhere.html" is the
    typical form for a page on
    the web, director must use the address format the system's
    browser uses
    for local files, this is somewhat platform dependant, a
    practical
    aproach is to open the file in question from within your
    browser then
    copy and paste the displayed address into your lingo code.
    Some report the goToNetPage counterpart provided by the
    buddyAPI xtra
    works more reliably, the xtra can be used for free if limited
    to a
    couple of functions.
    An alternate approach buddyAPI can use is to have the browser
    directly
    access the html file as if it were double clicked in the file
    manager
    using the same form commonly used to open PDF files with
    acrobat.
    (sorry I don't have example code handy)

  • Deselect radio buttons except the one that execute change

    Hey!
    Im curious how to improve this code;
    if(this.rawValue == true){
         radiobtn1.rawValue = 0;
         radiobtn2.rawValue = 0;
         radiobtn3.rawValue = 0;
    into a function that unchecks all radio buttons except the one that you checked as true.
    Thank you!

    I put radio buttons on the stage drag-and-drop style, rather
    than have them generated at runtime, and no I don't have any code
    to remove previous instances. I'll try adding code to add and
    remove those as the script runs and see what I come up with. I'm
    still an incredible newbie, so even though I know what I want to
    happen it takes me a while to figure out how to code it.

  • Using LabView to serial interface my microscope how I make a user interface to make the stage move by pressing buttons?

    I have used LabView very little and am trying to write a program to control a microscope. I want to be able to give it commands such as to get the stage to move left, right, forward, back, and return to zero. I'm having trouble implementing the code into my block diagram. I've been reading LabView 8.6 tutorials for a couple of weeks and I'm still learning. What I know that  is that I need a event structure inside a while-loop for the user interface but I've been stuck.
    Thanks for any help! If you need me to try and provide more information please say so.
    Attachments:
    Button.vi ‏21 KB

    Alright so my serial port code should be inside a while loop unfortunately it doesn't work whenever I enter a command to move the stage. It sits there maybe I'm missing something.
    So let me give you an overview to what happens in my code, so the configure serial port is very crucial. The VISA Write writes the bytes to the port. The first VISA Write takes the string to write command. I connected the second VISA write to make it easier whenever I enter a command, the \r will iniate the command as a whole. Example L\r will move the stage to Left once, ending up at VISA Read then closing. All of this found in separate case structures.
    Now the user interface to control the the movement of the microscope is one of my issues, making several attempts to make it work yielded no results. My best work not the best but a attempt is attached, also one of the things with this I'm having trouble with is getting the button to talk to the stage. On previous buttons I worked on I could press the button and light up an LED on the front panel, I thought the same principle would relate to the movement of the stage, no such luck.
    I hope I cleared up some misconceptions on my part, I appreciate your patience.
    Attachments:
    OptiScan.vi ‏14 KB

  • How can I disable the previous button in the first page and the next button in the last page?

    Hi all,
    I have created a new skin for a webhelp by modifying the layout and the buttons. However, I am not able to find a way where in we can
    disable the previous button ini the first page of the webhelp and hte the next page in the last page of the webhelp. If both the next and previous button is visibile in the first and last page, it is sort of misguiding the user.
    I am using Robohelp 9.
    Please advice.
    Thanks,
    Parag

    I think you are mixing Previous and Next in a browse sequence and the Previous and Next that you get in the browser itself.
    In a browse sequence, they are automatically disabled at the start and finish. When in the first topic in the sequence only Next will be enabled, when in the last topic only previous will be enabled.
    Previous and Next in the browser are working on the topics your user has viewed which is not the same thing.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I updated the system on my I pad yesterday. Now I can not start my I pad. The screen is black, if I hold the button on the right side, first the Apple logo starts, than immediately the I-tunes Logo with a "Plug" sign comes up. That stays on for ever. What

    I updated my I pad yesterday with the ISO 7.04 . Now it just has a black screen. When I hold the button on the right hand down for 10 seconds, I first very briefly get the Apple Logo, than immediately the I-Tunes sign with a plug sign. I cannot get anything else working. I did not have I-tunes on my i-pad since the file is large, but have it on my MAC . So how can I get my I-pad working again????

    This solved all my problems. It took a while, about 87 minutes for the complete "restore to factory setting" and after that about 30 minutes to put all my contacts etc. back on.
    It did'nt matter how long it took, I have my I-Pad back and that is great.
    I really do appreciate your help. Thank you so much.

Maybe you are looking for

  • Adding 2nd iPhone To AT&T Account?

    Quick question, folks. I currently have an iPhone 3G on my AT&T account, as well as an additional Nokia phone line on the plan, which charges me an additional $10 a month. My Father decided he would like to get an iPhone 3G, but would like to add it

  • Cost of replacing faulty goods

    generally warrenty has to be given in the form of credit memo,it has its own document type and has been created with reference to invoice only,wirte a user exit for that document type(credit memo) in that mention that this particular document taking

  • Importing Word docs  (creates multiple topics)

    When I import a word document it creates multiple topics for each file breaking up the document. How can i prevent this. The word document contains bulleted and number lists. Court

  • Apple Earpod volume down control not working

    The play/pause button works great as well as the volume up, however the control doesn't respond when I press the volume down. The earpod has not been exposed to any water or the sort. Why is this happening? Thanks.

  • Difference in between Cisco CP-PWR-CUBE- 3 and CP-PWR-CUBE adapter

    I need to buy CISCO power adapter for my CISCO IP phone 7942 phone. but I need to confirm if I buy CP-PWR-CUBE adapter it will work for my IP phone? or I need to buy only CP-PWR-CUBE 3 adapter. As input and output voltage and current for both the ada