|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I am looking to make a small swf file that will play an audio track when someone reaches my site. I only want it to play 1 time. I know there are browser scripts that will track browser activity and allow you to do this outside of Flash, but I need to learn how to do it using just flash. Any thoughts?
__________________
Capone De Leon Head of Design http://www.ManJonStudios.com Student of the net in constant search of "The WOW". A Zen like state in which creativity, talent, hard work and dedication create an amazing web site with a life all its own! |
|
|||
|
Still no answer? I wish I could help.
Are meaning like a session cookie so it only plays once per visit, so it doesn't reload every time they go back to the start/index page? You would still need to store the IP info outside of the SWF, I think. (Trying to spur some discussion) ;P |
|
||||
|
So how would that work. Like a java script that I refer to in the action script of the swf?
__________________
Capone De Leon Head of Design http://www.ManJonStudios.com Student of the net in constant search of "The WOW". A Zen like state in which creativity, talent, hard work and dedication create an amazing web site with a life all its own! |
|
|||
|
I guess you CAN do it using just flash!
You have to use something called 'SharedObject' that you create in the first frame of the movie like local_data = SharedObject.getLocal("played_data"); local_data.data.played_yes = "True"; local_data.flush () stored_played_yes = local_data.data.played_yes; which creates a record on the client machine and so your movie can be set to look for this 'cookie', and if it is present, not to play. I am just learning this as I read it, so I am not sure all the commands or how to use this data yet, like a preloader that looks for a value I guess, but to play when the value is null, and not to play when true. I don't really know how to use action script LOL, I was hoping someone else would help, but here is the information to use yhis local and remote data store and retrieval: Using local shared objects in Macromedia Flash MX Good luck! There may be tutes elsewhere on specific situations, I would imagine. Maybe kirupa and cbtCafe etc. |
|
||||
|
Thanks for your help, I checked out those sites and they were very helpful. Gotta love the help you get from Web Pro World! Thanks again.
__________________
Capone De Leon Head of Design http://www.ManJonStudios.com Student of the net in constant search of "The WOW". A Zen like state in which creativity, talent, hard work and dedication create an amazing web site with a life all its own! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |