Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 27th, 2012, 02:36 PM
osmildmay osmildmay is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 3 osmildmay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 23 sec
Reputation Power: 0
Flash CS6 - Play Flash animation once on main page only

Hi All,

Any help would be greatly appreciated!

I am setting up a webshop using opencart and I have replaced the logo with my Flash animation (created using CS5.5 trial & Act Script 3).

The problem I am getting is when ever the a link is clicked the page reloads along with the header & logo which plays again, with each of these clicks!

How can I make the logo just play once when someone visits the front page website.com/index.php ?

Please, any advice would be terrific.

Regards,

osmildmay

Reply With Quote
  #2  
Old April 29th, 2012, 01:37 PM
osmildmay osmildmay is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 3 osmildmay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 23 sec
Reputation Power: 0
... help NEEDED - BUMP

... if anyone can suggest it would be great ! ! !

Have tried everything I can and every snippet of code I have found via google ...

still no joy

Reply With Quote
  #3  
Old May 2nd, 2012, 06:43 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 6,663 Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 14767 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 3 Days 20 h 10 m
Reputation Power: 3163
Facebook MySpace
Hi, you can use a SharedObject to do what you are after. You can think of it as a Flash based cookie. So on when the page is loaded you check if the SharedObject is set, if it is then you skip to the end of the animation, if it is not set then you just play it from the start. This is a rough version:
Code:
var header_so:SharedObject = SharedObject.getLocal("site_header");
if(header_so.data.already_viewed)
   {
      // Skip to end of animation, you probably need to tailor this bit for your animation.
      this.gotoAndStop(20);
   }
else
   {
      // Not viewed it yet so set the SO and continue the animation.
      header_so.data.already_viewed = true;
   }
__________________
Quis custodiet ipsos custodes?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash CS6 - Play Flash animation once on main page only

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap