Help For The Clueless - Where To Start?

Let's say, hypothetically, that I have no programming
experience beyond writing a random number generator in basic on my
Commodore 64 back in 1984. Let's pretend that I haven't the
slightest understanding of Javascript and only a handful of basic
HTML tags in my programming arsenal. Imagine that I have no real
idea of the method or syntax of any modern programming language.
Where would I even begin to learn how to apply ActionScript to my
Flash project?
I have plenty of animation and design experience, am
extremely familiar with AfterEffects, Carrara and other
timeline-based animation programs, and am fairly intelligent, but
almost every "basic" Flash ActionScript resource I find online
seems to assume that I have a basic understanding of computer
programming. I need something that tells me how to "speak" AS3 -
what a bracket means as opposed to a parenthesis, what a "string"
is and how it's used, what's an "event handler", etc.
Can anyone recommend the best way for a non-programmer to get
a grasp on the basics? If I could learn those, I'm pretty sure I
could figure out much for myself. My sincere thanks in advance for
any advice.
PS - What's got me skeered is that I went online to find out
how to make a text box populate one letter at a time as if it was
being typed. It would seem such an effect would be pretty popular
and thus have an easy mechanism built in to accomplish it. The
answer I got pointed to a huge page of code that was entirely
cryptic to me. Is this pretty much what I'm in for?

Doyle,
> Can anyone recommend the best way for a non-programmer
> to get a grasp on the basics [of ActionScript]? If I
could learn
> those, I'm pretty sure I could figure out much for
myself.
The big break-through for me was when I was able to wrap my
head around
the concept of objects. In short, everything of useful value
in
ActionScript is an object. Movie clip symbols, button
symbols, text fields
... those are objects. But even nontangible (or only vaguely
tangible)
things, like math functions, glow effects, today's date ...
those are
objects too.
They have characteristics, such as a movie clip's width and
height, its
x and y position on the stage. They have things they can do,
such as
play(), stop(), gotoAndPlay(someFrameHere). They have things
they can react
to, such as a mouse click.
Characteristics are called properties. Things an object can
do are
called methods. Things an object can react to are called
events. Generally
speaking, you'll find these three categories (as applicable)
in the class
entry for every object in the documentation.
Objects are defined by something called a class, which is
basically a
recipe or blueprint for the object in question. Movie clips
are defined by
the MovieClip class, text fields by the TextField class, and
so on. The
date/time is defined by the Date class. Arrays (lists of
things) are
defined by the Array class. There's a math class for math
methods, a String
class for strings (collections of characters), and countless
more. Some
classes work in groups (consider the Sound, SoundChannel, and
SoundTransform
classes).
So when you're considering how to accomplish a given goal,
consider
first what object you're dealing with. Is it a text field
(what you were
calling a text box)? Check out the TextField class. Your next
question is,
What aspect of this class am I intereted in: property
(characteristic),
method (thing it can do), or event (thing it can react to)?
Like us, classes take advantage of inheritance. I'm a human,
but I'm
also a mammal, and I'm also a vertibrate, etc. The closer you
get to the
branches of the family tree (i.e., the human side), the more
specific it
gets. For example, there's no reason for the Human class to
describe
spines, because that's already covered by the Vertibrate
class. That said,
humans *do have* spines, so when you look up the Property,
Method, and Event
headings of a given class entry, make sure to click the "Show
Inherited
Properties / Methods / Events" hyperlinks to see the full
functionality
available to that class.
The TextField class, for example, features an alpha property
(transparency) that it inherits from the DisplayObject class.
From that
same branch of the family tree, text fields also inherit
their x and y
properties, which makes sense: clearly, text fields can be
positioned at
any number of (x,y) coordinates on the Stage. TextField also
has a text
property, which indicates the text content displayed by that
text field
(that property isn't inherited).
If you look up the methods for that class, you'll find a
setTextFormat()
method, which is something an instance of this class can do:
it can set the
formatting (visual style) of the text it contains. As you dig
deeper,
you'll find a TextFormat class, and so on. Everything is an
object. :)
Events include mouseOver, mouseOut, keyDown, keyUp, and
more. If you
want something to happen when the user types into this text
field, you might
write an event handler (a custom function) and associate it
with the keyDown
event.
I'm giving you a high-level gloss, obviously ... but when I
finally
grasped the organization of the Help docs ... it made all the
difference.
If you're creating objects with code, you'll do what's
called
"instantiating and object," or "creating an instance" of that
object. Could
be like this:
var myTextField:TextField = new TextField();
At this point, the variable myTextField is an instance of
the TextField
class. You use that variable as a "nickname" or "handle" to
the object you
just created. If you want to add text to your new text field,
you reference
it by its instance name and set the TextField.text property
of that
instance:
myTextField.text = "Now I actually say something.";
If you want to positiion it somewhere in reference to the
timeline or
object in which it resides (might be the main timeline, for
example) ...
myTextField.x = 50;
myTextField.y = 100;
And to make it show up on the Stage, you have to add it to
the display
list. This is a new concept in ActionScript 3.0, but it's
easy to do. You
just invoke the DisplayObjectContainer.addChild() method on
whatever
DisplayObjectContainer instance you want -- on whatever
object should be the
container of, in this case the text field.
As it turns out, the main timeline is an instance of the
MovieClip
class, and MovieClip inherits from DisplayObjectContainer, so
it features
that method. Assuming this code appears in a keyframe of the
main timeline,
you can get your reference with the word "this" (sans
quotes):
this.addChild(myTextField);
or you can just drop the "this," because Flash understands
that your point
of view (your "scope") is currently the timeline in which the
code appears:
addChild(myTextField);
Obviously, you can also create some objects (like text
fields) with the
drawing tools (e.g., the Text tool). In that case, you don't
need to
instantiate the object, because it's already there. But you
*do* need to
give it an instance name, which you do by selecting that
object on the Stage
and giving it a name in the Property inspector. You'll
typically do this
with movie clips, text fields, and components.
Other classes are more abstract than that. There's a Tween
class, for
example, that allows you to programmatically create tweens.
There's a
String class for creating strings.
... I could go on, and so could many of the other regulars
on this forum
(and I hope they do). But I hope that at least gives you a
start. I've got
a fairly popular blog on various Flash topics (mostly AS2,
just by
historical happenstance), but that might help you out a bit.
http://www.quip.net/blog/
If you're a book learner (I am), you'll find a number of
book books on
the topic. Just make sure to read your Amazon reviews (even
if you buy
elsewhere) and make sure you're getting a book that talks
about ActionScript
in this sort of object-oriented approach.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."

