- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
package socialnetworks
{
/* package created 17.01.2013 */
import flash.display.Sprite;
import socialnetworks.*;
public class SocialNetworks extends Sprite
{
private var window:WindowSubstrate;
private var img_link:ImageLink;
public function SocialNetworks()
{
// constructor code
window=new WindowSubstrate();
window.CreateWorkSpace();
img_link = new ImageLink(window,"icon's/twitter-bird-light-bgs.png","https://twitter.com/kru_kikz",0,0);
img_link = new ImageLink(window,"icon's/vk2.png","http://vk.com/kru_kikz",135,0);
img_link = new ImageLink(window,"icon's/YouTube_logo_stacked_dark.png","http://vk.com/kru_kikz",270,0);
stage.addChild(window);
}
}
}
kyzi007 02.05.2014 19:59 # +1
Мне просто интересно...
Lure Of Chaos 03.05.2014 13:32 # +1
qstd 09.05.2014 11:37 # +1
{
import flash.geom.Rectangle;
import flash.net.URLRequest;
import flash.events.*;
import flash.ui.MouseCursor;
import flash.display.*;
import flash.net.*;
import flash.utils.IDataOutput;
class ImageLink extends Sprite
{
private var http_url:URLRequest;
private var img_shape:Shape;
private var img_sprite:Sprite;
private var img:BitmapData;
private var img_loader:Loader;
private var request:URLRequest;
public function ImageLink(window:Sprite,img_url:String,s tr_http_url:String,coord_x:uint,coord_y: uint)
{
img_loader = new Loader();
img_sprite = new Sprite();
img_shape = new Shape();
request = new URLRequest(img_url);
img_loader.load(request);
img_loader.x = 5 + coord_x;
img_loader.y = 10 + coord_y;
CreateHyperLink(img_loader,str_http_url) ;
img_sprite.addChild(img_loader);
img_sprite.buttonMode = true;
window.addChild(img_sprite);
}
function transit_link(e:MouseEvent)
{
navigateToURL(new URLRequest("twitter.com/kru_kikz/"),"_parent");
trace("click");
}
public function out_focus_image(e:MouseEvent)
{
img_loader.opaqueBackground = 0xf1ffa8;
}
public function focus_image(e:MouseEvent)
{
img_loader.opaqueBackground = 0xa07743;
trace("focus");
}
public function CreateHyperLink(pict_loader:Loader,str_h ttp_url:String)
{
img_loader.addEventListener(MouseEvent.C LICK,transit_link);
img_loader.addEventListener(MouseEvent.M OUSE_MOVE,focus_image);
img_loader.addEventListener(MouseEvent.M OUSE_OUT,out_focus_image);
}
}
}
qstd 09.05.2014 11:40 # +1
{
import flash.geom.Rectangle;
import flash.display.*;
import flash.system.*;
internal class WindowSubstrate extends Sprite
{
private var rectangle_form:Rectangle;
private var rectangle_shape:Shape;
static private var rectangle_sprite:Sprite;
public function CreateWorkSpace()
{
rectangle_shape = new Shape ;
rectangle_sprite = new Sprite ;
rectangle_shape.graphics.lineStyle(3,0xa 06000,1.0);
rectangle_shape.graphics.beginFill(0xf1f fa8,1.0);
rectangle_shape.graphics.drawRect(0,0,50 0,150);
rectangle_sprite.addChild(rectangle_shap e);
addChild(rectangle_sprite);
}
}
}
guest 04.03.2017 05:31 # 0
<a href=http://all-flesh.ru/>бесплатные flash</a>