To Flash, or Not to Flash



Get Web Design Tips and Tricks on mps-web-design.com. To Flash, or Not to Flash topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

When considering whether or not to incorporate Flash into your website, you must also consider the target market you are trying to reach.

For instance, a website which serves as a depository for articles and information catering to lawyers would probably not be a good candidate for a Flash "makeover". However, if you are a rock band, you may want to consider it.

Those are two very opposite ends of the spectrum, but exemplify how you should consider your audience.

In our business, we always suggest "hybrid" Flash sites over full Flash sites when we are not dealing with an entertainment industry client. By using limited and specific Flash, it can take your website from "average" to fantastic.

Corporate, retail, industrial, informational and many other types of websites can actually benefit from a little bit of Flash if it is created professionally and used properly (especially in combination with "static" design).

Flash is quite a complex program, and with every version that is released, there is more to learn. When you do decide to incorporate Flash into your site, make sure your designer is skilled with the program. Using older versions of Flash, not optimizing graphics/audio/video and poorly written actionscript (the language of Flash) can be a detriment.

Current statistics show that over 90% of internet users have the ability to view Flash. It could benefit your online presence and give your site a higher-end look.

Like the web itself, Flash is a technology that is constantly evolving and there are designers that are pushing the envelop to create amazing, interactive user experiences with it.

And remember Flash isn't just for fading in and out photos or moving text around. Below are just a few of the other ways to use Flash on your website:

1. Flash "tour" - would your business benefit from an interactive "tour" of your facilities? Or a "tour" of how your product works?

2. Audio player - you can stream audio and offer user controls such as stop, fast forward, and track selection.

3. Games - Flash can be used to program interactive and educational games.

So consider your audience, and choose a designer/company with a high level of Flash experience and your website is sure to benefit.



Tutorials - Photoshop,Dreamweaver,Vb.Net. - Photoshop, Dreamweaver, Excel, Flash Mx, Vb.Net, Spyware + Windows Xp Video Tutorials from $14.95 to $49 - Affiliates earn 50%
FlashBanger.com. - Custom Flash Banners, Animations, Flash-Splash and Intro Web Designs.

Some simple suggestions

Well I don't consider myself an expert, I do have experience with working with larger datasets and there are a couple of things that I always do to keep queries performing well.

Optimize Queries with EXPLAIN

Explain is your friend, get to know it well. If you take the time to read thru the Explain documentation on the MySQL site, you will find some valuable information, some of which is hilighted below.

Optimizing joins

Single sweep what?

MySQL resolves all joins using a single-sweep multi-join method. This means that MySQL reads a row from the first table, and then finds a matching row in the second table, the third table, and so on. When all tables are processed, MySQL outputs the selected columns and backtracks through the table list until a table is found for which there are more matching rows. The next row is read from this table and the process continues with the next table.

Why is this important? Imagine a main table - tableA - with 80,000 rows of data. This table has a corresponding n:n table that maps entries in tableA with a locations table. A query could be written as:

SELECT tableA.*, locations.location from tableA 
Left Join tableA2locations on 
tableA2locations.tableA_id = tableA.id
Left Join locations on 
tableA2locations.location_id = locations.id
where locations.location = 'sometown'

Keeping the above quote in mind, MySQL will read a row from the first table and join the corresponding data from the joined tables for that row and then sweep thru the rest of the data, joining as it goes along.

This leads us into the following section.

Number of rows needed to execute a query

You can get a good indication of how good a join is by taking the product of the values in the rows column of the EXPLAIN output. This should tell you roughly how many rows MySQL must examine to execute the query.

From the above, you can determine that for a query on tables that have not been properly indexed, a join can quickly become unwieldy when dealing simply with three tables with records in the thousands (1000*1000*1000 = a slow query). See HackMySQL for a good example of this.

Reducing the number of rows needed to execute a query

So beyond indexing properly for joins, you can still end up with a query that runs in a way that causes a bottleneck.

Taking our example from above, imagine that we use a where clause that limits the tableA selection to half (tableA.foo = 'bar' below):

SELECT tableA.*, locations.location from tableA 
Left Join tableA2locations on 
tableA2locations.tableA_id = tableA.id
Left Join locations on 
tableA2locations.location_id = locations.id
where locations.location = 'sometown' and tableA.foo = 'bar'

This starts us out with 40,000 rows of tableA data to examine. If there are a further 2000 rows from tableA2locations, thats 800,000 rows of data. Not astronomical, but significant. If this was a 3 or 4 table join, things could get ugly. What to do? The answer may be obvious to some: select first with the most limiting table:

SELECT tableA.*, locations.location from locations 
Left Join tableA2locations on 
tableA2locations.location_id = locations.id
Left Join tableA on 
tableA2locations.tableA_id = tableA.id
where locations.location = 'sometown' and tableA.foo = 'bar'

This starts us out with 1 selection from the locations table, then 2000 from tableA2locations. If the join between tableA2locations and tableA is indexed correctly, we are then left with an index join based on ID, rather then having to initially select 40,000 rows from tableA as in the previous example.

When I first started programming, it made sense to me to select from the main table (tableA) and join the lookups. But once you add some data to the mix and start to play with Explain, you quickly realize that selecting from the limiting table can make your server's life a little easier.

For further reading on the topic, I always send people to HackMySQL when they ask, so for more tips and tricks, be sure to have a read thru the optimize section of that site.



Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Finding the Perfect Web Designer 101 By Teri Tucker
So, you've decided that your company needs a web site. Now what? Since we are ultimately talking about your "online business image", unless you yourself have web design experience, finding that perfect web designer to create your company site is a very important next step. If you've never had a web site created before, you will find that there is quite a lot to consider if you want your site to be successful, and you may have to do a bit of homework to find the right person for you.Regardless …

2. The First Step
What is the First Step?The first step in designing a website is most likely the mostcrucial step in determining the success of a website. Let'scompare a website to building a house. Everyone knows the firststep in building a house. You have to plan everything out andhave a strong foundation to build on.A website is no different from a house. In fact, a website isyour digital dream home, and only you can build it how you like.Most websites that fail on the World Wide Web because they lack asolid …

3. Tips for Business Websites By Mihaela Lica
Web Design, as design in general, is subject to changes and trend influences. Words like “fresh, modern, innovative” seem to conquer the world of design while artists strive to discover new directions. Websites are different: objectives, resources and users are the factors shaping the profitability of a site.The truth is that web design is not easy. There are several factors shaping the web layout and the architecture of a site, some see them as rules, others believe there are no rules at all.…

4. SEO in a BOX
Are profitable, top search ranks possible without the help of an experienced search engine optimization company? Can a software package or online miracle site touting testimonials and grandeur guarantees of success elevate your online presence enough to really increase sales? Unfortunately, unless the software or miracle website were able to research your market, find hidden niches within it, author intriguing, creative, relevant and keyword laden content, house it in a framework that meshes p…