Просмотр полной версии : Как получить полный путь к клипу
Sanches86
25.06.2008, 18:38
Всем ПРИВЕТ!!!
Подскажите как получить программно полный путь к выполняющемуся клипу, чтоб затем его использовать. Заранее спасибо!!!!:)
alexcon314
26.06.2008, 00:07
У клипов, объектов во флэше есть свойство _target, которое содержит строку вида
/mc1/myclip/button. Если применить функцию eval(mc._target), то получите путь с точками вместо слэшей.
_target (MovieClip._target property)
public _target : String [read-only]
Returns the target path of the movie clip instance, in slash notation. Use the eval() function to convert the target path to dot notation.
Availability: ActionScript 1.0; Flash Player 4
Example
The following example displays the target paths of movie clip instances in a SWF file, in both slash and dot notation.
for (var i in this) {
if (typeof (this[i]) == "movieclip") {
trace("name: " + this[i]._name + ",\t target: " + this[i]._target + ",\t target(2):"
+ eval(this[i]._target));
}
}
Sanches86
26.06.2008, 11:25
Я имел ввиду как получить путь типа C:\\Program Files\Proga\имя файла.swf
Как получить что то вроде этого средствами Flash и ActionScript???
crazyone
26.06.2008, 11:42
_url вам в помощь
Sanches86
26.06.2008, 11:44
_url вам в помощь
А примерно подскажите как...
alexcon314
26.06.2008, 11:44
trace(_root._url)
Sanches86
26.06.2008, 11:53
СПАСИБО!!!!!!
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.