ActionScript 3.0 :: Detecting First Visit In Multiple Swf Website?
Feb 5, 2009
i am making a website that has several main swf files that navigate to each other via links (nobody's loading anybody). all of them have external preloaders. i have a nice intro, about a minute long at the start of the homepage.
what i need to do is make the intro play only on the first entry to the site, and not when you reach it from the site's other pages. it's about either detecting first entry, or making the other pages pass a variable to the homepage. but i dont have the slightest idea how to do it...
because they have no physical connection, communication between them, i think it should be something like opening and changing a text file each time you enter a page, that the other pages would read. and this works for one user, but how to make it work for 60+ users at once?
and if you need some ip logging program written in some other language (i dont know any other) that creates unique values for each user, how to tell flash to read a specific file it creates? somehow based on the ip of the system the swf is played at?
View 2 Replies
Similar Posts:
Aug 4, 2010
I have been asked to create a wheel for navigation similar to on the Visit Provence website. However, I don't know where to start and my Googling effort have been unsuccessful - I guess that I am searching using the wrong terms.It the the way that the wheel moves and interacts with the other segments around it that interests me.
View 2 Replies
Apr 20, 2011
I'm creating a website with Flash embedded into it. I understand that iPads do not support flash. I also have a non-flash version ready only to be used for iPad users. How do I detect the end user's device and redirect them to the version directly ?
View 1 Replies
Jan 31, 2010
I want to do a collision detection for a bunch instances of a single movie clip.So I got this movieclip called "map1".Inside "map1" there are a bunch of rectangles called "house1".I also have a character whose name is mainChar1.So I know how to do the collision detection for each house individually, but i need a way to do it with some kind of a LOOP because there are like 50 houses.So instead of going through the code and doing house1, house2, house3..how do i do a loop for it? Here is the code for my collision detection:[code]
View 11 Replies
Jan 16, 2010
how to detect clicks on various movieclips I am generating. Basically I am allowing the user to attach an arbitrary number of instances of the same movie clip. I would like each instance to A) be clickable and B) pass its reference to the click-handling routine.
For example I have something like this:
function addMissile() {
this.attachMovie("missile", "missile"+mtop, this.getNextHighestDepth(), {_x:startx, _y:starty});
[Code]....
I want to add a callback on-click for each of these movie clip instances.
View 3 Replies
Jan 23, 2010
I have an application that at runtime creates a class called map. The constructor for this loads a XML file that specifies a number of images to load and loads them as children. What I want to do is to somehow sense when all images specified in the XML file are loaded and dispatch an event.
What I do is to create a load event for each image to load, that places the image as a child in the map object. This map is then put as a child on the stage.
I need to add a event listener to map that listens when it is fully loaded and triggers a event.
map.addEventListener(...) gives me a compile error of course.
View 3 Replies
Nov 1, 2010
I have it like this so far:
ActionScript Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, KeyReleased);
public function KeyPressed(event:KeyboardEvent):void
[Code]....
and so far it works good, except when I press shift. If I'm holding the left or right arrow key and then I press shift, the object stops moving and doesn't do anything. However, if I release the arrow key and THEN press and hold shift, it works perfectly. How can I make it so that I can press shift while I'm holding the arrow key and still have it work?
View 2 Replies
Nov 4, 2011
I'm loading a number of MP3 files into my Flash (the number changes dynamically). I would like to be able to say, in total, how much longer all the files will take to load.
I can do this for each individual sound.Mp3.addEventListener(ProgressEvent.PROGRESS, test_function);
But each sound is loaded by an instance of my sound loader class, how can I pass the ProgressEvent up to the parent object, and then have it calculate the total time to load?
View 1 Replies
Aug 6, 2009
I was wondering if there is an easy way of navigating through a website without the use of multiple pages and eliminate the use of a navigation bar. My idea, which I'm sure has been done before because people are always coming up with new inventive ways to browse the internet, is to be able to allow the user to free roam the entire website on one page. I wouldn't be asking if I found it so I figured I could put my mind at ease and ask someone.url...In this map, it allows the user to free roam this map and find different cities. My idea is to have the user to browse a map of a website to different parts of what would normally be links to other pages. The whole web map would be one page and the user could just move their cursor up or down or left to right to each section of the website. Once they get to a section, they can click on certain parts. There is one website that is similar to my idea, but I want to eliminate the use of a navigation bar.I am new to flash but I love web design. I want to come up with a new way to navigate.
View 5 Replies
Apr 7, 2011
I am developing a portfolio page. There will be 4 main SWF files. One which is the home page (with a few keyframes for some navigation to an about page and contact page) and 3 pages each a different skill page. Each skill page displays 3 examples of work that I coded using keyframe navigation. I want to be able to click on one of the skill pages from " home" and have it load the new SWF created from the "webdesign" fla... I can't find any answer anywhere for 3.0 actionscript. I have this code so far, but it just writes the new SWF over the old one.
[Code]...
View 1 Replies
Jul 14, 2009
I have a strange problem that I was hoping someone might resolve. I'm a new visitor to the Flash world from other development platforms, so the language seems pretty straightforward, but I have now spent a week and a half on this one bug.
Basically, I'm trying to play an F4V using an FLVPlayback component. However, it seems that the video only plays if the f4v is already in the client cache. If the cache is empty, or disabled, then the FLVPlayback component throws an Error 1000, which seems to suggest it's having trouble connecting/pulling the video off the server. But since it does work on the second visit, then I suspect that it does indeed perform the download -- it just THINKS it can't. [code]...
View 2 Replies
Aug 31, 2010
How can I have a Flash video not autoplay after the first visit?
View 2 Replies
Aug 20, 2009
how i would go about only preloading / making mc's animate in ONLY on first visit to the site
i have a banner where i want to animate the logo, but only on first visit, as it will get annoying if it does it every time they navigate to another page
im aware its probably something to do with cookies, but have no idea how i would go about doing this
View 5 Replies
Oct 10, 2007
I have a flash movie completed but now I want to only have the flash play in it's entirety one time during the visit of the site. How and where do I insert any code to make it only play once per visit?
View 4 Replies
Jul 11, 2009
My problem is this: I built a Flash website, but it is painfully slow to load up (3-5 minutes) when I visit the site (via Firefox, etc). Once it does load up, everything is fine with navigation, etc. I'm having a hard time figuring out why its taking so long to load up on the web because, basically, I don't know how to trouble shoot.Details: the site is just a portfolio site with pictures and a few motion-things, no complicated animations. The swf file is about 9MB. I do have a flash preloader, but it doesn't show up until after the 3-5 minute "load-up" time. When I do the testing via Flash, its Ok and doesn't show the lag. But once I upload the website files and try to visit my website, the load time problem occurs.My thoughts: do I have to purge my Flash file/library of unused images before creating my swf file? Is there a problem with my html code in my index fil Just in case, here is the html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[code].....
View 7 Replies
Dec 11, 2011
I have a swf animation that plays a sound on the main home page. People are happy to hear the sound upon first entering the website but it starts to get annoying after that (people go to different pages on the site then come back to the home page).
Just wondering what would be a good way to do this? I can set it up so that he same swf file is used on every webpage.
I understand that I could do a cookie or something like it/ session variable, but is that over kill? Can I do something via actionscript / the swf by itself?
View 2 Replies
Jan 25, 2012
I have a flash logo on my website but I don't want it to play every page load.I'm a total newbie in actionscript but I've gone as far as I have with the logo by googling and asking questions. I hope someone can please tell me how to do this one last thing I need on my logo since I can't find it anywhere! :)I'm using AS2 but I guess I can use 3 as well.
View 1 Replies
Sep 27, 2011
I have a website that consists of 3 pages - About, Services, Contacts (every page is a separate html file). I have the same flash movie embed to every page (animated header intro). I want flash intro to play once and then stop. User can browser through these 3 pages, but flash shouldn't play anymore. Only if user closes the whole website (a browser, or a tab) the flash should refresh, and after user enters the website again it will play again once and stop.
View 1 Replies
Feb 6, 2011
I am not great at flash and am making a website that has a few different tabs for different pages.How do I make different urls for each page?I want to track each page seperately.
View 1 Replies
Nov 5, 2009
I tried searching this but could not find. I am complete newbie to flash intro and I bought a Flash Intro template.At the end of the flash movie, i was able to auto-redirect the page to my homepage by using getURL function but what I am looking for is that:At the end of the movie there should be two buttons:"Replay Intro" and "Visit Homepage" so that visitor can click on replay to see intro again or click on visit homepage which will take him to homepage.
View 3 Replies
Feb 13, 2012
Hopefully you guys can see something i am missing. I want to skip the intro of the flash movie after the first visit, so the user doesn't have to see the intro to get to the main site.
I have the code below on frame 1, an intro flv on frame 2 and the main site on frame 3. Code seems perfect and straight forward, why is it not working for me. I had a stop(); on frame 2 and 3 but I removed them to see if that would fix it, but no luck.
[Code]...
View 5 Replies
Oct 26, 2009
How do I indicate the visit history on a flex tree component? I want to highlight the clicked/visited nodes to a different color and will not change after that, so that all the visited nodes will be one color. I tried adding an attribute to the underlying XML by
[Code]....
This code does retain the new color, but it also changes the color of nodes which are not visited at all. What am I doing wrong here? Is there any better way to achieve this?
View 1 Replies
Feb 13, 2012
I want to skip the intro of the flash movie after the first visit, so the user doesn't have to see the intro to get to the main site.
I have the code below on frame 1, an intro flv on frame 2 and the main site on frame 3. Code seems perfect and straight forward, why is it not working for me. I had a stop(); on frame 2 and 3 but I removed them to see if that would fix it, but no luck.
Code:
_so = SharedObject.getLocal("skipIntro");
_introcheck = 0;
if (_so.data.introcheck != _introcheck) {
[Code]....
View 1 Replies
Feb 13, 2012
I want to skip the intro of the flash movie after the first visit, so the user doesn't have to see the intro to get to the main site.
I have the code below on frame 1, an intro flv on frame 2 and the main site on frame 3. Code seems perfect and straight forward, why is it not working for me. I had a stop(); on frame 2 and 3 but I removed them to see
Code: Select all_so = SharedObject.getLocal("skipIntro");
_introcheck = 0;
if (_so.data.introcheck != _introcheck) {
_so.data.introcheck = 0;
[Code].....
View 1 Replies
May 22, 2003
Could anyone get me to a tutorial that will show me how to detect if a visitor has Flash when they visit your site?
View 6 Replies
Dec 14, 2009
Whats the best way to make a 'live update' visit counter? For example: One person opens the site with the visit counter, and as soon as another one visits, the counter updates on the first users screen.
View 14 Replies
Jul 27, 2010
I don't have quite a good enough grasp on AS3 just yet, but I'm getting there.I have a movie that has an intro to it. It also has buttons that take them to subsequent pages.Once they go back, I'd like the intro portion of the movie to not play. In other words, I'd like it to start at a particular frame after the initial visit to it.I think this can be done with Local Shared Objects,
View 2 Replies
Mar 2, 2007
I'm creating a banner navigation with quick animation and I just want to PLAY the animation when user visit the page for a first time OR only in homepage (index page).Basically when visitor go to another pages, they won't see the "banner" animation over & over again. How to accomplish this ?
View 3 Replies
Oct 22, 2009
I have a library swf (asset.swf), it's document class binded to Asset.as, and in the Constructor function of Asset,[code]as known to all, we cannot visit the stage attribute before the display object added to the stage.so, when my loader.swf try to load asset.swf, it throws exception and the loading come to failure is there some one tell me how to load the asset.swf? I cannot modify the asset.swf.
View 0 Replies
Jun 5, 2004
I have created this site with a expanding / collapsin menu. When a user selects a menu e.g. "hammers" then the menu is loaded and show the submenues. When the users closes the menu by moving the mouse away from the area the menu collapses. If the user expands the menu again the menu should have remember the last visit menu and show the menu.
View 4 Replies