/ Forside / Teknologi / Multimedie & design / Flash / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
Styre eksterne swf'er
Fra : MZH


Dato : 09-02-02 17:50

Jeg vil gerne hente en swf-fil fra en ekstern URL ind på min Flash
side (altså en swf fil jeg ikke selv har lavet).

Det gør jeg vha. LoadMovie, men er der nogen måde at skalere den
importerede swf på?

Jeg ved godt, at hvis jeg loader filmen ind i et target, så kan jeg
skalere filmen ved at skalere mit target, men problemet er bare, at
når jeg bruger target i stedet for level, så starter den importerede
swf ikke - den bliver bare stående i frame 1 (så vidt jeg kan se).

Forslag?



 
 
Papusniak (10-02-2002)
Kommentar
Fra : Papusniak


Dato : 10-02-02 00:59

Du kan lave fx sådan noget:
Du skal have i alt 3 frames
Hvis man klikker på knappen så går den til frame fx 20 og der sætter du
sådan noget skript


slutpositionmapx = 768;
slutpositionmapy = -61;
setProperty (map, _x, positionmapx);
setProperty (map, _y, positionmapy); // map er dit kort

if ((positionmapx > slutpositionmapx) and not (positionmapx -
slutpositionmapx >= -35 and positionmapx - slutpositionmapx <= 35)){
positionmapx = (positionmapx-30);
}
if ((positionmapy > slutpositionmapy) and not (positionmapy -
slutpositionmapy >= -35 and positionmapy - slutpositionmapy <= 35)){
positionmapy = (positionmapy-30);
}
if ((positionmapx < slutpositionmapx) and not (positionmapx -
slutpositionmapx <= 35 and positionmapx - slutpositionmapx >= - 35)){
positionmapx = (positionmapx+30);
}
if ((positionmapy < slutpositionmapy) and not (positionmapy -
slutpositionmapy <= 35 and positionmapy - slutpositionmapy >= - 35)){
positionmapy = (positionmapy+30);
}




if ((positionmapx - slutpositionmapx >= -35) and (positionmapx -
slutpositionmapx < 0)) {
positionmapx = (positionmapx+1);
}
if ((positionmapy - slutpositionmapy >= -35) and (positionmapy -
slutpositionmapy < 0)) {
positionmapy = (positionmapy+1);
}
if ((positionmapx - slutpositionmapx <= 35) and (positionmapx -
slutpositionmapx > 0)){
positionmapx = (positionmapx-1);
}
if ((positionmapy - slutpositionmapy <= 35) and (positionmapy -
slutpositionmapy > 0)) {
positionmapy = (positionmapy-1);
}


I frame 21 skriver du:

if ((positionmapx - slutpositionmapx == 0) and (positionmapy -
slutpositionmapy == 0)) {
gotoAndStop (22);
}
gotoAndPlay (20);



I de 3 frames skal du have selvfølgelig det samme baggrund.



Papusniak (10-02-2002)
Kommentar
Fra : Papusniak


Dato : 10-02-02 01:12

Ups



Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408528
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste