FORUMS: list search recent posts

Relative paths

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ponyack
Relative paths
on Dec 21, 2005 at 7:47:34 pm

HI

I am building a Flash page and have some buttons that I would like to open up new pages in pop up windows. I have been using the tutorial located here http://www.kirupa.com/developer/mx/centered_popup.htm
The absoltue path works fine but I need to preview html files from desktop...but am unable to do this..any help woud be cool

thanks

Ponyack


Return to posts index

Matt Klundt
Re: Relative paths
on Dec 22, 2005 at 2:54:36 pm

If your other pages are in the same folder, all you need to change is:
address = "pop-up.htm";

or if the project is never leaving your computer you can specify files on your computer like this:
address = "file://c:/Documents and Settings/Matt/pop-up.htm";

Matt
--------------------
http://www.mcquillendesign.com
http://www.mattfoxgames.com


Return to posts index

ponyack
Re: Relative paths
on Dec 22, 2005 at 3:30:02 pm

Thanks for the tip


Return to posts index


ponyack
Re: Relative paths
on Dec 31, 2005 at 5:26:36 pm

Matt,

Sorry but I am still lost. how do i write the line for the relative path? also the files that I am trying to access are in a folder within the site folder, is that ok?

Thanks

Ponyack


Return to posts index

Matt Klundt
Re: Relative paths
on Jan 3, 2006 at 9:43:53 pm

Let's pretend this is your document tree with 'www' being your root site folder, images is a folder within it where you keep images, flash is a folder within the site root folder where you keep flash swf files.

www
->images
->flash

If we are using a flash document within the flash folder the address looks something like http://www.something.com/flash/something.swf
within this flash file we can load an image called blah.jpg from the images folder by using:

_root.loadMovie("../images/blah.jpg");

This moves a theoretical pointer one folder up, then into the images folder where it grabs the image named "blah.jpg".

Now, if your swf is embedded into a web page, you must navigate to the images folder based on where the webpage is located. Take for example, the swf is embedded in "index.html" in your site root folder:

_root.loadMovie("images/blah.jpg");

This points to the images folder at the same level as our webpage, where it grabs the image named "blah.jpg".

Does this make sense?

Matt
--------------------
http://www.mcquillendesign.com
http://www.mattfoxgames.com


Return to posts index

ponyack
Re: Relative paths
on Jan 10, 2006 at 3:05:27 pm

Matt,

thanks, its starting to sink in. I did get the site to work but all the files are in one folder. If you have a moment i have another question. I recently updated the site by adding a new button with a link to a swf. but when i upload the new files to the server the site remains unchanged. the previews in flash, dreamweaver and my browser show the new changes. any ideas?

thanks

ponayck

oh yeah the site is http://www.artboyinc.com


Return to posts index


Matt Klundt
Re: Relative paths
on Jan 10, 2006 at 4:46:07 pm

Sounds like you need to delete the temporary internet files for your browser (called cache in some browsers) .

Matt
--------------------
http://www.mcquillendesign.com
http://www.mattfoxgames.com


Return to posts index

ponyack
Re: Relative paths
on Jan 10, 2006 at 10:23:03 pm

Yeah,

i have tried that. don't know whats up. maybe i'll just reload the whole site and see whats happening.

thanks for all the help


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]