Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   Использование билиотеки... (http://www.flasher.ru/forum/showthread.php?t=51145)

rojok-online 07.11.2003 20:24

Использование билиотеки...
 
как использовать билиотеку в мувике?

rojok-online 08.11.2003 00:50

в библиотеке есть кнопка, как мне её поставить в нужное место или в нужный мувик?

+=Metlio=+ 08.11.2003 01:32

attachMovie

sergwizard 08.11.2003 02:01

Или просто перетащить мышкой в нужное место.
Вообще-то, при таком количестве постов, как у тебя, такие базовые и простейшие вещи нужно знать.

rojok-online 08.11.2003 02:11

sergwizard
я не хочу перестаскивать... Я хочу просто все через АС сделать ....
+=Metlio=+
Спасибо!

rojok-online 08.11.2003 02:17

+=Metlio=+
как правельно пользоваться attachMovie?

+=Metlio=+ 08.11.2003 02:23

MovieClip.attachMovie()
Availability
Flash Player 5.

Usage
my_mc.attachMovie(idName, newName, depth [, initObject])

Parameters
idName The linkage name of the movie clip symbol in the library to attach to a movie clip on the Stage. This is the name entered in the Identifier field in the Linkage Properties dialog box.

newname A unique instance name for the movie clip being attached to the movie clip.

depth An integer specifying the depth level where the SWF file is placed.

initObject (Supported for Flash Player 6 and later) An object containing properties with which to populate the newly attached movie clip. This parameter allows dynamically created movie clips to receive clip parameters. If initObject is not an object, it is ignored. All properties of initObject are copied into the new instance. The properties specified with initObject are available to the constructor function. This parameter is optional.

Returns
A reference to the newly created instance.

Description
Method; takes a symbol from the library and attaches it to the SWF file on the Stage specified by my_mc. Use removeMovieClip() or unloadMovie() to remove a SWF file attached with attachMovie().

Example
The following example attaches the symbol with the linkage identifier "circle" to the movie clip instance, which is on the Stage in the SWF file.

on (release) {
thing.attachMovie( "circle", "circle1", 2 );
}

sergwizard 08.11.2003 02:35

Цитата:

Я хочу просто все через АС сделать
Но у тебя, почему-то, все получается через ass. :D

+=Metlio=+ 08.11.2003 02:38

Цитата:

Но у тебя, почему-то, все получается через ass.
:D :D :D
Спасибо! Поднял моё ужасное настроение!!! ;)

rojok-online 08.11.2003 02:46

sergwizard
Код:

Но у тебя, почему-то, все получается через ass.
остряк просто не могу!

sergwizard 08.11.2003 02:57

А ты откушай виагры, тогда точно сможешь.

rojok-online 08.11.2003 03:01

sergwizard
Запарил!
Я пришел сюда за тем чтоб мне помогли...
MovieClip.attachMovie() не работает... как прально пользоваться? И не надо мне хелп кидать на английском, он у меня тоже есть, но только там не понятно как делать ...

opex 08.11.2003 03:19

Вложений: 1
главное не забуть в библиотек где лижит твой "атачемый" мувик в свойствах линкейдж установить галку на экспорт фор АС
в моем случае этот линк будет называтся "obj"
Код:

_root.onEnterFrame = function() {
        _root.attachMovie("obj", "muv", 1);
        _root.muv._x = 100;
        _root.muv._y = 100;
};

ну а если не понял юзай файл

opex 08.11.2003 03:20

только не onEnterFrame используй onLoad я чтото запарил
но хотя будет работать в обоих случаях

rojok-online 08.11.2003 04:02

opex
спасиб :)) стукни в асю :)

rojok-online 08.11.2003 04:19

Вложений: 1
как проскролить поле "text", загр. из билиотеки компонентом?
все в исходнике...


Часовой пояс GMT +4, время: 16:00.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.