Archive for February, 2008

Questo articolo è una traduzione di una parte dell’articolo di Colin Moock, che potete trovare a questo indirizzo. Mi sono limitato a fare la traduzione.

Il Flash Player 6 ha introdotto una sandbox di sicurezza che implementa le seguenti restrizioni:

  • Un filmato caricato su un dominio non può caricare dati da un altro dominio.
  • Un filmato caricato su un dominio non può accedere alle proprietà e ai metodi di un filmato caricato da un altro dominio.

Il Flash Player 7 restringe la sandbox di sicurezza. Nel Flash Player 6, infatti, i sottodomini dello stesso dominio potevano accedersi l’un l’altro. Nel Flash Player 7, i dati possono essere solamente caricati dallo stesso esatto dominio dal quale viene caricato il filmato. Per esempio, il Flash Player 6 permetterà a un filmato caricato su site.fuoridalcerchio.net di caricare delle news da news.fuoridalcerchio.net. Ma nel Flash Player 7, il tentativo fallirà.

Ecco un altro esempio più serio: nel Flash Player 7, se si accede a un sito con una URL corta, come http://fuoridalcerchio.net (senza il www), i filmati su questo sito non potranno caricare dati dall’url completa del sito, www.fuoridalcerchio.net. Questa limitazione colpisce i file pubblicati per Flash Player 6, come anche quelli pubblicati per Flash Player 7. Se l’swf è pubblicato per Flash Player 6 o precedente, allora il Flash Player 7 mostrerà una finestra di avviso, chiedendo all’utente di permettere al filmato l’accesso al dominio esterno.

Per dare automaticamente al filmato caricato da iltuosito.com accesso ai dati su www.iltuosito.com, si ha la necessità di utilizzare un file di cross-domain policy. I passi seguenti descrivono come il proprietario di iltuosito.com possa aggiungere il file di cross-domain policy al suo sito, permettendo così il flusso di dati da iltuosito.com a www.iltuosito.com e viceversa.

  • Create un nuovo file di testo chiamato crossdomain.xml
  • Aprite il file crossdomain.xml in un editor di testo.
  • Aggiungete il seguente codice xml nel file:<?xml version=”1.0″?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/
    dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="www.iltuosito.com" />
    <allow-access-from domain="iltuosito.com" />
    </cross-domain-policy>
  • Salvate il file.
  • Caricatelo nella root del sito, in modo che il file sia raggiungibile all’indirizzo www.iltuosito.com/crossdomain.xml

Se ospitate contenuto Flash che carica XML oppure variabili, oppure vi connettete a un server XMLSocket, dovreste seguire i consigli dati sopra, sostituendo il dominio del vostro sito con “iltuosito.com” nelle istruzioni. Se il vostro sito carica dati utilizzando una url assoluta, ma non ha un file di cross-domain policy, i visitatori che utilizzano il Flash Player 7 vedranno un avviso di sicurezza. Notate bene che se caricate i dati utilizzando una url relativa, per esempio ../newsfeed.xml invece che http://iltuosito.com/newsfeed.xml, l’avviso di sicurezza non apparirà poichè la url relativa risolverà il dominio usato per vedere il sito, e cioè iltuosito.com o www.iltuosito.com, a seconda dei casi.

Previously on Fuoridalcerchio.net

After having made scrollbars in every possible way and beyond, this is the latest one! It is a site scrollbar, something similar to the browser window one. It gently lays on the left of your navigation window and let you scroll your flash content by dragging or by mousewheeling.

Steps to integrate it in your projects are:

  1. Copy the sitescrollbar movieclip to your project. Be careful of putting it in the highest displayed layer.
  2. Set the Stage.scaleMode to noScale and the Stage.align to Top Left (”TL”).
  3. Fill in the proper movieclip reference inside the Scrollbar. You need to fill the content movieclip and the background movieclip. Otherwise it won’t work. You can set the Background movieclip to null, if not present.
  4. Turn the hasBlur variable to true if you wanto to blur the content. If this is set to true, remember to switch the _content.cacheAsBitmap to false.

Enjoy your scrolling!
sscroll1.jpg

sscroll2.jpg

sscroll3.jpg

Download the SiteScrollbar

I’ve been on Wordpress for four months, up to now.
This is a list, i will update, of the 10 plugins i found more useful, together with a short description of what they can do for your blog.

Enjoy!

  1. Tiger Style Administration
    This changes the style of your administration area to a version with more style.
  2. All in One SEO Pack
    This can make your page fittier to enter the ranks of search engines.
  3. Lightbox 2
    Trust me. This is quite necessary if you want to show image in your blog with a little style :)
  4. Kimili Flash Embed
    If you want to add SWF files to your posts, this is your best choice!
  5. NextGEN Gallery
    It will let you upload and configure your image albums, to show images on your posts. It needs the Lightbox 2 Plugin.
  6. Live
    This can monitor the traffic on your blog, in real-time.
  7. Google XML Sitemaps
    This can create Google Sitemaps automatically.
  8. Google Analytics
    Add this plugin to your blog if you need your page to have the google analytics code on it.
  9. wp-cache
    Your blog is loading too slowly? Add this plugin to cache it in a better way.
  10. CodeHighlighter
    You really need this if you are going to insert source code in posts!

Hi!

Been experimenting on ComputeSpectrum in as3, with a little bitmap filtering on.

This is the result. Enjoy!


You can find more on ComputeSpectrum feature, here. I don’t want to write more than this on Sunday, sorry :)

Next entries »