How to resize a text sprite?

This code follow can change a shape or picture sprite's
dimension:
vRect = mySprite.rect
vRect.left = vRect.left - 5
vRect.right = vRect.right + 5
mySprite.rect = vRect
But when this code is used to a text(or field) sprite, it
doesn't work! Why? How can I change a text box's dimension?

To change the height of a text sprite:
1. The text member's .boxType property must be set to #fixed
or #scroll
2. You need to set the .height of the member
Changing the height of the sprite or the rect of the member
or the sprite will not affect the height of the text member, so the
height of the sprite will not change. (The sprite may report having
a different height, but visually, there will be no change).

Similar Messages

  • How to resize object + Text lighting

    Hi,
    1. Lately I can't resize an object.
    The surrounding border of the object is with filled rectanglers and
    not with hollow rectangler.Thus, I can't resize objects - how can I fix it ?
    2. When I try to mark text, it's mark it perfectly but I can't see the higlighting eventhough I choose it.
    How can I mark text and see the text marked (chosen text marked)
    Regards,
    Koko Fiko

    You are welcome, Koko Fiko.
    1) To freely write right to left, you need an AI version where that direction is native. The Middle East version does it (it is worse for anyone using boustrophedon).
    2) If you have Acrobat (not Reader), you may save the first page under the desired name, then save the following page(s) under another name (one by one), switching to Acrobat and using Document>Insert Pages (Alt/Option+D+I) and using After.

  • How to resize margins / text frames for a whole book?

    Hello, I am new to InDesign, but not Adobe software. I am trying to use InDesign to produce a book I have written for a university course I teach. I have 33 documents all together as an InDesign book. After I printed out some test pages I thought there should be more white space on all sides. I changed the margins by 5mm in the master page on the master document and then synced the book. Now the MARGINS have changed on all the documents, but the TEXT FRAMES remain unchanged. I know that I can change text frame sizes, by hand, but that would take forever. I can't find how I can automatically resize a whole book. Is this not possible?
    Craig

    Before synching, you need to enable layout adjustment in each document (Layout > Layout adjustment). Since you have 33 documents, you might want to run this little script to do it for you:
    for (i = 0; i < app.documents.length; i++)
    app.documents[i].layoutAdjustmentPreferences.enableLayoutAdjustment = true;
    Open all the documents where Layout adjustment should be enabled and run the script.
    Peter

  • How to resize the text I enter in the boxes on some web pages?

    Sometimes I need to type a text in boxes (of online dictionaries for example) and it has a very small size for me. How could I increase the size of the entered text?

    You need to add this javascript function to your form jsp files (or template)
    function noenter() {
    return !(window.event && window.event.keyCode == 13); }
    and then add an onkeypress attribute to your text input fields that looks like this:
    onkeypress="return noenter();"
    ---------------OR-----------------------------------
    onkeypress="return event.keyCode!=13"

  • How to resize the text field through the expression?

    It is necessary that another layer was at 150 pixels to the right of the right side of the text field.

    PACK
    Syntax
    PACK source TO destination.
    Effect:
    This statement, which is forbidden in classes, converts the content of the data object source to the data type p of length 16 without decimal places. In contrast to the conversion rules for elementary data types, a decimal separator in source is ignored. This assigns the converted content to the data object destination.
    The data type of source must be character-type, flat, and its content must be interpretable as a numeric value. The data type of destination must be flat. If destination has the data type p, the interim result is assigned to it from left to right. Surplus characters are cut off on the left, and the decimal places are determined by the data type of destination. If destination does not have the data type p, the interim result is converted to the data type of destination according to the rules in the conversion table for source field type p.
    Notes:
    The function of the statement PACK is based on the second half-byte of the code corresponding to a character in most character representations of the BCD representation for the corresponding numeric value. This compilation is generally known as "packing".
    If the source field contains a number without a decimal separator, and the target field has dobj2 of data type p with sufficient length and without decimal places, the result of the PACK statement (which is forbidden in classes) corresponds to the result of the statement MOVE.

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How do i resize a text box?

    Trying to resize a text box, but the up/ down/ diagonal arrows won't move to resize!  How do I edit that please?

    You can also fine tune the Text Box (or Shape) size using the Arrange tab and Size section. Notice the constrain proportions checkbox.
    Otherwise, what Peter said, and if you press the shift key while clicking on that lower-right Text Box grip, you will see a diagonal, yellow dotted line that serves as a proportional drag guide to scale the box.

  • How to resize only specific text in PDF?

    In the text above, how would I go about enlarging/resizing the text in arabic so that the text resizing doesn't affect the rest of the paragraph?
    When I select "edit text & images", the entire paragraph is one box, and when I enlarge the font of the arabic word, the whole paragraph gets affected in that a bigger spacing appears between both lines of text.
    So, how do I rezise that specific word on its own?
    Thanks.

    Hi, I did think of that, but it'd take me an awfully long time to go through the 200 page document in this fashion because I would need to cut that word, paste it into the new text field, then create space in the original paragraph to insert the arabic word.
    Isn't there a way of perhaps selecting that word as an image by converting it or something and then resizing it?

  • How to make a text variable (running header - character) resize a text frame?

    I have successfully been able to get a metadata text variable to auto-resize a text frame, but when I change the text variable to a running header-character/paragraph variable, the text frame does not resize - in fact it gets smaller and squashes the text.
    Surely if Indesign can handle one kind of variable it should handle another??
    Please help!

    Thanks all.
    Will- I tried adding another character to the text box but this made no difference.
    Eugene- I'm trying to avoid the purchase of any 3rd party plugins due to budget constraints.
    I realised that all I needed to do was use a wide paragraph rule to emulate a box behind the text, and make the text box long enough to hold all possible variables.
    One other issue has now cropped up, the running header (character) only grabs the text up to the first return, but I need it to grab all text formatted with the Character Style (2-3 lines max).
    I require a forced line break in the title (where the header is being pulled from) as it has a paragraph rule style attached, requiring a full return for each line of the title.
    Any ideas?

  • How do you edit text that is in a text box?

    How do you edit text that is in a text box?  I just want to change the font color of the text.  Solution in the Help files recommends selecting the text and then selecting Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    This is what the help files recommend
    (Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    When I try the above solution I don't have a  "Options" in the "Properties" toolbar.
    Why would they change a process that was so simple in previous editions to such a hidden awkward process?

    Try with a Brightness/Contrast adjustment layer and/or changing the blending mode.
    If the effect is too much for the rest of the bulb, you may be able to mask it out.
    It would help if you post a representative picture here on the forum page for us to look at.

  • How do I edit text in a fill-in form?

    How do I edit text in a fill-in form?  I am using Adobe Acrobat Pro version 10.1.8 in Mac OSX.  The document was created in Word, saved as a pdf, opened in Acrobat, and form fields added.  Now I need to change some of the text on the original form (mostly just dates).  Ideally, I wish there were a way to edit the forms overall - add or delete lines, edit text, etc.  I've done this before, but I always seem to need to go back to Word, edit the original document, and then re-create the form fields... it takes me a huge amount of time, making sure each field is formatted correctly (font, size, wrapping, text resizing, etc) so it looks ok when the user enters their data and prints it.  Please, tell me there is a better way!
    If the solution is upgrading to a higher version of Acrobat, I'm listening... but ideally I can get this batch done in the software I have, then worry about learning the newest version.

    Fonts are Licensed asset's subject to single user use. They are not intended to be exchanged, redistributed, etc.
    As part of the PDF standard they included in a document so that the document can be viewed reliably without the font be installed on the viewing station.
    To edit you must have the font installed on your computer. The ability for second parties to use the font would violate font licenses.

  • How to resize a photo from CameraUI?

    Hi there,
    i really need som help here. I cant seem understand how to resize an still image taken with the camera. Here are the code so far(also with the upload part). I just need a thumbnail to be uploaded to the server, not the HQ-image. Any ideas?
              Simple AIR for iOS Package for selecting a cameraroll photo or taking a photo and processing it.
              Copyright 2012 FIZIX Digital Agency
              http://www.fizixstudios.com
              For more information see the tutorial at:
              http://www.fizixstudios.com/labs/do/view/id/air-ios-camera-and-uploading-photos
              Notes:
              This is a barebones script and is as generic as possible. The upload process is very basic,
              the tutorial linked above gives information on how to post the image along with data to
              your PHP script.
              The PHP script will collect as $_FILES['Filedata'];
              import flash.display.MovieClip;
              import flash.events.MouseEvent;
              import flash.events.TouchEvent;
              import flash.ui.Multitouch;
        import flash.ui.MultitouchInputMode;
              import flash.media.Camera;
              import flash.media.CameraUI;
              import flash.media.CameraRoll;
              import flash.media.MediaPromise;
        import flash.media.MediaType;
              import flash.events.MediaEvent;
              import flash.events.Event;
              import flash.events.ErrorEvent;
              import flash.utils.IDataInput;
              import flash.events.IEventDispatcher;
              import flash.events.IOErrorEvent;
              import flash.utils.ByteArray;
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.errors.EOFError;
              import flash.net.URLRequest;
              import flash.net.URLVariables;
              import flash.net.URLRequestMethod;
                        // Define properties
                        var cameraRoll:CameraRoll = new CameraRoll();                                        // For Camera Roll
                        var cameraUI:CameraUI = new CameraUI();                                                            // For Taking a Photo
                        var dataSource:IDataInput;                                                                                          // Data Source
                        var tempDir;                                                                                                                        // Our temporary directory
                        CameraTest() ;
                        function CameraTest()
                                  Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
                                  // Start the home screen
                                  startHomeScreen();
                        // =================================================================================
                        // startHomeScreen
                        // =================================================================================
                        function startHomeScreen()
                                  trace("Main Screen Initialized");
                                  // Add main screen event listeners
                                  if(Multitouch.supportsGestureEvents)
                                            mainScreen.startCamera.addEventListener(TouchEvent.TOUCH_TAP, initCamera);
                                            mainScreen.startCameraRoll.addEventListener(TouchEvent.TOUCH_TAP, initCameraRoll);
                                  else
                                            mainScreen.startCamera.addEventListener(MouseEvent.CLICK, initCamera);
                                            mainScreen.startCameraRoll.addEventListener(MouseEvent.CLICK, initCameraRoll);
                        // =================================================================================
                        // initCamera
                        // =================================================================================
                        function initCamera(evt:Event):void
                                  trace("Starting Camera");
                                  if( CameraUI.isSupported )
                                            cameraUI.addEventListener(MediaEvent.COMPLETE, imageSelected);
                                            cameraUI.addEventListener(Event.CANCEL, browseCancelled);
                                            cameraUI.addEventListener(ErrorEvent.ERROR, mediaError);
                                            cameraUI.launch(MediaType.IMAGE);
                                  else
                                            mainScreen.feedbackText.text = "This device does not support Camera functions.";
                        // =================================================================================
                        // initCameraRoll
                        // =================================================================================
                        function initCameraRoll(evt:Event):void
                                  trace("Opening Camera Roll");
                                  if(CameraRoll.supportsBrowseForImage)
                                            mainScreen.feedbackText.text = "Opening Camera Roll.";
                                            // Add event listeners for camera roll events
                                            cameraRoll.addEventListener(MediaEvent.SELECT, imageSelected);
                                            cameraRoll.addEventListener(Event.CANCEL, browseCancelled);
                                            cameraRoll.addEventListener(ErrorEvent.ERROR, mediaError);
                                            // Open up the camera roll
                                            cameraRoll.browseForImage();
                                  else
                                            mainScreen.feedbackText.text = "This device does not support CameraRoll functions.";
                        // =================================================================================
                        // imageSelected
                        // =================================================================================
                        function imageSelected(evt:MediaEvent):void
                                  mainScreen.feedbackText.text = "Image Selected";
                                  // Create a new imagePromise
                                  var imagePromise:MediaPromise = evt.data;
                                  // Open our data source
                                  dataSource = imagePromise.open();
                                  if(imagePromise.isAsync )
                                            mainScreen.feedbackText.text += "Asynchronous Mode Media Promise.";
                                            var eventSource:IEventDispatcher = dataSource as IEventDispatcher;
                                            eventSource.addEventListener( Event.COMPLETE, onMediaLoaded );
                                  else
                                            mainScreen.feedbackText.text += "Synchronous Mode Media Promise.";
                                            readMediaData();
                        // =================================================================================
                        // browseCancelled
                        // =================================================================================
                        function browseCancelled(event:Event):void
                                  mainScreen.feedbackText.text = "Browse CameraRoll Cancelled";
                        // =================================================================================
                        // mediaError
                        // =================================================================================
                        function mediaError(event:Event):void
                                  mainScreen.feedbackText.text = "There was an error";
                        // =================================================================================
                        // onMediaLoaded
                        // =================================================================================
                        function onMediaLoaded( event:Event ):void
                                  mainScreen.feedbackText.text += "Image Loaded.";
                                  readMediaData();
                        // =================================================================================
                        // readMediaData
                        // =================================================================================
                        function readMediaData():void
                                  mainScreen.feedbackText.text += "Reading Image Data.";
                                  var imageBytes:ByteArray = new ByteArray();
                                  dataSource.readBytes( imageBytes );
                                  tempDir = File.createTempDirectory();
                                  // Set the userURL
                                  var serverURL:String = "http://www.hidden_in_this_example.com/upload.php";
                                  // Get the date and create an image name
                                  var now:Date = new Date();
                                  var filename:String = "IMG" + now.fullYear + now.month + now.day + now.hours + now.minutes + now.seconds;
                                  // Create the temp file
                                  var temp:File = tempDir.resolvePath(filename);
                                  // Create a new FileStream
                                  var stream:FileStream = new FileStream();
                                  stream.open(temp, FileMode.WRITE);
                                  stream.writeBytes(imageBytes);
                                  stream.close();
                                  // Add event listeners for progress
                                  temp.addEventListener(Event.COMPLETE, uploadComplete);
                                  temp.addEventListener(IOErrorEvent.IO_ERROR, ioError);
                                  // Try to upload the file
                                  try
                                            mainScreen.feedbackText.text += "Uploading File";
                                            //temp.upload(new URLRequest(serverURL), "Filedata");
                                            // We need to use URLVariables
                                            var params:URLVariables = new URLVariables();
                                            // Set the parameters that we will be posting alongside the image
                                            params.userid = "1234567";
                                            // Create a new URLRequest
                                            var request:URLRequest = new URLRequest(serverURL);
                                            // Set the request method to POST (as opposed to GET)
                                            request.method = URLRequestMethod.POST;
                                            // Put our parameters into request.data
                                            request.data = params;
                                            // Perform the upload
                                            temp.upload(request, "Filedata");
                                  catch( e:Error )
                                            trace(e);
                                            mainScreen.feedbackText.text += "Error Uploading File: " + e;
                                            removeTempDir();
                        // =================================================================================
                        // removeTempDir
                        // =================================================================================
                        function removeTempDir():void
                                  tempDir.deleteDirectory(true);
                                  tempDir = null;
                        // ==================================================================================
                        // uploadComplete()
                        // ==================================================================================
                        function uploadComplete(event:Event):void
                                  mainScreen.feedbackText.text += "Upload Complete";
                        // ==================================================================================
                        // ioError()
                        // ==================================================================================
                        function ioError(event:Event):void
                                  mainScreen.feedbackText.text += "Unable to process photo";

    1. Create a BitmapData of the correct size of the full image
    2. Use BitmapData.setPixels to create pixel data from your byteArray
    3. Make a new Bitmap, Bitmap.bitmapData = BitmapData
    4. Create a matrix with the correct scaling factors for your thumbnail
    5. Create a new BitmapData the size of your thumb
    6. Use BitmapData.draw to draw your image data from the Bitmap to the new BitmapData with the scaling matrix
    7. Use BitmapData.getPixels to create a bytearray from your thumb BitmapData
    8. save it
    You'll have to look up the AS3 reference to see how all these methods work.

  • Highlighting an editable text sprite

    I have a bunch of form type of pages on my stage. User enters
    text,
    jumps to a new screen, edits more text. Typically, the cursor
    will be
    blinking at the sprite in the lowest channel, which would
    ebbe my top
    item on the page. Sometimes, I may have form1 that has the
    same text
    member as form 2. If, in form1, you clicked text2, then go to
    form2,
    which also has that text in slot 2, the cursor shows there
    instead of
    the top text sprite (slot1). How would I fix that? And what
    if I wanted
    text 3 to have the cursor ? How would I get the cursor to be
    set to a
    specific text sprite and how would I get it to be highlighted
    like if
    you selected all the text in that member?
    Hope that was clear.
    Thanks.

    Mike Blaustein wrote:
    > You can set the placement of the cursor using the
    keyboardFocusSprite....
    >
    > the keyboardFocusSprite=3
    Hi Mike,
    Want to help debug something I'm doing in this area. I'm also
    using 'the
    keyboardFocusSprite' but with a variable. Variable can keep
    increasing
    (when you click a button, a new item is added and the next
    editable text
    should become active). The first time I click the 'add'
    button, it works
    OK, but subsequent times, it does not work.
    Here's a sample of my code for the add button:
    gWelcomeNamesList.add([#name : "New Name", #image : ""])
    s = gWelcomeNamesList.count
    put s
    repeat while s > 8 -- there are 8 items on my list
    s = s - 8
    end repeat
    put s
    spriteFocus = 9 + (s * 7) -- formula based on where editable
    sprites are
    in Score
    put spriteFocus
    the keyboardFocusSprite = spriteFocus
    put the keyboardFocusSprite
    In my Message window, I can see the list count gets bigger
    each time I
    click (first s)
    Gets the position of the sequence of 8 correct (second s)
    get the spriteFocus value correct
    'the keyboardFocusSprite = spriteFocus' -- works the first
    time
    second time 'the keyboardFocusSprite = spriteFocus' doesn't
    seem to be
    activated. The last line 'put the keyboardFocusSprite' still
    shows the
    focus to be the prior sprite, not the new one which is now
    accurately
    defined by 'spirteFocus'.
    That make sense? Any ideas?
    regards
    Dean
    Director Lecturer / Consultant
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au

  • HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    HOW CAN I IMPORT TEXT FROM MICROSOFT WORD TO THE WEB PAGE?

    Another method is tosave your Word document as an a web page.  Then open the htm file, copy the text and paste into an HTML snippet on your web page.  Resize to show all the document and publish. It will retain the style, font and alignment of the original Word document.
    OT

  • How does one put text on the spine?

    I'm a little confused about the difference between the version I'm creating and the template I start with. I start with a template, then resize and mess with the arrangement of the pictures. I move text boxes. All seems okay.
    I put a colored background on the front and back cover (by inserting a specially made pdf from Pages, a gradient color). The back spine remains white, and blank. How can I add text to the spine? And is there a way to have the color from the background bleed over the spine?
    Ben

    I certainly don't know how it was constructed, but I suppose the form was intended for people that use Word. If you were using Word, you would just select the "insert" key (or something - I forget) and type away. The text would type above the line. I thought maybe there was something like that in Pages. I find myself getting very frustrated using Pages and Numbers. They really aren't that easy to use. Word and Excel have them beat.

Maybe you are looking for

  • User defined report with bind variable

    How can I create an user defined report using a bind variable?

  • 2 Reports in same worksheet of workbook

    Hi Experts, My requirement is to display 2 reports in the same worksheet of a workbook. I am using analysis Grid item of workbook to display 2 reports.But My number of rows in 1st report are not fixed. It may vary based on the data records. I am disp

  • Adobe Air Deployment Questions

    I'm working on a commercial application.  This application gets sold to customers, then deployed by various customers on whatever server they would like.  It's a java backend flex front end.  That said, for the web-app, since the swf file is housed i

  • Global Service Query

    Hi all I downloaded the sample application from sdn called <b>com.sap.netweaver.kmc.globalservice.zip</b>Its sample global service for capturing KM events. I modified only the EventHandler.java and added some JCO statements in the method when somethi

  • Charter Email Problems

    Is there a compatibility issue with Charter Communications? My incoming email is sporadic, to say the least. It comes in fine on my iphone. They say I have to use their website, because the Apple Email is third party. Sometimes it works great. Other