1
Holly1
Flash and Logo
  • 2005/6/8 13:23

  • Holly1

  • Not too shy to talk

  • Posts: 129

  • Since: 2005/5/4 1


Hi Xoop Members !!

Im trying to use Flash as my logo.. However, every time I click a link from the main menu the logo flash plays again.. I want it to play ONCE a member signs in and thats not.. Is there a way to get it to work like that? OR is it going to play all over again no matter what?


Thanks!
Holly

2
Duke_Henry
Re: Flash and Logo
  • 2005/6/8 14:06

  • Duke_Henry

  • Just popping in

  • Posts: 37

  • Since: 2004/7/30


Well, if the logo is coded on a page that reloads when a user logs in, or accesses a menu item, then the flash movie will play again.

Now, you *may* be able to use cookies/sessions with actionscript to only play the movie once, but in that scenario you would have to use cookies/session info based on whether the user is logged in or not.

Do I know how to do this in actionscript, unfortunately not. I started looking into it for a site I was working on but then the client decided to remove all flash - made the task a low priority.

Another option could be to use frames (yuck) or something that can mimic frames so that the actual flash movie is only loaded once, however the problem would be detecting whether or not the user is logged in.

Hopefully someone else can actually have some good advice for you.

:)

3
pod
Re: Flash and Logo
  • 2005/6/9 1:18

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


I did this on another site...

Make 2 Flash files: 1 with the loading animation and one without. In your theme.html, you can do something like this:

<{if $xoops_isuser == false}> 
                  <
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="733" height="112" align="top">
                    <
param name="movie" value="<{$xoops_url}>/flash/guestflash.swf">
                    <
param name="quality" value="high">
                    <
embed src="<{$xoops_url}>/flash/guestflash.swf" width="733" height="112" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">embed
                  object> <{else}> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="733" height="112" align="top">
                    <
param name="movie" value="<{$xoops_url}>/flash/userflash.swf">
                    <
param name="quality" value="high">
                    <
embed src="<{$xoops_url}>/flash/userflash.swf" width="733" height="112" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">embed
                  object> <{/if}>


That way Guests continue to view the loading animation as they browse the site, but Members get to view the flash w/o the loading animation.

Hope this helps :)

4
krystinevo
Re: Flash and Logo

Pod, you're my hero :)

I was wondering how to pull that off myself... thanks!

5
pod
Re: Flash and Logo
  • 2005/6/9 1:34

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


You're very welcome, glad I could help :)

6
Lance_
Re: Flash and Logo
  • 2005/6/9 2:04

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Nice way to get around that.

I still need a solution for first visit only, some sites don't have members.


7
Holly1
Re: Flash and Logo
  • 2005/6/9 11:40

  • Holly1

  • Not too shy to talk

  • Posts: 129

  • Since: 2005/5/4 1


THANK YOU!! :)

Login

Who's Online

477 user(s) are online (412 user(s) are browsing Support Forums)


Members: 0


Guests: 477


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits