Learning the basics

Can anyone tell me how, via Actionscript, one can get an
object to move via the press of a button to a desired reference
point and scale up or down when it does so?
This is probabably really basic but for a newbee like me it
would probably be easier carrying this computer to the top of
Everest!
Thank you :)

my_btn.onRelease = function() {
my_mc._x = 473;
my_mc._y = 382;
my_mc._width = 38;
my_mc._height = 329;
you can also use the Tween and Easing class for smooth
transitions
import mx.transitions.Tween;
import mx.transitions.easing.*;
my_btn.onRelease = function(){
var tw:Tween = new Tween(my_mc, "_x",
mx.transitions.easing.Strong.easeOut, 100, 473, 1, true);
var tw2:Tween = new Tween(my_mc, "_y",
mx.transitions.easing.Strong.easeOut, 290, 387, 1, true);
where the first number is starting point, second is ending
point, third is how long it takes, and true=in seconds false=in
frames. look in help files there are more tweens other than
Strong....Back, Elastic, Regular... theres easeOut easeIn
easeOutIn... you can do all this will all properties _width _height
_alpha blah blah... have fun

Similar Messages

  • Learning the basics of EXISTS operator

    I am learning the basics of EXISTS operator.
    create table loans
    (acc_id number,
    balance number(10,2));
    insert into loans
      (acc_id, balance)
    values
      (100, 20000);
    insert into loans
      (acc_id, balance)
    values
      (110, 22000);
    insert into loans
      (acc_id, balance)
    values
      (120, 7000);
    insert into loans
      (acc_id, balance)
    values
      (130, 172.99);
    SQL> select * from loans;
        ACC_ID    BALANCE
           100      20000
           110      22000
           120       7000
           130     172.99
    create table defaulters
      (cust_id number,
       name    varchar2(20),
       acc_id  number);
    insert into defaulters
      (cust_id, name, acc_id)
    values
      (1,'Vajaal',110);
    insert into defaulters
      (cust_id, name, acc_id)
    values
      (2,'Mostert',130);
    SQL> select * from defaulters;
       CUST_ID NAME                     ACC_ID
             1 Vajaal                      110
             2 Mostert                     130
    SQL> select acc_id from loans
      2  where exists(select 1 from defaulters
      3  where loans.acc_id=defaulters.acc_id);
        ACC_ID
           110
           130It just returns all acc_id rows in Loans table which has corresponding ACC_IDs present in defaulters.
    On 10gR2 SQL Reference, for EXISTS operator, it says ' An EXISTS condition tests for existence of rows in a subquery' .
    Would it be wrong if i say, EXISTS operator can be used when you want to return all rows in the Outerquery which has matching records in the Innerquery.

    Would it be wrong if i say, EXISTS operator
    can be used when you want to return all rows in the
    Outerquery which has matching records in the
    Innerquery.Depends on what you understand with "matching".
    See following examples:
    In this case matching means "<>" i.e. return all loans who have at least one row that differs in defaulters table (of course it returns all loans, because defaulters has 2 rows with different acc_id, BTW look also for NULLs and comparisons involving NULLs)
    SQL> ed
    Wrote file afiedt.buf
      1  select acc_id from loans
      2  where exists(
      3    select 1 from defaulters
      4*   where loans.acc_id<>defaulters.acc_id)
    SQL> /
        ACC_ID
           100
           110
           120
           130See also following query:
    SQL> ed
    Wrote file afiedt.buf
      1  select acc_id from loans
      2  where exists(
      3    select 1 from defaulters
      4* )
    SQL> /
        ACC_ID
           100
           110
           120
           130There isn't any condition at all, so any row in defaulters is "matching" row in this case.
    So I'd stick with explanation in documentation this time ;)
    Gints Plivna
    http://www.gplivna.eu

  • 55: Photoshop Touch - Learn the Basics tutorial | Ask the Adobe Ones | Adobe TV

    In this episode of Ask the Adobe Ones, Kush explains some of the basics of using Adobe Photoshop Touch on a Samsung Galaxy Note 10.1. Even if you are not familiar with the desktop version of Photoshop, see how easy it is to learn and have fun manipulating and retouching your photos with this Touch App.
    http://adobe.ly/QkHzxD

    kush u just one funny ugly bubble bubble mouth person u look like a ugly scorpion bear old sand paper jean wearin nigga nigga just pop a mollie no sweatin no instagram u dont even know flexion

  • I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    Out of a silly curiosity, in what way did Ralph's reply solve your problem? (not that Ralph doesn't deserve recognition, mind you.)

  • Help needed in learning the basics of Java Smart Card and implementation?

    Hello every body,
    I am trying to develop the applications on java contactless smart cards technology.
    Can any body give me the details like how to start?
    What are the required softwares and installation procedure and path settings and etc.?
    I am the beginner in java smart card application development.
    plz help me out

    Dear Friend,
    I would advice to divide learning into two main parts: JavaCard technology and contactless RFID cards. For JavaCard technology you can find useful articles on Sun web-site (developers.sun.com/mobility/javacard/articles/javacard1/). For contactless RFID you can find few useful books at Amazon. Regarding software you need JC development kit. How to install it there is an instrunction in JCDK user guide.
    If it is not a secret what a javacard contactless card you are going to use in your work?
    Yours
    Dmitri

  • Windows 8/8.1 Tutorials / Getting Started / Learning the basics

    If you ever wanted to learn how to use Windows 8 or Windows 8.1 but you were always scared to explore the unknown. This will get you started. Make sure to check out my recommendations.
    If you find or know great tutorials make sure to post them in this thread.
    Here is my selection of the best tutorials
    Windows 8
    Getting around your PC - Microsoft Windows (Official / Recommended)
    Windows 8.1 Power User Guide for Business (PDF)
    Windows 8.1
    Windows 8.1 Essential Training with David Rivers (Recommended)
    Windows 8.1 Preview Tricks & Tutorial Review - Beginners Video Guide
    Windows 8.1 Tutorials by LaptopMag
    Getting Started (Official)
    Both
    Three all new Windows 8.1 video tutorials by Scott Hanselman (Recommended)
    Free Windows 8 Tutorial
    Windows 8/8.1 Tutorials
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

    You need to boot from an OS X installer disc compatible with this model's hardware or you must connect it by Target Disk Mode - Target Disk Mode - so you can re-partition and reformat the hard drive before you can install Mountain Lion on it or any other version of OS X. Here's the process:
    Drive Partition and Format
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    If you are preparing an external or a non-startup drive, then open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • I've learned the basics, what's the next step?

    Hi guys! I've just finished a book (Java - A Beginner's Guide) and some of the tutorials on sun.com and I'm wondering what's the next step?
    The reason I'm learning Java is to get a programming job somewhere in the future. I'm in the medical field and I want to change careers. I always loved computers and technology!
    I've browsed the job market in our country and a lot of them are looking for J2EE capable people. How do I make the transition to J2EE? Is there a good book available for learning it? How should I prepare next?
    Thanks!

    djshinton wrote:
    Sounds to me that you want to learn J2EE to get a job in Java. The problem with J2EE is that knowing it alone wont get you a job doing it. Also, programming J2EE requires that you know J2SE, so make sure you are extremely comfortable with J2SE before moving on.I agree. You should focus on understanding the compiler, runtime, and core API well before moving on. You should write several applications (even a couple advanced level apps) before moving out of core. But you don't need to do a lot with stuff like Swing or whatever. I would touch JDBC and I'd also get some understanding of threads.
    If you want to code J2EE you typically have to specialize on something. There are many roles in a J2EE project; for example, do you want to do presentation logic using JSP, code EJBs in the business layer, or administer and deploy J2EE applications? In addition, employers typically use a particular application server (i.e. Websphere, Weblogic, JBoss, Geronimo) so you will have to get familiar with them.I disagree for the most part. For the past 7 years of doing J2EE contracts (probably a dozen projects or so) it's rare that the roles are divided. Occasionally you have a web developer that will do the graphics and layout and design of web pages, but the Java/J2EE developer usually does everything else. It's not uncommon to have someone who primarily does server configurations and deployments, but you will need to learn that soon enough. Most of the time that responsibility is shared.
    I would recommend reading Mastering EJB. You can download a free copy at http://www.theserverside.com/tt/books/wiley/masteringEJB. You should be able to use it as a guide to develop some test applications on a free application server such as JBoss, Geronimo, Glassfish, or WebSphere Community Edition.
    I haven't worked on EJB's since 2003. Nobody seems to use them. Some people are getting back into it now that it's EJB3 but nobody I know. Save EJB for last. Focus on JSP/Servlets, XML, JNDI, Web Services, maybe JMS...

  • New computer, new PSE7, where can I learn the basics or uploading & organizing?

    I have used PSE3 for years. With a new laptop in hand and PSE7 I have a chance at "doing it right".  With PSE7 how do I find basic tutorials on getting started?  On my previous computer and using PSE3 I had my images in both the PSE organizer and "My pictures".  I don't want to have multiple places storing images on my computer.   How do I go through the very basics of importing pictures and organizing them? Thanks!

    photodonna,
    The picture files are stored wherever you put them - e.g. MyPictures, Documents. The organizer does not store the pictures.
    You see thumbnails.
    There was published an excellent book, Organize Your Photos with Adobe Photoshop Elements 3, by Michael Slater. Unfortunately he has not seen fit to update this book, but the general principles should hold for the more recent version of Elements. One of the contributors to this forum refers to the book quite frequently. It is available for $2.75!
    http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Dstripbooks&field-keywords=organize +your+photos&x=17&y=14

  • Can anyone recommend a good "How To" Book. I have switched to a MacBook pro 15 inch. and I woiuld really like to learn the basics and get the most out of my Mac.

    I want to be able to get the most out of my MacBook pro. Any suggestions on a good book to read?

    Switching to a Mac For Dummies, 2nd Edition

  • How can learn the very basics of Pixelmator?

    How can I learn the very basics of using Pixelmator?   I have no graphic arts experience beyond WOrd Art which I've used to design t-shirt graphics.    Although I had been encouraged to by Photo Shop, I wanted a smaller $ step into graphics art and was introduced to Pixelmator.
    But I don't even know enough about how to start creating my ideas....e.g. how to even create artful text......    Pixelmator has a good learning site, but all of their tutorials seem to assume a basic knowledge of this kind of software.
    My sister suggested I try to hook-up with a tutor through an Apple Forum....
    Suggestions please?!

    The folks at PixelmatorTutorials.net have in my opinion the best tutorials to date for those who want to learn image editing. They have a series of tutorials called back to basics and these go into the details of image editing. Explaining everything from what a pixel is, to how it gets its color etc. They also explain the app itself in detail. I'd recommend following them. They usually pubilish 1 to 2 tutorials a week. They have some handy tips in every tutorial I watched so far. Like shorcuts that I never knew existed and are not even mentioned in the Pixelmator manual.
    The link: http://pixelmatortutorials.net
    Good luck.

  • When I sign in to Gmail in FF I get this mess -Error undefined If this problem persists, try reloading the page, or using the basic HTML version. Learn More.

    When I sign in to Gmail in FireFox I get this mess -Error undefined If this problem persists, try reloading the page, or using the basic HTML version. Learn More.

    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • What is  the basic requirement to learn EP(Development)? Please advise

    Hi Gurus,
    This is my serious concern.
    I am an ABAPer with 4+ years of experience.
    I am from IT background also. I would like to know what is  the basic requirement to learn EP (Development)?
    Is Java required? If so, is it J2EE and which version of it?
    Also what else, apart from this I should know to become a successful consultant in EP (seen enough of ABAP).
    Please advise.
    I am posting this as, I have lots of confusion in moving to EP.
    -B S B

    Hi BSB
    I would like to know what is the basic requirement to learn EP (Development)?
    You should aware of ERP and business processes to start learning EP.
    Is Java required? If so, is it J2EE and which version of it?
    Java knowledge like jsps,corejava...it will be good..If you know well,you can play with webdynpro java.
    Also what else, apart from this I should know to become a successful consultant in EP (seen enough of ABAP
    Webdynpro ABAP suits for you exactly for developing portal applications.
    Koti Reddy

  • Site to learn Illustrator basics from the beginning

    Is there a website were
    I could learn Illustrator from the beg
    gining. Starting with the basics.

    carbootsupplies,
    The Helpfiles, which has replaced the manual of former versions, is not a bad place to start. You may use the Index and Search features to enter areas of particular interest/need, and/or you may go through (a part of) the whole Help. You should try things, not only read about them.
    This forum is also helpful when it comes to unintelligible parts, and to get past especially difficult tasks.
    Apart from that there is a number of books/sites to learn from, in some cases for more experiences users; some sites are free.

  • Trying to understand the basic concept of object oriented programming.

    I am trying to understand the basic concept of object oriented programming.
    Object - a region of storage that define is defined by both state/behavior.
    ( An object is the actual thing that behavior affects.)
    State - Represented by a set of variables and the values they contain.
    (Is the location or movement or action that is the goal that the behavior is trying to accomplish.)
    Variables- (What does this mean?)
    Value - (What does this mean?)
    Behavior - Represented by a set of methods and the logic they implement.
    ( A set of methods that is built up to tell's the how object to change it's state. )
    Methods - A procedure that is executed when an object receives a message.
    ( A very basic comand.For example the method tells the object to move up, another method tells the method to go left. Thus making the object move up/left that combination is the behavior.)
    Class - A template from which the objects are created.
    ( I am very confused on what classes are.)
    - The definitions of the words I obtained from the "Osborne Teach Yourself Java". The () statements are how I interperate the Mechanisms (I do not know if Thats what you call them.) interact with each other. I understand my interpretation may be horribly wrong. I will incredibly appreciate all the support I may get from you.
    Thank you

    Object oriented programming is a replacement for the older idea of procedural programming (you can research procedural programming in google). As I understand it, in procedural programming, you have a step by step set of function calls to accomplish some task. Each function receives a data structure, manipulates it, and passes it to the next function. The problem with this is that each function preforms some action for the overall task and can't easily be reused by some other task. Its also harder to read the flow of what is happening with raw data structures flying all over the place.
    In object oriented programming, an object calls a function of another object and receives back, not a data structure, but another object. Objects contain a data structure that can only be accessed by its functions. An object is not so much a sub component of a bigger task, as it is a service that any other task can use for any purpose. Also, when you pass an object to the caller, the caller can ask questions about the data structure via its functions. The developer doesnt have to know what the previous function did to the data by reading up on any documentation, or having to reverse engineer the code.
    I suggest the best way of learning this is to code something like a library object.
    A library object contains a collection of book objects
    A book object contains a collection of chapter objects
    A chapter object contains a collection of paragraph objects
    A paragraph object contains a collection of sentence objects
    A sentence object contains a collection of word objects.
    Add functions to each object to provide a service
    Example: A library object should have a:
    public void addBook(Book book)
    public Book getBook(String title)
    public boolean isBookInLibrary(String title)
    The key is to add functions to provide a service to anyone who uses your object(s)
    For example, what functions (service) should a paragraph object provide?
    It shouldn't provide a function that tells how many words there are in a sentence. That function belongs to a sentence object.
    Lets say you want to add a new chapter to a book. The task is easy to read
    if you write your objects well:
    Sentence sentence1=new Sentence("It was a dark and stormy night");
    Sentence sentence2=new Sentence("Suddenly, a shot ran out");
    Paragraph paragraph=new Paragraph();
    paragraph.addSentence(sentence1);
    paragraph.addSentence(sentence2);
    Paragraphs paragraphs=new Paragraphs();
    paragraphs.addParagraph(paragraph);
    Library library= new Library();
    library.getBook("My Novel").addChapter("Chapter 1",paragraphs).
    Now, lets say you want to have a word count for the entire book.
    The book should ask each chapter how many words it contains.
    Each chapter should ask its paragraphs, each paragraph should ask
    its sentences. The total of words should ripple up and be tallied at each
    stage until it reaches the book. The book can then report the total.
    Only the sentence object actually counts words. The other objects just tallies the counts.
    Now, where would you assign a librarian? What object(s) and functions would you provide?
    If written well, the project is easily extensible.

  • Why can't I use the Basic brush tool?

    I'm learning the ropes of drawing in Illustrator and I've fallen at the first hurdle. Why can't I use the Basic brush tool? Whenever I select the brush tool and use the 'Basic' brush type, the cursor turns into a hashed circle indicating I can't draw. If I load other brushes, I can draw with other brush types, but I can't use the Basic one. If I select the Basic brush when I have other brushes loaded and try to draw with it, it always defaults to a different brush! I don't understand why.
    On a related matter, I'm also having trouble changing brush size. I know that using the [ and ] keys changes brush size, but I have no idea what the values are. If I try this in Photoshop, I can see the brush size in the Options bar, but in Illustrator it doesn't appear anywhere! Not in the Brushes palette, the Stroke palette or the Appearance palette. Where can I see the brush size?

    Glitcher,
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

Maybe you are looking for

  • How to report that itune billed me twice in one app

    I had to purchased app and istore billed me twice how should i do ?? i just checked the receipt it show like this Item Developer Type Unit Price Learn Spanish - MindSnacks, 50 Spanish Lessons Report a Problem MindSnacks In App Purchase $4.99 Learn Sp

  • Dynamic class creation

    hi, I need to create new classes (not objects) dynamically in my program and then objects of that type. For example if the user asks to create a class with int, float & char as its data fields, and such class is not yet defined, I need to create such

  • Default language in business one.

    The IT department purchased a couple of 64-bit machines running windows 7 pro. One of the machines is reverting the default language to czech as our implementer was a jerk when he updated our system before he quit on our partner. We are running in 20

  • Windows Computer Hardware view

    Hi I am trying for a Type proection View to get all Windows Computer information along with their Machine Hardware I could not find a suitable Relationship Classes for making this Type projection work. What i tried was TypeProjections>         <TypeP

  • Why can't I hide Digital Camera RAW Compatibility Update 6.01

    I don't have an SLR camera. I have an iPhone. Usually when I see RAW updates I right click them to hide the update because I don't need them. However when I right click and hide the Digital Camera RAW Compatibility Update 6.01 it doesn't go away. I f