Показать сообщение отдельно
Старый 12.03.2006, 17:50
Fl00r вне форума Посмотреть профиль Отправить личное сообщение для Fl00r Найти все сообщения от Fl00r
  № 6  
Ответить с цитированием
Fl00r
 
Аватар для Fl00r

Регистрация: Jun 2005
Адрес: dreams
Сообщений: 1,137
Отправить сообщение для Fl00r с помощью ICQ
Most path references online are relative and there is no need to use absolute paths. However, when coding for the desktop, it is always advisable to use absolute paths for a number of reasons:


Firstly, there is no knowing where exactly the user will decide to launch the compiled Application from. It could be from a CD, it could be from the Hard Drive. The second reason is that the internal SWF isn't ever physically available on the users Hard Drive (it is contained within the EXE shell) and therefore doesn't "know" what it's current location is and, more importantly, doesn't know what is relative to it. For this reason, all paths should be appended with the property mdm.Application.path which contains the current location of the EXE File.

LoadMovieNum(mdm.Application.Path+"myMovie.swf", 5);

Notes

Using mdm.Application.path is recommended for all projects as it guarantees the path to the SWF will be found correctly, no matter where the Projector is. It will also work across all operating systems.


Понятно, что loadMovieNum желательно заменить на my_mc.loadMovie()
__________________
Глупости какие-то говорите.