SWiSH Forum
Forum użytkowników programów SWiSH

SWiSH Max - Wielkosc animacji

Alexi - Wto 28 Paź, 2008 11:41
Temat postu: Wielkosc animacji
Mam pytanie. Otoz mam animacje. I ona zawsze jest taka jak wielkosc strony nie wazne czy fire fox czy explorer. Tzn. Jesli zrobie strone na 5cm na 5cm to i animacja bedzie widoczna cala ale w wielkosci 5cm na 5cm. Co zrobic by wielkosc jej byla stala niezaleznie od zmian wielkosci okna przegladarki?? Bardzo prosze o pomoc.
sl01k - Wto 28 Paź, 2008 17:27

Kod:
onSelfEvent (load) {
    Stage.scaleMode = "noScale";
    Stage.align = "TL";}
w pierwszej scenie na dziendobry

Opcje pozycji (w przykladzie jest "TL" ...
Kod:
" " (default): displays the Movie centered in the 'Movie' window. All edges might be cropped if the 'Movie' window is smaller than the Movie

"L" (left): aligns the Movie along the left edge of the 'Movie' window and crops the top, bottom, and right sides as necessary

"R" (right): aligns the Movie along the right edge of the 'Movie' window and crops the top, bottom, and left sides as necessary

"T" (top): aligns the Movie along the top edge of the 'Movie' window and crops the bottom, left, and right sides as necessary

"B" (bottom): aligns the Movie along the bottom edge of the 'Movie' window and crops the top, left, and right sides as necessary

"TL" (top left): aligns the Movie along the top and left edges of the 'Movie' window and crops the bottom and right sides as necessary

"TR" (top Right: aligns the Movie along the top and right edges of the 'Movie' window and crops the top and left sides as necessary

"BL" (bottom left): aligns the Movie along the bottom and left edges of the 'Movie' window and crops the top and right sides as necessary

"BR" (bottom right): aligns the Movie along the bottom and right edges of the 'Movie' window and crops the top and left sides as necessary.

Alexi - Wto 28 Paź, 2008 22:36

No powiem ze nie bardzo mi to dziala. opcje LOAD uznaje za blad w scrypcie.

Kod:
onFrame (1) {{Stage.scaleMode = "noScale";
    Stage.align = "T";}
stop();}


Doszedlem do czegos takiego i juz nie zmienia wielkosci ale tez nie idzie wyswietlic calego poprzez scroll w przegladarce. Poptrzebuje jeszcze mozliwosci scrollu.

Kermit - Pią 31 Paź, 2008 23:11

a jakiego swisha uzywasz ? w tym kodzie jest blad. powinno byc:
Kod:
onFrame(1){
    Stage.scaleMode = "noScale";
    Stage.align = "T";
}

sl01k - Sob 01 Lis, 2008 11:35

Cytat:
w tym kodzie jest blad. powinno byc:
taki bład to niebład
a jesli chodzi o scroll to zalezy on od css'ow jezeli nic w nich niemasz to powninien sie sam zrobic... zalezy tez jak wkladasz plik w htmla...
tutaj masz raczej problem po stronie xhtml'a/css'ow


Powered by phpBB modified by Przemo © 2003 phpBB Group