How Not To Reload Swf When Going To A New Page?
I have a flash navigation system in my html pages. I was wondering if there is any way for the swf to keep its state when i go to different pages? I know I can do it with frames, but I don't want to use frames. Everytime i click on a link in one of my pages the swf plays from the begining and I lose all the variables I passed to the dynamic text box's.
Please Help, THanks
FlashKit > Flash Help > Flash MX
Posted on: 07-22-2003, 12:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Make SWF To Reload From The Start, Every Time User Reload/revist The Page.
Hi,
How can i make my flash SWF file to reload from the start every time when a user visit the site.
Like i dont want it to be saved in cache, i want to reload it from the start every time, because i have seen that once it is saved into cache, it just starts from the cache when we visit the site. So, i dont want it, i want it to reload again and again from the server whenever user visits.
I used the following meta tag:
<meta http-equiv="pragma" content="no-cache">
But it seems to be not working as the way it should. As when i re-load the page, the preload bar shows 100% loaded.
ANy idea???
Amir
Flv As A Banner : Avoiding Flv Reload On Page Reload
Hello.. I'm tring to create a looping sfw banner containig a looping playst of flv on my new website...
I think I understoode how to do that..
My biggest problem, is that I wish the flv avoid reloading every time that the page is changed..
I don't know if I ì ve been clear...
I'm sure that checking this page will help understanding the problem:
www.kurageart.eu
hope you can help!
thank you
Reload Home Page?
In my Flash application my homepage is 400k which might take a little while to load for dialup users. I have created a different swf for each page in my app. I would like the main page to not have to releoad if a user wants to return to it after having gone to another page. I am familiar with the loadmovienum command. Would I use this to keep my home page loaded so a user doesn't have to redownload it? And if so how do I manage other pages? Would I just load and unload them on level one while maintaining my homepage on level 0 and hiding and unhiding it? If there is another method I am all ears. Thanks so much for your help.
One more question. Will a preloader prevent any of my application from begining (sounds, embedded movies) until the entire movie is loaded?
John
Reload Home Page?
In my Flash application my homepage is 400k which might take a little while to load for dialup users. I have created a different swf for each page in my app. I would like the main page to not have to releoad if a user wants to return to it after having gone to another page. I am familiar with the loadmovienum command. Would I use this to keep my home page loaded so a user doesn't have to redownload it? And if so how do I manage other pages? Would I just load and unload them on level one while maintaining my homepage on level 0 and hiding and unhiding it? If there is another method I am all ears. Thanks so much for your help.
One more question. Will a preloader prevent any of my application from begining (sounds, embedded movies) until the entire movie is loaded?
John
[F8] Reload Page When Idle
i found this coding but i don't understand where to put it. should i create a blank keyframe?does this coding works? can sumbody help me.thanks
Code:
onClipEvent (enterFrame) {
count += 1;
if (count>900) {
// change the 500 to anything you want
_root.gotoAndStop("#b");
_root.textbox = 01; // PUT YOUR DIGIT HERE OF WHAT FRAME/SCENE YOUR REFRESH SCRIPT WILL START BACK ON SIMPLE and logical
// Place command that will restart movie
}
}
onClipEvent (mouseMove) {
count = 0;
// Every time someone uses it it will reset count to "0".
}
LoadVars Without Reload Page
Hi!
On my page there are a flash movie and two forms.
I want that the movie changes according to which form I'm writing in (onFocus).
So I don't want to reload the page and I don't know how to reload variables because my page doesn't change and I can't do something like response.write because I don't want changes on the page (asp).
Maybe I can write a txt file according to the onFocus and make the movie loads it continously?
Thank you in advance
Carla
Force Page Reload
I've got a flash file that automatically gets data from a database on a server. The problem is that under Internet Explorer I have to have the settings under "Tools>>Internet Options>>Temporary Internet Files>>changed to check for newer verions of a file".
If I don't do this, it will just show the old data/the old content in the flash file.
Can I do a force page reload...and how?
Thanks
MP3 Page Reload Issue
On a website that was created for me the developer created the flash header and the main site all in one template. When I load the page the .MP3 flash player in the flash header plays. However, upon refresh because the flash is reloaded it starts from the first song again, which is annoying. Is there anyway in Actionscript where I can change the code when the page is reloaded it chooses a randon song from the array, or move to the next song. Is this possible at all? Please let me know.
Thanks.
Reload Page Problem
High all,
I'm currently developing an appointment scheduling system which can be found here .
The problem is if you reload the page in IE 6 it fails to reload the data from the server. It works ok with Firefox although I've not tried any other browsers. Could it be a new security feature with IE or am I just missing something?
Please feel free to make bookings (give a false email if your concerned), plus any comments on the usability of the system would be welcome.
Thanks all
BB
Reload PHP Page Into Pop Up Window
Code:
getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};
Hi, I have Flash movie with a series of thumbnails in it. When you click on a thumb I have a pop up window opening with a php page in it. A variable is sent to the php page which determines which full size picture is loaded into the window.
At the moment the above code (taken from something Billy T posted ages ago - cheers Billy!) opens the window if there isn't one already open and loads the page.
However, if the window is open the instruction to reload the php page and therefore a different variable relating to a jpg isn't sent, so the selected jpg doesn't update.
Could someone please help me out and explain how to get that php page and variable reloaded so that I don't need to open and close multiple pop ups please? I've been trying to alter the if statement but I'm getting in a mess!
Thanks in advance.
pinK
Have To Reload Page To See Flash, Why?
I'm using PHP to send variables in the URL so that my Flash movie that is embeded in an HTML page shows a different frame according to which HTML page is called. However, each page has to be reloaded for the Flash to show, b/c on first load it is blank. I've checked all the syntax but can't find the problem. Has anyone every encountered a problem with having to reload a page to see the Flash? Any help would be appreciated. Thank you.
Have To Reload Page To See Flash, Why?
I'm using PHP to send variables in the URL so that my Flash movie that is embeded in an HTML page shows a different frame according to which HTML page is called. However, each page has to be reloaded for the Flash to show, b/c on first load it is blank. I've checked all the syntax but can't find the problem. Has anyone every encountered a problem with having to reload a page to see the Flash? Any help would be appreciated. Thank you.
Sustaining Mp3 Stream On Page Reload
This may be simple, very complicated or impossible, I dont know. I have a flash/php based mp3 player that I'm using on my site. It streams in mp3s. Is there a way for flash to 'cache' itself to the browser so that when the browser goes to page to page on my site (by doing so refreshing the broswer each time) that the mp3 stream would not be interupted? In other words, can a flash movie stay constant doing page reloads as long its going to a page on the same website?
My reason for this is to avoid using frames or popups.
Is this possible?
Thanks!
Firefox, Netscape, Won't Reload Page
Hey there - I'm using the following code to run a loader. While all browsers will now run my site, Firefox and Netscape will only run the site once. After that first time, they just sit there, doing nothing, loading nothing, going nowhere. Is there something problematic with my code? Please advise, thanks...
Code:
stop();
goalFill = loadline._width;
loadline._width = 0;
createEmptyMovieClip("holder", 1);
holder._alpha = 0;
holder.loadMovie("simpleDesign.swf");
this.onEnterFrame = function() {
lBytes = holder.getBytesLoaded();
tBytes = holder.getBytesTotal();
if (lBytes<tBytes && tBytes>0) {
loadline._width = goalFill*lBytes/tBytes+10;
} else if (lBytes=tBytes && tBytes>0) {
holder.onLoad = function() {
delete this.onEnterFrame;
loadline._width = 520;
play();
};
}
holder.onLoad = function() {
delete this.onEnterFrame;
loadline._width = 520;
play();
};
};
Hope you can help...
Javascript Page Reload Problem...
Hi Everyone,
I've got SWF that runs in a pop-up window that is opened by a parent HTML page. In the SWF there is a button that closes the pop-up and reloads the parent page. I'm using this code for the button that does this:
getURL("javascript:window.opener.document.location .reload()");
getURL("javascript:window.opener=self; window.close()");
The pop-up closes, but the parent page doesn't reload. I've double checked the javascript code that I should be using, and it's correct. Does anyone know of a techincal reason why it might not be working?
Thanks!
Dandylion_13
Reload Page Results In Same Data
I've made this sudoku generator in PHP, and my flash movie retrieves the data bij using loadvars():
PHP Code:
_global.homeurl="http://www.o4web.nl/sd/";
_root.myVars = new LoadVars();
_root.myVars.onLoad = function(success){
if(success){
_global.format = myVars.format;
_global.getallen = myVars.getallen;
play();
} else {
trace("Error reading the php page");
}
}
_root.myVars.load(_global.homeurl+"sudoku/db.php?niveau="+_root.niveau+"&userid="+_root.userid+"&time="+_root.thetime);
stop();
The first time I opened the page with Internet Explorer, I got a fine sudoku. But when I refresh, the flash movie doesnt seem to reload the data from the PHP file, but uses the flash movie of Internet Explorer's cache, which results in the exact same sudoku as the last one.
In firefox it works fine! But not in IE. An other thing: The flash doesnt seem to send the right information, because the sudoku the flash makes isn't niveau 1, but niveau 2 (which is the default niveau):
http://www.o4web.nl/sd/?game=sudoku&niveau=1
with default niveau:
http://www.o4web.nl/sd/?game=sudoku
PS when you see that fat man: press "skip uitleg" to continue to the sudoku
[F8] How Do I Not Reload Flash When Page Is Reloaded?
I have a flash animation playing in a table on a ColdFusion page. It is a rather long movie (45 seconds) and I have a stop action at the end of it. The final frame has several navigation points into the site.
Is there a way, that I can tell flash not to reload the page if the pages is being reloaded from within the site or by someone using tthe back button? I'm pretty new at this and any help would be appreciated.
Thank you,
Peter
Looping Image.. When Page Reload.. How?
I have about 6 images (of same logo).. all of them pretty much the same.. just few things like text and background is different.
I want them to loop, or generated randomly whenever somebody is reloading a website.
So if I would open website.. It would load image 1, next it could open image 5, next time some other random image (1-6)..
Is this possible? and How do I do this?
SWF That Doesn't Reload On Every Html Page
Im trying to build a swf file that will continue to play over multiple html pages.
i.e.
load index.html - swf loads..... plays to frame 250 then visitor click the contact page link ..... contact page loads.. swf file plays from frame 250 onwards..
make sense?
at the moment as the swf is embeded in the html it reloads on every page, im trying to avoid this. i want the swf to run maybe localy from the visitors box and avoid ever reloading..
thanx in advance
[F8] Flash Won't Play On Page Reload In IE
I'm trying to embed a swf into a page on a website we are creating. The swf plays fine in Fire Fox, IE will load the swf once and play just fine, but if you leave the page and go back, the swf is there but it no longer interacts with the user. I'm using the basic code that Dreamweaver 8 uses to insert a swf file, here is the code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="586" height="340" id="census_map" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="census_map.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="census_map.swf" quality="high" bgcolor="#ffffff" width="586" height="340" name="census_map" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
I've even tried to expire the page as well to force the browser to download every time and this is no help.
I can't seem to find anyone else with this problem.
[CS3] Dynamic Text Without Page Reload?
Hey guys.. I have a client gallery fed from an database using ASP to pull in the thumbnails however they would like the larger image to appear within some flash on the page, I can get the movie to pull in the image id in the querystring but is there a way of doing this without reloading the page? Perhaps feeding the id to the flash a different way?
I'm tempted to delve into the Ajax world but have very little experience with it.. any suggestions?
Thanks in advance.
How Do I Not Reload Flash When Page Is Reloaded?
I have a flash animation playing in a table on a ColdFusion page. It is a rather long movie (45 seconds) and I have a stop action at the end of it. The final frame has several navigation points into the site.
Is there a way, that I can tell flash not to reload the page if the pages is being reloaded from within the site or by someone using tthe back button? I'm pretty new at this and any help would be appreciated.
Thank you.
Flash / Web Page Reload Question
On the main page of my web site I inserted a Flash object that plays an mp3 file automatically.
Problem is, when the user clicks on a link to go to an html sub-page then returns to the main page (using the browser's back button or the "Home" button I provide), the audio clip plays all over again. I do not want this.
How can I get the AS code on the main page to execute only once per session? I do not want the mp3 to keep auto-playing every time the user goes from a sub-page back to the main page. Only when a user formally closes their browser then reopens it and returns to the main page at a later session should the mp3 file play again. Thanks.
Submitting Form: No Page Reload.
I'm sorry if this has been submitted before but I looked through the results I found for Form Submit and nothing seemed to be what I was looking for.
I want to have a form in my flash file. On submit I want the data to be updated in the DB, but I don't want to call another page like what you would do with a GetURL command. I know I have seen flash sites that don't seem to reload anything or submit to an external page.
How can I submit the form data without the user knowing that the page they are on went anywhere else... ie no clicking and no changing?
Flash - > Browser Without Page Reload
Hey there!
I'm just curious, is there any way... Or how could I get a Flash File to call a Javascript Function / Send a Variable back to a browser which Javascript could read?
Basically working on something where as, currently at any moment during the web page is open Flash receives a variable.. Needs to process that, then call a Javascript Function in the page or if this can't be done, sends a variable back to the page which javascript will listen for every 500ms or something like this...
Anyone know please ?
Submitting Form: No Page Reload.
I'm sorry if this has been submitted before but I looked through the results I found for Form Submit and nothing seemed to be what I was looking for.
I want to have a form in my flash file. On submit I want the data to be updated in the DB, but I don't want to call another page like what you would do with a GetURL command. I know I have seen flash sites that don't seem to reload anything or submit to an external page.
How can I submit the form data without the user knowing that the page they are on went anywhere else... ie no clicking and no changing?
Flash Menu In A Php Page Don't Reload?
Hi there,
I have a flash menu in a php page with the href links
ActionScript Code:
conceptBtn.gotoURL = "?category=concept";
helpBtn.gotoURL = "?category=help";
etc
Now it looks like the flash menu is being reloaded each time a menubutton is clicked. As my flashmenu consists of a simple slide-in submenu navigation, it doesn't show the slide-in animation.
How can i prevent this or fix this???
My getURL function looks like,
ActionScript Code:
function goto() {
trace("HREF: "+this.gotoURL);
_root.gotoAndPlay(this.gotoFrame);
if (this.gotoURL != undefined) {
getURL(this.gotoURL, "_self");
}
}
i also tried setting a flag endAnime variable on the timeline and then
ActionScript Code:
function goto() {
trace("HREF: "+this.gotoURL);
_root.gotoAndPlay(this.gotoFrame);
if ((this.gotoURL != undefined) && (endAnime == true)) {
//getURL(this.gotoURL, "_self");
trace("Endanime is true");
}
}
But i didn't work
How Do I Not Have The Movie Reload When I Recently Go Back To The Page?
A Flash 5.0 movie embedded in an html document - The first time in a given visit someone views my main page I want the movie to play. They will navigate throughout the site, but when they go back to the main page, I don't want it to play all over again. I just want it to be at the end of the movie (whever I have hypertext for navigation). Is this possible - if so - how?
[Edited by Cp43x on 01-09-2002 at 06:35 PM]
Does Page Have To Reload 4 New Entries 2 Show In Guestbook
implemented an asp guestbook i got from scripts.nl, it works fine so far, but it seems after new post are made the only show up after the page reloads, is this da norm?
And how do track when a text file or database fully loads, like a preloader for external files?
Thanx
Reload Movie Similar To Page Refresh?
I am having trouble with removeMovieClip(). It simply will not remove all of the movie clips that I earlier attached with attachMovie(). I will spare you the details but after two full days of exploring potential workarounds, I'm ready to try something completely different...
Is there anything I can do with MX ActionScript to make the movie start from the very beginning and just reset everything, kind of like what would happen if you refreshed the browser?
Random Changing Swf File On Page Reload
I really hope someone can help here... and quickly if possible.
I have a HTML page with a simple flash animation loop playing at the bottom. I want to make this flash movie randomly change each time the page is reloaded or refreshed...
Is this something I need to code in an empty Flash movie? Or in the actual HTML page itself?
Cheers,
Reload Page Without Reloading Flash Movie?
Hi...
I was wondering whether it is possible to reload a page without reloading the flash movie within it?? I'm working on a menu, and don't want to use frames for my site... but for the navigation scheme to make sense, the movie cannot replay everytime I reload the page.
Appreciate all the help I can get...
Thanks,
Patrick
Stop Replay Of Movie On Page Reload
Hello.
Just a warning: Not for the faint-hearted. I have a very specific problem and I am desperate for some very specific help. I have searched high and low for the answer to this problem, but there just isn't a complete solution published anywhere on the web. I even posted a question on macromedia's forum and got no replies.
I have a flash movie embedded in a client's website. It plays through a short animation and then finishes with a small looping effect on their logo. View the movie here: http://www.thatsmeproductions.com/ems I'm happy to share the fla file with you as well: http://www.thatsmeproductions.com/title.fla (save target as)
I need the movie to play through only once per user per browser session. If the user has been through the movie once already, I want it to skip to the ending looped animation. But if the same user returns later the same day, it's fine for the movie to replay from the beginning.
I'm sure the answer has something to do with using a shared object variable, but after reading through macromedia's tutorial on those, I am only further confused. I'm good at the movie making stuff, but lousy at the actionscript stuff.
Thank you for taking the time to read through this.
Random Display Of Different Animations On Every Reload Of Page?
Hello,
I am doing an animation of different images on the screen and they want it to come up with a different sequence of animation on every reload of the page. Like I have my first sequence of images that come in and plays and then on down the timeline another set plays and so on. Is there a way to make it random each sequence it plays? Like it might play the second sequence the next time or even the fourth. I know you probably do it through actionscripting but I've been away from Flash for awhile and I am kinda rusty!!
Thanks!
[MX04] Reload Flash When Page Is Refreshed
ok this may be a really stupid question (and i'm sure i used to know the answer to it) but here goes.
I have a little banner that randomly selects one of 6 scenes to display using a switch statement in the first scene (see below). That part is working fine when I run it as a stand-a-lone file (outside of internet explorer).
var selectedFact = random(6);
switch (selectedFact) {
case 0 :
gotoAndPlay("Fact0", 1);
break;
case 1 :
gotoAndPlay("Fact1", 1);
break;
case 2 :
gotoAndPlay("Fact2", 1);
break;
case 3 :
gotoAndPlay("Fact3", 1);
break;
case 4 :
gotoAndPlay("Fact4", 1);
break;
case 5 :
gotoAndPlay("Fact5", 1);
break;
default :
break;
};
The problem I have is that everytime the page is refreshed or re-visited I need the random scene to change, but the way I currently have it set up it's not - it's only using 0 and 1.
I don't want to have all the scenes in there own files if I can help it.
If someone can assist that would be great...
Shared Object - .swf Reload On Page Refresh
I have joined this forum today so hi to all,
I'm pretty new to flash and was hoping someone could offer some guidance with shared objects.
I've created a Joomla Template which has a flash banner at the top. The movie runs then stops offering the user a button to replay if they wish - all is right with the world!
When the user refreshes the page by either refreshing or moving to another page the movie replays which is not the desired action.
I understand shared objects (flash cookie) is one method of controlling/stopping this action.
I would like the movie to run in full regardless of user activitiy/page location but then not again that day.
Can anyone assit me or point me to a tutorial. I've had a look at Whispers posts in this forum but was unable to get that code to work.
Many thanks
PM
To Not Reload From Start Flash Animation On Web Page
Hi,
I've done a nice flash animation which is in fact an ad banner.
This banner should be displayed on my customer website in each pages.
However, in order to be sure that customers of my client will see the
whole flash animation, i would like to be sure that it's not reloaded
from the first frame.
is there something like a frames counter which can be memorized by PHP
pages server ?
i mean on page welcome.php, my banner will be displayed.
let's say that after few seconds (35 frames for example), the customer
click on a link "prices.php".
on this prices.php page my ad banner is once again displayed, but i
would like to make sure it starts from frame 36 for example, and not
from frame 1.
how can i do that ?
thanks a lot,
RAF
Code Only Works After A Page Reload In Firefox 3
I'm using Flash CS3, exporting for flash player 9 and having troubles with the code below only in Firefox 3 (flash player 9 or 10)
In IE 6 & 7, all works OK.
The code below should show small thumbnails of images. It does work on everything I tested except firefox 3. What is weird is that if I empty my cache and load the page online, it does not show any thumbnails or sometimes only one. However, if i reload the page without emptying my cache, it will then work perfectly.
Here is my code (AS2 and XML)
quote:
<?xml version="1.0" encoding="utf-8"?>
<xmldata>
<pic thumb="gallery/thumb_001.jpg" image="gallery/001.jpg"></pic>
<pic thumb="gallery/thumb_01.jpg" image="gallery/01.jpg"></pic>
<pic thumb="gallery/thumb_002.jpg" image="gallery/002.jpg"></pic>
<pic thumb="gallery/thumb_003.jpg" image="gallery/003.jpg"></pic>
<pic thumb="gallery/thumb_004.jpg" image="gallery/004.jpg"></pic>
<pic thumb="gallery/thumb_04.jpg" image="gallery/04.jpg"></pic>
<pic thumb="gallery/thumb_005.jpg" image="gallery/005.jpg"></pic>
<pic thumb="gallery/thumb_006.jpg" image="gallery/006.jpg"></pic>
<pic thumb="gallery/thumb_007.jpg" image="gallery/007.jpg"></pic>
<pic thumb="gallery/thumb_08.jpg" image="gallery/08.jpg"></pic>
<pic thumb="gallery/thumb_09.jpg" image="gallery/09.jpg"></pic>
<pic thumb="gallery/thumb_10.jpg" image="gallery/10.jpg"></pic>
<pic thumb="gallery/thumb_11.jpg" image="gallery/11.jpg"></pic>
<pic thumb="gallery/thumb_12.jpg" image="gallery/12.jpg"></pic>
<pic thumb="gallery/thumb_013.jpg" image="gallery/013.jpg"></pic>
<pic thumb="gallery/thumb_15.jpg" image="gallery/15.jpg"></pic>
<pic thumb="gallery/thumb_16.jpg" image="gallery/16.jpg"></pic>
<pic thumb="gallery/thumb_17.jpg" image="gallery/17.jpg"></pic>
<pic thumb="gallery/thumb_18.jpg" image="gallery/18.jpg"></pic>
<pic thumb="gallery/thumb_19.jpg" image="gallery/19.jpg"></pic>
<pic thumb="gallery/thumb_20.jpg" image="gallery/20.jpg"></pic>
</xmldata>
In the following code, the variable prefix is the base path to the client web site ie.
http://www.somedomain.com/somefolder/
Attach Code
//1. Import base class
import mx.utils.Delegate;
//2. XMLLoader setup
var XMLLoader:XML;
XMLLoader = new XML();
XMLLoader.ignoreWhite = true;
XMLLoader.onLoad = Delegate.create(this,onObjectsLoaded);
XMLLoader.load(prefix+'domainebrossard.xml');
function onObjectsLoaded(success:Boolean) {
if (success) {
var nodes:Array = this.XMLLoader.childNodes[0].childNodes;
var currentx = 10;
var currenty = 10;
var itemsxy = 76;
var spacing = 10;
var pictures:Array = new Array();
var thumb = '';
var picture = '';
for (var i:Number = 0; i<nodes.length; i++) {
thumb = nodes[i].attributes.thumb;
picture = nodes[i].attributes.image;
var thisObj:Object = new Object();
thisObj.pic = picture;
pictures[i] = thisObj;
//trace(picture);
attachMovie('photosquare','picturethumb'+i,this.getNextHighestDepth());
var thisPic = eval('picturethumb'+i);
thisPic._x = currentx + (i%4)*(itemsxy+spacing);
thisPic._y = currenty + (itemsxy+spacing)*Math.floor(i/4);
//Movie clip loader for pictures...
var mcLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.itemsxy = itemsxy;
mclListener.onLoadInit = function(mc:MovieClip) {
mc._x = 0;
mc._y = 0;
mc._width = this.itemsxy;
mc._height = this.itemsxy;
trace(mc+' has received onloadinit! -> '+mc._url+', x='+mc._x+', y='+mc._y);
}
mcLoader.addListener(mclListener);
mcLoader.loadClip(prefix+thumb, thisPic.pic);
thisPic.btn.number = i;
thisPic.btn.onPress = function() {
if (_root.popup)_root.popup.removeMovieClip();
_root.attachMovie('popup','popup',_root.getNextHighestDepth());
_root.popup.number = this.number;
_root.popup.loadPic(this.number);
_root.popup._x = 200;
_root.popup._y = 200;
}
}
//trace('pictures : '+ pictures[0].pic);
_root.pictures = pictures;
} else {
trace('Error reading XML');
}
}
Edited: 01/27/2009 at 10:11:42 PM by graben33
On Click Of Button, Dont Reload The Same Page Again.....
hi! I think my question really only requires a few lines of code [ maybe just one ... ] but I just can't seem to figure it out ....
I have the following buttons on flash that take me to different HTML Pages: "About" "Services" etc ...
So, when I click "Services" it takes me to services.html ... but, when I click "Services" on the services page, it reloads the whole page again, how can I get the button to "realize" that because it is already on that page, it doesnt need to reload it?
or can this only be done if the whole website is made on flash itself?
maybe im overthinking this one ..... eh, help please
thanx in advance .....
How To Stop My Mp3Player To Reload With Every Page Change
Hi to all!
I got this problem, which I'm not very keen to solve, and would be cool if I can have some help from you guys..
I got AS2 mp3Player on my site's footer (asaucerfulofpixels.com/deuce) which is built with joomla. It's loaded with the XML playlist from the backend, but what is odd is that it reloads from the beginning every time the page is changed ie. clicked on the links in the top nav bar.
Is it possible to achieve that the player keeps playing the same song, once it's loaded, no matter on which page you are?
Thank you so much!
Make Flash Header NOT Reload And Next Page?
Hello.
I have a flash menu/header and I want to have 10+ pages of small content for some building details. I don't want the flash header to keep replaying the animation when I move to the next detail (ie next html page).
How can I do this in Flash?
Thanks
Flash Nav In HTML Page Reload/reset Problem
Hi,
I have designed a site that is built in HTML that uses a flash movie for navigation.
The HTML page is built as a table with a flash movie placed in one of the cells. The problem is when a navigation option is clicked on the HTML page refreshes and reloads the flash movie therefore resetting it to the start of the movie.
I am using the goto URL command in the flash movie.
what options do I have here?
I am not actually building the HTML site - just the Flash animation for the HTML site - but the HTML programmer doesn't know what to do either.
Thanks SEPP!
Sending Variable To External File On Page Reload?
Is is possible for flash to send a variable to an external file on page reload?
I have a flash menu on my site...when browser loads the new page, I'd like to have the menu item (say latest news) highlighted for that page, but since its also realoding the flash, I'm not sure how it would know to highlight the menu item. I'm guessing that some sort of variable would be the solution.
Any help is appreciated!
Thanks!
|