Tag Archives: Flash

How to Load Animated Flash Header One Time During the Session

0
Filed under Tutorials, Web Design

After a client had made a request for a Flash header to not animate every time a new page is loaded, I needed to figure out how to do this. Not for this one request, but for any future requests. I have previously looked this up, but came up empty. It seemed there was one solution, but it really wasn’t the greatest, because when you return to the home page, the animation would play again.

I eventually came across a solution that had no comments from other people, so I didn’t really know if it would work. The person who provided the solution also provided a link to his/her website with it in action, so I was able to see that it worked.

This solution uses PHP sessions. It works by displaying the full Flash header only if never viewed during the current session. If it has already been viewed, it will display the second (non-animated) header until the session ends, which is on browser close. The next time the website is viewed in a new session, it will display the original animated header.

The first code you need to add is placed at the top, before any other code (DOCTYPE & HTML), in the header. This code checks to see if there are any views during the current session.

< ?php
session_start();
if (isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+1;

else
$_SESSION['views']=1;
?>

The next code is for displaying the Flash, just as you would normally, except it’s using PHP.

< ?php if ($_SESSION['views']>1) //if session views are more than one
echo "Flash embed code here";
else //if session view is one
echo "Flash embed code here";
?>

This code is just saying: If views are more than one, display the second (non-animated) header. If views are one, display the full animated header. It is really simple.

Make sure to remove the space that appears at the beginning of the PHP code: < ?php. Also, when adding the Flash embed code to be echoed, escape any quotes with a ‘\’ (without the single quotes).

Full credit for this solution goes to www.addisoncountyeagles.com. The actual solution is in the Coffee Cup forums.

Learning Flash and ActionScript

0
Filed under Shopping, Tutorials

For my job, I have to learn Flash and ActionScript. I’m slowly learning on my own. To do this, though, I had to watch videos and read books, which I’m not finished with yet. A couple of the books I have focus on animation/interactivity.

If you’re wanting to purchase Flash and ActionScript books, try to go with used books. If you look on Amazon, there are lots of used books being sold, some in really great condition. All of the used books I bought look almost brand new, excluding one which really was brand new at a used price!

Some of the books also come with a CD, so if you want the CD when purchasing new, be sure to read all of the sellers’ comments before buying.

There are some great resources available for learning Flash and ActionScript, online and offline. I thought I would share what books I purchased from Amazon and where to find videos and tutorials for learning.

Books

Look for more Flash and ActionScript books on Amazon.

Videos

Text Tutorials

Please leave a comment if you know of some other really good videos, books or tutorials.

Disclosure: This post includes Amazon affiliate links.

Morph Photos with Morpheus Photo-Morpher

0
Filed under Software

Morpheus

Morpheus Photo-Morpher is a program that lets you morph your photos. Take one photo and morph it into another. It can be of anything! An object, a person, an animal, etc. Transform yourself into a cat!

Use the wizard to easily add a starting photo and an ending photo. Keep in mind, you are not limited to only two photos, add an infinite amount of photos! When you’re done editing, you can save your morph as a Flash file or even an animated GIF. You do not need to know Flash or how to animate images. The software does this for you.

Morpheus Photo-Morpher could be used to create gifts for family and friends. Put your morphed photos on disc and give them out! It would be interesting to create morphed photos for digital picture frames. This would add a nice touch to the photos.
http://www.softtechreviews.com/wp-content/uploads/2007/11/morphed1.swf
I took a screenshot of Jen Gordon’s website and a screenshot of Gemma & Justin Barkhuff’s website because they are almost similar in the layout. Ignore the looping, I am still learning! Overall, Morpheus Photo-Morpher is really simple to use and I will probably use it again to morph both my sons’ baby pictures into current photos of them.

Check out Zoombli and see what you can do with Morpheus Photo-Morpher. Runs on Windows (Vista included) and even Mac OS X.
Sponsored by Zoombli