dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: i need help

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    5

    i need help

    i want to know how i can click on an image in an XML slide show and expand it to full res in another window. any help would be greatly appreciated
    tjake

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    49
    Hi

    If you mean open it up in a new browser window, then you could add an on(release) event to the movieclip that your image has been loaded into and use the getURL function to call a javascript function to open a new window with the url of your image.

    PHP Code:
    in the flash movie
    on
    (release){
       
    getURL("javascript:newWindow('yourDomain.com/images'" imageName ".jpg,'newWin','height=200,width=400 //or what ever options you want on like scrollbars etc//'")
    }


    javascript function 

    <
    script>
    function 
    newWindow(url,name,options){
        var 
    newWin window.open(url,name,options)
    }
    </
    script
    you would need to have a variable or something in the movieclip that stored the name of the current image.

    Hope this helps a bit
    Dan

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    5

    well kinda...

    kinda but being new to flash i dunno how to store a variable...i can send you the flash file if you want...

    tjake

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    49
    sorry was out for the night, yeah send the file on and I'll have a look at it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center