News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SSI login into Flash animation

Started by Robert Frost, March 02, 2005, 12:11:21 PM

Previous topic - Next topic

Robert Frost

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?

bloc

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.

Robert Frost

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

bloc

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?

Tanks

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.

OvermindDL1

Slightly OT: Are there any free flash dev tools out, as I am a bit too... moneyless to get anything that costs anything...

Advertisement: