My Flash Resource - New Ideas and News for Applying Flash to Complex Gaming Apps

Latest News and Developments

July 1, 2008

Our Item Title is Flash Tutorial Digital Clock

by @ 5:07 pm. Filed under Flash Industry News, Uncategorized

Courtesy of WebWasp.co.uk Tutorials

Ever wanted to know how to make a digital clock. This tutorial shows you how easy it is to create a digital clock in Flash. Have a look at the time below:

Example:Download the Flash file Int 029a


A Digital Clock made in Flash MX 2004.

Note: This clock is taking the time off your local computer and displaying it on the web page through Flash. This is not perfect as I don”t know if the local users clock is correct. There are other ways of finding out the time and displaying the time but they are so much more complicated and not necessarily more accurate. So I have gone for a very simple method of creating a digital clock. It works and is very easy to create.

Cross Ref: If you want to make an Clock with a face see the: Analogue Clock Tutorial


An analogue clock.

Courtesy of WebWasp.co.uk Tutorials
Courtesy of WebWasp.co.uk Tutorials

Step One: Setting Up the Flash Document

  1. Open a new: Flash Movie
  2. Go to: Modify > Document (Ctrl J)
  3. Set the size to: 220 x 50 pixels
  4. If you wish select a:Background Colour
  5. Click: OK

Courtesy of WebWasp.co.uk Tutorials
Courtesy of WebWasp.co.uk Tutorials

Step Two: Creating the Clock Movie Clip - The Dynamic Text Box

  1. Go to: Insert > New Symbol
  2. Type the Name: Time MC
  3. Select behavior: Movie Clip
  4. Click: OK
  5. If the Tools panel is closed, open it: Window > Tools
  6. Select the Text tool:
  7. Drag out a: Text Box
  8. If the Property Inspector is closed, open it: Window > Properties (Ctrl F3)
  9. Set the Text Box”s width to about: 200 pixels
  10. Note: In the Property Inspector you can see the Text Box”s width and height. Select the Text Box with the Text Tool and drag the small square in the corner: Do not do it numerically or with the Transform tool as this will stretch the font size.


    To re-size a Text Box select it with the Text tool and drag the small square.


    The small square may be in either the top or bottom left corner:


    The small square may even be a circle!

  11. In the Property Inspector set the X Y values to: 0 , 0

  12. In the Property Inspector select: Dynamic Text

  13. In the Property Inspector set the Variable Name to: myTime


    Variable name is: myTime

  14. Set the Line type to: Single

  15. Set any Font styles such as: Size, Colour, Font etc.

    Mine are like this:


    Text Box Properties.

    The Text Box is now complete. If you wish to reduce the Download time do the Following steps:

  16. In the Property Inspector click the Character Button:
  17. Select the radio Button: Specify Ranges
  18. Select: Numerals [0..] (11 glyphs)
  19. In the Include these characters box type a colon:


    The Character Option Box complete.

  20. After you have typed the colon click: OK

Courtesy of WebWasp.co.uk Tutorials
Courtesy of WebWasp.co.uk Tutorials

Step Three: Creating the Clock Movie Clip - Actions

You should still be in the Time MC. If you are not open the Library and find the symbol and select Edit from the drop down menu.

  1. Re-name layer 1 to: Text Box
  2. On frame 2 right click (Mac: Ctrl click) and select: Insert Frame


    Timeline with two frames.

  3. Create a new layer by clicking on the Insert Layer button:
  4. Rename this new Layer: Actions


    New Actions Layer.

  5. In frame 1 of this new Layer place the following ActionScript:

    // Gets the date and time info from the local computers clock
    myDate =
    new Date();

    //Gets the hours and adds a zero if the number is a single digit like this: 01
    var hours = myDate.getHours()>9 ‘ myDate.getHours() : “0″+myDate.getHours();

    //Gets the minutes and adds a zero if the number is a single digit like this: 01
    var minutes = myDate.getMinutes()>9 ‘ myDate.getMinutes() : “0″+myDate.getMinutes();

    //Gets the seconds and adds a zero if the number is a single digit like this: 01
    var seconds = myDate.getSeconds()>9 ‘ myDate.getSeconds() : “0″+myDate.getSeconds();

    // Displays the time like this: 00 . 01 : 01
    myTime = (hours + ” . “ + minutes + ” : “ + seconds);

  6. In Frame 2 of the Actions Layers right click and select: Insert Blank Keyframe
  7. Place the following ActionScript in frame 2 of the Actions layer:

    gotoAndPlay(1);

  8. Note: Your Timeline should look like this:


    Timeline.

  9. The Movie Clip is now complete so return to the Main Stage by clicking the Scene 1 Tab:

    Note: If you cannot see the Scene 1 Tab open the Edit bar: Window > Toolbars > Edit bar

Courtesy of WebWasp.co.uk Tutorials
Courtesy of WebWasp.co.uk Tutorials

Step Four: The Main Stage

  1. If the Library is closed, open it: Window > Library(F11)
  2. Drag on to the Main Stage the Symbol: Time MC
  3. If the Align Panel is closed, Open it: Window > Design Panels > Align(Ctrl K)
  4. With the Movie Clip selected click on the
    • Align to Stage button:
    • Align Vertical Centre:
    • Align Horizontal Centre:

      Your Movie Clip should now be in the centre of the Main Stage:

  5. Save your work: File > Save(Ctrl S)
  6. It is time to Test your Movie: Control > Test Movie (Ctrl + Enter)

    Your clock should look like this:


    The clock works fine but has no border.

    Your clock is now finished. You may wish to add a border:


    Clock with a border.

    Note: The border is simply a rectangle with the centre deleted.

    To get the rounded corner look use the Rounded Corner option:

    This option button is visible once you select the Rectangle tool:

That”s all there is to it!

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

Courtesy of WebWasp.co.uk Tutorials

… Read More of this tutorial at WebWasp.co.uk Tutorials

June 18, 2008

Flash Programmers in high demand in Central America

by @ 2:53 pm. Filed under Flash Industry News

One of the most unique, up-and-coming, uses of Flash is within the foreign real estate sector. Real Estate marketers, keen on providing a visually stimulating and comprehensive sales experience for their customers, often call on flash designers to create intricate visual portfolios of real estate offerings. Unlike other verticals, in the condo, hotel, and rental world Flash website intros and intense imagery are acceptable, if not rule of thumb. Text doesn’t sell a nice vacation condo to a buyer. Instead, a clear, inviting, exciting layout
of the property, beach view, and condo floor plans united inside a short Flash .swf file will catch a prospective buyer’s attention, draw them in, and hopefully convert them into a sales lead.

Probably one of the most stunning and sought after vacation spots in the world right now is Costa Rica, a small Latin American nation located in beautiful Central America. Costa Rica has the best of both worlds: sweeping beach scapes of sand and palm trees from both the Caribbean and Pacific Ocean can be found within a short hour flight from the main international airport in capital city San Jose.

The pristine nature of many beach communities has spawned a new tourism based economy that has developers scrambling to build new a Costa Rica hotel on this devine beach property. The Costa Rica vacation rental market is competitive and becoming full of excellent opportunities for savvy buyers.

This is where Flash comes in. Most Costa Rica vacation condos can’t be sold over the phone. Instead, it takes graphics, eye appeal, and excitement to capture a buyer. The same goes with Costa Rica beach condos which need graphical imagery to convince customers of their beauty and value over the internet. A typical Costa Rica vacation rental can range from $500 per week to $1500. On the top end, Costa Rica vacation luxury rentals start at $1500 and run gambit to over $2500. The money spent, however, is well worth it. Costa Rica beach condos go fast and advance reservations are required. So, if you know anyone who is interested in this wonderful, exciting get-away, tell them now!

