Using Ruby in place of Actionscript

I love flash (design tools, stage / layout concepts, etc.),
but I hate actionscript. I've been a programmer for about 10 years
now, programming in everything from C to C#, java, php, perl, ruby,
and actionscript. Actionscript is by far my least favorite of the
group. It is a clumsy language (just have a look at the way
actionscript 2 handled method closures on callbacks) and I'd prefer
to use another scripting language in place of it for my flash
development. Ruby would be an excellent replacement, offering
everything actionscript has to offer (object oriented, event
handling, etc.) with a number of additional features that come
through ruby core and the ruby gems (excellent date and time
libraries, database libraries, file handling libraries, etc.).
Does anyone with an in-depth knowledge of actionscript and
flash know what it would take to achieve some sort of common
language API that would allow such a substitution? If the ruby on
rails guys came across a solution allowing them to leverage the
benefits of ruby (superior language to actionscript) with the
benefits of the flash platform (superior visual control to
html/ajax), flash would be unstoppable.

ryanmohr,
> The actionscript developers seem to enjoy leaving the
> core libs unfinished so others can produce utility
classes
> to finish the job they should have done on their own.
Again, fair enough. :) On the other hand, regarding the
missing String
manipulation utilities ...
> but why not just offer it built in? It would take what,
a
> full five minutes for them to write?
... hey, if all it takes is five minutes of someone's time,
why not craft
together a utils library and share it? You could make a
positive
difference. :) In that line of thinking, it's not even the
size that
matters. Moses Gunesh, for example, put together an elaborate
and popular
tweening engine, Fuse (
http://www.mosessupposes.com/Fuse/),
and shared the
wealth. Note: by proximity to a casual statement on a String
utils class,
I risk implying that Fuse is just a five-minute exercise in
simplicity,
which is not *at all* the case. I'm only pointing out that
good libraries
can make a helpful difference in people's workaday lives. If
the
functionality you want isn't available, roll your own! :)
> You are correct that there is no arguing taste, but if
you
> took the time to learn ruby well you would come back
> to actionscript very disappointed.
Even if I do "appear to be very knowledgable ... [on] the
inner-working
of Flash itself," I don't claim to know much on the
inner-working of Adobe.
I guess it depends on one's point of view -- and to my point
of view,
ActionScript keeps getting better and better.
I think there's more than just taste to consider. For the
type of
programming I like to do -- where the end result is (ideally,
to me) making
cartoon characters move in response to user input, Ruby might
leave me dry
(Flash is strongly suited to vector graphics, sound effects,
video footage,
etc.). My multimedia career started with Macromedia Director,
whose
programming language is Lingo, a very AppleScript-like
language. My guess
is that you wouldn't much care for it at all. From there, I
moved,
reluctantly at first, to Flash, where my programming skill
grew in-step with
the increasing maturity of ActionScript. There was a time,
essentially AS1,
when ActionScript was practically identical to JavaScript,
and I enjoyed
getting to know both. JavaScript led me to regular
expressions, which
fascinated me for fully two years before I got any good at
it. I'm pleased
as punch that AS3 supports regex natively. AS2 brought the
"class"
keyword -- and OOP in general -- to the forefront of my mind,
which led to
brief excursions into Java and C#. I've played a bit with
Python, PHP, and
a handful of other languages. To a certain extent,
programming is
programming: it's the syntax that changes, not the challenge
and fun of
problem solving within a given set of constraints (like the
language
itself). In that regard, it doesn't really matter to me what
language I'm
using, so much as a general answer to the question, "Does
this platform
allow me -- encourage me -- to participate in the kinds of
projects I like?"
Even if I found another language, such as Ruby, more
convenient, it might
not facilitate the sorts of projects I enjoy. To go out on a
limb and make
an extreme example, Ruby, for all its elegance, wouldn't help
me if I had a
passion for programming LCD wristwatches. Because I "grew up"
on
ActionScript, I also have something of a nostalgia for its
particular
quirks. I personally happen to find ActionScript more
palatable than
Lingo -- so I can see some of your points.
> The more I get to know actionscript 3 in detail the more
> I'm convinced those that adamantly support it just don't
> know any better.
I don't know if you consider me one of those who adamantly
supports AS3
or not, and it doesn't really matter. You yourself said that
ActionScript
isn't a bad language -- only that Ruby, in your estimation,
is that much
better. Well, good! I'm glad you've found a language that
pleases your
palate. :) If you were to change your mind and decide, after
all, that
ActionScript actually is a "bad language," it wouldn't be any
skin off my
nose. See, if I step away from ActionScript toward something
else, it means
I'm stepping away from a platform that has continued to
intrigue me for
eight years. If ActionScript were still where it was in the
Flash 4 days,
I'd probably be whistling a different tune. ;)
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • In CS4 Use of File Place Does Not Center Images

    I have been using CS3 for about 1 1/2 years, so of course had to give CS4 a try. I downloaded the trial. I immediately had an issue with File > Place.
    I often use File > Place to add additional items into a document. I believe the expected functionality of File>Place is that the file should then be centered in the document.
    Here is what I have done:
    + Create a 12"x12" document at 200ppi (I have also tried to create a document at 2400x2400 pixels)
    + Use File>Place to add a square 2400x2400 pixel image (JPG file) into the document
    + The added layer is now offset ever so slightly in the new document.
    + Further observation shows that the horizontal reference point is at 1202 (screen shot attached), thus creating an offset from center. I change it to 1200 and sure enough the paper is centered perfectly. I thought maybe changing it once would make it the same next time, but that is not the case.
    + When I used the File>Place command, I was zoomed out (25%), and the entire image was viewable on screen. If I zoom out further, say 8.33%, the offset is 1206.
    I am able to duplicate this on two different computers with the following configurations:
    Computer #1
    + Windows XP Professional Version 2002 SP2
    + AMD Athlon 64 X2 Dual Core Processor 6000+ (3.01GHz)
    + 4GB RAM
    + nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Computer #2
    + HP Pavilion dv9843cl Laptop
    + Windows Vista x64 SP1
    + Intel Core Duo processor T8100 (2.1 GHz)
    + 4GB RAM
    + nVidia GeForce 8600M GS with 512MB DDR dedicated graphics memory, ForceWare version 167.43
    + Video BIOS version: 60.83.4f.00.22
    Operating System: Windows XP Professional
    Browser: Firefox
    Video display card / driver version: nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Screen shot (not sure if this works in these forums):
    [IMG]http://cdn-1-service.phanfare.com/images/external/1466784_1419796_53071200_Full_3/0_0 _41325929f3d5a1780af10559af98d829_1[/IMG]
    Any ideas?????
    ~ Kathleen

    "Place" ..... It is not all the easy to understand how place works without studying its behavior.  Often it will work in a way your not expecting if you do not understand how it works. There is a setting in Photoshop preferences Resize Image during Place. Un Checking this setting does not mean the image will not be resize nor does checking  this setting mean that it will be resize. On top on top of that the seems to be something in Photoshop on My system that keeps changing the setting to the checked state.
    What the heck am I writing am I trying to make this worse.  No I'm not.  To prove that I first tell you it is very easy to center position a placed layer in an action after the Place step add a step select all the two layer>Align layers to selection>Horizontal Center then vertical center. The deselect...
    Place....
    There is a lot going on remember in Photoshop a Layer can be any size  Larger/smaler/same as the canvas and can have any aspect ratio. If the placed image has more pixels them a canvas side size and the preference is checked the placed image will be transformed to fit within the canvas size. If not checked the placed image will transformed to the same dpi resolution so no pixels will be changed.    The only time a place image is not transformed is when the the preference is not checked and the placed image file has the same dpi as the current Photoshop Document.  In this cast the image is placed in at 100% size be it smaller/larger/same as canvas size.

  • Build process by using -run-in-place option

    Hi,
    I want use runAssembler -run-in-plcae option for my developement purpose, I Dont want to do ant script for every time while hot-swap. So how to use this option, I have checked out my module under ATG 10.Root,
    And I tried this command " D:\ATG\10.0.1\home\bin>runAssembler -run-in-place test.ear -m B2CCommerce TestRun DafEar.Admin | ATGLogColorizer.exe"
    this create's in the ear with test.war as well, I want to know if we use -run-in-place, should test.war also creates or not.
    Please help me for the right command.
    Thanks,
    Prabhu.Chinaraj

    swhinck wrote:
     But if I export as SWF, some people will not be able to open it.
    Whatever format you send it, some people will not be able to open it because they may not have the software to view it.  SWF files can be viewed on any platform with Adobe Media Player.

  • Extending LOV that is used in multiple places

    Hi,
    I am planning to extend organization VO in iRecruitment (vacancy creation) to restrict the LOV based on organization type. This LOV is very common and is using in multiple places in he application.
    I am new to this and i need to know that by extending such kind of LOV, will the affect appear on the whole application where this LOV is using or only at particular place ???
    Regards
    Ayaz

    Anoop,
    Responsibility : Recruiter Home
    Function : Vacancy Creation / Vacancy Search
    Page : /oracle/apps/irc/vacancy/webui/VacSrchPG.VacancySearchQuery.IRC_ORGANIZATIONS_LOV
    VO Name : oracle.apps.irc.lov.server.OrganizationsLovVO
    Is it possible to extend the VO so that it will affect on vacancy search page ONLY as i want to restrict the search on the basis of login in user organization id only.
    But while creating this will work as it is.
    Regards
    Ayaz

  • Nwrfc 0.0.4 (Ruby wrapper for NWRFC SDK using Ruby-FFI) now available

    Please note that version 0.0.4 of nwrfc is now available. There have been numerous changes since the last announcement:
    Basic server functionality
    Comprehensive type support (except for new float types)
    Metadata retrieval functionality for data containers
    Activating/deactivating parameters for RFC calls
    Please see https://github.com/mydoghasworms/nwrfc for the complete change log. The latest gem has been pushed to rubygems.org so you can update/install with ease.

    Hi Ned,
    I've just tested your library. It took me a while to understand  how to do it, as I never used SWIG before.
    Anyway this is what I did:
    0. setup a NI USB-6008 with some AA battery connected to AI0 (see attached photo)
    1. installed Cygwin (I work on Win2000)
    2. setup .paths in the "vimrc" file.
    3. run "make -f Makefile.swig "
    4. run "ruby test.rb"
    It worked, but didn't show correct values. I changed settings inside the file, but still wrong numbers.
    I then tried to run other examples and I couldn't run them (I guess the fault is on my side in ruby).
    However I managed to run acquireNscans.rb , and it worked perfect.
    It took me quite long time today to do. I tried to compile it without installing cygwin, then I compiled it in cygwin, but SWIG seems to be out-of-date, etc.etc. but at the end of the day I've got some results.
    $ ruby acquireNscans.rb
    [1.38554652487558, 1.37531881852636, 1.37531881852636, ...
    read 10, total time: 0.907, rate: 11.0253583241455
    Aborted (core dumped)
    Is there any forum/topic where others discuss issues or work on the code similar to yours ?
    What I am interested in is a library that would allow me to use Ruby or Php to communicate with devices through GPIB, Ethernet , serial port, etc.
    Cheers,
    Jakub
    Message Edited by jcz on 02-15-2008 03:31 PM
    Attachments:
    DSC017791.png ‏360 KB

  • Connect mysql from with dreamweaver using ruby on rails

    hi,
    i just finish form my database using mysql front, but i begin
    to do the interface uisng dreamweaver i find difficulties to
    connect it with the database can someone tell how or tell about a
    tutorial that talks about this.
    notice: i am using ruby on rails
    thanks a lot

    hi,
    i just finish form my database using mysql front, but i begin
    to do the interface uisng dreamweaver i find difficulties to
    connect it with the database can someone tell how or tell about a
    tutorial that talks about this.
    notice: i am using ruby on rails
    thanks a lot

  • A tiny font is used in many places across Java Swing applications (help!)

    In many places in Java but mostly in text boxes I'm seeing a very small font that is quite hard to read.
    I am seeing this all over the place in Java programs and it is getting on my nerves.
    I'm not sure what is causing this.
    I also encountered this issue when running Java on Windows XP.
    I really need help on how to solve this,
    Or maybe it is actually a bug with Java itself and Windows?
    An image of the problem in SwingSet2:
    [SwingSet 2 Tiny Font Example|http://img687.imageshack.us/img687/1373/swingset2tinyfont.png]
    System spec:
    Windows 7 Professional 32-bit (Aero is on)
    Java 6 Update 20
    English system locale and language
    No special dpi settings (default)
    Screen Resolution: 1280x1024
    Avast Antivirus 5.0
    An intel graphics card
    Edited by: Temp111 on May 9, 2010 7:38 AM

    camickr wrote:
    That is not a problem. Somewhere in that code the programmer uses setFont(....) to make it a smaller font. The default font of a text component does not behave like that.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org/], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.No, it's defiantly a problem. Probably in the default fonts that Swing uses in some places.
    I detected one place where I can easily trigger this issue, a JTextArea And the Windows Look and Feel, So here is a SSCCE for you:
    [Picture Of Tiny Font SSCCE With Tiny Font issue|http://img88.imageshack.us/img88/7876/tinyfont.png]
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class TinyFont {
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
              } catch (InstantiationException e) {
                   e.printStackTrace();
              } catch (IllegalAccessException e) {
                   e.printStackTrace();
              } catch (UnsupportedLookAndFeelException e) {
                   e.printStackTrace();
              JFrame frame = new JFrame("Tiny Font");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JTextArea textArea = new JTextArea("Tiny Font Test");
              frame.add(textArea);
              frame.setSize(150, 100);
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
    }But I also encountered this issue in other places that use Swing.
    Try SwingSet2 Source Code Tab for example: [SwingSet2|http://java.sun.com/products/jfc/jws/SwingSet2.jnlp]

  • Can one cut and paste an audio clip within a movie to use in another place?

    can one copy and paste an audio clip within a movie to use in another place?  Any help would be appreciated.  Thanks

    If you are wanting to use the audio from clip A into clip B then try......
    First check that Advanced tools are enabled: iMovie>Preferences>General>Show Advanced Tools.
    Drag clip A from the Event UPON clip B in the Project. When you release the mouse you will get a pop up menue.
    Select Audio Only. Note the other options for another day!!!!
    You will get a green bar as Karsten mentions above ( move it , shorten it etc, etc.)
    Show Audio Waveform by selecting Blue Waveform Box ,bottom right of Project Window.
    You can adjust audio level from clip A and clip B to your requirements.You can set either to zero volume if you require.
    This may not be what you meant by "to use in another place "
    If you want just the audio to use outside of iMovie, try;
    With the required clip/clips only in the project> Share> Export Using Quicktime and in Export Select "Sound To AIFF. Save to desktop in the first instance so you can easily find it.

  • Using Ruby on Rails -- No database update

    Hi, All,
    I'm trying to follow the instructions in the article called:
    Using Ruby on Rails for Web Development on Mac OS X
    I've installed everything according to the instructions and everything seems to work fine. However, I'm having a problem with the "rake migrate" command.
    When I run it, it should add an accounts table, but it isn't adding the table. Here is the results of running the command:
    [Daves-Computer:~/expenses] davep% rake migrate
    (in /Users/davep/expenses)
    [Daves-Computer:~/expenses] davep%
    When, however, I run the command to revert to the previous version I get this:
    [Daves-Computer:~/expenses] davep% rake migrate VERSION=0
    (in /Users/davep/expenses)
    == Accounts: reverting -- drop_table(:accounts)
    rake aborted!
    Mysql::Error: Unknown table 'accounts': DROP TABLE accounts
    (See full trace by running task with --trace)
    [Daves-Computer:~/expenses] davep%
    So it looks to me like I'm accessing the database alright, but I'm not updating it with the new table.
    Any ideas? If i'm being obtuse, let me know and I'll try to get you more details.
    Thanks,
    Dave

    Hello Deepak,
    Thanks a lot for this great content.
    Feel feel to contact OTN editors if you want to publish new articles on Oracle Tech site.
    Tugdual Grall

  • KeyStore provider is deprecated, what to use in its place?

    Hi Folks,
    Here (http://edocs.bea.com/wls/docs70/secintro/model.html#1024111), I am
    told that the keystore provider is deprecated.
    Unfortunately, it doesn't tell me why it is deprecated, nor what I should
    use in its place.
    I still need it to store the private keys used in the SSL configuration, so
    why is it deprecated?
    Regards,
    Jon

    "Jon Mountjoy" <[email protected]> wrote in message
    news:[email protected]..
    Hi Folks,
    Here (http://edocs.bea.com/wls/docs70/secintro/model.html#1024111), I am
    told that the keystore provider is deprecated.
    Unfortunately, it doesn't tell me why it is deprecated, nor what I should
    use in its place.
    I still need it to store the private keys used in the SSL configuration,so
    why is it deprecated?
    In 8.1, we added keystores to the server mbean. Having a provider to
    configure
    the keystore information was limiting as it required all servers in the
    domain to
    have the same keystore filename (since keystore providers are configured
    on the realm and there is one realm in the domain).
    You can continue to use the keystore providers in 7.0. We just didn't want
    anyone writing their own providers.
    Regards,
    Jon

  • HT5622 i can not sign in into i cloud , apple account error 403 is displayed ..... but the same apple id is used in several places except icloud plz guide me

    i am APPLE user and i am facing problem i can not sign in into i cloud , apple account error 403 is displayed ..... but the same apple id is sucessfully used in several places except icloud plz guide me

    Actually, that means you've reached the limit of three new iCloud accounts on this device. The only way to fix is to create the new account on a computer or another iOS device, then setup the account on your existing device.

  • Textbox corrupted when dublicating page or using paste in place

    As is visible below some of the text boxes are corrupted, when dublicating page (or using paste in place)
    All settings on the text-boxes remain the same - however, the text is repositioned so that it is no longer inside the text box.

    Very sorry to hear you're encountering some very unusual (and bad) behavior working with Muse. What you're describing doesn't sound like anything I've heard reported before, but it sounds more like a bug than anything you're doing wrong. If it is a bug, it's probably specific to the one composition widget in your file. Could you send us the .muse file so we can take a closer look?
    Please send us the .muse file at [email protected] along with a link to this thread. If the file is larger than 20Mb you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (If you use a service, please include your return e-mail address in the body of the message, since not all services include it in the sharing invite they send.) Thanks.

  • Trying to use LE8 in place of ACID on a PC

    Figured where to copy the sample wav files. I get them to come up in the loop browser where they play. I can drag 1 loop into place in track 1 without issue. I'll have the tempo for the whole project at 75 bpm. I pull a fill loop out and place it in track 2 and set it where I want it. Then when I hit play the loops aren't in sync, like they're running at different tempo's. They are both base set to run at 70 bmp and I can run them without issue at 75-78 bpm in ACID on the PC.
    What am I missing?
    Desperately trying to be free from having to use my PC ever again. All of my drum loops are in .wav format but I don't see that making much of a difference. If I can figure out how to use these loops in LE8 (soon to be LE9) then I can forget the PC forever.

    Hi,
    the tempo sync function is only enabled for loops that have been recorded in logic itself. Maybe the Apple Loops Utility can help you. But if you really need to have the loops synced, simply re-record them at their original speed in logic (maybe over a bus or so), and you'll have regions that can adapt to a changed tempo.
    Fox

  • Is it possible using Applescript to place a PDF as a link at a crop bounds other than Art Box?

    I've spent countless hours trying to have an applescript place a PDF as an Illustrator Link at the PDF's Media Box using "make new placed item". The only result possible as far as I can tell is a link at the PDF's Art Box.
    I've seached around and have seen others with the same issue, but no answers as to whether it is actually possible. As with most Applescript stuff, I am either way overthinking it or it is not possible directly.
    Currently I have a workaround using an Applescript script controlling Acrobat to sidestep the problem by setting the Art and Crop box to Media box, then place as a link in Illustrator, but it is not a direct route into illustrator.
    I have also noticed that in the "Adobe Illustrator CS5 Scripting Reference" that the "PDF options object properties" do not honor the PDF crop bounds (except for the default value of Media Box). Is this an inherent problem with Applescript/Illustrator and PDF crop boxes? Could it be that the options for Open PDF and Place PDF are crossed?
    Thanks for any input on this, It has actually been a problem I could not get past for years.
    Nate

    The AppleScript Dictionary says the same as the OMV and Jongs helper… CropToBox for placing & pageToOpen for opening… For me a misleading doc mistake… And forgiven for the fact that it should dammed well be there in the first place…
    Properties
    Property
    Type
    Access
    Description
    pDFCropToBox
    PDFBoxType:
    PDFBoxType.PDFARTBOX
    PDFBoxType.PDFCROPBOX
    PDFBoxType.PDFTRIMBOX
    PDFBoxType.PDFBLEEDBOX
    PDFBoxType.PDFMEDIABOX
    PDFBoxType.PDFBOUNDINGBOX
    r/w
    What box should be used when placing a multipage document (default: PDF media box)
    pageToOpen
    int
    r/w
    What page should be used when opening a multipage document (default: 1)
    parent
    Object
    readonly
    The object's container.
    typename
    string
    readonly
    The class name of the object.
    Isn't it cool that those can just be C&P into here… Thanks Jong…

  • How to use varaible in place of logical operator in query

    Hi Experts,
    How can we use a variable in place of logical operator (OR, AND) ?
    For ex:
    select * from sflight where carrid = 'LH' AND connid = 100.
    data x type string.
    x = 'AND'.
    Now, I want to replace AND with the variable x.
    Query will be:
    select * from sflight where carrid = 'LH'  x connid = 100.
    I am doing this because user can select any logical operator while creating the search criteria at run time .
    I already tried this but i am getting following compilation error:
    Error: Incorrect expression used in place of logical expression.

    hi,
    Check out this sample code
    Display of flight connections after input of airline and flight number:
    PARAMETERS: carr_id TYPE spfli-carrid,
                conn_id TYPE spfli-connid.
    DATA:       where_clause TYPE  STRING,
                and(4),
                wa_spfli TYPE spfli.
    IF carr_id IS NOT INITIAL.
      CONCATENATE 'CARRID = ''' carr_id '''' INTO where_clause.
      and = ' AND'.
    ENDIF.
    IF conn_id IS NOT INITIAL.
      CONCATENATE where_clause and ' CONNID = ''' conn_id ''''
        INTO where_clause.
    ENDIF.
    SELECT * FROM spfli INTO wa_spfli WHERE (where_clause).
      WRITE: / wa_spfli-carrid, wa_spfli-connid, wa_spfli-cityfrom,
               wa_spfli-cityto, wa_spfli-deptime.
    ENDSELECT.
    Regards,
    Santosh

Maybe you are looking for

  • How do you get your contacts back once you have restored your phone?

    It was stated that I needed to update my phone, so I hooked into Itunes like it stated. I did and a message popped up stating that it was in recovery mode and I had to restore it first so I did. Now that it has updated and been restored, I don't have

  • Kuler and CS2

    I am running CS2 on a MacBook Pro and an iBook G4. How do I get Kuler to work in CS2 accross the entire suite. I like to possibilities

  • Facebook url won't see page in muse's Facebook like widget

    In muse I have the correct URL for the page I'm trying to link to the site i have tried it with the http:// https:// and without (just www.) and still no recognition of the fb page I have used another fb page and it picks up the followers and the wid

  • Is there a way to set all durations manually?

    I know that I can go into preferences but there is no manual for the overall movie. I like to set the time for each to go with the music but it seems I may want a certain photo to stay on for 5 sec and it will put it AT 2.7 or some other strange amou

  • Premiere Pro CS4 How to: Effects.

    Hey, I was just wondering if anyone could help me out with some effects I am trying to acomplish with Premiere Pro CS4. The first effect I would like to do is a fog effect (eg. attachment 1) Secondly, I would like to do is a sparkle effect/glittery t