ActionScript 2.0 :: Detect If A Visitor Has Flash When Visit Site?
May 22, 2003Could 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 RepliesCould 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 RepliesI have an intro in flash to go to an html/css site. What I have right now is when the image is clicked on it jumps to a scene and plays the animation and that's it. What I don't know is the scripting afterward. I need to know what the script is to allow it automatically forward the visitor to the html site after the animation plays. The intro page is on its own page.Right now my code is on frame 1 and this is it:
Code:
stop();
import flash.events.MouseEvent;
[code]......
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
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].....
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?
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 RepliesI want to record to a XML document everytime a user loads a .swf. Simply just increase the number in the XML document by 1. The issue tho is i'm limited to the server side scripting thats available. No asp, no php, only JSP. Client side scripting(javascript,etc) would be perfectly acceptable as well.Is actionscript capable of writing to a xml file and producing the results i'm aiming for?
View 9 RepliesInstead of installing flash I would like my visitors to be redirected to a html version of my page if they have no flash detected.
View 2 RepliesI am new to CS5 and i'm wondering how to make a flash banner play only once for the visitor. My home page has a search engine and every time the search the result will display with the banner playing again. this is the same for navigating through pages. I want the banner to stay on the last frame. its not looping, its just replaying everytime i navigate.
View 1 RepliesHow can I have a Flash video not autoplay after the first visit?
View 2 RepliesI 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 RepliesI 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 RepliesI 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 RepliesIs it possible to make a visitor hits counter using just AS2 ?
Or what is the other way to do this ?
The site is totally in flash only.
I have a html link that display the city of the person viewing the site. How can I display that information into a swf dynamic text field, using that html link?
So far I got this script half working because it display the information in the output window. How can I get it to display it on a dynamic text field?
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success)
[Code]...
how to make visitor can't save/download the swf while they save page the web? i keep searching and is using swf object can prevent from downloading?
View 5 Repliesi have made a site in flash. stage size 955x600 i have exported it as fullscreen with no scale. the problem is that if i browse the site with a resolution of 800x600 (760x420 if i'm not wrong), the browser dont' add scrolls and its impossible to see the complete site. How can i fix this without resizing the site. i want the users to see with the proportions that i have now.. ijust want a scroll on the browser.
View 2 RepliesI'm currently working on a portfolio-website in Flash CS5. Everything is good so far,but my only problem is the image gallary. My idea is that when the visitor moves the mouse over one of the images, a hover effect will activate - which is does. The only problem now is that I can't get the images to show in a big format when you click on each of them, for a better view of the image.[URL]..
View 28 RepliesIs there any way to check visitor's screen colors (32/16) with AS or JavaScript?
View 5 RepliesHow do I make it so a visitor to a Flash site can change the background, maybe from entering color codes or selecting colored buttons? I mean the entire background of the screen, the one defined in the <body> tag.
View 2 RepliesI need to remove any ability for the visitor to rewind the video, I need a button that will only come up at the end of the video that will be a link to another page.Is this something I would build from scratch? Does anyone know of a way I can satisfy these requirements with an existing player?
View 3 RepliesI was wondering if its still necessary to build a html site aswell as a Flash Site? Or is there a definitive and failsafe way to incorporate html into my flash site? SEO is a very important factor for me. I read this article: url...by Geoff Sterns in 2006, resulting in the following[code]
View 4 RepliesI 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]...
A client of mine has had 2 sites (both Flash sites) attacked over the last 12 months, so he's been asking: should he go for a static HTML site or stick with a Flash site? Is there ways to make a Flash site more secure?
View 1 Repliesi 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?
I am trying to build an online teach tool that shows a presentation/slideshow. It needs to have the ability to track and make sure users are staying through the whole process. The client used this example to show me what they were looking for visually:[URL] Now, I let them know that with a flash video, there would really be no way to do any sort of tracking. What I envision is creating a multi page slideshow which has you click next for the next page. This "next" button would use some sort of javascript to enable the next button after a specified amount of time. A person would be logged in during this, so every-time the person moves on to next slide, I would track their process in the database. My question is, is there any better ways to do this tracking. Also, doing simple animations like cursor movements etc, can really only be accomplished well by using flash I assume? They mentioned using voice over etc.
View 1 RepliesHopefully 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]...
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?
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]....
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].....