As a result, traditional Costa Rica vacation rental and Costa Rica vacation hotels have had to create a very strong IT and Web design department, in addition to the standard walk-in real estate office. This fact is soley due to the global nature of the web: customers can’t always visit first, so they chose to take a virtual tour instead. Thus, Costa Rica beach Condo developers count on a strong percentage of their sales being web-generated, in addition to standard brick and mortar operations.

What do these Flash designers use? In addition to stock photography, architectural layouts, and imagery, Flex and Action Script are employed to provide a 3 dimensional, “virtual tour” of these Costa Rica vacation rentals. The action script provides the programmer with the opportunity to fully animate condo tours, such that a prospective customer can feel as if he or she is actually inside the space they want to rent. In turn, because of the strong need of Flash, local web designers in Costa Rica have experienced high job growth and new employment opportunities. As always, foreign tourism teamed with local internet talent produces a dynamic, rich new economy that can literally change a country overnight. All this from Flash!

Next Page »

Flash Gaming Advancements

by

In recent years, the demand for flash online gaming apps has exploded. Flash enables many gaming sites the ability to offer a "live" online gaming experience, saving the user the trouble of downloading software, complicated sign-up processes, or wasted time. Though flash casino games are generally not quite as embellished as their downloadable counterparts, they are, for the most part, increasing in quality everyday as new programmers, graphic designers, and marketing companies embrace this technology. Some sites, such as www.payspark.com, are entirely built in Flash. This website is a European E-Wallet that enables its users to interface with virtual banking privileges, all built upon an amazing flash platform. As a result, it is easy to see how Flash technology and the strict privacy needs of banking can be used together to produce a workable product.

By far, the most widespread use of Flash in the online gaming sector is among online casino businesses. Customers impatient to wait for software downloads can jump right into playing at these online casinos, which take advantage of Flash's rich graphic interfaces to create a truly unique gaming experience. Still other online casinos prefer to use Flash in their affiliate and banner marketing campaigns. Top software provider MicroGaming, known the world over for quality and fairness, definitely leads the pack when it comes to the most realistic and reliable software. Flashship casino brand Lucky Nugget casino boasts some of the best graphics on the web. The insta-play Flash Casino is flawless and beautifully engineered. Additionally, European casino CasinoEuro built most of its homepage using Flash and Action Script 3 language integration, allowing users from multiple countries speaking different languages to play online. Flash graphics and transition effects are highly captivating, much more so than their animated .gif counterparts. The ability to track users clicking on such banners has also allowed most online casinos to use CRM models to enhance customer retention and to analyze user trends on both a broad and micro scale.

Increasingly, Flash is also finding a new home in the online sportsbook market. Many websites offering sports gambling alternatives take advantage of colorful flash banners as a way to attract sports bettors, and also as a way to show off to the customer. Sports Betting websites rely on mitigating risk, but also by landing a critical mass of customers through marketing campaigns. As a result, those interested in NFL betting - the most popular sport among bettors, can be relatively assured that they truly "get what they par for". Next to the NFL, basketball betting is the next most popular draw. Web designers at many online sports betting don't have much time to create original imagery. So, many stock photo companies are beginning to offer Flash images for savvy web designers looking to gain an edge. Many marketing companies relish in the fall NFL Betting season, and spend countless hours during the spring creating the right campaigns to boost ROI. Also, the demands of the football betting season require high end servers to populate the web with all the Flash images. Flash graphics definitely draw more bandwidth than .gif images, but as server technology improves and communication infrastructures advance, soon .gif images will be history.

In the end, because the online casinos vertical is so competitive, it comes down to getting to most bang for the buck. Using flash graphics with eye-catching slogans, images, and animation truly allows online casinos the ability to capture a user's interest immediately.

My Flash Resource - A continually growing collection of tutorials, thoughts and interests of a Flash Animator and/or Developer.

categories:

other:

New Feedburner Feed!


Feel free to syndicate.

Learning Material

Flash Resources:


Listed on BlogShares