stupenda galleria.. io vorrei aggiungerci un paio di cosette..help me!

  • Creatore Discussione Creatore Discussione luweblu
  • Data di inizio Data di inizio

luweblu

Nuovo Utente
19 Ott 2010
2
0
0
Ciao a tutti,
come dicevo ho una gallery molto bella a mio parere.forse perchè l'ho trovata giusta x ciò che devo fare..ho bisogno del vostro aiuto però ..è urgent!!!
vorrei "semplicemente" aggiungere 2 pulsanti alla finestra zoom della miniatura,...mi servono uno per aprire una img e l'altro un pdf.. come faccio?????
sotto vi allego la gallery.
attendo vostre help help help!!!! grazie:)

sul fotogramma1

stop();
klik.visible = false;


var A:Array = new Array
var B:Array = new Array
var C:Array = new Array
var D:Array = new Array
var x_down:Number = 20;
var x_up:Number = 20;



var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
xmlLoader.load(new URLRequest("photos-g.xml"));

function showXML(e:Event):void {

XML.ignoreWhitespace = true;
var images:XML = new XML(e.target.data);
var j:Number = images.photo.length();


var i:Number;
var x_menu:Number = 80;
var u1:Number = 0;
var u2:Number = 0;
var temp:Number = 0;
var bx:Number = 810
var bx_f:Number = 2400
var k:Number = -1;
var l:Number = -1;

for (i=0; i < j; i++) {
if (k==4) {
k=1
var new_back:back_gallery = new back_gallery ();
new_back.x = bx
bx = bx + 766
new_back.y = -0.1
gallery.addChild (new_back);
}else{
k = k +1
}
if (l==10){
l=0
var new_back_f:back_front = new back_front ();
var new_back_f2:back_front2 = new back_front2 ();
new_back_f.x = bx_f
new_back_f2.x = bx_f
bx_f = bx_f + 1600
new_back_f.y = -11.7
front.addChild (new_back_f);
front2.addChild (new_back_f2);
}else{
l = l +1
}
}

for (i=0; i < j; i++) {
A = images.photo.pass.text();
B = images.photo.Link_s.text();
C = images.photo.Link_b.text();
D = images.photo.Discr.text();


var url:String = B;
var urlRequest:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(urlRequest);
if (A == 1) {
var a1:Kadro_1 = new Kadro_1();
a1.x= x_up
x_up = x_up + 250
a1.y= 60 + u1
a1.b_link = C;
a1.dtext = D;
a1.im_load.addChild(loader);
gallery.addChild (a1)
}else if (A == 2) {
var b1:Kadro_2 = new Kadro_2();
b1.x= x_up
x_up = x_up + 180
b1.y= 80 + u1
b1.b_link = C;
b1.dtext = D;
b1.im_load.addChild(loader);
gallery.addChild (b1)
}else if (A == 3) {
var c1:Kadro_3 = new Kadro_3();
c1.x= x_down
x_down = x_down + 290
c1.y= 250 - u2
c1.b_link = C;
c1.dtext = D;
c1.im_load.addChild(loader);
gallery.addChild (c1)
}else if (A==4) {
var d1:Kadro_4 = new Kadro_4();
d1.x= x_down
x_down = x_down + 200
d1.y= 250 - u2
d1.b_link = C;
d1.dtext = D;
d1.im_load.addChild(loader);
gallery.addChild (d1)
}
if (u1==0){
u1= 180
u2= 180
temp = x_down
x_down = x_up
x_up = temp
}else{
u1=0
u2=0
temp = x_down
x_down = x_up
x_up = temp
}
}
play();
copy.text = "created by lu 10"
copy.x = 747
copy.y = 622
}


-----------fotogramma2

stop();


import flash.utils.*;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

var i:Number = 1
var c:Number = 1
var speed_l:Number = 0.1
var speed_r:Number = -0.1
var end:Number = -((x_down)/2 + 50)
var key:Number
var c_key:Number
var c_key2:Number
var c_key3:Number

var start1:Tween = new Tween( gallery, "x", Regular.easeInOut, gallery.x, (gallery.x - 280) , 1, true);
var start2:Tween = new Tween( front, "x", Regular.easeInOut, front.x, (front.x - 380) , 1, true);
var start3:Tween = new Tween( front2, "x", Regular.easeInOut, front2.x, (front2.x - 700) , 1, true);

gallery.addEventListener (MouseEvent.MOUSE_MOVE , right_left);
gallery.addEventListener (Event.ENTER_FRAME , move_g);

function right_left(event:MouseEvent):void{
key = (mouseX*(end/700) + 150)-gallery.x
c_key = key/111
c_key2 = ((mouseX*(end/500) + 150)-front.x)/111
c_key3 = ((mouseX*(end/300) + 150)-front2.x)/111
i = 15
}
function move_g(event:Event):void{
if (i > 1){
gallery.x = gallery.x + c_key*i
front.x = front.x + c_key2*i
front2.x = front2.x + c_key3*i
if (i==1){
i = 15
}else{
i = i-1
}
}
}

hide_people.addEventListener(MouseEvent.MOUSE_DOWN , f_1)
function f_1 (Event:MouseEvent):void{
if (c==1) {
front2.visible = false
hide_colums.visible = false
var start4:Tween = new Tween( gallery, "y", Regular.easeInOut, gallery.y, (90) , 1, true);
var start5:Tween = new Tween( down, "y", Regular.easeInOut, down.y, (635) , 1, true);
var start7:Tween = new Tween( front, "y", Regular.easeInOut, front.y, (900) , 1, true);
hide_people.gotoAndStop(2);
c=2
}else{
front.visible = true
front2.visible = true
hide_colums.visible = true
var start8:Tween = new Tween( gallery, "y", Regular.easeInOut, gallery.y, (-9) , 1, true);
var start9:Tween = new Tween( down, "y", Regular.easeInOut, down.y, (535) , 1, true);
var start10:Tween = new Tween( front, "y", Regular.easeInOut, front.y, (467) , 1, true);
hide_people.gotoAndStop(1);
c=1
}
}
stop();

----------------:rolleyes:
 

Discussioni simili