Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems while testing my swf files remotely

Status
Not open for further replies.

jdiaz141

Technical User
Aug 16, 2007
4
US
I have created a page that is supposed to load up several images through a movieclip at the press of several buttons that are on the main timeline.

These buttons are working fine while testing them both locally and by my remote testing server.

However, I have four buttons inside a mc that serve as a drop-down menu. At the release of the buttons, the main timeline is targeted.

For example, my four buttons are btnLogo, btnWeb, btnCD and btnPhotos. They are supposed to target the main timeline. I have four keyframes labeled "logoDesign", "webDesigns", "cdDesigns", and "photos". When button btnWeb is released, "webDesigns" is supposed to be targeted on the main timeline.

What's the problem? Well, this function works when I test it locally, so I know there is nothing wrong with the code. However, after uploading it to my testing server, it does not work. Even after refreshing my browser and clearing all the cache files. Basically, my onRelease function does not work while testing it remotely.

Has anyone ever had this problem before?? Any help with this would be appreciated.
 
I have experienced issues with server cache - you cannot see the updated file even after clearing the local cache, because the file is cached at the proxy server. This usually happens in a large corporate network setup.

If you change the name of the SWF will it help?

Kenneth Kawamoto
 
thank you for your reply.

I tried your suggestion of changing the swf name but that did not work. I know its not a caching issue.

I cannot make out what the problem is.

If anyone else knows, i would really appreciate the help.

Thank you very much in advance.

 
// the code for my drop-down menu.

this.btnLogo.onRelease = function() {
_root.gotoAndStop("logoDesign");
};

this.btnWeb.onRelease = function() {
_root.gotoAndStop("webDesign");
};
btnCD.onRelease = function() {
_root.gotoAndStop("cdCover");
};
this.btnPhoto.onRelease = function() {
_root.gotoAndStop("photo");
};





//the code for the buttons on my main timeline.
//this button is placed on the frame labeled "logoDesign".

this.btnlogo01.onRelease = function() {
logoPreloader.loadFile("images/logoDesigns/image01.png", "logoLoader", "jpg");
stick("btnlogo01");
}

//this button is placed on the frame labeled "cdDesign".

this.btncd01.onRelease = function() {
cdPreloader.loadFile("images/cdCovers/image01.jpg", "cdLoader", "jpg");
stick("btncd01");
}

//this button is placed on the frame labeled "photo".

this.btnphoto01.onRelease = function() {
photoPreloader.loadFile("images/photography/image01.png", "photoLoader", "jpg");
stick("btnphoto01");
}

Like I said, this code works fine while testing it locally, but not on my server end. ????? confused.

thanks again for your help with this.
 
sorry about that.

.loadFile("path", "target", "jpg");

loadfile will load up external images onto several instances of movieclips (logoLoader, cdLoader, webLoader and photoLoader)


Regarding "stick", stick is just a function I made up that tells the button to stay on the down state which will be active when a particular image is loaded.
This function works when i test it both locally and remotely.

I'm just having trouble with the drop-down menu buttons launching their onRelease events through my testing server.

but here is the handler for "stick".

function stick(movieName) {
if (currentPage != movieName) {
eval(currentPage).gotoAndStop("up");
}
currentPage = movieName;
eval(currentPage).gotoAndStop("down");
}

I hope this piece of information helps. If not, is there any way for me to upload the .fla ?
 
How is your drop-down menu structured? Is it ComboBox Component?? You're right, functions [tt]btnlogo01.onRelease[/tt] etc are irrelevant - unless things like [tt]btnlogo01[/tt] and [tt]logoLoader[/tt] are interfering your drop-down.

You can mail me your mail address through my website.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top