New Image With Each Visit
Hello,
I'm looking to have the main image of the site i'm building change each time a user returns to the site. Not a slide show, but a static image that would change on a user's next return. Maybe 5 images in total.
Do I create a single .swf with 5 scenes & add the appropriate actionscript? Or do i need to make 5 individual .swfs and have the actionscript for the movieclip call those files?
Appreciate your help.
thedubc.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-12-2006, 11:52 PM
View Complete Forum Thread with Replies
Sponsored Links:
Window Open First Visit, Closed Next Visit
If I had a window in flash, say an external swf, is there a way to have this not visible the second time you visit the site?
I have some info you would only read once, if possible I would like it to be in a window, when second visit only the top bar is visible to open it if you want to. Not so it disapears altogether but the window is closed.
thanks for any suggestions
View Replies !
View Related
First Visit: 1.swf. Second Visit: 2.swf
Hello,
I have 3 external movies that I would like to play in this order.
first time someone visits the site they get 1.swf
second time they visit the ste they get 2.swf
third time they visit the site they get 3.swf
and everytime after that they get the same pattern 1, 2, 3.
I've searched but not found the answer to this. Does anyone know how to do that? I think it would involve a session or cookie or something...not sure.
any help is greatly appreciated!
Thanks,
Caberz
View Replies !
View Related
Detect First Visit?
Well I have a little problem again I wonder if it's possible to only let a little intro see when the visiter of my site visits the site for the first time that day?! Is that possible?
Grtz
Joost
View Replies !
View Related
New Site (plz Visit)
hey, me and my friend have just started a flash movie making site, and we need some ppl to look at it and criticize. We've only been doing Flash for a week, so we only have made a few movies, and basic games (mostly tests)
If you'd like to host movies, hit us up on the E-mail address on the site.
View Replies !
View Related
Play Once Per Visit
Hi,
I have a flash animation that plays on the index page.
My client wants it to only play when someone first gets to their site. (each visit)
So if they go on to the contact page and then back to the homepage, the flash movie will stay on frame one.
Hope that explains the question.
Thanks
View Replies !
View Related
Virtual Visit
Hello, does anyone know how to make a virtual visit in flash ??
i mean to have some controlers or from the keyboard and when you move right or left up or down... you can see the rest of the image.. i don't know if you understand
I think you can make it if you have an oversized image and a smaller square as mas in the center.. and as you click on the controller buttons or keyboard.. the mask moves and you can see the rest of the image.. hope understand what i mean ...
heres an example of what i want but in flash ..
http://www.thehidingroom.com
any tutorial or a fla..
thanks.
View Replies !
View Related
Virtual Visit
Hello, does anyone know how to make a virtual visit in flash ??
i mean to have some controlers or from the keyboard and when you move right or left up or down... you can see the rest of the image.. i don't know if you understand
I think you can make it if you have an oversized image and a smaller square as mas in the center.. and as you click on the controller buttons or keyboard.. the mask moves and you can see the rest of the image.. hope understand what i mean ...
heres an example of what i want but in flash ..
http://www.thehidingroom.com
any tutorial or a fla..
thanks.
View Replies !
View Related
Getting Flash To Play Only Once Per Visit?
I saw this question answered once long ago, but I lost it...
I have a site with a homepage Flash intro (actually, it's only a sound embedded in a small square swf file). How can I make it so that a visitor doesn't have to be subjected to the Flash sound every time they go back to the home page?
I haven't seen an example of this, so I don't even know if it's possible...
Thanks in advance!
View Replies !
View Related
SWF On Index Should Not Reload During Same Visit
Could somebody please point me in the right direction?
I have a Flash movie on the Index page of my website. When the user bounces around my site and then returns to the index page, I would prefer it if they didn't have to endure the entire movie again.
Is there a way to tell their browser to go to the end of the movie if the viewer has already seen the movie on this visit?
I don't necessarily want to get into cookies (mostly because I'm not that advanced a user). I would like the movie to start when they return to the site, but if they get back to the index page during their stay, it would be better if they didn't have to sit through the movie again.
Any help you can offer is, as usual, greatly appreciated!
Thanks!!!
View Replies !
View Related
Buttons Not Working On Re-visit
I have a file set up with buttons that will lead to a section of the screen zooming in (via movie clip). At the end of the movie clip, and have a different button that returns the user to the main timeline, and also unloads the movie clip. However, in testing, when I've done this and I've returned to the main timeline, the button no longer works, which essentially means that it's a one time use feature, which I don't want...Where am I going wrong?
Here's the code that I'm using
Button Code:
on (release) {
//Movieclip GotoAndPlay Behavior
this.HICNm.gotoAndPlay("2");
//End Behavior
}
Movie Clip Code:
on (release) {
gotoAndPlay(1);
//unload Movie Behavior
if(this == Number(this)){
unloadMovieNum(this);
} else {
this.unloadMovie();
}
//End Behavior
}
View Replies !
View Related
Reload File Each Visit
Hi,
I've got a txt that I access through a loadvars.
Once the swf has been viewed, changes to the file won't show up on the user's computer because a copy of the old one is in their cache.
How can I make Flash get a fresh copy of the file every visit?
Thanks
Neal
View Replies !
View Related
Play Once Per Browser Visit
Hi I have created a flash piece I have placed on my companies web site however want it to play only once per browser visit. This is the code I places on frame one to make this happen:
replay = SharedObject.getLocal("save");
if (replay.data.name == undefined){
gotoAndPlay(2);
replay.data.name = "played";
} else {
gotoAndStop(422);
}
But now my movie is doing all kinds of stange things and wont even play. What can I do to make this happen?? Please help!! Thank you for taking the time. )
Here is the site: http://www.aspenhome.net/
Just skip the splash page and it is the black boxed area on the home page.
Thanks again,
Shay
View Replies !
View Related
Load .swf From Server On Each Visit
Hello everyone,
I need to have my primary .swf file load fresh from the server on each visit, rather than loading from the user's cache. I've done quite a bit of searching, but unfortunately haven't been able to locate anything.
With the old object embed method I could use PHP to tag a random variable on to the end of the .swf reference, like this:
Code:
<param name="movie" value="index.swf?variable=randomNumber" />
But now that I'm using the method that uses AC_OETags.js I don't think using the random PHP variable will work. Any ideas?
Thanks!
View Replies !
View Related
Swf Header To Play Once Per Visit
Well, I have done some searching to try and find a way to do this, but I have not found much info on this and wanted to know if anyone on here may know of a solution to this. I have created a swf header and the client now wants it to play only once per visit to the site. Is this possible and if so, has anybody seen any tutorials or any simple scripts that can be added to make this happen?
View Replies !
View Related
Playing Audio On First Visit Only.
I am trying to use LSO's to have a piece of audio only play on the users first visit. Does anybody know the best way to achieve this? Is there a method I could use to set a variable (The LSO) either when the audio finishes playing/is stopped by the users, or when the Flash app is closed? Any help would be appreciated.
View Replies !
View Related
Play Intro Once Per Visit
Hi there,
I have searched around for a bit and can't find a solution...
I have a flash intro that is supposed to play once an the first visit in a SESSION. Once the visitor navigates away and then returns to the page that the flash is on, we want to go straight to the last frame. If the users ends the session and then comes back to the site, we want the flash intro to play again. Below is the code that I have their now, but I can't figure out how to clear the SharedObject at the end of the session.
Code:
var my_so:SharedObject = SharedObject.getLocal("animationPlayed");
if (my_so.data.played == undefined)
{
my_so.data.played = true;
my_so.flush();
}
else
{
gotoAndStop(230);
}
View Replies !
View Related
Telling Flash To Visit A Frame
Ive noticed that when i go into a MovieClip and do my animating in there, and set a button to say "Gotoandplay(36)" it goes to 36 in that movieclip, not in my actual movie, now i know this is called "Scenes" and i know this is simply done, ive seen this done before but i cant figure out how to do it again, it was somewhere along the lines of
.onPress; function =
"hey"
When i put in the frame label, the movie would instantly warp to my First scene, which is the scene i want, and go to the frame labelled "Hey" Help a n00b in n33d
View Replies !
View Related
CSS Not Working On Any Site I Visit In Explorer
Hi! This problem is really irritating me. I have the latest Internet Explorer. When I go to any web site with css then the css part does not work. For example if someone has used css to display the fonts on there site as italics. I will see it as regular font.
Is there an option that I might have disabled accidentaly in IE?
This is really driving me nuts.
View Replies !
View Related
Online Visit Counter In Flash
hi ppl
As u can c in the attached file, i made 2 scripts:
i saw in http://www.kirupa.com/developer/mx/hitcounter.htm
and then made it...
then i got the online_users_script from http://www.dittoscripts.com/
and make it, but i couldnt make it with flash...
can any1 help me to modify the .fla and the ditto_online_users script so i can see the online visitors in flash...
my actionscript knowledge is very very bad... so i pray
u to help me...
thanks alot in advance.
------------------------------------------------
i think u have only to manage to load the data from flash from the file online.txt... just that...
------------------------------------------------
View Replies !
View Related
Setting Cookies To Play Only Once Per Visit?
Hi, I've been searching this site looking for sample code that will allow me to set a cookie with javascript or asp to instruct Flash.
I have an index page with three small swf animations and the client only wants them to play the first time a visitor comes to the homepage. If they return back to the homepage, they want the animation to not play again. If the visitor returns tomorrow, we'd like the animation to play again.
Are cookies the best way to go and can somebody point me to a script that would work for this? Many thanks in advance...
View Replies !
View Related
[F8] Flash/Cookie To Not Restart During Visit?
Sorry, I know that's pretty a vague title but considering my knowledge the question is kind of vague too.. Well I'll get right to it.
What would be the best way to have an animated/sound playing header logo to not reload or at least not play sounds every time a user clicks on a link in my site?
I'm using php so the header gets reloaded whenever anyone clicks any other links on my website. I don't want to be spamming them with sound throughout their entire visit (Which will be quite short if I do).
I considered trying a frame for the header but of course everyone I talked to said "Ye Gods man! NOT FRAMES!!" well.. something along those lines anyway.
The only other suggestion I've received is to try using cookies to tell if the user has already seen/heard the header this visit and to have it either not play sounds or skip to the last frame if they've already seen it.
Having never dealt with cookies I'm curious if this is a simple task to accomplish or if anyone has any other suggestions that would be better for my situation?
Thanks for the advice,
Rylynn
View Replies !
View Related
UIscrollbar Loads Only On Second Visit To Page
I have some text boxes (with text loading dynamically) and uiscrollbars. When I publish the movie and go in the pages with text boxes the scrollbar doesn't show up (it's just a white box), but if I go to another page and return to the page with the textbox the scrollbar appears! I can't figure out what gives. Please help
I'm using mx 2004. Any help is greatly appreciated.
View Replies !
View Related
How Can I Get Rid Of Little Numbers Appearing On My Site, When I Visit It On A Mac?
This is weird...
How can I get rid of little numbers appearing on my site when I visit it, using a mac??
If you have a Mac, please have a look at www.harveybbrown.com
1) if you visit it using safari: the number 4 appears every now and then during the navigation
2) if you visit it using firefox: the number 4 appears as well, but also the background image does not upload
3) if you visit it using opera it is perfect!
I built this site using a PC. Are these problems of incompatibility between PC and Mac? How can I solve the problem? Moreover, do you know if I would be able to open a flash file, created on a PC, using a Mac?
Thanks for your help, if you can help!
View Replies !
View Related
Make A Movie Only Play Once Per Visit
Hi guys,
I've been looking at ways to make it so a flash intro movie only plays once per visit to the site.
Is there a way to do this using actionscript/flash only or must i do it with a scripting language like php?
I'm a total n00b when it comes to actionscript so sorry if it's a dumb question.
TIA
Joe
View Replies !
View Related
How Do I Change Movie/scene Each Visit?
I am a novice, so please excuse this daft question. I wish to load a new scene or movie when a person restarts or reloads a movie. This change event should occur say 6 times then the movie goes back to the original movie.
Does this make sense and can any one help
Thanks Wilbur
View Replies !
View Related
Preloader Gets Stuck After 1st Visit To Site
undefinedundefinedundefined
I have a website.
the first page is a splash page that sends you to my homepage with my swf on it.
the first two frames of the file are as follows
frame 1
ActionScript Code:
if (_framesLoaded ==_totalframes) {
gotoAndStop(3);
}
frame 2
ActionScript Code:
gotoAndPlay(1);
AND I KNOW WHY ITS HAVING A PROBLEM.
after the first time someone vists the site,,it gets cached to hard drive, and is already loaded on pc. so when the try to visit the site the second or third or any time, it doesn't have to LOAD the frames, and therefore the preloader script never knows when to advance, since it never loads 3 frames.
how do i get around this??
plz help asap!@
leif
View Replies !
View Related
Individual Visit Counter: Plot Dev
Thx so much for the assistance on The Boondocks question I posted a few weeks back. I've got another question, which I'm thinking is not nearly as difficult to answer. On the Plot Dev site, there's a "Did You Know" box that appears once you've launched the site. In this box, it shows you how many time YOU have visited the site:
http://www.plotdev.com/flashindex.html
I've seen site counters, but nothing like this one that shows how many times a single entity has visited a site. I'm thinking this is done with some type of cookie.
Does anyone have an idea on how this was done? Any assistance would be greatly appreciated.
View Replies !
View Related
Showing Preloader Very Quick At Second Visit
Hi!
I have my project almost done.There are a couple of things I wanna fix like if I load my site for the first time the preloader works(both movie and sound) but the second time since it is already in cache the preloader appears very quick and the animation starts.
I wanted to show the preloader or the bar progressing even if I had been to the web site before.
How can I do that?
View Replies !
View Related
How To Prevent .swf From Playing On Return Visit?
I have an .swf that kicks off and plays when a user visits my site. Users can then click normal HTML links and go to different pages. When they click the HOME button, I don't want them to have to go through the whole .swf thingy again. Is there a way to stop this? (Cold Fusion or JavaScript, maybe?)
View Replies !
View Related
How Do I Set My Flash To Play Only On First Visit To Index.html? :
Is there a way that once a movie has played and unloaded that if you bounce to a non-flash page (i.e. HTML (.htm/.asp) page) that when you back to the page it won't play that movie again.
I know it would be easier remaining in flash the entire time.
The movie I've loaded is an intro that I don't want played everytime a user hits the index.php again. Only the first time.
Thanx.
View Replies !
View Related
Simply Count Visits And Date Of Visit
Hi there!
I am a beginner but I successfully have set up a Flash-PHP-MySQL login process which functions perfectly.
I want to know what I must add to my PHP Script in order to:
1 - Add 1 to an appropriate column in the row corresponding to the visitor each time the visitor loggins and...
2 - Insert the date of this visit which replaces, of course, the date of the preceeding visit.
I know of course how to insert new columns to my table and I also know how to pass variables from Flash (MX not MX2004) to PHP.
If needed, I can post here the PHP Script I use.
Many thanks in advance for your help!
Best regards
View Replies !
View Related
LONG VIDEO LOAD ON REPEAT VISIT
I have a site using labels for navigation. One label contains a basic flv component that immediately plays (progressive) when the nav button is clicked. The other buttons go to static frames, i.e. contact, resume, etc. The problem is if I go back to the page with the flv it takes forever to start. Why? This happens in both Firefox & IE, pc & mac. Do I need something in my button code to stop the stream when I leave that page? Perhaps something needs to be cleared? My existing button code is attached. FYI One page has a photogallery and the remove child code clears the stage. Help is appreciated . I'm using AS3. Thanks.
Attach Code
home_btn.addEventListener(MouseEvent.CLICK,onHomeClick);
function onHomeClick(event:MouseEvent):void {
this.gotoAndPlay("home");
SoundMixer.stopAll();
if (thumbsHolder !=null) {
//trace("hello from the first conditional");
sprite.removeChild(thumbsHolder);
thumbsHolder=null;
}
if (loaderHolder!= null) {
//trace("hello from the second conditional");
sprite.removeChild(loaderHolder);
loaderHolder=null;
}
}
audioVideo_btn.addEventListener(MouseEvent.CLICK,onAudioVideoClick);
function onAudioVideoClick(event:MouseEvent):void {
this.gotoAndStop("audioVideo");
SoundMixer.stopAll();
if (thumbsHolder !=null) {
//trace("hello from the first conditional");
sprite.removeChild(thumbsHolder);
thumbsHolder=null;
}
if (loaderHolder!= null) {
//trace("hello from the second conditional");
sprite.removeChild(loaderHolder);
loaderHolder=null;
}
resume_btn.addEventListener(MouseEvent.CLICK,onResumeClick);
function onResumeClick(event:MouseEvent):void {
this.gotoAndStop("resume");
SoundMixer.stopAll();
if (thumbsHolder !=null) {
//trace("hello from the first conditional");
sprite.removeChild(thumbsHolder);
thumbsHolder=null;
}
if (loaderHolder!= null) {
//trace("hello from the second conditional");
sprite.removeChild(loaderHolder);
loaderHolder=null;
}
}
View Replies !
View Related
Play Flash Intro Only Once Per _Domain_ Visit
Can any one point me to a tutorial that shows how to do what the title above says (OR how do delete sharedObject files on user's computers) using sharedObjects or javascript?
I want the user to be able to see the intro only once, but if he closes the browser or leaves the domain, then I want it to replay. But if he is browsing through pages within the domain, I want the intro not to play again until he leaves domain or closes browser.
I've succeeded in getting the sharedObject to be stored so it only plays once, but I don't know how to make it delete that object on leaving domain or closing out web browser so I can see it again when I revisit the domain.
I also see some stuff on the web about deleting SO's but it doesn't say what action invokes the deletion, where do I put the code in my Swf, etc...
View Replies !
View Related
Play Flash Intro Only Once Per _Domain_ Visit
Can any one point me to a tutorial that shows how to do what the title above says (OR how do delete sharedObject files on user's computers) using sharedObjects or javascript?
I want the user to be able to see the intro only once, but if he closes the browser or leaves the domain, then I want it to replay. But if he is browsing through pages within the domain, I want the intro not to play again until he leaves domain or closes browser.
I've succeeded in getting the sharedObject to be stored so it only plays once, but I don't know how to make it delete that object on leaving domain or closing out web browser so I can see it again when I revisit the domain.
I also see some stuff on the web about deleting SO's but it doesn't say what action invokes the deletion, where do I put the code in my Swf, etc...
View Replies !
View Related
Flash On The Top Page To Play Only The First Visit In A Session
I have a small Flash movie contained in my home page that I would like to be played only when the user lands the first time (all subsequent landings will display a static image) ...so if the user hits the back button they will see the image NOT the animation. or if the user hits the home button in the site, they will see the image NOT the animation. If the user leaves the site and comes back, I would like to show the animation again.
Do I need to use a cookie or something? Please help,
thanks,
Liz
View Replies !
View Related
|