![]() |
это еще что за функшен.
извеняюсь за тупость, но я только 5Й флеш юзал что такое
tellTarget - долоЙ имя.gotoAndPlay (х)? |
tell target - это составной оператор, кот-й применялся в flash4
с его помощью осуществлялось изменение пути и имени объекта.....насколько я помню....:)))))) |
:)
|
ну, во-первых, TellTarget это функция, и применяется не для "осуществлялось изменение пути и имени объекта", а для ссылки на клипы. и никто, если тебе нравится, не мешает им пользоваться.
|
Советую вам уважаемый sapiens, по этому поводу почитать книжку "flash 4"Грибов Д.Е.
Там все подробно написано..:) |
и как с помощью предмета разговора "осуществлялось изменение пути и имени объекта" ?
ps зачем так далеко лазить? хелп из FLASH 6 tellTarget Availability Flash Player 3. (Deprecated in Flash 5; use of dot notation and the with action is recommended.) Usage tellTarget("target") { statement(s); } Parameters target A string that specifies the target path of the Timeline to be controlled. statement(s) The instructions to execute if the condition evaluates to true. Returns Nothing. Description Action; applies the instructions specified in the statements parameter to the Timeline specified in the target parameter. The tellTarget action is useful for navigation controls. Assign tellTarget to buttons that stop or start movie clips elsewhere on the Stage. You can also make movie clips go to a particular frame in that clip. For example, you might assign tellTarget to buttons that stop or start movie clips on the Stage or prompt movie clips to jump to a particular frame. In Flash 5, you can use dot notation instead of the tellTarget action. You can use the with action to issue multiple actions to the same Timeline. You can use the with action to target any object, whereas the tellTarget action can only target movie clips. Example This tellTarget statement controls the movie clip instance ball on the main Timeline. Frame 1 of the ball instance is blank and has a stop action so that it isn't visible on the Stage. When the button with the following action is clicked, tellTarget tells the playhead in ball to go to frame 2 where the animation starts. on(release) { tellTarget("ball") { gotoAndPlay(2); } } |
а особо обратить внимание на строчку
The tellTarget action is useful for navigation controls. :mad: |
Если вам нужно изменить из какого-либо клипа 20 переменных в объекте /foo/bar/baz/klop/frodo. Конечно можно просто составить строки:
Set Variable:"/foo/bar/baz/klop/frodo:fred"=100 Set Variable:"/foo/bar/baz/klop/frodo:toto"=200 Set Variable:"/foo/bar/baz/klop/frodo:quux"=300 и т.д., но такая форма неудобна для написания и для чтения. Целесообразнее было бы изменить на время текущий объект выполняемого блока кода, его текущую хронометрическую линейку. Сделать это позволяет составной оператор Tell Target. Вот его синтаксическая диаграмма: Begin tell target (выражение) Команда скрипта ..... Команда скрипта End tell target С помощью оператора осуществляется временное изменение текущего пути и имени объекта. |
к сожалению, flash 6 - я еще не купил..:(
и не могу воспользоваться всеми его прелестями .. |
Цитата:
|
| Часовой пояс GMT +4, время: 02:43. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.