ActionScript 2.0 :: Preventing Swf From Reloading On Page Refresh?

Sep 19, 2011

Flash CS5, CS4
Actionscript 2

What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:

<CODE>
function checkSO() {
var SO = SharedObject.getLocal("siteSO");
if (SO.data.visitedAlready != undefined) {

[code]....

And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If

there is a cookie it starts from frame 234.

As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.

Someone else suggested:
<CODE>
import flash.external.*;
var currentURL:String = String(ExternalInterface.call("window.location.hre f.toString"));

[code]....

I just don't know what string (I think) to put in the /** ...flush.. **/ part

View 3 Replies


Similar Posts:


ActionScript 1/2 :: Preventing Swf From Reloading On Page Refresh?

Sep 19, 2011

What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:

[code]function checkSO() {var SO = SharedObject.getLocal("siteSO");if (SO.data.visitedAlready != undefined) {this.gotoAndPlay(234);}else {SO.data.visitedAlready = "yes";SO.flush(); }}checkSO();[/code]

And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If there is a cookie it starts from frame 234.

As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.
[code].....

View 11 Replies

Prevent Flash From Reloading On Page Refresh?

Aug 10, 2007

how I can prevent flash from reloading when my page is refreshed? When I user clicks the search button the whole page reloads with the data they were looking for but the flash animation at the top of the page also reloads and I would like to prevent this.

View 9 Replies

Flashvars To Stop Movie Reloading On Page Refresh

May 13, 2011

I have a flash banner on every page in my site. I want it to continue playing rather than reloading when users change pages. Ive read that this can be achieved using flashvars.

I have this on frame 1 of my fla file now:
var mySharedObject:SharedObject = SharedObject.getLocal("displayCookie");
if(mySharedObject.data.displayed == true){
gotoAndPlay(currentFrame);
trace("cookie found");
[Code] ....

But I don't know how to give the currentFrame the value it had at the time the page was refreshed. How do I put that in there?

View 2 Replies

Internet Explorer 7 - IE7, Page Refresh Not Reloading Flash Vars?

Nov 4, 2009

I have a site the runs in flash. IE7 will not reload the vars in flash, the vars set by flash in the swf. when the page is reloaded. The thing that bugs me out is refreshing the page actually refreshed the page. The flash started how it was supposed to except the variables in flash didn't reset.This only happens when the "Temporary Internet Files" settings in IE is set to "automatic". But works how it should when "Everytime I visit The Page" is checked.

View 3 Replies

ActionScript 2.0 :: Browser Refresh (page Reloading) When We Click On Button In Swf File

Nov 28, 2006

I need browser refresh (page reloading), when we click on button in swf file. i dont know flash scripting. i want just html page reload when i click button in swf file. i want code for page refresh.

View 1 Replies

ActionScript 2.0 :: Preventing Cache / Forcing Refresh In Video Streaming?

Sep 21, 2009

I made a web which contains some video streaming from a flv file. The thing is that all the flv file is kept in the browser's cache, and that's a problem, because every time the video file is updated, the browser (Firefox, Opera...) keeps on loading it from the cache.

Is there any piece of AS (1.0) which prevents it from loading from the cache? Or (even better): is there any way to keep it from being kept in any browser's cache folder?

I used a slightly modified version of this code (skipCache.as), but it won't work:

[Code].....

View 1 Replies

Prevent SWF From Reloading When Changing HTML Page?

Mar 24, 2009

I've seen a site a while back that as you went through it it would change the url without reloading the page/swf. I want to know how do you build a Flash banner and buttons and as they the movie plays or they click on buttons have it change the url and the html text but leave the swf playing? Can this be achieved without too much hassle or will it require advanced coding?

View 2 Replies

Flash :: Integrate Component On Joomla Without Reloading It On Each Page?

Feb 16, 2011

Is-there a joomla compenent that permits to integrate a flash SWF on a joomla website : without realoding it for each page (by using an IFRAME or anything else

View 1 Replies

ActionScript 2.0 :: Send Variables From Flash To Php Without Reloading The Page?

Jul 20, 2004

I know there were many messages posted regarding sending variables from flash to php. I wrote a small code where in I used send() method of LoadVar object, it sends the message but it reloads the php page which I do not want it to do. I tried using sendAndLoad() and here it does not send any variable at all. Below is my sample code.

PHP code: (recieve.php)
<?php
$s = "12";
$r = $_POST['name'];

[Code].....

View 1 Replies

ActionScript 3.0 :: Navigatin To Double URL (popup And Reloading The Page)

May 12, 2010

I have a banner on my site that opens popup into another window, but I need to close sound on the site that is open at another browser. Easiest way to solve my problem (descripted below) is to navigate from one button to two pages, other is popup and other should reload the page again.

[Code]...

I have one page that is build up with separate flash shows. Including one that has sound on it. Easiest way to outclude the sound is to reload page without including the php/flash file where the sound is. (yeah, I know this sounds really confusing, but this is how the page is build).

So now I need a button that opens new popup and on the same time reloads the site where the banner is.

View 5 Replies

ActionScript 2.0 :: Send Variables From Flash To Php Without Reloading Page

Jul 20, 2004

I know there were many messages posted regarding sending variables from flash to php. But I am facing a problem. I wrote a small code where in I used send() method of LoadVar object, it sends the message but it reloads the php page which I do not want it to do. I tried using sendAndLoad() and here it does not send any variable at all.[code]

View 1 Replies

ActionScript 3.0 :: Back To A Page Or Refresh A Page?

Aug 8, 2009

Is there a way for Flash to remember which frame it's on and what it's doing when you come back to a page or refresh a page?

View 9 Replies

Flash :: Play Audio Seamlessly Like Nike While Reloading Each Page?

Sep 1, 2009

How do you play the audio seamlessly in flash, while reloading each page? Example is the nike blog, [URL] Will be glad if anyone could point me to a tutorial or there is a existing workaround script for this.

View 3 Replies

AS2 :: Refresh The Page From Within Flash?

Feb 2, 2009

I need a "Back" button on my flash movie to cause a page refresh. I did a search on google and found the following.

Code:
on(release){
getURL("javascript:window.refresh()");

[code].....

View 1 Replies

IDE :: .swf Reload On Page Refresh?

Jun 24, 2009

I'm pretty new to flash and was hoping someone could offer some guidance with shared objects.hen the user refreshes the page by either refreshing or moving to another page the movie replays which is not the desired action.

View 2 Replies

Php :: Flash Upload Keeps Going After Page Refresh?

May 16, 2010

I have a file upload tool that I created in flash (as2). The file uploads images and then writes the image details to a database. However, I seem to have a problem then when I refresh the page, the upload script keeps working.And this seems to cause some issues with writing to the database when image don't actually appear to be on the server. I have fixed the issue by doing some checking to see if the file actually exists before writing to the server, but I would like to know why this happens.

View 1 Replies

ActionScript 3.0 :: Sound Bug On Page Refresh?

Aug 14, 2009

Ok, so I've seen this on a lot of Flash pages, and I'm getting this bug as well.

Basically, I'm loading some music, and when I refresh or leave the page, the flash debugger will hit me with:

Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at classes::Music()
at classes::MainHolder()

How can I fix this so it doesn't happen when someone leaves/refreshes the page?

View 4 Replies

ActionScript 2.0 :: Random Mc On Refresh Of Page?

Feb 12, 2010

I am trying to have a random movie clip appear when the page is refreshed that houses the parent swf.

View 3 Replies

ActionScript 2.0 :: [F8] Have To Hit Refresh To Load Page?

Jul 31, 2007

why a site wouldn't load on first pull up? I have to press refresh to get it to pull up the content. All the content is dynamic pulling from a SOAP server.. Any clue why it wouldn't load? I don't think its a prob. with the content or the server. I used to have a random background script in there. But now we aren't using a random back ground.

View 4 Replies

IDE :: Don't Replay Movie On Refresh Of Page

Jun 8, 2009

I have a flash movie that I want to play once. If someone refreshes the page or goes to another page with same movie, I want it not to replay the animation. Is there any way to do that in Flash 8 and without frames or iframes.

View 1 Replies

IDE :: Wont Reloaded Swf Again On Page Refresh?

Jun 25, 2009

I have a swf file in which a simple animation is playing in which it starts from frame 1 and stop on frame 35i have two html page in which embedded same swf on both html pages i have a link in one html page when i click this link second html page opensin which same swf embedded which is loaded again in this page ....I only want that when i go to second html page swf should not reloaded

View 2 Replies

ActionScript 2.0 :: Don't Replay Movie On Refresh Of Page

Jun 8, 2009

I have a flash movie that I want to play once. If someone refreshes the page or goes to another page with same movie, I want it not to replay the animation. Is there any way to do that in Flash 8 and without frames or iframes.

View 6 Replies

ActionScript 3.0 :: Manually Refresh The Page To See The New Squares

May 17, 2011

So far my code takes hex codes out of tweets containing a certain hashtag, and draws a square of that hex code colour. If someone were to tweet a new set of hexcodes while you were looking at the site, you would have to manually refresh the page to see the new squares.

[Code]....

View 6 Replies

ActionScript 3.0 :: Refresh A Frame Or Entire Page?

Sep 3, 2009

How do i refresh a frame or entire page by using actionscript 3 ?

View 1 Replies

ActionScript 3.0 :: Continuous Playback Of Swf On Page Refresh?

Oct 6, 2009

I have a swf embedded in a Joomla site that displays artwork.  Everything works great, the only problem is when the user browses page to page the swf refreshes everytime whihc means the user is viewing the same artwork over and over.  How can I get this swf to play continuously while the user is browsing instead of refreshing with every click.  From the research I have found it seems the answer lies in using a sharedObject.  I have found tons of info using sharedObjects but usually in a drag drop type situation, but nothing for storing timeline position. 

View 1 Replies

ActionScript 3.0 :: Donot Play On Page Refresh?

Jul 7, 2010

Once my animation has played how can I stop it from playing on page reload or refresh?

View 3 Replies

Javascript :: ExternalInterface Not Working In IE After Page Refresh?

May 26, 2011

I have a bizarre situation in IE where JS can't call up into flash using ExternalInterface after I hit "refresh". I know the movie is getting loaded and the code that does the ExternalInterface.addCallback() appears to be completing without any error Here's a rundown of the steps to reproduce:

Open IE and load up the movie for the first time, the ExternalInterface callback methods are available to JavaScript. If I hit refresh, the callback methods aren't available and I get the error Object doesn't support this property or method.If I clear my cache and refresh the page, they are available again.If I then hit refresh again without clearing my cache, they're unavailable.If I close the browser and reopen, they're available again.

I've run into this situation before and I'm pretty sure that the extra delay required to download and instantiate the swf is what's allowing ExternalInterface to get set up properly. The way I worked around this before was to add a random number to the end of the swf's url, so that it's never used from cache, but that's not a real solution.

[Code]...

View 2 Replies

Flash - Make CommandButton Not Refresh A Page?

Jan 24, 2012

I have to stream a webcam video, so I use ustream to do that, which generate a flash embed code for me, and I have a button to turn off/on the light, but when I press the button it refresh the whole page and so the flash component.

There's some way to not refresh the page and still send to command ?
Well for now it's this way:

<h:form id="form_supervisory">
<h:panelGrid>
<h:column>
<iframe width="480" height="296" src="http://www.ustream.tv/embed/9599890"

[Code]....

View 1 Replies

ActionScript 3.0 :: Permalinks - How To Set URL Parameter Without Page Refresh

Feb 3, 2009

I use SlideShowPro quite often. One nifty features it has is support for permalinking. By setting permalinks to true in the component, and adding some VB and javascript to the webpage, it can "set" the URL of the browser without actually visiting or refreshing the page. I'd like to do something similar for my own web app in AS3. I know how to inject a URL variable into Flash, but I don't know how to set a URL parameter without javascript refreshing the page.

Here's the code that the SSP user guide asks to add to the HTML:
Code:
<script language="VBScript">
<!--
Sub ssswf_FSCommand(ByVal command, ByVal args)
select case command
case "putHREF" location.href = args
[Code] .....

Using the above code, if I have this in my swf:
var testVar = 15;
ExternalInterface.call("flashPutHref", testVar);

The browser visits the complete URL of the webpage, where the filename is replaced with whatever testVar is. i.e. if the webpage I'm at is: [URL]. And testVar is 15, the ExternalInterface call forces the browser to visit this URL: [URL]. So I could very easily just change the javascript to add something like "test.html?id=15" to that call, but then the page whould just continue to refresh over and over again. Somehow, SlideShowPro has used this same exact code and have managed to change the URL without the page refreshing.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved