|
 |
|
|
10-26-2010, 04:24 PM
|
noboby help me :(
|
Posts: 5
Name: luciana
|
hello guyss!!! elp me please. i want a link at the big img follow the example . veryvery hanks
Code:
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[i].Link_s.text();
C[i] = images.photo[i].Link_b.text(); [I]here il link a pdf[I] ??
D[i] = images.photo[i].Discr.text();
var url:String = B[i];
var urlRequest:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(urlRequest);
if (A[i] == 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[i];
a1.dtext = D[i];
a1.im_load.addChild(loader);
gallery.addChild (a1)
}else if (A[i] == 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[i];
b1.dtext = D[i];
b1.im_load.addChild(loader);
gallery.addChild (b1)
}else if (A[i] == 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[i];
c1.dtext = D[i];
c1.im_load.addChild(loader);
gallery.addChild (c1)
}else if (A[i]==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[i];
d1.dtext = D[i];
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();
-----------
myxml:
<images>
<photo>
<pass>1</pass>
<Link_s>images2/1gs.jpg</Link_s>
<Link_b>images2/1g.jpg Link=</Link_b> here link to pdf
<Discr>Albero 1 </Discr>
<url>pdf/pagalbero1.pdf</url>
</photo>
......ecc....ecc.....thanksss
Last edited by NullPointer; 10-26-2010 at 04:29 PM..
|
|
|
|
10-26-2010, 04:29 PM
|
Re: noboby help me :(
|
Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
|
And were you about to tell us what language it is and what the problem is??
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
10-26-2010, 04:33 PM
|
Re: noboby help me :(
|
Posts: 2,815
Name: Matt
Location: Irvine, CA
|
I have no clue what you're trying to ask. Try explaining what that code does currently, and what you are trying to get it to do.
|
|
|
|
10-26-2010, 04:43 PM
|
Re: noboby help me :(
|
Posts: 56
Name: Connor
Location: United States
|
This is ActionScript, the scripting language used by Flash.
__________________
Please login or register to view this content. Registration is FREE
I solve code problems, browser compatibility (including IE 6), Wordpress trouble, the works.
|
|
|
|
10-28-2010, 03:53 AM
|
Re: noboby help me :(
|
Posts: 5
Name: luciana
|
I'm sorry i've wrong forum thread?....were i can try?
|
|
|
|
10-28-2010, 03:58 AM
|
Re: noboby help me :(
|
Posts: 2,815
Name: Matt
Location: Irvine, CA
|
Quote:
Originally Posted by luwebtalklu
I'm sorry i've wrong forum thread?....were i can try?
|
This is the correct forum, but you need to clarify what you are asking.
|
|
|
|
10-29-2010, 04:20 PM
|
Re: noboby help me :(
|
Posts: 5
Name: luciana
|
ok..i try to explain
i've a gallery very very fashion i like it very much! so...
this string load a img small and big (with xml file)
(at 1 frame)
--for (i=0; i < j; i++) {
A = images.photo.pass.text();
B = images.photo[i].Link_s.text();
C[i] = images.photo[i].Link_b.text();
D[i] = images.photo[i].Discr.text();
at "C" i want add a link to open or to download a simple pdf!
what i write in file fla e what in the xml file? thanks I hope it is clear now...
in the xml:
<images>
<photo>
<pass>1</pass>
<Link_s>images/1gs.jpg</Link_s>
<Link_b>images/1g.jpg Link=</Link_b>
<Discr>Albero 1 </Discr> <url>pdf/pagalbero1.pdf</url> </photo>
......ecc....ecc.....thanksss
|
|
|
|
10-29-2010, 04:46 PM
|
Re: noboby help me :(
|
Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
|
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
10-30-2010, 02:14 AM
|
Re: noboby help me :(
|
Posts: 249
Name: octavian
Location: Bucharest
|
if the thing works, just add that PDF
that C is just a temporary array, and you have to fill it right.
see if you add the PDF and you have errors. And, add here the link to make us understand what is this abotu.
|
|
|
|
10-31-2010, 02:58 PM
|
Re: noboby help me :(
|
Posts: 5
Name: luciana
|
thank so much vectorialpx, ..i've undarstand a problem now..but...i'm not very efficient with AS..can you help me about add pdf?
|
|
|
|
10-31-2010, 03:05 PM
|
Re: noboby help me :(
|
Posts: 5
Name: luciana
|
AND...at this code
-----------
D[i] = images.photo[i].Discr.text();
--------------
it's the description text about the big images upload, it's just over the big images!
so..if i can to put a link at the description text it's ok for me..
thanks
|
|
|
|
11-01-2010, 02:07 AM
|
Re: noboby help me :(
|
Posts: 1
Name: pinahoskin andrew
|
Hey i am the new user of this site, and no buddy help me for understand something about this site. 
|
|
|
|
|
« Reply to noboby help me :(
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|