Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Robert Frost on March 02, 2005, 12:11:21 PM

Title: SSI login into Flash animation
Post by: Robert Frost on March 02, 2005, 12:11:21 PM
can it be done?

<?php if ($context['user']['is_guest']) ssi_login('http://www.semenka.com/start.php?seme=main');
                                                         else {
                                                         
ssi_logout('http://www.semenka.com/start.php?seme=main');
                                                         }
?>


this is what i use on my site and it works pretty well. I would like to put it somehow in a flash animation, cause the site menu is animated as well.

can it be done?
Title: Re: SSI login into Flash animation
Post by: bloc on March 03, 2005, 05:15:58 AM
Not really checked it out..but I think you can supply values with <object> tags which of course can be drawn from SSI.php. The flash would have to handle this info on its own.

So in your case, checking the 'is_guest' and then set a value with the flash movie - like xxx.swf?login=true (escaping to php here to let php insert the true/false value) - then the flash movie use that value to either show menu or do something for members/non-members. The ssi_login will have to be performed outside flash anyway, I am afraid.
Title: Re: SSI login into Flash animation
Post by: Robert Frost on March 03, 2005, 09:32:59 AM
hey Bloc :)

thanks for the reply, was quite helpful. The only problem is that me and my site designer don't know flash that much :D
Title: Re: SSI login into Flash animation
Post by: bloc on March 03, 2005, 10:25:08 AM
Uhm, not me either, but I have done a few small movies with some actionscript in it. Much info is also available on the net. And of course a handbook in Flash is helpful.. ;)

What exactly does the flash movie do? and how should it perform when getting the information about whether a user is guest or not?
Title: Re: SSI login into Flash animation
Post by: Tanks on March 03, 2005, 03:10:47 PM
I just got a book from Friends of ED. It's Called "The foundation of FlashMX 2004"

Very easy to learn, its like being back in school again  ;) i can only recommend it.
Title: Re: SSI login into Flash animation
Post by: OvermindDL1 on March 04, 2005, 12:48:20 AM
Slightly OT: Are there any free flash dev tools out, as I am a bit too... moneyless to get anything that costs anything...