Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » flash and php


flash and php

Reply
  #1 (permalink)  
Old 12-25-05, 12:34 AM
trance trance is offline
New Member
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
flash and php

I have a problem with a flash banner on top of my site that keeps reloading at every new page. I'm tryinog to make it so that it doesn't keep reloading entirely. So far I split the flash into two parts and I'm trying to use php sessions to solve the problem. However, it doesn't seem to be working. No errors are displayed nor anything in the log. If someone could have a look at it and let me know if they see anything wrong it would be really helpful. Thanks.

This is my code-

PHP Code:

<?php 

if ((isset($_SESSION['new_user'])) && ($_SESSION['visited'] === true)) {   
     
?> 
<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="510" height="205"> 
              <param name="movie" value="flash/cougar1_re.swf"> 
              <param name="quality" value="high"> 
              <embed src="flash/cougar1_re.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="510" height="205"></embed> 
          </object> 
          <?php 
} 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="510" height="205"> 
              <param name="movie" value="flash/cougar1_.swf"> 
              <param name="quality" value="high"> 
              <embed src="flash/cougar1_.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="510" height="205"></embed> 
          </object> 
          <?php 
     $_SESSION
['new_user'] = 'true';    

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-29-05, 04:02 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
what you want is only possible when you use frames. cause the banner will allways reload when you refrech the page, even when the user has allready visited your website. however the flash is not actually loaded from your server after the second time, since it is stored in the cache of the users computer

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
flash to php feffik PHP 6 03-26-05 01:15 PM
flash mx to PHP to flash mx olm75 PHP 1 12-09-04 04:44 AM
PHP Controlling Flash mike_hough PHP 0 07-13-04 02:42 AM
Php with flash or without tables ? EraseR PHP 0 06-26-04 08:36 AM
Fast growing RPG site seeks PHP or Flash programmars lanzer Job Offers & Assistance 7 03-06-04 06:00 PM


All times are GMT -5. The time now is 12:56 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.