Cambiare il pivot di un movieclip in as3

Animazioni, AS3, Flash, Flex Soft! Nessun Commento »

Cambiare il pivot di un MovieClip dinamicamente da as3 è molto semplice, seguire il codice seguente che è molto esplicativo:

 

Leggi il resto di questo articolo »

Classe Matrix as3

AS3, Flash, Flex Soft! Nessun Commento »

Qualche informazione sulla classe Matrix. La classe Matrix rappresenta una trasformazione che determina come mappare un punto da una posizione ad un’altra nello spazio.

A matrix is used to store datas used in calculation.
Una matrice è usata per memorizzare i dati in un calcolo.Il calcolo può essere usato nelle seguenti classi:
– flash.geom.Matrix,
– flash.filters.ColorMatrixFilter
– flash.filters.ConvolutionFilter.

Leggi il resto di questo articolo »

Creare un file IPA per iPhone/iPod Touch

iPhone, MacOSX Soft! Nessun Commento »

Ecco la lista dei passi da fare per creare un file .ipa:

What you need:
1: An app
2: A patched MobileInstallation file installed on your iPhone or iPod Touch. 
3: Lastly, you need to know that when I say "ProgName", substitute the name of the program you're working with 
Getting the iTunesArtwork file
The iTunesArtwork file is simply a jpeg image with the extension taken off, and is included in application's install folder on your device for every app downloaded from the app store. This image is what appears in the Applications section of iTunes as the icon for the app, and is definitely nice to have -- if you don't have it, you get a generic, black icon that no one wants to see. If you have the iTunesArtwork file, skip all this and go down to the next red headline! Otherwise, read on:
1: Open iTunes on your computer and find your application in the iTunes Music Store. On the application's page, find the app icon at the top-left corner of the page and right-click it. Now choose "Copy iTunes Store URL". Your clipboard now contains something like this:
Code:
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284962368&mt=8
2: Paste that somewhere (in your browser or a text editor) and replace the section that says
Code:
phobos.apple.com
with this:
Code:
ax.phobos.apple.com.edgesuite.net
Go to the resulting URL in your browser.

Leggi il resto di questo articolo »

Controllare aggiornamento di un file remoto con object-c e cocoatouch

cocos2d, iPad, iPhone, MacOSX Soft! Nessun Commento »


Un modo semplice e veloce per controllare se un file è aggiornato è controllare la sua data di modifica. Per fare questo cocoa-touch ci offre delle librerie che lo fanno senza scrivere troppe linee di codice. Ecco un esempio:
Leggi il resto di questo articolo »

Objective-C Singleton Class template

iPad, iPhone, MacOSX Soft! Nessun Commento »

Oggi presento un template molto utile nello sviluppo, il template di un singleton in Object-C.

Per usare il template è sufficiente creare un nuovo file e selezionare NSObject Based Singleton class dal tuo progetto.
Il Singleton è un design pattern creazionale che ha lo scopo di garantire che di una determinata classe venga creata una e una sola istanza, e di fornire un punto di accesso globale a tale istanza.
esempio:
Leggi il resto di questo articolo »

Green Threads risolve actionscript3 senza multi-threads

AS3, Flex oscar Nessun Commento »

Green Threads

In action script non possiamo usare un vero sistema di multi thread, ma qualunque linguaggio può simularere i muti thread, questa tecnica viene chiamata Green Threads. Molti linguaggi hanno già utilizzata questa tecnica. I threads in Ruby sono ancora green e anche le prime versioni di java lo erano. Drew Cummins implementa una versione di ciò per Flashplayer10. Chubbard ha riscritto tutto rimuovendo le dipendenze da FlashPlayer10 e cambiato qualche API così gli eventi lanciati sono più naturali, aggiungendo prima eventi di progress e opzionali progress tracking.

Leggi il resto di questo articolo »

Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi