Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Visual Design > Flash and ActionScript

Reply
 
LinkBack Thread Tools
Old August 23rd, 2006, 10:27 AM   #1
New Member
 

Join Date: Jun 2004
Location: USA
Age: 27
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 DocBoy52 is on a distinguished road
loadMovie function (and absolute/relative URL's)

Hows come when I use the loadMovie() function in Flash, I can just enter the filename [ie: loadMovie("thefile.jpg", _root.theContainer)], and it works fine when it's on my local machine, but then when I upload it, it wont display local URL's for the file (yes, I have the file uploaded in the same directory as the .swf file). In other words, in order for me to get the loadMovie function to work on the web, I have to use an absolute url pointing to the picture (ie: loadMovie("http://www....").

You get the picture. At this point, I have two questions:


1. Why does Flash do this?

2. Is there any way within Flash (or other external languages), that I can get the directory that the .swf file is in, into the flash movie as a variable, because the exact URL for the image is not going to be static.
DocBoy52 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 26th, 2006, 01:16 AM   #2
Elite Veteran
 

Join Date: Dec 2005
Location: On Internet
Posts: 4,850
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough
Cool Re: loadMovie function (and absolute/relative URL's)

The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path must be relative to the SWF file at level 0. The URL must be in the same subdomain as the URL where the movie currently resides. For use in the Flash Player or for testing in test mode in the Flash authoring application, all SWF files must be stored in the same folder, and the filenames cannot include folder or disk drive specifications. The absolute or relative URL of the SWF or JPEG file to be loaded. A relative path must be relative to the SWF file at level 0. Absolute URLs must include the protocol reference, such as http:// or file:///.

Sorry that is the way the ball bounces. Full URL MUST be used.

With more detail I might be able to come up with an actionscript solution.
JacobHaug is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
loadmovie , function , absoluterelative , urls


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Absolute Div, wrapped in Relative Div (IE6 - AARRRGGHH) tenderfoot HTML, XHTML and CSS 3 February 7th, 2008 02:43 PM
positioning - relative or absolute? google HTML, XHTML and CSS 13 November 8th, 2007 12:00 PM
help please?!:about loadMovie function in layered MCs baitwens Flash and ActionScript 4 September 18th, 2007 01:51 PM
loadmovie function not working when in browser nikising Flash and ActionScript 2 May 19th, 2007 04:20 PM
CSS Challenge... absolute AND relative positionning Trollivier HTML, XHTML and CSS 5 February 9th, 2007 12:41 PM


Search Engine Optimization by vBSEO 3.2.0 RC8