Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

.local to global action script PROBLEM

[es] :: Flash :: .local to global action script PROBLEM

[ Pregleda: 3256 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

tra-la-la
Dusan Milosavljevic
br.1
Krusevac

Član broj: 53200
Poruke: 40
*.verat.net.



Profil

icon .local to global action script PROBLEM09.04.2005. u 21:30 - pre 208 meseci
evo vijeoma prosto ? ... ne mogu nikako da skapiram local to global AS komandu ...a potrbno mi je da koordinate MC koji je zakopan na trecem nivou prevjedem na stage coordinates ... normalno ... znaci...>>>
myMC1.myMC2.myMC3._x

... ko zna lepo da objasni upotrebu local to global neka napise ...
hvala
grrr
 
Odgovor na temu

noviKorisnik
Dejan Katašić
Novi Sad

Član broj: 13216
Poruke: 4533
*.dialup.neobee.net.

Sajt: www.novikorisnik.net


+5 Profil

icon Re: .local to global action script PROBLEM10.04.2005. u 03:43 - pre 208 meseci
Šta ovde nije jasno?
Citat:

MovieClip.localToGlobal

Availability

Flash Player 5.

Usage

myMovieClip.localToGlobal(point)

Parameters

point The name or identifier of an object created with the Object object, specifying the and coordinates as properties.

Returns

Nothing.

Description

Method; converts the point object from the movie clip's (local) coordinates, to the Stage (global) coordinates.

Example

The following example converts and coordinates of the point object, from the movie clip's coordinates (local) to the Stage coordinates (global). The local and coordinates are specified using the _xmouse and _ymouse properties to retrieve the and coordinates of the mouse position.

Code:
onClipEvent(mouseMove) {
    point = new object();
    point.x = _xmouse;
    point.y = _ymouse;
    _root.out3 = point.x + " === " + point.y;
    _root.out = _root._xmouse + " === " + _root._ymouse;
    localToGlobal(point);
    _root.out2 = point.x + " === " + point.y;
    updateAfterEvent();
}


See also

MovieClip.globalToLocal

 
Odgovor na temu

tra-la-la
Dusan Milosavljevic
br.1
Krusevac

Član broj: 53200
Poruke: 40
62.193.143.*



Profil

icon Re: .local to global action script PROBLEM12.04.2005. u 13:00 - pre 208 meseci
u bre prijatelju pa nisam retardiran zbao sam i sam to da nadjem...
ali dobro vec sam sam resio... grescica u sintaksi...
hvala u svakom slucaju

grrr
 
Odgovor na temu

[es] :: Flash :: .local to global action script PROBLEM

[ Pregleda: 3256 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.