Similar Messages

  • Help for the clueless

    Hello
    I am giving up trying to get BT to help me with this.  I wont repeat the endless frustrations that I am sure you hear here all the time.
    I have no technical know-how, so here are the only tests I have managed to run, as I cant seem to get some of them to work.
    My problems started a couple of years ago when BT shut down our connection for a days work on planned 'upgrading'.  When it was switched back on my normally zoomy broadband connection had slowed to a crawl.  It crawled along and limped along for about a year, then got to an almost acceptable level  ( though only a shadow of its former self ), and now is up and down between unbearable and just enough to be a damned relief from the endless spinning wheel of doom, or things like the BBC iPlayer message of "insufficient bandwidth to stream this programme'.  YouTube clips often need half an hour to load, with the computer switched to silent, then played back from cache.  
    New Speed Test Beta
    Download Speed (Mbps):   7.03
    Upload Speed (Mbps):   0.65
    Ping Latency (ms):   40.13
    My broadband connection
    Your broadband line is connected.
    Broadband connection details:
    Downstream
    7,919 Kbps
    Upstream
    1,113 Kbps
    Connection time
    7 days, 11:01:52
    Data transmitted
    776.88 MB
    Data received
    13.59 GB
    Broadband user name
    [email protected]
    I think I have HomeHub 1
    I have tried the Quiet Line test and there was no noise
    Is anyone able to tell me anything at all from the data here?
    Many thanks - even if you don't reply, you are doing no less than BT for me! 

    Hi looking at the speedtest results and  your hub stats there is nothing obvious wrong are you connecting to the hub with a wired or wireless connection to your PC
    Here is a basic guide to getting help from the community members done by CL Keith Please read through the link posted http://forumhelp.dyndns.info/speed/first_steps.html
    once you have posted the information asked for then the community members can help you more
    Thank You
    This is a customer to customer self help forum the only BT presence here are the forum moderators
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • My iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!

    my iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!
    yours sincerly
    jackfromsurrey

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • Where is the help for the latest malware attack on macs from flash player?

    Where is the help for the latest malware attack from flash player?  I am running mac ox x v10.7 lion, and everything that I can find says to download Java and neither of them will work. 10.6 update says its for version 10.6. java for osx date 7 says it will damage hard drive !!!
    How do I know if I have this and what can I do to protect my computer? I JUST DOWNLOADED FLASH PLAYER A WEEK AGO.  I deleted it from my computer but how do I know if I have malware?????????

    There is a new user-friendly Flashback detection-removal tool from F-Secure available here:
    Flashback Removal Tool
    http://www.f-secure.com/weblog/archives/00002346.html
    Apple has promised one also, but it has not yet been released. See
    About Flashback malware
    http://support.apple.com/kb/HT5244

  • When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Please help. My ipod classic could not be recognised by itunes when I connect my ipod to PC. Previously it has been recognised before I updated. This was a while ago now and so I removed all apple files and re installed the latest itunes but am having the same problem.
    When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Some anti-virus programs (e.g., McAfee) have this rule that can be invoked under the "maximum protection" settings: PREVENT PROGRAMS REGISTERING AS A SERVICE. If that rule is set to BLOCK, then any attempt to install or upgrade iTunes will fail with an "iPod service failed to start" message.
    If you are getting this problem with iTunes, check to see if your anti-virus has this setting and unset it, at least for as long as the iTunes install requires. Exactly how to find the rule and turn it on and off will vary, depending upon your anti-malware software. However, if your anti-virus or anti-malware software produces a log of its activities, examining the log may help you find the problem.
    For example, here's the log entry for McAfee:
    9/23/2009 3:18:45 PM Blocked by Access Protection rule NT AUTHORITY\SYSTEM C:\WINDOWS\system32\services.exe \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\iPod Service Common Maximum Protection:Prevent programs registering as a service Action blocked : Create
    Note that the log says "Common Maximum Protection: Prevent programs registering as a service". The "Common Maximum Protection" is the location of the rule, "Prevent programs registering as a service" is the rule. I used that information to track down the location in the McAfee VirusScan Console where I could turn the rule off.
    After I made the change, iTunes installed without complaint.

  • F4 HELP  for the field

    HI all,
    in the report selection screen i have one field for which F4 HELP  doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
    please help how to get F4 HELP  for the field
    thanks in advance.

    The following are the options for F4 help
    Code:
    PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
    *Input help for Cost Center Group
    AT SELECTION-SCREEN ON VALUE-REQUEST   FOR p_ccgrp.
    TYPES: BEGIN OF ty_ccenter_group,
    setname TYPE setnamenew,
    descript TYPE settext,
    END OF ty_ccenter_group.
    DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
    CLEAR it_ccenter_group.
    SELECT a~setname
    b~descript
    INTO TABLE it_ccenter_group
    FROM setheader AS a INNER JOIN
    setheadert AS b ON
    asubclass EQ bsubclass AND
    asetname EQ bsetname
    WHERE a~setclass EQ '0101' AND
    b~langu EQ sy-langu.
    CALL FUNCTION 
    'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    ret field        =  'SETNAME'
    dynpprog     =  v_repid
    dynpnr         =    SY-DYNR
    dynprofield = 'P_CCGRP'
    value_org    = 'S'
    TABLES
    value_tab   = it_ccenter_group.
    F4IF_FIELD_VALUE_REQUEST:
    This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
    parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    Getting F4 help based on other  field  .
    Suppose  if there  are  2 fields on selection screen  user name and Purchasing Document  and  the case is getting values of  Purchasing Document Number  based on  user name
    Code:
    TYPES:   BEGIN OF ty_match_nast,
                    objky TYPE na_objkey,
                    END OF ty_match_nast.
    Data: it_match_nast   TYPE STANDARD TABLE OF ty_match_nast.
    Data: it_dypr_val   TYPE STANDARD TABLE OF dynpread.
    DATA: wa_dypr_val  TYPE dynpread.
    DATA: it_return TYPE STANDARD TABLE OF ddshretval.
    Case when only username value is entered.
           SELECT objky
            FROM   nast
            INTO  TABLE it_match_nast
             WHERE kappl  = c_ef
             AND   kschl = c_neu
             AND   usnam = wa_dypr_val-fieldvalue.
          ENDIF.
    *Read User name  on  selection screen field value
      CLEAR wa_dypr_val.
      REFRESH it_dypr_val.
      wa_dypr_val-fieldname = 'P_UNAME'.      "User name
      APPEND wa_dypr_val TO it_dypr_val.
    *FM to get the value
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname             = sy-repid
          dynumb             = sy-dynnr
          translate_to_upper = 'X'
        TABLES
          dynpfields         = it_dypr_val_h.
    *Pass the values to f4 table
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield     = u2018OBJKY'
            dynpprog    = sy-repid
            dynpnr      = sy-dynnr
            dynprofield = 'P_EBELN'
            value_org   = 'P'
         TABLES
            value_tab   = it_match_nast
            return_tab  = it_return.

  • How to display Help for the message in our program

    Hi Experts,
    Do any one know how to display the HELP for the Message in our ABAP program? Just like the user click the Long Text button in SE91.Do we have any function modules or Class method to do that? Thanks in advance.
    Joe

    Hi Joe,
    While creating a message class in se93, theres a button (documentation) on the application tool bar. Click on that and you will be lead to a text editor where you can fill in the necessary documentation for the message you have created.

  • Where can I download OSX Maverick. I'm looking for the link where there is the "download button" I can't find it!

    Where can I download OSX Maverick? I'm looking for the link where there is the "download button" I can't find it! Please Help!

    What is your current operating system? It needs to be at least Snow Leopard 10.6.8 in order to have the App Store available.
    Which Mac are your trying to upgrade? It needs to be:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • Please Help for the Query

    Please Help for the Query
    Hi frds please help me for the below query.What I want to do is to pull out the data from below table :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/18/2008 3IINFOTECH -4
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    as such :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    Here I want to find the Trend i.e either asc or desc order from the lowest indicator.
    In the above sample data -8, -4, -5, -3 out of which I want the asc order data -8, -5, -3 and exclude -4 data.Because the asc order -8, -5, -3 will not follow.
    So I want the data
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3

    SQL> CREATE TABLE BORRAME(FECHA DATE, INDICA VARCHAR2(100));
    Tabla creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/13/2008','MM/DD/YYYY'), '3IINFOTECH -8');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/18/2008','MM/DD/YYYY'), '3IINFOTECH -4');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/25/2008','MM/DD/YYYY'), '3IINFOTECH -5');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/27/2008','MM/DD/YYYY'), '3IINFOTECH -3');
    1 fila creada.
    SQL> COMMIT;
    Validación terminada.
    SQL>
    SQL> SELECT FECHA, INDICA
      2  FROM BORRAME
      3  WHERE SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) <> '4'
      4  ORDER BY SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) DESC;
    FECHA                                                                
    INDICA                                                               
    13/03/08                                                             
    3IINFOTECH -8                                                        
    25/03/08                                                             
    3IINFOTECH -5                                                        
    27/03/08                                                             
    3IINFOTECH -3                                                        
                    

  • The hardest forum ive entered, and no remedy for the problem. where are my films ive paid for?? sorry for lack of upper case, just very angry with YOU apple

    the hardest forum ive entered, and no remedy for the problem. where are my films ive paid for?? sorry for lack of upper case, just very angry with YOU apple

    We are all itunes users just like you.
    No idea where your films are as you provide no information at all about your situation.
    If you want, help, then please explain your issue.

  • F4 help for the batch field in VL02N transaction

    We have upgraded our system from 4.6 to ecc 6.0 .In 4.6 the f4 help for the batch had " Batch selection via plant/Material/Storage location/Batch " which is not there in ECC 6.0.
    Please tell us the procedure to add in the existing  search help H_MCHA in ECC 6.0
    Thanks
    Aruna

    Hi Aruna.
      Create ur own search help using se11 tcode for required fields.
      Thanks & Regards,
    Kiran.
    Plz give rewards if and only if it is helpfull.

  • F4 help for the field requisitioner in ME51n

    hi friends,
    i got a requirement to give F4 help for the filed  requisitioner in Me51N which will be in item level .
    can any one give me the exit, badi, enhancement-point for this.
    thanks and regards,
    venkat.

    not answered

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • Issue with F4 help for the variables for the 0CALWEEK and 0CALMONTH

    We have custom IOs which refers to 0CALWEEK and 0CALMONTH.In the report we have variables on the custom IOs.For these variables F4 help does not giving any values .I tested with  0CALWEEK also. For the 0CALWEEK also F4 help does not working..Please help me on this issue.The variable I haveused d to test with 0CALWEEK is 0S_CWEEK.
    Edited by: Sudhakar Are on Jul 6, 2010 4:17 PM

    Hi Pramod,
    I don't know how it is done in infoset. But if you have a context node and attribute for the field which is displayed in the view, create a custom dictionary search help for the field you want. Design the search help as per your requirements (what fields to be displayed etc..).
    In the context attribute of that field property, select 'Dictionary search help' in the Input help mode. Enter the name of your custom search help here.
    Thanks & Regards,
    Satheesh.

Maybe you are looking for