iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2004, 05:39 PM
ManJonStudios's Avatar
WebProWorld Member
 
Join Date: Dec 2003
Location: San Antonio, TX
Posts: 52
ManJonStudios RepRank 0
Default Can Anyone Help With Action Scritps

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!
Reply With Quote
  #2 (permalink)  
Old 12-24-2004, 04:32 AM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

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
Reply With Quote
  #3 (permalink)  
Old 12-24-2004, 12:32 PM
ManJonStudios's Avatar
WebProWorld Member
 
Join Date: Dec 2003
Location: San Antonio, TX
Posts: 52
ManJonStudios RepRank 0
Default

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!
Reply With Quote
  #4 (permalink)  
Old 12-24-2004, 01:50 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

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.
Reply With Quote
  #5 (permalink)  
Old 12-29-2004, 04:47 AM
ManJonStudios's Avatar
WebProWorld Member
 
Join Date: Dec 2003
Location: San Antonio, TX
Posts: 52
ManJonStudios RepRank 0
Default Thanks

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!
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:07 AM.



Search Engine Optimization by vBSEO 3.3.0