Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 10-26-2010, 04:24 PM noboby help me :(
luwebtalklu's Avatar
Novice Talker

Posts: 5
Name: luciana
Trades: 0
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..
luwebtalklu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-26-2010, 04:29 PM Re: noboby help me :(
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-26-2010, 04:33 PM Re: noboby help me :(
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-26-2010, 04:43 PM Re: noboby help me :(
Crimson's Avatar
Skilled Talker

Posts: 56
Name: Connor
Location: United States
Trades: 0
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.
Crimson is offline
Reply With Quote
View Public Profile Visit Crimson's homepage!
 
Old 10-28-2010, 03:53 AM Re: noboby help me :(
luwebtalklu's Avatar
Novice Talker

Posts: 5
Name: luciana
Trades: 0
I'm sorry i've wrong forum thread?....were i can try?
luwebtalklu is offline
Reply With Quote
View Public Profile
 
Old 10-28-2010, 03:58 AM Re: noboby help me :(
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by luwebtalklu View Post
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-29-2010, 04:20 PM Re: noboby help me :(
luwebtalklu's Avatar
Novice Talker

Posts: 5
Name: luciana
Trades: 0
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
luwebtalklu is offline
Reply With Quote
View Public Profile
 
Old 10-29-2010, 04:46 PM Re: noboby help me :(
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.actionscript.org/forums/index.php3

http://board.flashkit.com/board/foru...php?forumid=30

http://www.sitepoint.com/forums/forumdisplay.php?f=150
__________________
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-30-2010, 02:14 AM Re: noboby help me :(
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
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.
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 10-31-2010, 02:58 PM Re: noboby help me :(
luwebtalklu's Avatar
Novice Talker

Posts: 5
Name: luciana
Trades: 0
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?
luwebtalklu is offline
Reply With Quote
View Public Profile
 
Old 10-31-2010, 03:05 PM Re: noboby help me :(
luwebtalklu's Avatar
Novice Talker

Posts: 5
Name: luciana
Trades: 0
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
luwebtalklu is offline
Reply With Quote
View Public Profile
 
Old 11-01-2010, 02:07 AM Re: noboby help me :(
Junior Talker

Posts: 1
Name: pinahoskin andrew
Trades: 0
Hey i am the new user of this site, and no buddy help me for understand something about this site.
__________________

Please login or register to view this content. Registration is FREE
pinahoskin is offline
Reply With Quote
View Public Profile Visit pinahoskin's homepage!
 
Reply     « Reply to noboby help me :(
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.49793 seconds with 12 queries