Resizing movieclips at set intervals

Hi,
So here's my problem - i hope you have solution:
I have a dynmically populated list of buttons (an archive
list for blog) which is masked by a movieclip. The mask resizes to
the height of the stage so that the archive list is always the
correct height.
What I want to do though is have the mask resize at intervals
of 20 (the height of each button in the list) so as the stage
resizes the mask will either completely reveal or completely hide
the bottom button, not cut it of at all.
For example, if the stage was 412 pixels high the mask would
only be 400. If the stage got dragged larger the mask would not
resize until the stage reached 420px. Does this make sense?
If anyone can suggest something that would be great! Thank
you!!!!!!!

Thanks kglad! That's exactly what i needed!

Similar Messages

  • _xmouse on resized movieclip

    I am creating a video player and have a scrub bar which you
    can click on the timeline to get a point in the video.
    The player is dynamic in size and can be opened at any size
    you require, set by the movie dimensions in the HTML.
    I have the controls for the player resizing and positioning
    dynamically with the width of the movie, so the scrub bar is
    dynamically changed in length.
    Everything works except when I click on the bar and retrieve
    the _xmouse position is is still returning the original coordinates
    of the movieclip, its size when created.
    The width of the bar in pixels is being returned correctly
    when I check, it is just the _xmouse coordinates which are
    returning original values.
    e.g. (for ease I have rounded things up)
    If I increase the width of the movieclip from its original
    400px to 800px wide, when I click 3/4 of the way along the resized
    movieclip I get a result of 300px instead of 600px.
    Do I have to reset something?
    Thanks

    use:
    content_mc.work_btn.mouseChildren=false
    content_mc.work_btn.buttonMode=true;

  • Can a web service query a database at set intervals?

    Can someone verify if this is feasible?
    I need to display live data via browsers .  I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
    Here is what I propose :
    I would like to have a web service run on a web server for an intranet.
    Have the web service  query a database every 20 seconds and update the data into a table or an array variable. 
    On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
    Any other recommendations would be greatly appreciated.
    Thank you.
    Chris W.

    Hi ChrisTW1,
    Thank you for posting in MSDN forum.
    Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
    http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
    In addition, since
    this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
    intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
    you will get more help.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to dynamically resize taskflow popup set as inlineDocument.

    I've been trying to figure out how to dynamically set the WindowHeight and WindowWidth of a taskflow deployed as a inlineDocument popup. Sadly, neither the forums nor google came to the rescue so I had to actually figure this one out on my own. But at least now is my opportunity to work up some forum karma! :)
    Sample workspace containing the solution is here: http://www.williverstravels.com/JDev/Forums/Threads/2337969/MaxPopupSize.zip
    General Strategy for Solution:
    - Pull the browser height and width using Javascript
            function browserSize(evt)
              var button = evt.getSource();
              var agent = AdfAgent.AGENT;
              var windowWidth = agent.getWindowWidth();
              var windowHeight = agent.getWindowHeight();
              AdfCustomEvent.queue(button, "customEvent",
                width: windowWidth,
                height: windowHeight
              true);
              evt.cancel();
            }- Using a clientListener and serverListener, pull this information into a managed bean and set height / width in button's setWindowWidth(), setWindowHeight() attribute.
      public void onButtonClick(ClientEvent clientEvent)
        Double dw = (Double)clientEvent.getParameters().get("width")-100;
        Double dh = (Double)clientEvent.getParameters().get("height")-100;
        this.popupButton.setWindowWidth(dw.intValue());
        this.popupButton.setWindowHeight(dh.intValue());
        ActionEvent aE = new ActionEvent(this.getPopupButton());
        aE.queue();  
      }- Due to JSF Lifecycle complications, the managed bean will need to call a different button than the one which holds the client and server listener. It will be the second button (popupButton in the code above) which then calls the popup.
    Props to Frank for the client / server listener tutorial: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf
    Props to Martin Deh for the javascript insights: http://martindeh.blogspot.com/2011/03/dynamic-resizing-for-popup-dialogs.html
    Hope this helps someone down the road.
    Will

    Thanks LovettWB ...
    Your question helped me a lot...  I am able to pass these two parameters width/height to my bean and am able to set it to pop-up :)                                                                                                                                                                                                                                                                                                                                   

  • Resizing Movieclip in a restricted area.

    Dear friends,
    I have 2 moveclip called view_mc and restricted    and button called btn_scale.
    When the user click and drag btn_scale, it resizes the view_mc where the width and height of view_mc dosen't exceed the width and height/2 of restricted area.
    I made that.  But when view_mc reaches the width and height/2 of restricted area, I can't resize view_mc to be samller.
    (The btn_scale looks like it's disables and can't use it)
    I think some logic is missing. I highlighted the code that is missing some logic.
    var clickedX:Number;
    var clickedY:Number;
    var newScale:Number;
    stage.addEventListener(MouseEvent.MOUSE_DOWN, on_stage_down);
    stage.addEventListener(MouseEvent.MOUSE_UP, on_stage_up);
    function on_stage_down(e:MouseEvent):void
    if(btn_scale.hitTestPoint(stage.mouseX, stage.mouseY))
      clickedX = stage.mouseX - view_mc.x;
      clickedY = stage.mouseY - view_mc.y;
      newScale = view_mc.x;
      view_mc.addEventListener(Event.ENTER_FRAME, on_enter_scale);
    function on_enter_scale(e:Event):void
    stage.addEventListener(MouseEvent.MOUSE_MOVE, on_move_scale);
    //////// Some Logic is missing here ////////
    function on_move_scale(e:MouseEvent):void
    if(view_mc.width < restricted.width && view_mc.height < restricted.height/2)
      view_mc.width = view_mc.height =  newScale * (stage.mouseY / clickedY);
    function on_stage_up(e:MouseEvent):void
    view_mc.removeEventListener(Event.ENTER_FRAME, on_enter_scale);
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, on_move_scale);
    please help me solve this problem.
    Thanks alot in advance.

    Update the following code in your application...
    function on_move_scale(e:MouseEvent):void
    if(view_mc.width <= restricted.width && view_mc.height <= restricted.height/2)
      //Find new scale
      var temp = newScale * (stage.mouseY / clickedY);
      //Check if the new scale is within the limit or not?
      if(temp > restricted.height/2 || temp > restricted.width)
       //If its out of the limit update the scale to max value for scale.
       temp = (restricted.width)<=(restricted.height/2)?(restricted.width):(restricted.height/2);
      //Apply scale to MC.
      view_mc.width = view_mc.height =  temp;
    //You should have a simillar check for the lower bound also ideally it will take only 0 as minimum scale value

  • Resizing movieclip with scrollbar text

    Hi Experts,
    Here I am trying to resize a movie clip which contains some dynamic text with scrollbar in a swf using mouse. I am able to resize the movie clip using "setProperty". But unable to control the behaviour of the scrollbar. when I am increasing the size of the movie clip the scrollbar should automatically disappear. But I am unable to do so. Can anyone help me??
    Here is the link of the swf I am working on:
    http://qs1252.pair.com/monarchm/test1/
    Here is the code I have used for the resizer:
    if (this._x <= 20) {
        setProperty(_root.cont.frames, _width, 20);
        setProperty(this, _x, 20);
    } else {
        setProperty(_root.cont.frames, _width, this._x);
    if (this._y <=20) {
        setProperty(_root.cont.frames, _height, 20);
        setProperty(this, _y, 20);
    } else {
        setProperty(_root.cont.frames, _height, this._y);
    Help me
    srinivas

    Thanks for your response. I should be more accurate here...
    I am using two movie clips here. The first one is the "frames" in container and the  second one is "re-sizer". "_root.cont.frames" gets the _x and_y positions  according the to x, y positions of the "_root.cont.frames.re-sizer.re-sizer_btn".
    The UI scrollbar I am using here is a flash component, and is a child of "_root.cont.frames"
    This is my first thread ever! So I am learning the things here. Thanks  for your guidance. I will be more accurate moving further..
    Thank You,
    Srinivas

  • Gauges: Setting multiple intervals values

    Hi,
    I have following report:
    ASL Budget Spend Amount
    1 100$ 200$
    2 200$ 150$
    and I've created a gauge view based on "Spend Amount" measure.
    Now, I see two gauges, one for each row. If I set intervals values, they are common to both rows. Can I define different intervals values for each row? For example
    For first row interval must be
    Green Range 0 - 150
    Orange Range: 151 - 200
    Red Range: 201 - 300
    For second row interval must be
    Green Range 0 - 150
    Orange Range: 151 - 300
    Red Range: 301 - 320
    So, for first row, gauge indicator must be on Orange Range, on the other hand for second row, indicator must be on Green Range.
    All Regards
    Giancarlo

    Hi,Try the follwing exit:
    Cerate a variable which represents Multiple single values and ready for input.
    replace 001 and 002 with Keys of your characteristic values.
    DATA:L_S_RANGE TYPE RSR_S_RANGESID.
    I_STEP = 1.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW ='001'.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    L_S_RANGE-LOW = '002'.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDFUNCTION.

  • Resizing/moving MovieClips to fit screen problem

    I'd like to make an Android and iOS app with Adobe AIR, but I found a problem I can't solve.
    The Flash document size of the app is 800px x 600px, and I'd like to resize MovieClips to fit Android's and iOS' screens, suporting the Retina display on iOS devices.
    I tried using StageDisplayState.FULL_SCREEN and StageScaleMode.SHOW_ALL, and this does seem to work with static MovieClips, so the snippet would look something like this:
    import flash.system.Capabilities;
    import flash.events.Event;
    import flash.display.StageScaleMode;
    import flash.display.StageDisplayState;
    stage.addEventListener(Event.ENTER_FRAME,process);
    var difN:Number = (((stage.stageHeight*stage.fullScreenWidth/stage.fullScreenHeight)-stage.stageWidth)/2);
    function process(e:Event):void {
              difN = (((stage.stageHeight*stage.fullScreenWidth/stage.fullScreenHeight)-stage.stageWidth)/2);
              stage.scaleMode = StageScaleMode.SHOW_ALL;
    stage.addEventListener(KeyboardEvent.KEY_UP,useFullScreen);
    function useFullScreen(e:KeyboardEvent):void {
              if (e.ctrlKey) {
                        switch (e.keyCode) {
                                  case Keyboard.M:
                                            stage.displayState = StageDisplayState.FULL_SCREEN;
                                  break;
    obj.x -= difN
    However, I'd like to use classic tweens in my application, and this won't work since most of the elements are moving.
    I'd like to rescale/move MovieClips so they don't look distorted and every moving item moves correctly, showing all the content and trying to not make any borders. I read this article but it seems like it doesn't support classic tweens: http://www.adobe.com/devnet/air/articles/multiple-screen-sizes.html.
    Thanks for the help.

    1. scaleMode only has an effect when you embed your swf in an html AND you publish for a percentage.
    2. you need to resize your displayobjects using code and/or in the ide.  if you open your document settings panel (modify>document) and change your stage size you are offered some scaling options.  see if any work for you.

  • Is there any way to repeat grid shuffling  at constant intervals while the game is being played ?

    Hello all !
    With the help of some generous members of this forum i have completed an "Alphabet Clicking" game. There is a grid of alphabet
    movieclips which gets shuffled when the player clicks the "Start Button". Simultaneously, a count-up timer is trigerred. Depending
    on the initial choice of incentive made by the player before clicking the "Start Button" , the player will either win or lose the incentive
    based on the time-limit set for each incentive.
    Eg., if the player chooses an incentive of 10 $ the player may have 90 seconds to complete the game. If 50 $, then the player gets
    only 20 seconds, and so on.... To make the game more thrilling and exciting, i wanted to add an additional functionality for a
    very high incentive, like for example, if the player chooses an incentive of 100 $, not only that the player gets just 20 seconds
    to complete the clicks, but the Grids will automatically get shuffled at every 5 second interval.The code that i am using (as guided
    by kglad of this forum) is as given below. Its a perfect code, but like i said, i wish to know how to add yet one more
    functionality [eg. repeated shuffle at set intervals] to this code. I tried using (a) conditional statements or (b) running the shuffle code
    inside a timer etc., but they dont seem to work.
    startBtn.addEventListener(MouseEvent.CLICK, trigGame)
    function trigGame(e:MouseEvent):void{
    startBtn.visible = false;
    var positions:Array = [new Point( 158, 296),new Point(238, 296),new Point(318,  296),
    new Point( 158, 366),new Point( 238, 366),new Point( 318, 366),new Point(158, 436),
    new Point( 238,436),new Point(318, 436)];
    var errors:int;
    var mcs:Array = [n1,n2,n3,n4,n5,n6,n7,n8,n9];
    startF();
    function startF():void{
    errors=0;
    shuffle(positions);
    for(var i:int=0;i<positions.length;i++){
    mcs[i].addEventListener(MouseEvent.MOUSE_DOWN,downF);
    mcs[i].x=positions[i].x;
    mcs[i].y=positions[i].y;
    mcs[i].alpha=1;
    function downF(e:MouseEvent):void{
    if(mcs.indexOf(e.currentTarget)==0 || mcs[mcs.indexOf(e.currentTarget)-1].alpha<.8){
    e.currentTarget.alpha=.5;
    e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN,downF);
    if(mcs.indexOf(e.currentTarget)==mcs.length-1){
    gameoverF(); startBtn.visible = true;
    } else {
    errors++;
    function gameoverF():void{
    // display congrats if errors 0 or some other low number
    // when you want to restart the game, call startF().
    function shuffle(a:Array) {
        var p:int;
        var t:*;
        var ivar:int;
        for (ivar = a.length-1; ivar>=0; ivar--) {
            p=Math.floor((ivar+1)*Math.random());
            t = a[ivar];
            a[ivar] = a[p];
            a[p] = t;
    Thanks a  lot
    with best regards
    Shams

    @kglad
    Sir i used your code with a slight modification (for the timer part) and it throws the following error (given at the end):
    Complete Code Used (the modified part is highlighted):
    var positions:Array = [new Point( 158, 296),new Point(238, 296),new Point(318,  296),
    new Point( 158, 366),new Point( 238, 366),new Point( 318, 366),new Point(158, 436),
    new Point( 238,436),new Point(318, 436)];
    var errors:int;
    var count:Number = 0;
    var t:Timer = new Timer(5,0);
    t.addEventListener(TimerEvent.TIMER,ingameShuffleF);
    function ingameShuffleF(event:TimerEvent):void{
              myText_txt.text = String(count);
              count++;
    var mcs:Array = [n1,n2,n3,n4,n5,n6,n7,n8,n9];
    startBtn.addEventListener(MouseEvent.CLICK, startF);
    function startF():void{
    t.reset();
    t.start();
    errors=0;
    shuffleLettersF();
    for(var i:int=0;i<positions.length;i++){
    mcs[i].addEventListener(MouseEvent.MOUSE_DOWN,downF);
    mcs[i].alpha=1;
    function shuffleLettersF(e:TimerEvent=null):void{
    shuffle(positions);
    for(var i:int=0;i<positions.length;i++){
    mcs[i].addEventListener(MouseEvent.MOUSE_DOWN,downF);
    mcs[i].x=positions[i].x;
    mcs[i].y=positions[i].y;
    function downF(e:MouseEvent):void{
    if(mcs.indexOf(e.currentTarget)==0 || mcs[mcs.indexOf(e.currentTarget)-1].alpha<.8){
    e.currentTarget.alpha=.5;
    e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN,downF);
    if(mcs.indexOf(e.currentTarget)==mcs.length-1){
    gameoverF(); startBtn.visible = true;
    } else {
    errors++;
    function gameoverF():void{
    // display congrats if errors 0 or some other low number
    // when you want to restart the game, call startF().
    t.stop();
    function shuffle(a:Array) {
        var p:int;
        var t:*;
        var ivar:int;
        for (ivar = a.length-1; ivar>=0; ivar--) {
            p=Math.floor((ivar+1)*Math.random());
            t = a[ivar];
            a[ivar] = a[p];
            a[p] = t;
    The error it throws is :
    Scene 1, Layer 'actions', Frame 1, Line 25
    1120: Access of undefined property downF.
    line 25 is as follows :
    mcs[i].addEventListener(MouseEvent.MOUSE_DOWN,downF);
    Thanks a lot
    with regards
    Shams

  • Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues

    Hello,
    I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention.
    I also have these massive black borders on the side of my video that I know is probably due to improper resizing on my part, and although I have tried to remedy this with a new avisynth script of the exported uncompressed AVI (before compressing to MPEG-2), whenever I try to run the avisynth script in either VirtualDubMod or TMPGEnc (the converting program recommended by: http://www.animemusicvideos.org/guides/mpegforcons/) it crashes, although the original video does work.
    This is the avisynth script I have created for the post-video:
    FFVideoSource("C:\Users\Freeman\Desktop\Fight the Power.avi")
    FFCopyrightInfringement("C:\Users\Freeman\Desktop\Fight the Power.avi")
    AssumeFPS("23.976")
    SSRC(48000)
    LanczosResize(720,352)
    AddBorders(0,64,0,64)
    per the recommendations from the guide listed below
    I do not know if the resizing I have set up in the new avisynth script will fix my resizing issues, and I would like to improve that as much as possible, so if someone could clarify for me, that would be greatly appreciated.
    You may also notice some audio issues throughout the video, however on further playback this never appears to happen in the same place. I believe this is caused by poor audio quality, and I have a friend of mine working on setting up a lossless source that I will try to recompress with the video before friday, however if someone else might know what is causing this, any advice would be greatly appreciated.
    Here is the current MPEG-2 I have, however for obvious reasons, I do not consider it acceptable as of yet:
    http://www.megaupload.com/?d=IIKYWRXF
    The original export from Premiere is Microsoft AVI Uncompressed, and then attempted to convert to MPEG-2 (I tried multiple settings, they all have the same sizing issues), and as I said before, no matter what I try to do with the avisynth script, it crashes.
    I have even tried taking out every line from the new avisynth script except for the first two detailing the location of the video and audio, however this does nothing, it still crashes.
    I had to convert all my original source avisynth scripts to AVI files (that are massive, as I am editing from 52 episodes of Fullmetal Alchemist: Brotherhood), and so editing the original scripts is impossible at this point, because to my knowledge, that would mean I would have to reconvert them all to AVI, which took over 16 hours, and then that would probably make me have to re-edit this entire video (which if you look at it, based on length and how much work I've put into it: is impossible, especially given the time constraints).
    So anything that I can do to fix this will have to be done to the export from Premiere, unless there is a way to work with the AVI's that I made from the avisynth scripts.
    The source is primarily 16:9 DVD (Fullmetal Alchemist) and very few parts from a 4:3 DVD (Naruto). (You can recognize these parts in the video, it is whenever someone is rowing in a boat during the lyrics "Row Row")
    The avisynth script for all the fullmetal alchemist DVD's is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Brotherhood\Disc 1 (1-7)\MainMovie\FMA_BROTHERHOOD_P1_D1\FMAB 1-7.d2v", cpu=4)
    ConvertToYV12()
    Spline36Resize(848,480)
    #TTempSmooth()
    FastLineDarkenMod()
    LSFmod(strength=120)
    LUTDeRainbow()
    And the avisynth script for the one Naruto DVD is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Random\Row Row\MainMovie\ROW ROW\VTS_01_1.d2v")
    TFM()
    TDecimate()
    Spline36Resize(848,636)
    Crop(0,78, 0,-78)
    These recommendations came from what I could figure out from:
    http://www.animemusicvideos.org/guides/avtech31/
    If anyone is curious, the song is "Libera me from Hell", and it is 44100 from what I could tell when I ran it in WINAMP (I converted it from mp3 to wav through WINAMP, if there is a better way that I am unaware of, please let me know).
    I know this is extremely long, and thank you anyone who has taken their time to look through it, it is greatly appreciated.
    The deadline for this is friday (5/20/11), so I need help with this ASAP and thanks,
    Dexter

    Dexter,
    Those "black borders," if they are visible in the Program Monitor, are most likely due to a mis-match between the Source Files and the Sequence Preset.
    If they are only showing up upon Export, then there is likely a mis-match between your Sequence and your Export, and could be either with the Aspect Ratio, or if using non-square pixels, the PAR (Pixel Aspect Ratio).
    I'll defer any commens on AVISynth to the experts here.
    Good luck,
    Hunt

  • Stop and Play All Child MovieClips in Flash with Actionscript 3.0

    I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
    Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
    I was able to develop the pause functionality by refering to the below mentioned links:
    http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
    http://www.curiousfind.com/blog/174
    Any help in this regard is highly appreciated as i am approaching a deadline.
    I am pasting the code below:
    import flash.display.MovieClip;
    import flash.display.DisplayObjectContainer;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import fl.transitions.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.Event;
    import flash.events.MouseEvent;
    stop();
    // function to stop all movieclips
    function stopAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            (content as MovieClip).stop();
        if (content.numChildren)
            var child:DisplayObjectContainer;
            for (var i:int, n:int = content.numChildren; i < n; ++i)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        stopAll(child);
                    else if (child is MovieClip)
                        (child as MovieClip).stop();
    // function to play all movieclips
    function playAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            var movieClip:MovieClip = content as MovieClip;
            if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
       movieClip.gotoAndPlay(currentFrame);
        if (content.numChildren)
            var child:DisplayObjectContainer;
            var n:int = content.numChildren;
            for (var i:int = 0; i < n; i++)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        playAll(child);
                    else if (child is MovieClip)
                        var childMovieClip:MovieClip = child as MovieClip;
                        if (childMovieClip.currentFrame < childMovieClip.totalFrames)
          //childMovieClip.play();
          childMovieClip.play();
    function resetMovieClip(movieClip:MovieClip):MovieClip
        var sourceClass:Class = movieClip.constructor;
        var resetMovieClip:MovieClip = new sourceClass();
        return resetMovieClip;
    pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
    function onClickStop_1(evt:MouseEvent):void
    MovieClip(root).stopAll(this);
    myTimer.stop();
    playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
    function onClickPlay_1(evt:MouseEvent):void
    MovieClip(root).playAll(this);
    myTimer.start();
    Other code which helps in animating the movie and other functionalities are as pasted below:
    stage.addEventListener(Event.RESIZE, mascot);
    function mascot():void {
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    var sw:Number = stage.stageWidth;
    var sh:Number = stage.stageHeight;
    // resizing movieclip
    mc1.width = sw/3;
    mc1.height = sh/3;
    // positioning mc
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    stage.removeEventListener(Event.RESIZE, mascot);
    mascot();
    this.mascotAni.y = 100;
    function mascotReset():void
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    stage.removeEventListener(Event.RESIZE, mascot);
    mc1.width = 113.45;
    mc1.height = 153.85;
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    var interval:int;
    var myTimer:Timer;
    // function to pause timeline
    function pauseClips(secs:int, myClip:MovieClip):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myTimer.reset();
      myClip.nextFrame();
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    // function to pause timeline on a particular label
    function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myClip.gotoAndStop(myLabel);
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    MovieClip(root).pauseClips(4.5, this);
    // function to fade clips
    function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to fade clips with speed
    function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to show screen transitions
    function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
    tranFx.addEventListener("allTransitionsOutDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
    // function to show screen transitions inverse
    function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
    var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
    tranFx.addEventListener("allTransitionsInDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsInDone",doneTrans);
    // function to zoom in
    function zoomFx(target_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
    //tranFx.addEventListener("allTransitionsInDone",doneTrans);
    /*function doneTrans(evt:Event):void
      next_mc.nextFrame();
    // Blinds Fx
    function wipeFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
    // Blinds Fx Center
    function fadePixelFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
    tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});

    This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
    Its not an application where the user can interact.
    On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
    Is there anyway where i could send in the fla file?

  • How to resize all pages -Acrobat 9 Pro Extended ? ?

    I came across a pre-existing pdf file of an old book of genealogy.  According to the front pages, it was 'Digitized by Microsoft', so I know nothing on how it was generated.  Total pages are in excess of 1,100.
    In viewing the pages, they are reflected as 2 pages to a view; not the book opened with the spine in the middle, but images side by side ... in numerical order ... and they appear as a normal sized 2 page for that view.  When I print out a page, by number, it also prints out in a normal size on an 8x11 inch sheet of paper.
    However, rather than print page by page on individual sheets of paper, I want to print out multiple pages, 2 to a sheet of paper.  In doing this, the images of the pages come up as 3x5 inch; thus not readable if printed without the usage of magnifier.
    Not that familiar with the program, but tried to do a resize process by setting some adjustments and then to a new pdf file.  It did not change that much ... and increased the file size dramatically.
    I am a novice to these processes.  Can someone advise how to resize the whole file, with images of pages side by side, so that when multiple print is used for 2 pages the size comes up closer to something like 5x7 inch each?
    Thanks

    Let me try it this way.....
    1.  The pdf file, when initially opened up, in the opening view shows 2 simotaneous pages side by side ... with hardly a divider between them.  This at this point has nothing to do with the print mode.
    2.  The book in question was 'Digitized by Microsoft' ... don't know if that makes any difference, but thought it would help to under stand that it was not created by the normal Adobe Acrobat method.
    3.  Now, when I go to the Print mode, from where I just viewed the 2-side-by-side pages, the initial view there, for 'page', is just 1 page ... not the 2 page view I just came from ... and it will print out this view in a full sheet version.
    4.  But, not wanting to print out 1130 pages, want to print multi-page as allowed under Acrobat options.
    5.  So choose multi-page and 2 pages and "Print to printable area"..
    6.  When this option appears in the print viewing window, the 'images' (presuming that to be the correct reference) are small, over the normal (roughly) 5 x 7 inch (each) for a 2-page print option.
    7.  With the 2-page print option, the images are only 3.5 x 5.25 inches ... rather than something like 5 x 7 inch ... which is difficult to read without a magnifier.  [Note:  This 3.5 x 5.25 is as indicated in Properties that the original 'Digitizing' did.
    8.  So, in essence, how can one change the default individual image size from 3.5 x 5.25 inch size, to something closer to 5 x 7 inch size ... so that each image fills in more of it's half of the 8.5 x 11 inch page being printed ... rather than the small size reflected in the attached jpg ?
    I've attached a jpg of the print screen, and one of the 2 page side-by-side 'default' view in Acrobat.
    Thanks

  • How to add a vertical resize bar for each TableRow in a TableView?

    I am looking for a best approach / best practice to accomplish this task. I need to be able to implement, in the least, re-sizable (by dragging on a divider line) TableRows. I understand this to be a bit more difficult to retain the height of each individual TableRow because they are virtual and reused. My first goal is only to have all TableRows re-sized (eliminating the need to carry individual row sizes ).
    I am able to implement my own TableRow by extending TableRow - and I was able to retrieve a reference to the TableRow's Skin and adding a divider line (Rectangle) and capturing the Mouse events to effectively re-size the height of the Row by dragging.
    My Question is this: Without implementing a new TableRowSkin - how can I force the divider line to be at the bottom of the TableRow? Currently - I am just adding the Rectangle Node (Divider) to the TableRowSkin's children list - causing the divider line to be positioned at the top of the TableRow (This gives an odd feeling when resizing - the line should be on the bottom).
    I feel like I am hacking at the issue without realizing the intent of the JavaFX developers. Is the intent for Row Height resizing to be implemented by providing a new Skin? There doesn't seem to be an easy way to accomplish this task using the existing TableRow or TableRowSkin.
    I can post example code if requested - but I will need to condense the example to a small enough self-contained file.
    If the answer is "Yes - implement a new skin" that is fine, but this task might be difficult without the source code for guidance :) [hint..hint..]

    After attempting to override the TableRow itself - I ran into a bug in the underlying skin causing a ClassCastException when sorting on the headers - apparently the underlying TableRowSkin doesn't like it when you add anything other then a TableCell (I added a Rectangle in this case, could not be cast to a TableCell). The bug was filed in Jira and fixed for 2.1 - so in the mean time I took the individual TableCell approach - add a divider to the bottom of each tableCell.
    The trick is not the the divider - but it is the other Control you have above the divider. I am using a TextArea, and you may generally want to override the PreferredHeight otherwise the height of the Control continues to extend. This behavior may be a result of using VBox to house the TextArea and the Rectangle vs your suggestion of a BorderPane.
    I was able to get the aesthetic functionality working to my desire. NOTE: functionality needs to be added for the table to "remember" any change of tablerowheight for each associated data item - otherwise the TableRow with the differeing height will get recycled and used for a different data item later. This shouldn't be too hard to implement with a Map for every non-default tableRowHeight change with a key of the TableRow Data Item. (Perhaps a max memory of associations as to not use up all available memory if someone wanted to resize all rows, for instance. Or we could also apply a new default Row size as well. I'm thinking this functionality should be applied to a sub-classed TableView).
    editThe posted code does not have a bug - it is placing the vertical resize divider in each cell, not each tablerow. Aesthiticaly - it will take some additional tweaking. You will notice the Textarea scroll bar "bleeds" into the other Transparent cells.. Not a critical bug, but an issue to deal with I will have to tackle later. If I can hack into the TableColumn resizing behavior - or set a minWidth on each Tablecolumn - that will be my approach to deal with it for now.--edit--
    public class TextAreaCell<S> extends TableCell<S,String> {
            private TextArea textArea;
            private StringProperty boundToCurrently = null;
            private Rectangle r = new Rectangle(1,3,Color.TRANSPARENT);
            private VBox vbox = new VBox();
            public TextAreaCell() {
                this.getStyleClass().add("table-cell-for-controls");
                textArea = new TextArea();
                textArea.getStyleClass().add("table-cell-text-field");
                textArea.setWrapText(true);
                textArea.prefHeightProperty().set(5);
                textArea.minHeightProperty().set(0);
                vbox.getChildren().add(textArea);
                vbox.getChildren().add(r);
                vbox.setFillWidth(true);
                r.widthProperty().bind(vbox.widthProperty());
                r.setCursor(Cursor.V_RESIZE);
                r.setOnMouseDragged(new EventHandler<MouseEvent>() {
                    @Override
                    public void handle(MouseEvent event) {
                        TextArea y = TextAreaCell.this.textArea;
                        TextAreaCell.this.printTextAreaInfo(y, event);
                        TableRow tr = TextAreaCell.this.getTableRow();
                        double newHeight = tr.getHeight() + event.getY();
                        if (newHeight <= 24) {
                            newHeight = 24;
                        tr.setPrefHeight(newHeight);
                        tr.requestLayout();
                VBox.setVgrow(textArea, Priority.SOMETIMES);
                vbox.setMinWidth(1);
                this.setGraphic(vbox);
            @Override
            protected void updateItem(String item, boolean empty) {
                super.updateItem(item, empty);           
                if(!empty) {
                    // Show the Text Area
                    this.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
                    // Retrieve the actual String Property that should be bound to the TextField
                    // If the TextField is currently bound to a different StringProperty
                    // Unbind the old property and rebind to the new one
                    ObservableValue<String> ov = getTableColumn().getCellObservableValue(getIndex());
                    SimpleStringProperty sp = (SimpleStringProperty)ov;
                    if(this.boundToCurrently==null) {
                        this.boundToCurrently = sp;
                        this.textArea.textProperty().bindBidirectional(sp);
                    else {
                        if(this.boundToCurrently != sp) {
                            this.textArea.textProperty().unbindBidirectional(this.boundToCurrently);
                            this.boundToCurrently = sp;
                            this.textArea.textProperty().bindBidirectional(this.boundToCurrently);
                else {
                    this.setContentDisplay(ContentDisplay.TEXT_ONLY);
            private void printTextAreaInfo(TextArea t, MouseEvent e) {
                StringBuilder s = new StringBuilder();
                s.append(e.toString()).append("\n");
                s.append("\tTextArea.prefHeight:").append(t.getPrefHeight()).append("\n");
                s.append("\tTextArea.MinHeight:").append(t.getMinHeight()).append("\n");
                s.append("\tTextArea.MaxHeight:").append(t.getMaxHeight()).append("\n");
                s.append("\tTextArea.Height:").append(t.getHeight()).append("\n");
                s.append("------------------------------------------------------------------------------------------------------------------------");
                System.out.println(s.toString());
    }And the Css
    .table-cell-for-controls {
        -fx-skin: "com.sun.javafx.scene.control.skin.TableCellSkin";
        -fx-padding: 0; /* 2px, plus border adds 1px */
        -fx-background-color: transparent;
        -fx-border-color: -fx-table-cell-border-color -fx-table-cell-border-color -fx-table-cell-border-color -fx-table-cell-border-color;
        -fx-border-width: 0.083333em; /* 1 */
        -fx-cell-size: 2.0em; /* 24 */
    .table-cell-text-field {
        -fx-background-color: transparent;/*-fx-control-inner-background;*/
        -fx-background-insets: 0;
        -fx-background-radius: 0;
        -fx-padding: 3 5 3 5;
        -fx-prompt-text-fill: derive(-fx-control-inner-background,-30%);
        -fx-cursor: text;
    }Edited by: jkaufmann on Nov 7, 2011 4:33 AM

  • Datagrid within Datagrid - Rows not resizing to fit content

    Hi,
    I have a datagrid with a custom item renderer that renders another data grid... so one column will render datagrids within the outer datagrid.  The problem is that the row does not size to fit the inner datagrid.  I can't set the rowHeight on the outer datagrid because the inner datagrids have dynamic data and i don't know how many rows they will have.  Also, after the datagrid is rendered, more rows may be added to any number of inner datagrids at a later time... and I need the rows holding them to resize accordingly.   Setting variableRowHeight=true on the outer grid doesn't seem to help either.
    Any ideas on how to do this? 
    Thanks!

    Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
    http://bugs.adobe.com/jira/browse/SDK-13507
    Anyway, I got this from the jira comments and works pretty good...
    height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
    I also have to call similar code when the data provider of the inner grids add/remove items.
    Thanks!

  • Aterm doesn't resize contents properly

    I've been on holiday for a while so recently did a large update (300+ packages). After doing it aterm has stopped resizing its contents correctly.
    It is hard to explain but if I stretch an aterm window larger the content (usually just a shell) doesn't always resize to fill the new window. Sometimes there is at least 5-6 blank lines at the bottom of the window that the content doesn't go in to. If I play with the size I can get the content into it but it seems to snap to a certain size before the content will fit.
    I'm running aterm version 1.00.01 on fluxbox and the shell is either bash or bash in screen.
    Has anyone else seen this kind of problem?

    If you open the brush dialog, there is a dual brush setting on the left that can be enabled. If you click on it, the dual brush diameter is the first option that can be changed and it is in pixels not %. If you resize your brush size with bracket keys or right click and drag the slider, photoshop adjusts this setting automatically, but the new drag resize leaves this setting intact.

Maybe you are looking for

  • How do i add media to my iphone from another computer without syncing and deleting all the info currently on it

    My iphone was synced to my old computer How do i add content to my phone from my new computer. It says i can only be synced with one computer and it will delete everything on my phone to sync with the new computer. This doesn't make much sense. What

  • Enqueue/Dequeue

    Hi, There are 2 reports accessing 1 table. I am facing the runtime error with description - "The database system detected a deadlock and avoided it by rolling back your transaction.u201D Have come across implementing the ENQUEUE and DEQUEUE concept o

  • How to understand the Error message of the connection of OPC server

    hi guys, one issue need your help when I run the NI OPC servers, one error message will appear in the process information. Just like as followed: ==================================================​========================= 2011-6-23   11:50:05   Defa

  • Extending Flash Javascript

    After finding out about the capabilities of (java)scripting in Photoshop, I'm curious to know if there's similar functionality for Flash. After some searching I found the 'Extending Flash'-documentation (please direct the currently inactive Flash Jav

  • Arobat blocked after upgrade to mac os mountain lion

    Hello. Updated to Mac OS 10.8.3. Everything in Creative Suite went along just fine, exept Acrobat Pro: cannot open, ghostbusters symbol on icon. What to do? I'd re-install but I don't know how. And cannot open the uninstaller. same block.