loadMovie function (and absolute/relative URL's)

This is a discussion on "loadMovie function (and absolute/relative URL's)" within the Flash & Multimedia Forum section. This forum, and the thread "loadMovie function (and absolute/relative URL's) are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 23rd, 2006, 14:27
Junior Member
Join Date: Jun 2004
Location: USA
Age: 25
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to DocBoy52 Send a message via AIM to DocBoy52 Send a message via Yahoo to DocBoy52
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.
Reply With Quote

  #2 (permalink)  
Old Aug 26th, 2006, 05:16
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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.
Reply With Quote
Reply

Tags
loadmovie, function, absoluterelative, urls

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 Web Page Design 3 Feb 7th, 2008 18:43
positioning - relative or absolute? google Web Page Design 13 Nov 8th, 2007 16:00
help please?!:about loadMovie function in layered MCs baitwens Flash & Multimedia Forum 4 Sep 18th, 2007 17:51
loadmovie function not working when in browser nikising Flash & Multimedia Forum 2 May 19th, 2007 20:20
CSS Challenge... absolute AND relative positionning Trollivier Web Page Design 5 Feb 9th, 2007 16:41


All times are GMT. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43