|
-
Dec 2nd, 2008, 06:44 AM
#1
[RESOLVED] Browse from root directory... (Flash buttons)
Hi,
I am creating a website that uses flash buttons and I am having problems with the root directory. The problem is the index page in the root directory does not recognize all the files in sites directory.
It will recognize the css folder, java script folder, images folder and files but not the html nor media folders.
Now I know using text links the code would be:
Code:
<a href="html/prod.html" title="Products">Products</a>
If I was on the homepage (index) and wanting to go to say products. However, that path does not work for the flash buttons.
I am assuming I need to put "../" in fort of the path in in the file! Except I do not know how many I need to put. While:
Works for the css, images, javascript folders in does not work for the html and media folders.
Here is the code the flash buttons use:
Code:
btn.addEventListener(MouseEvent.CLICK,callurl);
function callurl(event:MouseEvent):void
{
var prod:URLRequest = new URLRequest("../html/prod.html");
navigateToURL(prod, "_self");
}
Any help would be grateful,
Nightwalker
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|