36937
505
Zoom out
Zoom in
Vorherige Seite
1/527
Nächste Seite
FLASH CS3
User Guide
499
Limittheuseofglobalvariables,becausetheyarenotmarkedforgarbagecollectionifthemovieclipthatdefined
them is removed.
Avoid using the standard user interface components (available in the Components panel in Flash). These compo-
nents are designed to run on desktop computers and are not optimized to run on mobile devices.
Whenever possible, avoid deeply nested functions.
Avoid referencing nonexistent variables, objects, or functions. Compared to the desktop version of Flash Player,
Flash Lite 2 looks up references to nonexistent variables slowly, which can significantly affect performance.
Avoid defining functions using anonymous syntax. For example, myObj.eventName = function{ ...}.
Explicitly defined functions are more efficient, such as
function myFunc { ...}; my Obj.eventName =
myFunc;.
Minimize the use of Math functions and floating-point numbers. Calculating these values slows performance. If
you must use the Math routines, consider precalculating the values and storing them in an array of variables.
Retrieving the values from a data table is much faster than having Flash calculate them at run time.
For more tips and techniques for creating content for mobile phones and devices, see
www.adobe.com/go/learn_cs_mobilewiki_en.
Managing Flash Lite file memory for mobile devices
Flash Lite regularly clears from memory any objects and variables that a file no longer references. This is known as
garbage collection. Flash Lite runs its garbage-collection process once every 60 seconds, or whenever usage of file
memory increases suddenly by 20% or more.
Although you cannot control how and when Flash Lite performs garbage collection, you can still free unneeded
memory deliberately. For timeline or global variables, use the
delete statement to free the memory that Action-
Script objects use. For local variables—for example, a variable defined within a function definition—you cant use
the
delete statement to free an objects memory, but you can set to null the variable that references the object. This
frees the memory that the object uses, provided there are no other references to that object.
Thefollowingtwocodeexamplesshowhowtofreememorythatobjectsusebydeletingthevariablethatreferences
those objects. The examples are identical, except that the first example creates a timeline variable and the second
creates a global variable.
505

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Adobe Flash CS3 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info