Drag the limits without rectangle

Hello

I create an application to write letters, but I had a problem when writing on the letters, and I wanted to write this letter limits

but I can only make a rectangular border with only

If I could make the limits according to the design of the letters, not the rectangle?

my code

import flash.events.MouseEvent;

import flash.geom.Rectangle;

var pencilta:Shape = new Shape();

var activeColor:uint = 0 x 000000;

var BA: a = new a();

addChild (ba);

BA.x = 0;

BA.y = 00;

var kk:c1 = new c1();

addChild (kk);

KK.x = 305;

KK.y = 105;

kk.addEventListener (MouseEvent.MOUSE_DOWN, dca);

function dca(e:MouseEvent):void

{

e.target.startDrag (false, new Rectangle (165,80,287,290));

drawingta();

pencilta.graphics.moveTo (kk.x, kk.y);

stage.addEventListener (MouseEvent.MOUSE_MOVE, drawPencilta);

}

kk.addEventListener (MouseEvent.MOUSE_UP, uca);

function uca(e:MouseEvent):void

{

kk.stopDrag ();

}

function drawingta()

{

ba.addChild (pencilta);

pencilta.graphics.lineStyle (20, activeColor);

}

function drawPencilta(e:MouseEvent):void

{

pencilta.graphics.lineTo (kk.x, kk.y);

e.updateAfterEvent ();

}

Untitled.png

If A is your button shaped A:

import flash.events.MouseEvent;

import flash.geom.Rectangle;

var allowDraw:Boolean;

A.addEventListener (MouseEvent.MOUSE_OVER, overF);

A.addEventListener (MouseEvent.MOUSE_OUT, outF);

function overF(e:MouseEvent):void {}

allowDraw = true;

reset your moveTo

}
function outF(e:MouseEvent):void {}

allowDraw = false;

}

now use allowDraw to draw

Tags: Adobe Animate

