Tuesday, December 14, 2010

Kamehasutra 2 Pl Online

3 º FALL LIBERTARIAN "100 of CNT"




"The Hornet's Nest # 8, with the flag of the Athenian"


"the poster"



"Something in the street called the meeting"

"Emotional recital"


"More emotional still"

"And pretty"

"explains Gonzalo syndicalist culture throughout its 100 years"

"A fine example of the day mycological "

"Paco reviews the pickup, an expert on it,"

Saturday, November 13, 2010

Alexos Texas No Black Guys

STOP THE GENOCIDE of the Saharawi people




Saturday, October 9, 2010

Sore Vulva After Birth

Connecting to PostgreSQL using JDBC

Well, frankly, this is the first time I post code and the idea that nothing is to publish the best source of history, but help provide a guide for programmers who need it in some way. So hopefully my efforts will be helpful.
Normally one of the first things we do when starting a new system is to create modules for connection to the database, so let's start there also.
Today we will see a little class to connect to a Postgres database via JDBC.
depart code simpler and ordering go to get the way we seem the most appropriate.
create a class then we will call simply " Conexion" with the following code:


/ *
* import the necessary libraries to connect
* /
import java.sql.Connection;
java.sql.DriverManager import;


/ * define and publish
*
class * / public class Connection

{
/ * * create a variable
static Connection type
* that will take our connection all the time
* to run the program or until such time that the
* cut it
program * / protected static Connection connection
;

public static void main (String [] args)
{


try {/ *
; * create the url link where
* SERVER: Is the name or server IP address database
* Dbname: The name of the database which we wish to connect
* USER: Our user base
data * Password: The password of our user database
* /
String url = "jdbc: postgresql: / / SERVER: 5432/BASE_DE_DATOS"
; Class.forName ("org.postgresql.Driver");
; connection = DriverManager.getConnection (url, "username", "PASSWORD");
/ *
* If the connection is made with successfully launched a
message * /
System.out.println ("Connection Successful");
/ *
* Once the task
close the connection * /
conexion.close();
        }
        catch (Exception e)
        {
            /*
             * In the event of any error in the code during execution
* skip a message and printed on the console trace of
exception * /
; e.printStackTrace ();
System.out.println ("FAILED TO MAKE THE CONNECTION");

}}}



Ok, I think the code is well explained here, now that we begin to shape connection so that the code can serve.
first thing we do is separate the method of connecting the disconnect method, defining each as a different method and outside the method main ().


import java.sql.Connection;
java.sql.DriverManager import;


public class Connection {protected static Connection connection
;

public static void main ( String [] args)

{
connect ():
, close ();
}

public static boolean login () {

try {

; String url = "jdbc: postgresql: / / SERVER: 5432/BASE_DE_DATOS"
Class.forName ("org.postgresql.Driver ");
connection = DriverManager.getConnection (url," username "," PASSWORD ");

System.out.println ("CONNECTION Successful ");

return true

} catch (Exception e) {

e.printStackTrace ();
System.out.println ("FAILED TO MAKE THE CONNECTION");

return false;}

}


public static boolean close ()
{
try {

conexion.close ();

System.out.println ("The connection was closed successfully");
return true;
}

            catch (Exception e)
            {
                e.printStackTrace();

                System.out.println ("Failed to close connection");
; return false;}


}}


Running The above code simply connect our application to the database, we launched a message that the connection has been established, and finally we disconnect again send a message that the connection has been terminated. Already
end add two more methods that are to execute our query in sql. For those who are wondering why I answer two methods simple. Sql commands to send to our database we use a class called Statement which, among all methods have two that we will take over the hand and methods executeQuery () executeUpdate and () .
Said in the quickest and easiest way possible executeQuery () used to send any questions and bring results, and the executeUpdate () is to send the data update command such as INSERT, UPDATE and DELETE.
also use the ResultSet object to make the results of its consultations to the database. So add two more methods with which we will insert, update and delete data and query data. Our code would look like.


import java.sql.Connection;
java.sql.DriverManager import;

import java.sql.Statement;
import java.sql.ResultSet;

public class Conexion
{
    protected static Connection conexion;

    private static Statement stmt;

    public static void main(String[] args)

    {
        /*
    * application connects to the database
* /
: connect ():
/ *
* Insert a new record to a table called "cargo" that has two fields: id, description
* /

if (execute ("INSERT INTO post (id, description) VALUES (1, 'Collector')"))
{
/ *
insertion * If registration is successful the method We will return "true"
* now send the query to query using the "see" and save the
* Result in a variable of type ResultSet

* /

ResultSet result = query ("SELECT id, description FROM post WHERE id = 1"); ;
/ *
* If the query brought results move the cursor to the first record, this method returns TRUE
* when the list of results containing at least one record
             */

            if(resultado.first())
            {
  / *
; * Once placed the cursor in the first register your details printed on the console
; * The ResultSet can return the data type we ask where possible
, * to get methods. For the "id" we could have a return getString and we
* The data as a string, as the data is numeric we could make a return getInt and we
* the data as an Integer (Provided it is within the range of numbers allowed for an Integer)
; * /
System.out.println (" CONSULTATION returned: "+
resultado.getString("id")+" "+
                                                 resultado.getString("descripcion"))

            }
        }
        /*
         * Finally close the connection
* /
close () ;

}

public static boolean connect ()
{
        try
       {
            String url = "jdbc:postgresql://SERVIDOR:5432/BASE_DE_DATOS";
            Class.forName("org.postgresql.Driver");
            connection = DriverManager.getConnection (url, "username", "PASSWORD");
System.out.println ("Connection made with success ");

return true

;}
catch (Exception e) {

e.printStackTrace ();
System.out.println ("Could not connect");

return false;}
}


; public static boolean close ()

{if (connection! = null)

{
            try

            {
                conexion.close();

                System.out.println ("Connection successfully closed");
return true;}

catch (Exception e)
            {
                e.printStackTrace();

                System.out.println ("Failed to close connection");
; return false;

}}

else

{System.out.println ( "The connection is already closed");
return true;
;}
}


public static boolean execute (String sql)
{
; try

{
; / *
* Create the Statement in connection
, * / stmt = conexion.createStatement
();

/ *
, * execute the SQL statement using the method executeUpdate ()
* If no errors back guarantee TRUE
             */             stmt.executeUpdate(sql);
            return true;
        }
catch (Exception e)
{
e.printStackTrace ();
System.out . println ("Error: Could not perform operation");
            return false;
        }
    }

    public static ResultSet consultar(String sql) 

    {
        /*
* start the variable result will contain the query result
, * /
ResultSet result = null;
try

; {
/ *
; * Create the Statement prepare for a visit by two parameters
, * ResultSet.TYP E_SCROLL_SENSITIVE: Indicates that you can travel freely between
*     registros devueltos
             * ResultSet.CONCUR_READ_ONLY: Indica que los resultados solo se usarán para lectura
             *                       as there are ways to update records
, * database through the ResultSet

* /
; Statement stmt = conexion.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, 

                                                                            ResultSet.CONCUR_READ_ONLY)
/ *

* We save the results in our ResultSet and return it
; * /
result = stmt.executeQuery (sql);
;}

catch (Exception e)
; {
e.printStackTrace ();
System.out.println ("Error: Could not perform operation");

} return result;}

}


Finally we have a class (although it is just basic) with enough features to connect to a database, to query and manage data using SQL commands.
Hope you enjoyed it and hopefully find critical comments and suggestions for further improvement, any queries can leave it in the comments and posts next try to resolve all doubts.

Wednesday, October 6, 2010

Master Pyragon Snooker Cue Price



Good People!

My name is David Reese, I'm System Analyst and most of all I work in software development, and although I am trying to learn python now mostly java development. My intention
here is to go throwing codes to help those seeking help in developing java applications and the ideas that are coming in programming, design, etc.
I hope everyone benefits from them.


Blessings and much success for everyone!

Monday, October 4, 2010

Shannon Whirry Sliver

"The sun does not rise to tod @ s"

American Harvest Convetion Perfection Co 200t

photos Concentration Hervás





Tuesday, September 28, 2010

Basketball Gyms In Nj

LABOR REFORM: NEW TO SLAVERY.

When was adopted in 1978 the Status of work ja ers tod @ s believed that the operating system created by the dictatorship was over, but nothing further from reality. The approval of one of the most progressive laws and more protective of the rights of l @ s @ s works of the Western world was only a mirage of union struggles of the 60 and 70. It quickly became a bargaining chip to corrupt unions (CCOO and UGT) and for some politicians, businessmen (UCD, PSOE, PP Vs Alianza Popular) economic benefits that avid fast im put the whole machine a free market economy based on exploitation of man by man.

To create this new world was needed or na lasting social peace, and what better to drain a @ s @ s worker at negotiating tables where the majority unions received grants millions to change and reform a the job market again, perverting our rights and then dramatize a oposic ion front of what they themselves had negotiated.

Last year CCOO and UGT pocketed 200 million euros in direct subsidies and training.

After 7 reforms status worker l @ s @ s, 3 and 2 labor reforms of the pension system very little is written is our rights.

A year ago, Zapatero (apostate circumstantial capitalism for re mo) swore they would not approve legislation harmful to workers l @ s @ s, we knew he was lying as lying now saying "this reform dismissal does not promote labor cheap and precarious for l @ s youth. "

Some data for reflection:

-generalizes the contract for work and service and low compensation to 12 days per year.

    "More precarious public admin. Public to incluirl as in this reform, with contracts t emporales 8 days of compensation per year.

-Layoffs of up to 30% of the workforce in large companies because the employer provides economic losses (reduction in profit margin) and productive organization, ba Jando compensation to 33 days year.

-half reduction of contracted working hours for productive criteria or provision of economic losses.

-building contracts em unemployment will apply unless disadvantaged groups and low severance pay to 33 days per year (This contract was applied only 1% of people who worked in the past year.)

-The temporary employment notif an part of the public employment system.

These are just some of the beads with the government "socialist" is intended to rejoice in life.

" refeorma This insecurity does not promote" not clear, this only is a game where we @ s @ s trajador tickets are only a monopoly with q ue play the sausages that caused the crisis (in the last 10 years of political corruption has disappeared from the public purse Eu equivalent of 26% of U.S. GDP).

This labor reform still cause further injustice and frustration for we, and our @ s hij @ s.

now supposedly major unions (CCOO and UGT) we call a general strike after being approved and labor reform in parliament, that very few insurance @ s worker will second, some fear and others because they feel betrayed. We the @ s we suggest that you go on strike or not, you in the PRMS organicéis those of an autonomous and independent of political bosses and union, and we address this attack on our right to a job and decent wages.

All is not lost, we will have to meet soon to reform pensions and collective bargaining (sectoral agreements), we will have another opportunity to once and for all end this at garlic scoundrels.

To s is WE ARE clear, the work is another form of slavery, but we better defend with passion the rights we have achieved so much pain if we are not only worn gears end up being a machinery breakdown, which is what capitalism has become.

concentration against labor reform on 28 September at 19:30 at the four roads.

No to exploitation.

not to to labor reform.

No al capitalismo.

Por la anarqu ía. Por la autogestión.



Aten eo Lib erta rio de Hervás.



Sunday, August 29, 2010

How Many Navy Sailors Have Died In 2010

Latest photos in some breaks

In recent months I have been able to escape a few days. So I took the opportunity to take some pictures:

Madrid: The Palacio de Cristal

El Palacio de Cristal

in Tarifa I was struck by the shapes and shadows that make the fence along the dunes

Fronteras

De Asturias share two images, the first is Cudillero, a charming fishing village, the other is from the Lagos de Covadonga, which was quite foggy on the day that I visited:

El encanto de Cudillero

Lagos entre niebla

Saturday, August 21, 2010

Buffalo Drive Remove Partition

Shipping bidirectional data ActionScript to JavaScript Example

Here is an example of sending data from JavaScript to ActionScript 3 and vice versa:


You can make Flash-ActionScript send and receive data from JavaScript and vice versa. I show html code to javascript code that allows you to transfer information.

  \u0026lt;! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN" "http://www.w3.org/TR/html4/loose.dtd"> 
\u0026lt;html> ;

\u0026lt;head> \u0026lt;title> bidirectional shipping \u0026lt;/ title>
\u0026lt;/ head>
<body>
<table style="border: 0; cellspacing: 0;cellpadding: 0;">
<tr>
<td>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" allowScriptAccess="always" allowNetworking="all" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="150" height="150" id="EnvioDatos" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="EnvioDatos.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#CCCCCC" />
<embed src="EnvioDatos.swf" quality="high" bgcolor="#CCCCCC" width="150" height="150" name="EnvioDatos" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_es"></embed>
</object>
</td>
<td style="background-color:#EAEAEA;width: 150px; height: 150px; vertical-align: top; "width =" 150 "height =" 150 ">
\u0026lt;form method="post" action=""> JavaScript \u0026lt;br/>
\u0026lt;input id =" valorEnvio "type =" text "name =" valorEnvio "size =" 10 "> \u0026lt;input type="button"
value="enviar" onclick="enviaDatos();"> \u0026lt;br/> \u0026lt; br /> Posted by \u0026lt;br/>
ActionScript: \u0026lt;br/>
\u0026lt;input id = "valorEnviadoPorAS" type = "text" value = "" name = "valorEnviadoPorAS" disabled> \u0026lt;/ form> \u0026lt;/ td>
\u0026lt;/ tr>
\u0026lt;/ table>
\u0026lt;script type="text/javascript">
function getFlashMovie (movie name) {
was isIE = navigator.appName.indexOf ("Microsoft")! = -1 ;
return (isIE)? window [movie name]: document [movie name];}

function javascriptRecibe (cadena) {
was myValorEnviadoPorAS = document.getElementById ('valorEnviadoPorAS');
myValorEnviadoPorAS.value = cadena;
}
enviaDatos function () {
was myValorEnvio = document.getElementById ('valorEnvio');
getFlashMovie ("EnvioDatos"). flashRecibe (myValorEnvio.value);

} \u0026lt;/ script>
\u0026lt;/ body>
\u0026lt;/ html>


getFlashMovie function, permtie in ancient Explorer browsers get a JavaScript reference the Flash object.

javascriptRecibe function is called from ActionScript with the help of ExternalInterface.call function.

ExternalInterface.call (javascriptRecibe "txtValorEnvio.text)

enviaDatos function gets a reference to Flash object by the name used in the document HTML EnvioDatos "and calls the registered flashRecibe function in ActionScript ExternalInterface.addCallback

ExternalInterface.addCallback (flashRecibe" flashRecibe)


  package {import 
flash.display.MovieClip;
flash.external.ExternalInterface import, import
flash.text.TextField;
flash.events.MouseEvent import;
/ **
* ... Liling

* @ author * / public class
EnvioDatos extends MovieClip {public var
txtValorEnviadoPorJS: TextField;
public var txtValorEnvio : TextField;
public var btnEnviar: MovieClip;
EnvioDatos
public function () {
btnEnviar.addEventListener (MouseEvent.CLICK, enviaDatos)
ExternalInterface.addCallback (flashRecibe "flashRecibe);}


enviaDatos public function ( event: MouseEvent) {
ExternalInterface.call (javascriptRecibe "txtValorEnvio.text);}


flashRecibe public function (value: String) {
txtValorEnviadoPorJS.text = value;

}}}



The ActionScript code is similar but as mentioned earlier with line:

ExternalInterface.addCallback (flashRecibe "flashRecibe)

establish the function in ActionScript that is going to take to meet the request comes from JavaScript.

enviaDatos function makes a direct call to javascriptRecibe function with an argument that has been sending data through ActionScript function ExternalInterface.call

ExternalInterface.call (javascriptRecibe " , txtValorEnvio.text)

I hope this example will be useful.

Monday, August 16, 2010

Wife Breastfeeding Baby

Facebook



general description I show an example to connect a Flash animation to Facebook using Facebook libraries for Flash and Javascript (Client Library Flash and JavaScript JDK), the why we use Javascript is because with these libraries to Facebook can create a web log ( WebSession ) without the use of the secret key of the Facebook application that generates.

For this example, follow these steps:
  • Create an application in Facebook Developers
  • Download Flash and JavaScript Client Library JDK Facebook
  • Create html file
  • Create the actionscript

Create an application in Facebook Developers

First of all you must configure a new apliaciones facebook. This you can do at the following address:


a single panel appears that allows you to add applications.

You must specify the name of your application that Facebook users will identify.

In Facebook the registration process will ask you some important information: Name, address the implementation and application domain.


not forget at least those three are the most important.


Facebook to create applications only if it detects that a user contacts you with real data.


Download Flash Client Library for Facebook

This library you should give it high in Adobe Flash, the main project page here:


In the downloads section below searches the library


Once the download add it in Adobe Flash: Edit> Preferences> Actionscript you click on Settings ActionScript3 and add the file in the library paths.



JavaScript SDK not need to download directly, as we will see the html code below, but if you need information about you can see this link:



Create html file

html code I show you below:

  \u0026lt;html xmlns = "http://www.w3.org/1999/xhtml "xml: lang =" en "lang =" en "> 
\u0026lt;head>
charset=iso-8859-1" /> \u0026lt;meta http-equiv="Content-Type" content="text/html; ;
\u0026lt;title> EjemploFBC \u0026lt;/ title>
\u0026lt;/ head> \u0026lt;body bgcolor="#ffffff">


\u0026lt;div id="fb-root"> \u0026lt;/ div> \u0026lt;script
src="http://connect.facebook.net/en_US/all.js"> \u0026lt;/ script>

\u0026lt;script>
getFlashMovie function (moviename) {var isIE = navigator.appName
. indexOf ("Microsoft")! = -1;
return (isIE)? window [moviename]: document [moviename];}

solicitarDatosAcceso function () {
FB.init ({appId:'----------------', status: true, cookie : true, XFBML: true});
FB.login (function (response) {
if (response.session) {/ / user access to Facebook
llenaDatos ();
} Else {/ / User cancel your access
alert ('Unable !!');

}});}

llenaDatos function () {
getFlashMovie (EjemploFBC "). PasaDatosDeSesion (
FB.getSession (). session_key,
FB.getSession (). secret,
FB.getSession (). uid,
FB.getSession (). expires,
FB.getSession (). sig);

} //--> ;
\u0026lt;/ script>
\u0026lt;object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab # version = 10,0,0,0 " width = "550" height = "400" id = "EjemploFBC" align = "middle">
\u0026lt;param name="allowScriptAccess" value="sameDomain" />
\u0026lt;param name = "allowFullScreen" value = "false" />
\u0026lt;param name="movie"
value="EjemploFBC.swf" /> \u0026lt;param name="quality" value="high" />
\u0026lt;param name = "bgcolor "value =" # CCCCCC "/>
\u0026lt;embed src =" EjemploFBC.swf "quality =" high "bgcolor =" # CCCCCC "width =" 550 "height =" 400 "name =" EjemploFBC "align =" middle "allowScriptAccess =" sameDomain "allowFullScreen =" false " type = "application / x-shockwave-flash" pluginspage = "http://www.adobe.com/go/getflashplayer_es" />
\u0026lt;/ object>
\u0026lt;/ body>
\u0026lt;/ html>


Important points to note are: First

invoke the JavaScript SDK libraries from Facebook. \u0026lt;div

  id="fb-root"> \u0026lt;/ div> \u0026lt;script 
src="http://connect.facebook.net/en_US/all.js"> \u0026lt;/ script> ;

is important to put the label div with id = "fb_root" before calling the libraries, otherwise it will not work correctly.

solicitarDatosAcceso function () not allow the user to display a popup window asking the user access data to our application on facebook.
is important to notice that the function:

FB.init ({appId:'-----------', status: true Cookie: true, XFBML: true});

has as one of its arguments, the "API Key " of your application and not the secret key that Facebook generated.

If the connection is successful then sends the session data ( WebSession ) with the help of the function llenaDatos ()
object of swf Flash EjemploFBC name, your case will be the name you give to your animation . This section of code allows us to transfer data from JavaScript to ActionScript, the code of our animacón must do something to make this happen with the help of functions:

ExternalInterface. and ExternalInterface call. addCallback

These are functions of Flash to pass data between Javascript and Actionscript.

  llenaDatos function () {
getFlashMovie (EjemploFBC "). PasaDatosDeSesion (
FB.getSession (). Session_key,
FB.getSession (). Secret,
FB.getSession (). Uid,
FB. getSession (). expires,
FB.getSession (). sig);}



Create the

Actionscript actionscript code is a bit more elaborate, I show below:

  
package {/ ** *
...
* @author lilingo
*/
import com.facebook.commands.users.GetInfo;
import com.facebook.data.users.FacebookUser;
import com.facebook.data.users.GetInfoData;
import com.facebook.Facebook;
import com.facebook.net.FacebookCall;
import com.facebook.utils.FacebookSessionUtil;
import com.facebook.events.FacebookEvent;
import com.facebook.session.WebSession;
import com.facebook.data.users.FacebookUser;

import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.external.ExternalInterface;

import flash.display.Loader;
import flash.net.URLRequest;

public class EjemploFBC extends MovieClip {
public var txtEstatus : TextField;
public var txtNombre : TextField;
public var imagenUsuario : MovieClip;

public var btnValidateLogin : SimpleButton;
public var facebookSession : FacebookSessionUtil;
public var facebook : Facebook;

public var session : WebSession;
public var user : FacebookUser;
public var user_id : String;

var miCargador : Loader;

public function EjemploFBC() {
/ / Listen to the events click the button "Request Login"
btnSolicitaLogin.addEventListener (MouseEvent.CLICK, solicitarDatosDeAccesoAFacebook)
/ / We register the function "fbUserLoggedIn"
ExternalInterface.addCallback (pasaDatosDeSesion "manejaDatosFBJavascrit);}


/ / Make the call to the function "solicitarDatosAcceso" in Javascript
solicitarDatosDeAccesoAFacebook public function (event: MouseEvent) {
ExternalInterface.call (solicitarDatosAcceso ");}


/ / This function will be invoked by javascript after that the user has entered a private function
manejaDatosFBJavascrit facebook (sSessionKey: String,
sSessionSecret: String,
suser: String,
iExpires: int,
sSignature: String): void {
/ / Create the session using our "API Key"
session = new ("--------------------", WebSession sSessionSecret, sSessionKey)
/ / We take a global variable the UserId of the session user_id = suser
;

/ / Create an instance of the Facebook and connect again (before it was in javascript)
facebook = new Facebook ();
session.addEventListener (FacebookEvent.CONNECT, manejaSesionAlConectarse)
facebook.startSession (session);
session.verifySession ();}


manejaSesionAlConectarse protected function (event: FacebookEvent): void {
session.removeEventListener (FacebookEvent.CONNECT, manejaSesionAlConectarse)
txtEstatus.text = "on";
if (event.error) {
txtEstatus.text = "(" + event.error.errorCode + ")" + event.error . errormsg;
} else if (event.success)
{/ / If the connection is exitosa traer mas datos del usuario,
//En dos arreglos solicitamos información del usuario:
//En el primero especificamos el "user_id"
//En el segundo el nombre y la imagen con el logotipo de facebook
var call:FacebookCall = new GetInfo([user_id], ["name", "pic_with_logo"]);
call.addEventListener(FacebookEvent.COMPLETE, manejaInformacionUsuario, false, 0, true);
facebook.post(call);
} else {
txtEstatus.text = "No Conectado";
}
}

protected function manejaInformacionUsuario(event:FacebookEvent) :
void {if (event.success & & event.data)
{if (event.data is GetInfoData) {user = FacebookUser
(GetInfoData (event.data). UserCollection.getItemAt (0));
if (! user) {
txtEstatus.text = "Error in processing XML";} else {

txtNombre.text = user.name;

/ / Load the user's picture with the logo
miCargador = new Loader (); var
archivoRequerido: URLRequest = new URLRequest (user.pic_with_logo)
miCargador.load (archivoRequerido)
miCargador.contentLoaderInfo.addEventListener (Event.COMPLETE, upload);

}}}

if (event.error) {
txtEstatus.text = "(" + event.error.errorCode + ")" + event.error.errorMsg;

}}

/ / The image has been read, then you can show them from the stage load it
function (event: Event) {
imagenUsuario.addChild (miCargador);}

}}



First of all in the constructor give functionality to a button for this function invokes "solicitarDatosAcceso" javascript:

ExternalInterface.call (solicitarDatosAcceso ");


  solicitarDatosDeAccesoAFacebook public function (event: MouseEvent ) {
ExternalInterface.call (solicitarDatosAcceso ");}

After

declare that function is responsible for receiving the data sends javascript when the user logs on to Facebook:

ExternalInterface.addCallback ( pasaDatosDeSesion "manejaDatosFBJavascrit)

Our role "manejaDatosFBJavascrit" is responsible for receiving all data and create a WebSession in flash, here again we send our
API Key as we did in javascript.

After creating the WebSession create a handler that is responsible for finding out when the connection was made.

session.addEventListener (FacebookEvent.CONNECT, manejaSesionAlConectarse)

The "manejaSesionAlConectarse is executed when the connection is completed and in turn little sun is responsible for user's personal data:

var call:FacebookCall = new GetInfo([user_id], ["name", "pic_with_logo"]);
y
facebook.post(call);

Los datos son solicitados con la clase GetInfo que recibe dos arreglos, el primero contiene el user_id (capturado y recibido desde javascript) y el segundo, es otro arreglo con los datos que nos interesan: nombre y url de la imagen con logo de facebook.

Antes de solicitar los datos, especificamos cual es la función que se encarga de manejar los datos del usuario una vez que se hayan recibido.

call.addEventListener(FacebookEvent.COMPLETE, manejaInformacionUsuario, false, 0, true);

function "manejaInformacionUsuario" processes information (name and logo with image) with the help of the object
FacebookUser :

user = FacebookUser (GetInfoData (event.data). userCollection.getItemAt (0));

Note that the values \u200b\u200bare returned in an array of data and we are interested in the first position.


can see the example in this league:


There are some important things to consider and that may not be clear in the example. The first is usually your browser may not have made a connection with facebook before you load your animation, so you must take care to apply. In the example we do it through the button "request login " but more likely is that this action must be to load your animation automatically or the user can sueceder already logged into Facebook and you just need to bring data it automatically, this will depend on the experience of usability you want to give visitors to your page.


Download the example:

If you want to save the code you can download the file. Html,. Fla and. As in this league:


hope that the example is clear and useful.

Sunday, August 15, 2010

Churcu Aqnniversary Programs

Fullscreen Flash in Actionscript 3

Here I put an example that shows how to make a flash animation of the entire screen. In the actionscript code do the following:

  irAFullScreen function (): void {
if (Stage.displayState == StageDisplayState.NORMAL) {
Stage.displayState = StageDisplayState.FULL_SCREEN;
} Else {
Stage.displayState = StageDisplayState.NORMAL;
}}

manejadorDeClick function (event: MouseEvent): void {
irAFullScreen ();}

btnIrAFullscreen.addEventListener (MouseEvent.CLICK, manejadorDeClick)

For this example I put this code in the first frame main scene.

use the object stage in the method irAFullScreen () . The first thing we do is check the current status of the screen with variable Stage.displayState if NORMAL do that is to be fullscreen, if not then do you go fullscreen normal size.

I've also created a button and have added a listener for the click invoking our irAFullScreen function () .



is necessary in the HTML code you include the following label:

  name="allowFullScreen" value="true"> \u0026lt;param  

The complete code I put below:

  \u0026lt;object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" 
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab # version = 9,0,0,0"
width = "200" height = "200"
id = "fullscreen" align = "middle">
\u0026lt;param name="allowscriptaccess" value="sameDomain" />
\u0026lt;param name = "allowFullScreen" value = "true" />
\u0026lt;param name = "movie" value = "fullscreen.swf" />
\u0026lt;param name="quality" value="high" />
\u0026lt;param name="bgcolor" value="#CCCCCC"
/> \u0026lt;embed src = " fullscreen.swf "quality =" high "bgcolor =" # CCCCCC "
width =" 200 "height =" 200 "name =" full screen "
align =" middle "allowScriptAccess =" sameDomain "allowFullScreen = "true"
type = "application / x-shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer" />
\u0026lt;/ object>

can download the code complete example here:

Saturday, June 12, 2010

Sunday, May 30, 2010

Fotos De Paty Navida Con Mini Falda

desastaca

"Winds of the People" an approach to the history of the CNT, presented by Rai Ferrer

Sunday, March 21, 2010

My Wife Still Wears A Girdle

Conversion factors between final and primary energy

anthracite 0.0215 Gas blast furnaces 1.263 Kerosene

Conversion factors

Source: IDEA and MITT

Fuel Unit Factor

Carbones

Coal and toe / t 0.5989
Coke toe / t 0.7230
Gas Coke toe / t
toe / t 0.2390

petroleum products

& # 160;
GLP toe / t 1.130
Gasoline l / tep
l / tep
1.188 Diesel l / tep 1.144 Fuel oil
toe / t 0.960
Natural Gas kWh / toe 11622.0

Renewables

Biomass
toe / t 0.24
Biogas kWh / toe 11628.0
Solar thermal kWh / toe 11628.0
Geotermia kWh / tep 11628.0
bioethanol tep / t 0.64
Biodiesel tep / t 0.88
Electricidad tep / MWh 0.086

Purple And Brown Hair With



It's amazing the amount of spam you receive in the comments. In the end, tired of eliminating these kinds of comments, I decided to disable and allow only registered users and openID. We'll see if it works.

Thursday, February 11, 2010

Monster Energy Drink Mini-refrigerator

At last collective bargaining.

Aurora Foundation Intermittent