Ubber Newbie Looking for Basic Samples

Hello- I've spent the last 3 hours or so trying to create a very basic calculator in Flex (aka: add a couple input cells). Spent time looking through videos, reading documentation, etc. Much of it assumes programming background or web development experience of which I have little.
So, wanted to find some very basic application samples I could take apart and learn from. I found some, but they are pretty advanced and most depend on communication to/from the internet (tons of facebook and photo apps).
I'm just looking for a simple calculator/mortgage calculator application I can take apart and learn from.
Anyone know where I can find examples for super basic users?
Thanks!
- Mr. Bill

Here is an extremely basic example of one way it can be done. You of course would need more operators, conditional code to handle those operators, and several other functions and formulas - especially for mortgages - but hopefully this will get you started on the basic method.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="208" width="444">
   <mx:Script>
     <![CDATA[
     private function BasicCalc():void
     var CalculatedValue:Number=Number(TextInput1.text) + Number(TextInput2.text);
     ResultText.text=String(CalculatedValue);    
     ]]>
     </mx:Script>
    <mx:TextInput id="TextInput1" x="24" y="41" width="50" textAlign="right" text="1"/>
    <mx:TextInput id="TextInput2"  x="24" y="71" width="50" textAlign="right" text="2"/>
    <mx:Text id="ResultText" x="44" y="101" text="0" width="30" textAlign="right"/>
    <mx:Button id="CalcButton" x="82" y="41" label="Calc" width="57" height="52"  click="BasicCalc()"/>
</mx:Application>

Similar Messages

  • Newbie looks for tabview sample with datasources as 1:n relation

    hi all,
    i'm newbie to javaFax2 and just studying different samples for tabview..i proceeded so far i can load one mysql-datatable in tabview..
    but how to show a subtable at selection of one orw in maintable ?
    the goal is to show and edit data in a one-to-many relation,i.e. customers and orders, or in my speciqal case,
    products and their physical attributes
    i get trouble to refer mousevent : at many samples netbeans3.0 tells, there is no MouseEvent implementation !?
    what to import ?
    please tell about ...

    996707 wrote:
    hi all,
    i'm newbie to javaFax2 and just studying different samples for tabview..i proceeded so far i can load one mysql-datatable in tabview..I'm assuming you mean TableView
    but how to show a subtable at selection of one orw in maintable ?
    the goal is to show and edit data in a one-to-many relation,i.e. customers and orders, or in my speciqal case,
    products and their physical attributesThere are a couple of ways you can approach this. If you are coding to JavaFX 8, you could possibly use the new TreeTableView control. I haven't used that, and the documentation is not (yet) complete for it.
    The other approach is to define two tables, one for products, and one for physical attributes. Update the itemsProperty of the physical attributes table when the selectedItemProperty of the products table's selectionModel changes. A similar question was posted in {thread:id=2516138}
    >
    i get trouble to refer mousevent : at many samples netbeans3.0 tells, there is no MouseEvent implementation !?
    what to import ?javafx.scene.input.MouseEvent

  • Looking for basic driver for psc all in one 2175 for XP 32 bit. Thank you

    looking for basic driver for psc all in one 2175 for XP 32 bit. Thank you Dont need all the photo suite stuff,just basic scan and print.
    Thanks

    Hi @RUkiddingme 
    You can download the full feature software and driver, and only install the basic driver. In the installation you should see the option for custom software. Here is the link to download the software; rw2_021_w02_enu.exe
    Please let me know if this resolves the issue.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Looking for a sample of the Flash Export from Encore CS3

    I am close to upgrading to the CS3 Production Premium and one of the features that intrigues me is the Flash export from Encore CS3. I have searched the Adobe site without success for a sample of what an exported project looks like and functions on the web. Can anyone point me to a on-line sample of an exported project? Thanks in advance :)

    'Black Gaps' in Flash usually come from the Flash trying to locate & load the next Flash file. Without a Pre-Loader, you will probably always have this... especially if your quality is set too high. This equates to longer load/buffer times which means there is nothing to display until there is enough video loaded in the buffer to play.
    If your ultimate goal is to create Video for the Web... you'll need to learn proper techniques for producing video for the web. It is much different than producing video for TV or DVD. On the web you have to compress your video a lot more therefore you should not use a lot of Motion/Movement in your Characters, Camera, Media, Motion Backgrounds, etc. The less Motion/Movement you have means you can lower your quality settings but still get awesome looking video & good load times eliminating the Black Gaps and making an all around smoother internet presentation/experience.

  • Newb looking for advice...

    Sorry if this is a stupid question, but I've never worked with wireless before.
    Currently I'm on my Powermac G5, running ethernet into a linksys. Also have a dell laptop hooked up (with wires) through the linksys.
    I just picked up an older ibook G3 yesterday, and I'd like to be able to connect wirelessly with it.
    Could someone just give me a breif rundown of what exaclty I'd need (again, I'm a newb, so sorry).
    The G5 does not have airport, and right now, neither does the ibook. I'm not looking for speed, just would like to be able to connnect the ibook wirelessly.

    The G5 does not have airport, and right now, neither does the ibook. I'm not looking for speed, just would like to be able to connnect the ibook wirelessly.
    As a minimum, you'll need an original AirPort card for the iBook G3, and the April 2005 and earlier Power Mac G5s are compatible with the AirPort Extreme card. The later Power Mac G5s are not. Instead, these models require a special combo AirPort/Bluetooth card which must be installed by an Apple Authorized Service Provider (AASP).

  • Mac Newbie looking for short answers to multiple questions...

    My computer experience started with the Commodore 64 in the 1980's and progressed to building my own Core Duo PC with 4 GIG RAM running 64 bit Vista Ultimate and several flavors of Linux. My only Mac experiences happened when I visited my elderly parents, who insisted on only using Mac's, generally ancient Mac's that they bought on eBay.
    I was not interested at all in Macs and found the GUI very confusing to use. All that changed when my dad showed me the Mac Mini he bought. Instead of the hulking, slow, underpowered behemoths he usually used, this little machine was amazing. I had to have one, and yesterday bought a Mac Mini with superdrive and 512 MB of RAM, along with Bluetooth wireless keyboard and mouse. This was amazingly easy to set up, just starting with all of the PC stuff I have lying around.
    Now, I need some one-line opinions from people who use Mac's, nothing complicated, just opinions. I don't need help configuring this machine, I just want to know what I can do with it. I find most people enjoy giving opinions!
    --Is it worth it to upgrade the RAM to 2 GB? I wanted to do that at the store yesterday, but the salesman said that the procedure was too complicated in a Mac Mini to do myself, and I wanted to take the computer home right way.
    --I use Photoshop Elements 5. Is it worth it to get Photoshop Elements 4 for Mac, or does my machine come with imaging editing software that does the same thing, just as well?
    --I use Quicken 2007. I read a couple of reviews of Quicken for Mac from unhappy customers. Any comments?
    --Can I use my existing external USB 2 or Firewire drives with my Mac Mini, even though they are partitioned as FAT32 and have many backup files from PC's on them? Do Mac Mini's write to FAT32 like Linux does, or do I have to reformat the drives?
    --I use Acronis True Image to backup & image my hard drives so I can restore them if disaster occurs (as it seems to, rather often). How do you image a hard drive with a Mac, and is it worth doing?
    --Is it worth it to use antivirus software on a Mac?
    --Does anyone have any experience using open source software like Open Office or GIMP on a Mac?
    --Are there any decent flight simulators that work on a Mac?
    Please don't flame me or tell me to read the manual. I am looking for opinions, not instructions. I am also not interested in running Windows software on my Mac - I have had mixed results trying to do this under Linux, and I also have plenty of Windows machines to operate Windows software. Remember, the more people like me who are interested in switching over to Mac's, the better and cheaper the platform should become. Thanks in advance!

    Welcome to Apple Discussions!
    Glad you found your way to the Mac in the present incarnation of MacOS. Earlier flavors of it were perhaps somewhat less elegant, though I have always had a liking for the relative simplicity and the integration of features which tend to make some work more easily accomplished than on the PCs I have also used.
    --Is it worth it to upgrade the RAM to 2 GB? I wanted to do that at the store yesterday, but the salesman said that the procedure was too complicated in a Mac Mini to do myself, and I wanted to take the computer home right way.
    Yes, the memory upgrade is very worthwhile. A stock mac mini runs perfectly well, but when taking into account the RAM used by the on board video, and the possibility of using Rosetta if you're using any non-native software, 512Mb is really not enough for smooth operation. Indeed, you'll tend to get pauses which can become annoying, particularly if you want to run multiple applications.
    The salesman really should have pointed out that while the procedure to upgrade RAM isn't really all that difficult, the mini is not intended to be opened by the user at all because there are no user serviceable parts inside. However, RAM is readily available from third party suppliers and with a little on-line research, is a fairly simple job to undertake. Two things to watch for: 1) that the memory comes from a supplier who will swap it without question, because Macs are rather more fussy about RAM than PCs tend to be, and 2), when completing the memory upgrade, ensure you reconnect the tiny fan control cable - failing to do so will leave the fan running at full blast all the time. It's an easy omission, and even the experts forget it sometimes!
    --I use Photoshop Elements 5. Is it worth it to get Photoshop Elements 4 for Mac, or does my machine come with imaging editing software that does the same thing, just as well?
    Depends on what kind of editing and image adjustment you generally do. The mini comes with iLife, which includes iPhoto, which has all the usual array of adjustment tools for brightness, contrast, color balance etc, plus a useful one for tilting images to straighten them if taken at an angle, but it doesn't include the filters and effects of a true image editing application. Photoshop Elements on the other hand is feature rich and easy to use, though at a cost. Personally, I don't like iPhoto much and use Photoshop Elements, though there is also a truly excellent shareware application called GraphicConverter, which started life as a tool to convert images from one format to another (hence the name) but is now a very feature-rich image processor in it's own right. Worth a look and can be tried out for free. Have a look at http://www.lemkesoft.com/xd/public/content/index.cGlkPTE5Mw.html
    --I use Quicken 2007. I read a couple of reviews of Quicken for Mac from unhappy customers. Any comments?
    No experience of this personally, but I'd check those reviews and any others you can find to see what it is the writers liked or didn't like about using the software, and see if that helps you. There are always unhappy customers though, so reviews in magazines may be more objective.
    --Can I use my existing external USB 2 or Firewire drives with my Mac Mini, even though they are partitioned as FAT32 and have many backup files from PC's on them? Do Mac Mini's write to FAT32 like Linux does, or do I have to reformat the drives?
    You can use your FAT32 formatted drives with the Mac though you are limited to files of 4Gb maximum.
    --I use Acronis True Image to backup & image my hard drives so I can restore them if disaster occurs (as it seems to, rather often). How do you image a hard drive with a Mac, and is it worth doing?
    It IS worth doing, yes. I use SuperDuper! which is first rate and free for making complete duplicates of a drive, or $29 for the paid/registered version to allow incremental backups. Works like a charm. If you use a drive partitioned in the GUID scheme (as the mini's internal is) you can even then set that drive, and the cloned copy of your system to boot the mini.
    --Is it worth it to use antivirus software on a Mac?
    Personally I'd say yes. ClamXav is open source (thus free) and reliable, has a marginal hit on CPU load and helps ensure you don't inadvertently pass on infections (it can also spot types of malware such as phishing scames). As yet, however, there are no known viruses/worms/trojans that affect MacOS, so it isn't critical at this time. However at some point it is likely there will be - in my view it's better to be prepared than to be left to react at the time.
    --Does anyone have any experience using open source software like Open Office or GIMP on a Mac?
    Yes. Like all open source projects, there are some good and some bad, but by and large the open source community for MacOS based systems is active and effective. Both Open Office and Gimp work well for example.
    --Are there any decent flight simulators that work on a Mac?
    X-Plane springs to mind.
    There really are very few people you'll find in Apple Discussions who would flame you for asking such questions. Indeed, answering such things is one of the prime reasons we're here, and while there's always value in reading the manuals, it must also be said that in many ways getting useful information out of them means you have to know enough already to be able to work out what information you need from all the stuff available. Questions are easier to ask and pertinent information easier to give as a result!

  • Newbie looking for maven-based web projects

    I'm looking looking for maven-based web projects so I could learn how to orginize and configure code and configuration files respectively. Thx in advance.

    Tones of good material exists at the Maven2 site:
    http://maven.apache.org/
    Another very good place where to find information:
    http://www.sonatype.com/book/
    To search for free jars (very useful)
    http://www.mvnrepository.com/search.html
    It is kind of difficult to start, but it worth the effort.
    I cannot imagine to start a project without Maven + Continuum

  • Looking for basic info on queue prefetch

    I'm trying to get an idea how queue prefetch works, and what's it for.
    I'm working with Tibco queue and it looks like the default setting is 5 for prefetch.
    Also I'm interested in interaction between queue prefetch setting and an XA transaction.
    We had some problems related to that (lost messages).
    I'd like to hear from anyone who dealt with any of those issues.
    Thanks,
    Mark

    I'm going to answer my own question in case anyone is looking for similar info.
    This bit from ActiveMQ documentation talks about the prefetch setting:
    http://activemq.apache.org/what-is-the-prefetch-limit-for.html
    As for the problems with XA transactions and prefetch settings those turned out to be related to Mule ESB, which apparently is not very stable.
    Mark

  • Total newbie looking for some advice

    I am looking into FCP or Final Cut Express. Cost aside, I'm trying to figure out what would be the better option. I have a 20" iMac now and a canon HG21 camcorder. I want to be able to edit my footage in a way that's a whole lot better than iMovie can do. I hate iMovie 09. The question is whether FCP or FCE is the best option. I don't want to go with a lesser product and then think, "Oh man, that would have been so much better." but on the other hand, I'm not making Citizen Cane here so I don't want or need to over shoot the mark but getting a product that is too much when I won't ever use 70% of it. I know most would say FCE is the way to go but I don't want to be short sighted if FCP gives me benefits that warrant the larger program. Can a low end user (someone not making feature films or something) use FCP and get enough out of it to warrant the program? Think of it as a user who maybe only uses e-mail and iPhoto buying a $3,500 mac. That would be a waste. At what point would I be in one camp (FCE) or the other(FCP)?
    I also like the fact that FCP just got upgraded while FCE has not and no idea when that will happen. Does FCP work well with Snow Leopard? I haven't upgraded yet but if FCP works better with the new OS than FCE does that would be a big factor in deciding.
    Also, this export of this footage would be a standard DVD so if that matters between the two I wanted that bit of info out there. So basically in a nutshell, what product would you go with and why? I'm leaning towards the new FCP but I want to make sure I choose right considering my needs and hardware (can FCP run ok on a 20" iMac or do I need a pro system?) to be happy with the end product.
    Thanks for the help.

    You can ignore this. I found out my answers. Looks like FCE is the program for me. If someone has something to add (maybe I'm wrong?) by all means let me know but it looks like FCE is the right choice.

  • Looking for more samples of spry xml data in use

    I was curious if there's a resource out there that shows more
    samples of using the spry xml data widget. Almost like a template
    or sample gallery. Am I dreaming?

    Look
    Here

  • Looking for simple sample of iphone apps without using Interface Builder

    I successfully went through the 'iphone app tutorial' and used Interface Builder, but now want to try creating apps without it.
    The UI Catalog sample is too complex, but didn't see anything that just had a view and a button or label.
    Ideally I want code that doesn't require any IB usage, but I can't tell if that is possible yet...
    Anyone have a link to an easy sample?
    Or has anyone created a test app themselves and wouldn't mind posting?
    I took a stab at creating one and posted it on the "101" forum, but it would be hard for somebody to try and figure out what I was attempting
    Thx for any links/___sbsstatic___/migration-images/migration-img-not-avail.png
    ps
    I really need a good book, especially "cookbook" style

    hey dear
    I have one solution of your problem
    just go to in iphone developer search for FAQ
    In faq their is one section how to use prohramming in this you can see
    the how to ceate label,button etc.
    after that simply add the view or remove theview.

  • Complete newbie looking for direction

    C# developer for Windows - have been doing Outlook-based addins for a while. Looking to port something similar to Mac. Need plug-in (or something similar) integration into Ical, mail and the contact address database. Can this be done? Want to a) add UI (like buttons and forms) b) get events and c) create and populate items.
    Any directions/pointers would be very welcome....

    Tones of good material exists at the Maven2 site:
    http://maven.apache.org/
    Another very good place where to find information:
    http://www.sonatype.com/book/
    To search for free jars (very useful)
    http://www.mvnrepository.com/search.html
    It is kind of difficult to start, but it worth the effort.
    I cannot imagine to start a project without Maven + Continuum

  • Add Video to Site. Looking for basic tutorials

    Thanks to a lot of help from this forum I have cobbled together a reasonable web site. Now I am adding some video and am confused as to some best practices.
    I have had some reels of 8mm film converted to digital and are now individual *.mov files. Using Adobe Premiere Pro CS4 I have edited and posted some clips but the more I read the more I wonder if I am doing it right... or best.
    FPS.. my *.mov files are at 15 FPS. Premier Pro does not have a 15 fps setting that I can find. Some place I was advised that for displaying on the web 15 fps is more than adequate, more is overkill and makes for a much larger file.
    Premiere Pro will do the job.. but some books say Adobe Flash can be used as well.
    Exporting.. SWF; FLV; F4V; Quicktime; AVI..........
    So.. Can anyone advise on some tutorials that deal with the basics and best practice of adding video to a web site.
    Thank you for your time

    Video Streaming Basics -
    http://www.mediacollege.com/video/streaming/
    Embed Tag Attributes for QuickTime player -
    http://www.apple.com/quicktime/tutorials/embed2.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Newbie looking for advice on spry tabbed panels for record view/add/edit

    I have just got CS 5.5. Although old hand at IT this is fist use of DW. Have been through "The Missing Manual" and I am now trying somethings out.
    I have an SQL DB and some "management" tables. I thought that in the admin section I could use the Spry tabbed panel to create a List, Add, Edit and Delete panel.
    linking on a row in List will set the value of a variable (unique column) which is used by the Edit and Delete tabs. Add is just the wizard.
    I am only trying things out. Is this is a sensible approach or should I look to have a page for each of the 3 functions which are linked from the list of rows. As given in the example in the book?
    Regards

    Thank you for this. I see that spry is now dead but I have the bit between my teeth for working this out. Partly because it helps me understand the way things are put together. So although Spry is not important. Understanding the system that I will then adapt into other circumstances and other variants is. So please bear with me.
    So if anyone out there has some SPRY experience you may be able to tell me what knowledge I am missing here.
    So at the moment I have a tabbed panel within a tabbed panel.
    Header tabbed panel is called "TPMain"
    Sub TB is called "TPAges"
    TPAges has 4 tabs "List", "Add", "Edit" and "Delete"
    "List" being the default tab.
    Link style 1
    Playing with forms and links, I have worked out that I can create a repeat region in the list and add a column with 1 hidden value (the id) and a submit button to set the value of the id, but the code to end up showing the Edit panel is not functioning. This is the form code in the table of the List Tab
         <form action="testtab.php?tab=3&panel=3#TPAges" method="post" name="FrmEdit" id="FrmEdit">
                          <input type="hidden" name="EditID" value= <?php echo $row_rsAges['oid']; ?>/>
                            <input type="submit" name="btnEdit" id="btnEdit" value="Edit">
                          </form>
    In the edit tab I have the code
         <p><?php echo "*".$_POST['EditID']."*"; ?></p>
    The page reloads but on TPMain and on the first tab (people) and not the second tab (Ages)
    The value is correctly shown but with teh slash (/) character at the end?
    Link style 2
    I thought I would try and access it via an href. From googling I came up with this on one of the columns. I know it doesn't set the variable but I wanted to know if I could make it show the panel.
         <a href="javascript:; onclick=TPAges.ShowPanel(3)"><?php echo $row_rsAges['description']; ?></a
    No errors just does nothing.
    I'm off to hunt for jQuery tab as osgood suggests but would like to crack this out of sheer bloody mindedness.
    Regards

  • Looking for forms samples

    I am using Acrobat 9 Pro with LifeCycle Designer ES 8.2.
    I am trying to find some somples of the PDF forms with will:
    Submit form data to the Access Database
    Populate form with the data from Access Database
    I have done many searches and so far could not find any samples or instructions on how it can be done. I have seen samples of such forms durring Adobe roadshow presentations but I could never find the samples I could use to build my forms.
    Thanks for help.
    Regards,
    Tony

    Hi,
    Check Stefan Cameron's blog
    http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
    BR

Maybe you are looking for