Similar Questions

  • Drag a character without zoom? (Anchors avoiding / ignoring)

    Hello world

    I work a lot on A0-complex illustrations (typically computer graphics or workshop-material) and will spend a good few days per week, zoom in-and-out to move small items.

    I was wondering if there was any keyboard shortcut or shortcut to dragging the numbers WITHOUT having to worry about anchors? Illustration below.

    In the illustration, if I zoom out far enough, I have to hit the yellow part of the figure quite precisely. If I zoom out, this may mean that I must zoom in order to drag the item.

    Skærmbillede 2016-04-07 kl. 09.22.35.png

    I hope this makes sense, and someone might know an answer!

    Cheerio

    MIKarlsen,

    What happens if you Al/OptionClick with the direct Selection instead of the normal selection tool tool?

  • Dynamic calculation of the limits of a Rectangle

    Hello

    I created an application that needs to load an image or a swf on stage and place dynamically and position on both sides of the stage, i.e. (up, left, down or right).

    My question is

    How can I dynamically calculate the remaining boundaries of the scene using the image/swf loaded dynamically placed limits. ?

    for example, if the limits of the loaded clip

    Rectangle (x = 10, y = 10, w = 250, h = 800);

    What is the remaining Rectangle() with the use of

    Rectangle (0,0,1024,800);?

    for example, if the limits of the loaded clip is

    Rectangle (x = 0, y = 0, l = 800, h = 50);

    What is the remaining Rectangle() to the use of

    Rectangle (0,0,1024,800);?

    But even if it starts at 0,0, unless a rectangle fills a single dimension of the stage, he y ' would have a box L shaped remaining, which means you have the potential for 2 or 3 rectangular areas remaining.

  • by dragging the layer to open limited image

    CS5-

    the area below the panels open restricted dragging layers, tested OK on my CS4 version and seems to be a new problem. This is true if you drag the image area or the layers panel.

    See below (area inside the red line does not allow the layer to drag in this region):

    dragDropV1.jpg

    This problem has been fixed in the 12.0.2 update.

  • Drag the crop turn < < VS > > 2 point click

    I have a method to crop the images which helps me a lot on productivity (images per day already.

    But I want to go further in the next step, avoiding to drag the selection of the transformation.

    I solved the creation of a selection rectangle fixed racio which then activates the TransformSelection to crop the image (limits).

    My challenge now would be to minimize mouse entries:

    by clicking on 2 points (up and down). Then the script detects the second just clicked on point and automatically creates my fixed racio dependencies of rectangle selection Specifies the distance between both of these , then batch to the next image.

    I wonder if the counter tool could be used to do this...

    Ce would remove of the exhaustion of my arm at the end of the week because I got this 700 times daily.

    Can someone help me?


    Yes!

    I did it.

    Now, I get without slipping, no crop tool.

    Just 4 clicks and GO!

    I wonder why adobe didn't understand how much it helps users of not tired hand too late in the day.

    I used the

    app.activeDocument.colorSamplers.length

    app.activeDocument.colorSamplers [N] .position

    read the x, y of information sanplers and the rest was math and some work.

  • How to adjust the boarders of a rectangular selection in the paint without stretching the image.

    Hi, how to set the boarders of a rectangular selection in the paint without him stretch the image?

    I'm afraid this is a limitation (and personally, I find frustrating) paint. Essentially, you get a chance to make a selection. A trick I learned is to zoom as high as possible, start a corner of the selection, and then (while holding down the left button of the mouse to the operation drag) hold Ctrl key while turning the mouse scroll wheel to zoom out giving a larger surface to complete the dragged selection.

  • Limited to the marquee tool to document the limits?

    Why is dragging a selection with the rectangular selection tool now to limit the boundaries of the document, so that the elliptical selection tool is not?

    Thanks for the update.

    I just checked on my end and found that this is the expected behavior.

    Limits of Rectangle tool to the linked documents.

  • Script to move a selection from the limits of spread?

    I have a document with a difference much larger than the content in the document.

    1-oversize-pasteboard.png

    I have another template file with a gap corresponding to the size of the limits of all selected objects. I need to open this template, paste the objects, that pasted selection of objects align to the top left of the spread (aka cardboard neighborhood or work?) and then export as a PDF and .eps.

    Due to a lot of confusion about various coordinate systems, my ideal would be not having to move what that at all, but have instead, the upper left corner of the pasted content aligned with the upper left of the spread, as it is glued. Paste or paste in place makes the content where I need them. The objects are too weak.

    2-contents-pasted-too-low.png

    Even if there is a solution to paste the information where it needs to go from the outset, I would like to know how make a difference compared to the visible work area (I think it is properly known as the spread, but more commonly referred to as the mount table?) I want to just make sure I ask my question correctly so my intentions are understood).

    My first test with the following line of code produces the result seen in the next picture; only the background .eps object is moved, and it moves down.

    App.Selection [0]. Move([MyPage.Bounds[0]+myMargins.Top,MyPage.Bounds[1]+myMargins.Left]);

    3-first-try-to-move.png

    My second test is shown below; It seems also only reposition the background image, but something moved too far down and to the right. It seems that it may be of the same size and shape, like spread which I copied objects. The limits of selection have the right size when I stuck first the object in the new document, until the line of code to change the geometric limits has been executed.

    App.Selection [0] .geometricBounds = [myPage.bounds [0] + myMargins.top, myPage.bounds [1] + myMargins.left, myPage.bounds [2] - myMargin s.bottom, myPage.bounds [3] - myMargins.right];

    4-2nd-try-to-move.png

    Also, previous attempts (until I added the image of the Tiger, the text to its immediate left and a red rectangle behind the Tiger) saw all objects selected EXCEPT the background .eps image move upward and in the right position using app.selection [0] .geometricBounds.

    Any help would be greatly appreciated. Here is the code and a screenshot of the objects on the layer that are involved.

    indesign #target - 11.064 / / CC 2015

    myDoc = app.activeDocument;

    myPages = app.activeDocument.pages;

    myActivePage = app.activeWindow.activePage;

    // 1. Select and copy everything on this document activePage

    App.Select (SelectAll.All);

    App.Copy ();

    // 2. Open the template file and paste

    whichExportTemplate = "FCILG";

    myTemplateFolder = ' / Users/user/Documents /!  "Resources / models / Ted signs / Tags ';

    sFileName = myTemplateFolder + "/" + whichExportTemplate + ".indd".

    sFileName = sFileName.replace (/ % 20/g, "'" ");

    newDoc = app.open (File (sFileName));

    app.pasteInPlace ();

    App.Select (SelectAll.All);

    // 3. POSITION IT

    var myPage = myActivePage;

    var myMargins = myPage.marginPreferences;

    App.Selection [0] .geometricBounds = [myPage.bounds [0] + myMargins.top, myPage.bounds [1] + myMargins.left, myPage.bounds [2] - myMargin s.bottom, myPage.bounds [3] - myMargins.right];

    App.Selection [0]. Move([MyPage.Bounds[0]+myMargins.Top,MyPage.Bounds[1]+myMargins.Left]);

    // 4. Save the new file

    // 5. Close

    5-layers.png

    Would you mind bringing together all elements of the page on the page, you have a single object to process after duplication (I prefer duplicate() on app.copy () / app.pasteInPlace ()) without selecting anything? Just answer has all the elements of the page on your source page to add a group and manage this unique group object.

    Quick and dirty:

    //TWO InDesign documents are open
    //The SOURCE document is the ACTIVE one
    
    var myTargetDoc = app.documents[1];
    
    myTargetDoc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    myTargetDoc.zeroPoint = [0,0];
    
    //Group everything on the active page of your SOURCE document:
    var myActivePage = app.layoutWindows[0].activePage;
    var myGroup = myActivePage.groups.add( myActivePage.pageItems.everyItem().getElements() );
    
    //Target the second document for the duplicate of the group:
    var myDuplicate = myGroup.duplicate(myTargetDoc.pages[0]);
    
    //Move the duplicate:
    myDuplicate.move([0,0]);
    
    //Tidy up a bit:
    myDuplicate.ungroup();
    myGroup.ungroup();
    

    Hope, that helps.

    Uwe

  • Drag the mouse, hand tool works do not at all!

    Then I installed Photoshop CC 2014 and 2014 CC Illustrator on my computer, started a new file, but only found that any action that includes the mouse dragging - creating shapes, hand tools, the pen tool - don't work at all, just do not respond when you create a form he treats it as if I clicked once on (which jumps through the window of rectangle to create the size entry..) the same situation occurs in Photoshop as well (maybe all software Adobe CC). I tried everything that was suggested on the forum (some of the links below): all other software in the background removal (spotify, 1password, etc.). I also tried with the help of different sets of keyboard and mouse, or with and without wire, still no luck. A situation that eventually works is that all the work of software perfectly fine in safe mode, then I restarted in normal mode, trying to kill any background process that did not work in safe mode, anyway... not working do not at all...

    References:

    (Illustrator CS6) Space bar works more apparently at random

    The space bar shortcuts: hand tool does and does not

    Illustrator is blocked on-site tool

    My computer specs:

    Windows 7 Pro 64-bit

    Intel Core i3-4130 3.4 Ghz

    4 GB OF RAM

    OK, so finally I solved the problem. It turned out be a software conflict with a background windows service called synergy, so I disabled it in the service manager and everything works fine.

  • How to move the ends of the lines slanted towards the limits of the purge

    Hi all

    I developed a script that deletes the page elements to the purge. To achieve this, that I collect all the elements of the page (with the exception of text blocks) located partially on the editing table, create a temporary mask and 'trim' with subtraction of Pathfinder function. However, this approach does not work with graphic lines so I'm trying to move the ends of the lines to the limits of the substantive area lost. (I guess these are simple straight lines consisting of two end points).

    screengrab.png

    I knew how to deal with orthogonal lines - it's pretty easy:

    if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
         path = theItem.paths[0];
         if (path.pathPoints.length === 2) {
              ep = path.entirePath;
              w = ep[1][0]-ep[0][0];
              h = ep[1][1]-ep[0 ][1];
              
              if (w > h) {
                   newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                   path.entirePath = newEp;
              }
              else if (h > w) {
                   newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                   path.entirePath = newEp;
              }
         }
    }
    

    This moves A1 - A2, B1 , B2, C1 , C2, D1 to D2.

    But how to treat skewed lines? How to calculate the coordinates of the point E2 and F2? Y at - it a magic formula? Or can someone point me to the right direction: for example a book to read?

    I assume this has something to do with geometry/trigonometry, but I haven't studied this kind of things at school. (I graduated from an art school - designed to draw naked models instead).

    If someone will answer my question, please do it on basic level since I'm a total noob in the present.

    Here's the script:

    if (Number(String(app.version).split(".")[0]) == 7) ErrorExit("This script can't work with InDesign CS5 so far.", true);
    
    var doc = app.activeDocument;
    var spreadBounds, spreadWithBleedBounds, gPartiallyOutOfSpreadItems;
    var ungroupErrors = 0;
    
    var originalHorUnits =  doc.viewPreferences.horizontalMeasurementUnits;
    var originalVerUnits =  doc.viewPreferences.verticalMeasurementUnits;
    doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.INCHES;
    doc.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;
    doc.zeroPoint = [0, 0];
    
    if (doc.layers.itemByName("Temporary Layer") == null ) {
         var tempLayer = doc.layers.add({name:"Temporary Layer"});
    }
    else {
         var tempLayer = doc.layers.itemByName("Temporary Layer");
    }
    
    UngroupAllGroups(doc.groups);
    
    DeleteObjectsOnPasteboard();
    ProcessSpreads(doc.spreads);
    ProcessSpreads(doc.masterSpreads);
    
    tempLayer.remove();
    
    doc.viewPreferences.horizontalMeasurementUnits = originalHorUnits;
    doc.viewPreferences.verticalMeasurementUnits = originalVerUnits;
    
    var msg = (ungroupErrors > 0) ? " Failed to ungroup " + ungroupErrors + " groups since they are too large." : "";
    alert("Done." + msg, "Trim Pages Script");
    
    //================================== FUNCTONS ===========================================
    function ProcessSpreads(spreads) {
         var spread, path, ep, w, h;
         for (var s = 0; s < spreads.length; s++) {
              spread = spreads[s];
              spreadBounds = GetSpreadBound(spread, false);
              spreadWithBleedBounds = GetSpreadBound(spread, true);
              
              gPartiallyOutOfSpreadItems = GetPartiallyOutOfSpreadItems(spread);
              
              var theItem, theMask, newItem;
              for (var i = gPartiallyOutOfSpreadItems.length-1; i >= 0; i--) {
                   theItem = gPartiallyOutOfSpreadItems[i];
                   if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
                        path = theItem.paths[0];
                        if (path.pathPoints.length === 2) {
                             ep = path.entirePath;
                             w = ep[1][0]-ep[0][0];
                             h = ep[1][1]-ep[0 ][1];
                             
                             if (w > h) {
                                  newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                                  path.entirePath = newEp;
                             }
                             else if (h > w) {
                                  newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                                  path.entirePath = newEp;
                             }
                        }
                   }
                   else {
                        theMask = CreateMask(spread);
                        try {
                             newItem = theMask.subtractPath(theItem);
                        }
                        catch (err) {
                             $.writeln("2 - " + err);
                             theMask.remove();
                        }
                   }
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function IsPartiallyOutOfSpread(pageItem) {
         var result = false;
         if (pageItem.constructor.name == "TextFrame" ||
              pageItem.constructor.name == "Group" ||
              pageItem.parent.constructor.name == "Group")
         {
              return result;
         }
    
         var visBounds = pageItem.visibleBounds;
         if (visBounds[0] < spreadBounds[0] && visBounds[2] > spreadBounds[0] ||
              visBounds[1] < spreadBounds[1] && visBounds[3] > spreadBounds[1] ||
              visBounds[2] > spreadBounds[2] && visBounds[0] < spreadBounds[2] ||
              visBounds[3] > spreadBounds[3] && visBounds[1] < spreadBounds[3]  ) {
              result = true;
         }
         return result;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetSpreadBound(spread, bleed) { // including bleed -boolean
         if (bleed == undefined) bleed = false;
         
         with (doc.documentPreferences) {
              var topBleed = documentBleedTopOffset
              var leftBleed = documentBleedInsideOrLeftOffset;
              var bottomBleed = documentBleedBottomOffset;
              var rightBleed = documentBleedOutsideOrRightOffset;
         }
    
         var bFirst = spread.pages.item(0).bounds; // bounds of the first page
         var bLast = spread.pages.item(-1).bounds; // bounds of the last page
         return [     ((bleed) ? bFirst[0]-topBleed : bFirst[0]), 
                        ((bleed) ? bFirst[1]-leftBleed : bFirst[1]), 
                        ((bleed) ? bLast[2]+bottomBleed : bFirst[2]), 
                        ((bleed) ? bLast[3]+rightBleed : bLast[3])
                        ];
    }
    //--------------------------------------------------------------------------------------------------------------
    function CreateMask(spread) {
         var unitValue = new UnitValue (app.pasteboardPreferences.minimumSpaceAboveAndBelow, "mm");
         var unitValueAsInch = unitValue.as("in");
         var outerRectangleBounds = [spreadWithBleedBounds[0]-unitValueAsInch, 
                                                                spreadWithBleedBounds[1]-8.07, 
                                                                spreadWithBleedBounds[2]+unitValueAsInch, 
                                                                spreadWithBleedBounds[3]+8.07
                                                                ]; 
    
         var outerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:outerRectangleBounds});
         var innerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:spreadWithBleedBounds, fillColor:doc.swatches.item("Black"), fillTint:30});
         var mask = outerRectangle.excludeOverlapPath(innerRectangle);
         return mask;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetPartiallyOutOfSpreadItems(spread) {
         var allPageItems = spread.allPageItems;
         var partiallyOutOfSpreadItems = [];
         var currentItem;
         
         for (var i = 0; i < allPageItems.length; i++) {
              currentItem = allPageItems[i];
              if (IsPartiallyOutOfSpread(currentItem)) partiallyOutOfSpreadItems.push(currentItem);
         }
         
         return partiallyOutOfSpreadItems;
    }
    //--------------------------------------------------------------------------------------------------------------
    function DeleteObjectsOnPasteboard() {
         var objs = app.documents[0].pageItems.everyItem().getElements();
         while (obj=objs.pop()) {
              try {
                   if(obj.parent instanceof Spread || obj.parent instanceof MasterSpread){ obj.remove() }
              }
              catch(err) {
                   //$.writeln("2 - " + err);
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, "Trim Pages Script", myIcon);
         exit();
    }
    //--------------------------------------------------------------------------------------------------------------
    function UngroupAllGroups(groups) {
         for (var i = groups.length-1; i >= 0; i--) {
              var gr = groups[i];
              if (gr.groups.length > 0) {
                   var subGroups = [];
                   for (var j = gr.groups.length-1; j >= 0; j--) {
                        subGroups.push(gr.groups[j].id);
                   }                    
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              
                   for (var k = subGroups.length-1; k >= 0; k--) {
                        try {
                             doc.groups.itemByID(subGroups[k]).ungroup();
                        }
                        catch(err) {
                             //$.writeln("2 - " + err);
                             ungroupErrors++;
                        }
                   }
              }
              else {
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              }
         }     
    }
    //--------------------------------------------------------------------------------------------------------------

    Thanks in advance.

    Kasyan

    Hi Kasyan!

    I was not trying to integrate this into your script, so you may need to adjust a little. The trick is to define a function that detects the point of intersection of two lines - and, of course, you must call it for lines that will not fail to cross the border of the page! (Otherwise, it would simply expand * any * the line upward and on the border.)

    I think it would be wise to predict a small mistake for lines that seem to run "up to" the edge of the page - I tested a line for 'x '.<= 0"="" on="" a="" line="" that="" appeared="" to="" start="" on="" 0;="" the="" control="" panel="" told="" me="" so.="" however,="" i="" didn't="" type="" that="" 0="" in;="" i="" dragged="" the="" line="" to="" the="" edge.="" apparently,="" it="" was="" *not*="" at="" precisely="" "0mm",="" but="" something="" like="" "0.001mm",="" because="" the="" script="" simply="" didn't="" "see"="" the="">

    My function comes from this page: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ and I did not test it does of orthogonal lines

    (but of course, you could add this in exceptional cases), and it's my script extending the line, with a small wrapper to configure things.

    The function tests * any * tail against * any * other line, so if we meet the page bounding box, I get the intersection with the purge of the side area where it crosses the bbox page.

    line = app.selection[0];
    // pg size in "regular" [y1,x1, y2,x2] format
    pagebbox = [0,0, app.activeDocument.documentPreferences.pageHeight,app.activeDocument.documentPreferences.pageWidth ];
    bleedDist = 5; //
    bleedbbox = [ pagebbox[0] - bleedDist, pagebbox[1] - bleedDist, pagebbox[2] + bleedDist, pagebbox[3] + bleedDist ];
    pt1 = line.paths[0].pathPoints[0].anchor;
    pt2 = line.paths[0].pathPoints.lastItem().anchor;
    // Start point:
    if (pt1[0] <= pagebbox[1] || pt1[0] >= pagebbox[3] ||
     pt1[1] <= pagebbox[0] || pt1[1] >= pagebbox[2])
    {
     if (pt1[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt1[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt1[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt1[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints[0].anchor = intersectPt;
    }
    // End point:
    if (pt2[0] <= pagebbox[1] || pt2[0] >= pagebbox[3] ||
     pt2[1] <= pagebbox[0] || pt2[1] >= pagebbox[2])
    {
     if (pt2[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt2[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt2[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt2[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints.lastItem().anchor = intersectPt;
    }
    
    function IntersectionPt (ln1, ln2)
    {
     var ua;
     var x1 = ln1[0][0], x2 = ln1[1][0], x3 = ln2[0][0], x4 = ln2[1][0];
     var y1 = ln1[0][1], y2 = ln1[1][1], y3 = ln2[0][1], y4 = ln2[1][1];
     ua = ((x4 - x3)*(y1 - y3) - (y4 - y3)*(x1 - x3))/((y4 - y3)*(x2 - x1) - (x4 - x3)*(y2 - y1));
    
     return [ x1 + ua*(x2-x1), y1 + ua*(y2-y1) ];
    }
    
  • by dragging the images

    I followed a tutorial video of Michael Rather on grunge background using CS4 and windows xp. I was trying

    to drag a background image on top another image by video.  When I try this I get nothing happen. I use the move tool and I use tabs.  All that happens is that the image I drag on top of becomes active. In the tutorial, dragging him combines the two images.  Is there another setting I might have to check?  I have a question rather Mr. and he had me try without tabs and dragging them directly from the palette.  That failed as well. Thanks in advance to anyone who can help!

    Bogeymangjct

    Download the tool move, drag the image of origin (not from the layers panel) tab of your other image and after that the other image gets highlighted and then slide on the open image, not on the tab. Your cursor turns into a white arrow with a white/gray rectangle and a + on this issue when deleting.

  • By dragging the scene newbie question

    I use Flash CS3 and want to create a movie where the scene is of a certain size, but the actual content of the film extends beyond the stage. The user will be able to drag the scene from left to right to show parts of the film hidden. Similar to the idea of a gallery image horizontal scrolling, but without the scroll bar (see table below for the example image). Does anyone know how this is done or where I can find a tutorial explaining how to do it?

    See you soon

    I made this type of interaction (AS2), not from left to right, but up and down, you have to make some adjustments.

    I placed the big picture on the stage he converted to a movieclip and gave it an instance name of mc_portletlist.

    Then I created a mask for the region, I wanted the image to be visible.

    This step is optional, but I've created a popup that tells the user what to do (btn_popup).

    I then placed the following code on the layer actions.

    Numbers to limit the movement of the image, so if you want the user must be able to move the image without limits, simply remove the.

    mc_portletlist.onPress = function()
    {
    btn_popup._visible = false;
    }

    btn_popup.onPress = function()
    {
    btn_popup._visible = false;
    }

    mc_portletlist. OnMouseDown = function() {}
    mc_portletlist.StartDrag (false, 462, 35, 462, 737);
    }

    mc_portletlist. OnMouseUp = function() {}
    mc_portletlist.stopDrag (false);
    }

  • Drag the e-mail message open mailbox

    I've recently updated to El Capitan.  In latest versions OS Mail, when you opened a message, there is an icon at the top of the window of the message before the title and you can click and drag the open message to the mailbox to check it.  The icon is now gone and I can't find a way to do this without finding the original message in my Inbox.  Is there a way to get around this?  The reason why I want to do this is because I often open the messages I need to treat and leave them open as a reminder.  The message in the Inbox becomes buried in hundreds of others and so it is easier to find and move the open message that he finds in the Inbox list.

    Try dragging the message header. I can't test this on a machine of El Capitan right now, but I think it works.

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

    Hmm, I did not forward. This is a new tab page with nothing to do with what you were dragging?

    I wonder if this might be a feature of one of your extensions. You can see their and disable/remove those that are not essential or unrecognized, here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    If you disable the extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    If there is no difference, you could test mode without failure of Firefox - which is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • Just installed Firefox on a Mac under OS x 10.6.8 - 7.0.1 installation disc remains an icon on the desktop and whenever I run, Firefox opens a window asking me to drag the icon from Firefox to my Applications folder. How do I get this to go?

    I installed the app in my applications folder and everything works perfectly. But normally, after you have installed a browser, the installation disk icon that appears on your desktop can be ejected or removed without. Mine is back...

    Make sure that Firefox is installed correctly.

    Open the DMG file and drag the Firefox program in the folder of the application on your hard drive.

    You should not double-click the Firefox application to run from the disk image and drag it out of the DMG file instead.

Maybe you are looking for