Drag/Scale Object Help

Hey all,
Trying to fine tune, if possible, a drag scale movie clip
functionality. I'm trying to get it to scale on the arrow instead
of the whole image. Here is the code...
var OnScale:Boolean;
display01A.imageBg.imgArw.addEventListener(MouseEv
ent.MOUSE_DOWN, sclStart, false, 0, true);
this.display01A.addEventListener(MouseEvent.MOUSE_ UP,
sclStop, false, 0, true);
this.display01A.addEventListener(Event.ENTER_FRAME , onLoop,
false, 0, true);
function sclStart(evt:MouseEvent):void {(OnScale=true);
function sclStop(evt:MouseEvent):void {(OnScale=false);
function onLoop(evt:Event):void {
if (OnScale)
this.display01A.width = Math.max(mouseX - this.x, 10);
this.display01A.height = Math.max(mouseY - this.y, 10);
( this.display01A.scaleX > this.display01A.scaleY ) ?
this.display01A.scaleY = this.display01A.scaleX :
this.display01A.scaleX = this.display01A.scaleY;
I can provide an fla if desired. Thanks in advance.
http://www.geocities.com/oezian/drap_scale.swf

change display01A's reg point to its center and retry that
coding.

Similar Messages

  • Need your help, How to write a program such as drag the objects to the front panel like using the LabVIEW Front Platte

    Dear all:
    Sorry for so long title.
    I need your help with how to drag the objects and drop onto the front panel.
    Like the LabVIEW front platte, i can choose the objects i can drop onto every where of the front panel.
    Could drag and drop function can satify?
    Any idea?
    Thank you
    Attachments:
    Image00000.jpg ‏75 KB

    What you want to do is relatively complicated and it seems that your knowledge of LabVIEW is relatively basic. I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • HT2845 I am using a Magic Mouse on my MAC computer but when I drag object/files etc it only move them a inch or so and then I can not drag the object anymore, help?

    I  am using a Magic Mouse on my MAC, when I drag objects/files etc after dragging the object for an inch or so the object stops and I can not drag it any further.
    Has anyone a solution, I have checked the batteries etc.

    I  am using a Magic Mouse on my MAC, when I drag objects/files etc after dragging the object for an inch or so the object stops and I can not drag it any further.
    Has anyone a solution, I have checked the batteries etc.

  • I can't drag any object with trackpad or mouse. Please Help

    Since yesterday, like a bolt out of the blue, mouse and trackpad stop working properly, in the sense that I cannot drag any object in my desktop or in any application neither with the mouse, neither with the tackpad. Moreover, when I lunch Mercury I get a massage stating that some Java routine cannot be opened and Azureus refuse to start. My computer use last version of leopard and all the updates available, last java upgrade included. Everything else seems to work properly. Any idea of what colud be wrong and what can I do ti solve this irritating issue? Thanks.

    I can't think where else to look for this gremlin...
    How well backed up are you and do you have a clone of your system prior to the drag & drop problem? If you do, I'd erase your internal and copy over the good clone. Or, restore from a previous date from Time Machine.
    If not, you ought to run off a SuperDuper clone now. (SD is free for cloning) Then, do an archive & install. After you have everything you need back, delete the volume with clone since it is corrupt and run a good clone from your trouble free system
    -mj

  • How to drag an object in case like this?

    Hi, with the little I know about Action script after reading and following a book I decided to exercise on my own by trying to drag on object that changes its 2 children when the mouse clicks. I'm sure there are much better  ways to do that but nevertheless I expected my script to give expected results but it doesn't. The problem is that when I create/change the children by clicking they don't appear under the mouse but at some different offsets depending on where the clicking is. Why is it doing this?
    function makeBox():void {
         box = new Shape;
         box.name = "Box";
         box.graphics.beginFill(0x66FF00);
         box.graphics.lineStyle(5, 0x6600CC);
         box.graphics.drawRect(mouseX, mouseY, 50, 50);
    function makeOval():void {
         oval = new Shape;
         oval.name = "Oval";
         oval.graphics.beginFill(0xFF3300);
         oval.graphics.lineStyle(3, 0xFFFFFF);
         oval.graphics.drawCircle(mouseX, mouseY, 25);
    var box:Shape;
    var oval:Shape;
    var Clip:MovieClip = new MovieClip;
    addChild(Clip);
    stage.addEventListener(MouseEvent.MOUSE_DOWN, onClicking, false, 0, true);
    function onClicking(some:MouseEvent):void {
              if (Clip.numChildren == 0) {
                   makeOval();
                   Clip.addChild(oval);
              } else if (Clip.getChildAt(0) == oval) {
                   makeBox();
                   Clip.addChild(box);    
                   Clip.removeChild(oval);
              } else {
                   makeOval();
                   Clip.addChild(oval);
                   Clip.removeChild(box);
         Clip.startDrag();         
    I will greatly appreciate your help

    I haven't deduced why as yet, but the following revision of your function code appears to do what I believe you expected you'd see...
    function onClicking(some:MouseEvent):void {
        if (Clip.numChildren == 0) {
                   makeOval();
                   Clip.addChild(oval);
              } else if (Clip.getChildAt(0) == oval) {
                   makeBox();
                    box.x = -Clip.x;
                    box.y = -Clip.y;
                   Clip.addChild(box);    
                   Clip.removeChild(oval);
              } else {
                   makeOval();
                    oval.x = -Clip.x;
                    oval.y = -Clip.y;
                   Clip.addChild(oval);
                   Clip.removeChild(box);
         Clip.startDrag();
    I played with numerous aspects before coming to this conclusion.  The change I made is based on observing that wherever I click on the stage relative to the 0,0 axis of the stage becomes the position of the added Child relative to the place where I clicked ... you have to watch it to see what I mean, but if I click at 100,100, Then the objects lands 100,100 from that point (200,200). I may play with it more, but I may wait to see if kGlad or someone else stops in and knows right off what's at play here.

  • I can't drag data objects to human task

    Hi,
    I am newbie using SOA, BPM and Jdeveloper.
    I am following a tutorial to learn how to create and implement a process, but I get stuck when I need to create the human tasks.
    When I create the human task, I can't drag data objects to the parameter table.
    I delete and begin the tutorial a several times. And the issue persist.
    I don't know if I miss a step, but I read and implement the tutorial carefully.
    Any advice or someone have a good tutorial for begginers in that Platform.
    Systems Specs:
    Oracle Databse 11g R2
    SOA 11.1.1.6.0
    Jdeveloper 11g 11.1.1.6.0
    Thanks in advance

    Hi Jose,
    If you're doing this using the Building Your First Process with Oracle BPM 11g tutorial, I'd need more information.
    I doubt that this is the case, but just on the outside chance that it was the result of some procedural mistake you made, I created a short video that steps you through this.
    If you'll export your project and store it on some file sharing site that I can get to, I'll be glad to take a look at it for you.
    You haven't gotten to these steps in the tutorial, yet but after just looking at it I noticed a couple issues you I believe that you'll run into: 
    The way it has you changing the role name from "Role" to "Requestor" will not work.  If you follow the instructions, you will not be able to create new instances (nothing will appear in the Applications link).  The reason is that there is a bug so that when you deploy the project after changing the name in Organization to another role, the deployed project keeps the original name (Role in this case) but your role assignment can only be set to the new name (Requestor).  Before you get to that step, make sure that you have added a new Requestor role in the process.
    The tutorial was written for 11.1.1.3 and if you're on a release after the 11.1.1.5 feature pack you will see that the data mapping is done completely differently.  Look at the video I have in the link above before doing this step.  While this step in the tutorial will be confusing, you can figure it out if you note the "Input" and "Output" tabs at the top of the Data Associations dialog.  You just need to drag the object on the left (e.g., "hello") over to the object on the right (e.g., "helloObject").
    Hope this helps,
    Dan

  • How do you drag-scale and copy at the same time?

    I just want to drag-scale and copy at the same time like in previous versions of illustrator by holding the command key while dragging. Can someone help me find out how to do this with CC? I don't have time to re-learn basic things over again. What was wrong with it the way it was?

    I guess you have to have the scale tool selected in the tool bar now in order to "drag-scale" and copy at the same time. Before you could just do it no matter what tool was selected in the tool bar. I liked it the way it was.
    -Jo

  • Grey scale objects get lighter when Outer Glow assigned to text

    I have a grey scale object on one layer and text on another. When I apply an Outer Glow to the text, the grey scale object gets 10% lighter. If I have a 2 page spread and apply an Outer Glow to text on one page, the grey scale objects on both pages get lighter. Is there some way to prevent this or at least an explanation as to why?

    Your transparency blend space (probably working cmyk) is different than the grayscale space of the image. Your grayscale image profile is "dot gain 10".
    Take a look at
    Adobe's guide to transparency.
    J

  • Graph issue with "scale object to pane"

    I have made a program that  uses a mixed signal graph to show result on a screen. I have selected "scale object to pane". The program automatically goes to fullscreen when started. I have a small problem though. It works well with some screen resolutions but sometimes the graph itself is beneath the window. I set the Yscale Maximum and Minimum in the program but 0 is still below the border. Anyone know a way to fix this?
    Pictures below 
    How it looks
    How it should look
    Solved!
    Go to Solution.

    Hi Peter,
    place a property node on the block diagram ("App" by default) and select Display->Monitor
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I get the object help text into my document (report)?

    Post Author: ehskalm
    CA Forum: Desktop Intelligence Reporting
    I want to display the object help text (the "description" field in the object properties in the universe) in my report, but I can not find any function for that? Anyone who knows? BO version is 5.1.

    Post Author: hvanderkolk
    CA Forum: Desktop Intelligence Reporting
    All information about the classes and objects in a universe are stored in the repository database (universe domain). To get that information in your report you need to create a query on the repository database.
    For an overview of all objectnames and descriptions that would be:
    SELECT  WA_UNV_OBJECT.OBJ_NAME,  WA_OBJECT_HELP.OBJ_DATAVALUEFROM  (WA_UNV_OBJECT RIGHT OUTER JOIN WA_OBJECT_HELP ON (WA_OBJECT_HELP.OBJECT_ID=WA_UNV_OBJECT.OBJECT_ID  AND  WA_OBJECT_HELP.UNIVERSE_ID=WA_UNV_OBJECT.UNIVERSE_ID) ) 
    Note: this if from BO6.5 using SQL server 2000 for the repository database.

  • Illustrator v18.1.1 can't scale objects with pointer

    as of today, jan 19, 2014, using the object selection tool I cannot scale objects either individually or as a group! aaargh! it's a fairly necessary feature, anyone else having this issue?

    It was gone, everything was working fine last week, but today it seems to be broken again, the only change seems to be an update to the Creative Cloud libraries, surely that wouldn't screw it all up!

  • Why doesn't Shift+Drag scale a pic proportionally?

    What is this? Shift + Drag doesn't scale a picture proportionally?
    In every other Adobe application, combining Shift and Dragging scales a picture proportionally.
    OK, then, so how DO I scale a picture proportionally?
    (Muse 2014, OSX)
    Thanks-
    (EDIT)
    OMG - Now I see. if I DON'T hold the Shift key, the picture scales proportionally. What planet am I on? Who at Adobe thought re-writing this universally accepted standard should be reversed in Muse?

    This should have been done in every application a long time ago!
    Normally scaling proportionally is the first choice. I can't remember, when I have willingly scaled an image unproportionally. And why using modifier keys for standard and no modifier for exceptions?
    I assume, this is the way, Muse engineers are thinking.

  • I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    There is a conflict with third party software or your system keyboard shortcuts. Lately, there have been many postings about conflicts with Chrome extensions so check there first.
    It's not a new problem. I wrote about it on InDesignSecrets.com in 2006:
    The Missing Keystrokes Mystery | InDesignSecrets

  • Scale Object with Panel, but what about inside a Tab control?

    The Scale Object with Panel option works very well for simple UI
    objects.  I like to use it for VIs that display tables or
    multicolumn listboxes, etc.  I am finding a limitation when I use
    the Tab control.  If I have a table or listbox in each tab, I
    would like them to scale with the panel.  I would also like the
    tab to scale.  It should look like an Excel workbook where all
    sheets scale with the window even though they are each on their own
    tab.  If I could only Group the various tables / lists with the
    Tab itself....
    This wouldn't be such an issue if the Bounds property of the
    multicolumn listbox was writable.  I can set the number of rows
    and columns, but column size can be variable and not uniform across all
    columns.  Also, that solution looks and behaves much different
    from the Scale Object with Panel approach.... not to mention the extra
    coding required.
    I'm guessing that this amounts to a feature request, but if anyone has a present-version workaround, I'd love to hear about it.
    See you at NI Week!
    Dan Press
    PrimeTest Automation

    Hi Kalin T,
    Thanks for your prompt reply. I am running version 8.01. My problem is that i cannot select "Scale object with pane" for the controls inside a Tab control if the Tab control "Scale object with pane" is turned on. I want both the Tab control and the controls inside to be scaled, for instance an Waveform graph or an textbox  when i resize my main window.
    Best regards,
    Mattis
    Attachments:
    Scale.vi ‏11 KB

  • Cp8 How to make a drag source object re-appear after a correct answer?

    In other words, I want to re-use a drag source to multiple correct answers.
    At the moment the source object can be dragged to two drop targets, and each one works fine. However I want the user to be able to use the drag source again once he drags the object to one of the correct drop targets.
    Is it possible?
    Thanks!

    You will need multiple copies of that drag source in that case.

Maybe you are looking for