Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 14-11-2005, 19:54   #1 (permalink)
irgendwann...
 
Benutzerbild von spino
 
Registriert seit: Nov 2005
Ort: Münster
Beiträge: 168
Problem bei einer Matrix animation über AS

Hi an alle, so wieder mal ein Problem vom spino.
Also ich habe versucht ein "Matrixscript" zu schreiben aber irgendwie will dad nicht so wie ich will.

Es Passiert einfach nichts, rein garnichts .
Also hier das AS:
PHP-Code:
_root.createEmptyMovieClip("goober",1);
with _root.goober )
{
    
colors = [ 0xFF00000x0000FF ];
    
alphas = [ 100100 ];
    
ratios = [ 00xFF ];
    
lineStyle50x00ff00 );
    
matrix = { a:500,b:0,c:0,d:0,e:200,f:0,g:350,h:200,i:1};
    
beginGradientFill"linear"colorsalphasratiosmatrix );
    
moveto (100,100);
    
lineto (100,300);
    
lineto (600,300);
    
lineto (600,100);
    
lineto (100,100);
    
endFill();
    
matrix = { matrixType:"box"x:100y:310w:500h:200r:(0/180)*Math.PI
    
};
    
beginGradientFill("linear"colorsalphasratiosmatrix );
    
moveto (100,310);
    
lineto (100,510);
    
lineto (600,510);
    
lineto (600,310);
    
lineto (100,310);
    
endFill();

So was mache ich bitte falsch gemacht.

Ok danke schon mal, Grüße Spino
__________________
.................................................. .................................................. .
Johannes Boyne | Flex & Flash Developer, Manager of the FlexUG - Germany/Cologne

(bd) boyne-developing | http://www.flexug.de
spino ist offline   Mit Zitat antworten
Alt 14-11-2005, 20:26   #2 (permalink)
using namespace
 
Benutzerbild von artjom
 
Registriert seit: May 2002
Ort: Hamburg underground
Beiträge: 657
das ist ein altbekannter flash-hilfe-bug. die funktionen moveto und lineto schreiben sich in wirklichkeit so:
moveTo, lineTo
Code:
_root.createEmptyMovieClip("goober",1); 
with ( _root.goober ) 
{ 
    colors = [ 0xFF0000, 0x0000FF ]; 
    alphas = [ 100, 100 ]; 
    ratios = [ 0, 0xFF ]; 
    lineStyle( 5, 0x00ff00 ); 
    matrix = { a:500,b:0,c:0,d:0,e:200,f:0,g:350,h:200,i:1}; 
    beginGradientFill( "linear", colors, alphas, ratios, matrix ); 
    moveTo (100,100); 
    lineTo (100,300); 
    lineTo (600,300); 
    lineTo (600,100); 
    lineTo (100,100); 
    endFill(); 
    matrix = { matrixType:"box", x:100, y:310, w:500, h:200, r:(0/180)*Math.PI 
    }; 
    beginGradientFill("linear", colors, alphas, ratios, matrix ); 
    moveTo (100,310); 
    lineTo (100,510); 
    lineTo (600,510); 
    lineTo (600,310); 
    lineTo (100,310); 
    endFill(); 
}
gruß
__________________
artjom.com -|- Melom
Einen PC beschleunigen? Klar, mit 9,81 m/s^2!
artjom ist offline   Mit Zitat antworten
Alt 14-11-2005, 21:03   #3 (permalink)
irgendwann...
 
Benutzerbild von spino
 
Registriert seit: Nov 2005
Ort: Münster
Beiträge: 168
jo super vielen dank, woher soll man das wissen, wenn Flash es selbe so vorgibt?

Ok jetzt weiß ich es ja vielen dank
der spino
__________________
.................................................. .................................................. .
Johannes Boyne | Flex & Flash Developer, Manager of the FlexUG - Germany/Cologne

(bd) boyne-developing | http://www.flexug.de
spino ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 04:50 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele