How to set up redirect from flash (actionscript) website to separate html mobile site

Hello
We have created a separate mobile site and now need to set up a redirect from our main website.  
Our main website has been created in Flash (Actionscript).  We have therefore created a separate mobile site in html.  The html files are also stored in our ISP’s webspace, in a subfolder called MOB.
 
Is there a script we can put into the flash site, to redirect mobile users to www.ourwebsite/mob?  If so, whereabouts in the flash site should the redirection script be placed?  We use PCs.

I know that there’s plenty of information about this subject on the web, but it is way beyond our knowledge/expertise.  Any help would be appreciated.

Thank you.
Sarah
sarahb1973Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SjoerdvWCommented:
I wouldn’t recommend action script for detecting the browser type. Cause most mobile browsers doesn’t support flash, they would never be redirected.

Instead you should detect witch browser they’re using before redirecting to the flash site (for normal users), of the mobile users.

You could use some php code. Take a look at http://detectmobilebrowsers.mobi/ 
0
sarahb1973Author Commented:
Hello
Thank you for the information and the web link.  I've been able to create something using the function generator.  However, our knowledge of PHP code and how it is implemented is zero.  Do we save the script as a .php file and store it within our webspace?  Thank you.
0
SjoerdvWCommented:
You're web server had to support PHP. If it does then you're right.
A simple test would be:

<?
echo "Hello world!"
?>

Save this file as test.php to youre webserver and open it in you're browser (http://www.yourdomain.com/test.php)
an output of only Hello world meens PHP is running. an output including the <? and echo meens php isn't running.

YIf php is running you should create an index.php that redirect normal users to you're flash site, and mobile users to you're mobile site.
There also some (js) scripts available that detects or the browser supprts flash. If it doesn't you can redirect normal users without flash to an alternate html page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sheepfactoryCommented:
Why don't you give these guys a try: http://www.handsetdetection.com/

Mobile browser detection is a bit complex because device user agents keep changing often. Using a pro service as above will avoid you lots of headaches in the long run.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.