Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




As3/xml/lightwindow?



hi all - really hope someone can sort me out with this question i have.i am trying to get lightwindow to launch from my script in as3i have some thumbnails that are generated via xml - and when clicked the thumbnail opens a url in a new window.i want it to open in the lightwindow box instead.this is the as that i have on my thumbnailsCode: function p_click(me:MouseEvent) {var loader : Loader = new Loader (); var request : URLRequest = new URLRequest ( "javascript : myLightWindow.activateWindow({href: 'wall.swf', title: 'lightwindow', author: 'anon', height: 480, width: 640});" ); loader . load ( request ); navigateToURL ( request , '_parent' ); } but that doesn't seem to work - i am using http://translate.google.com/translate?hl=en&sl=it&u=http://www.flepstudio.org/forum/flash-italiano/562-lightwindow-da-swf-con-as3.html&sa=X&oi=translate&resnum=10&ct=result&prev=/search%3Fq%3Das3%2Blightwindow%26num%3D100%26hl%3Den%26newwindow%3D1%26safe%3Doff%26sa%3DG as my reference for what should go in the script for the button.the script i used and it worked to open a url in a new window wasCode: function p_click(me:MouseEvent) {   var sp:Sprite = me.target as Sprite;   var s_no:Number = parseInt(sp.name.slice(8,10));   navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);}that opens the url from the xml doc. this how the items in the xml lookCode: <thumbnail filename="name_of_thumb.jpg" url="http://www.domainname.com/folder/item.mov" target="_blank"       title="Item title"       description="some text that shows up on thumbnail mouse over" />i am really struggling with this - i have also dropped the swf into html doc for http://www.stickmanlabs.com/lightwindow/and the html links - open the lightwindow up perfectly but the swf doesn't want to know.has anyone managed to get this working before? or know of good points of reference to make it work from a flash button/xml.there is no support on the stickman site - lots of config info - but not for flash?is it even possible in flash? anyone know?in summary how do i trigger lightwindow from an as3 button???



Actionscript 3.0
Posted on: Thu Jan 22, 2009 8:50 am


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

As+xml+lightwindow
hi all - really hope someone can sort me out with this question i have.

i am trying to get lightwindow to launch from my script in as3

i have some thumbnails that are generated via xml - and when clicked the thumbnail opens a url in a new window.

i want it to open in the lightwindow box instead.

this is the as that i have on my thumbnails

PHP Code:



function p_click(me:MouseEvent)
{
var loader : Loader = new Loader ();
var request : URLRequest = new URLRequest ( "javascript : myLightWindow.activateWindow({href: 'wall.swf', title: 'lightwindow', author: 'anon', height: 480, width: 640});" );
loader . load ( request );
navigateToURL ( request , '_parent' );
}




but that doesn't seem to work - i am using this article as my reference for what should go in the script for the button.

the script i used and it worked to open a url in a new window was


PHP Code:



function p_click(me:MouseEvent)
{
    var sp:Sprite = me.target as Sprite;
    var s_no:Number = parseInt(sp.name.slice(8,10));
    navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);
}




that opens the url from the xml doc. this how the items in the xml look


PHP Code:



<thumbnail filename="name_of_thumb.jpg" url="http://www.domainname.com/folder/item.mov" target="_blank"
        title="Item title"
        description="some text that shows up on thumbnail mouse over" />




i am really struggling with this - i have also dropped the swf into html doc for lightwindow
and the html links - open the lightwindow up perfectly but the swf doesn't want to know.

has anyone managed to get this working before? or know of good points of reference to make it work from a flash button/xml.

there is no support on the stickman site - lots of config info - but not for flash?

is it even possible in flash? anyone know?

in summary how do i trigger lightwindow from an as3 button???

As3+xml+lightwindow
okay - here is my question - i have a html page that uses a lightbox effect, when you click on a link.

i have also inserted a swf into the html file - the swf is an image wall effect that has thumbnails (called in from an .xml file) and if the thumbnail is clicked the swf opens a url. i want the link/jpg/video to open in the lightbox - and not a new window.

so - where do i change the code to make the flash/swf functions to open lightbox?

the link in html that works is this:

PHP Code:



<a href="gallery/spider-man3-trl3.mov" class="lightwindow page-options" params="lightwindow_width=640,lightwindow_height=320" ><strong>Quicktime Movie Example</strong> - 20MB Local File!</a> 




in my .xml file the items look like this

PHP Code:



    <thumbnail filename="096_3d_cylinder_box.jpg" url="http://images.apple.com/movies/dreamworks/transformers/transformers-tlr4_h.640.mov" target="_blank" 




and the function for the thumbnail in my .fla is this:

PHP Code:



function p_click(me:MouseEvent) 
{
    var sp:Sprite = me.target as Sprite;
    var s_no:Number = parseInt(sp.name.slice(8,10));
    navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);





which one of these needs adapting to make the mage/vid fire from the .swf?

As3+xml+lightwindow
hi all - really hope someone can sort me out with this question i have.

i am trying to get lightwindow to launch from my script in as3

i have some thumbnails that are generated via xml - and when clicked the thumbnail opens a url in a new window.

i want it to open in the lightwindow box instead.

this is the as that i have on my thumbnails

PHP Code:



function p_click(me:MouseEvent) 
{
var loader : Loader = new Loader (); 
var request : URLRequest = new URLRequest ( "javascript : myLightWindow.activateWindow({href: 'wall.swf', title: 'lightwindow', author: 'anon', height: 480, width: 640});" ); 
loader . load ( request ); 
navigateToURL ( request , '_parent' ); 





but that doesn't seem to work - i am using this article as my reference for what should go in the script for the button.

the script i used and it worked to open a url in a new window was


PHP Code:



function p_click(me:MouseEvent) 
{
    var sp:Sprite = me.target as Sprite;
    var s_no:Number = parseInt(sp.name.slice(8,10));
    navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);





that opens the url from the xml doc. this how the items in the xml look


PHP Code:



<thumbnail filename="name_of_thumb.jpg" url="http://www.domainname.com/folder/item.mov" target="_blank" 
        title="Item title" 
        description="some text that shows up on thumbnail mouse over" /> 




i am really struggling with this - i have also dropped the swf into html doc for lightwindow
and the html links - open the lightwindow up perfectly but the swf doesn't want to know.

has anyone managed to get this working before? or know of good points of reference to make it work from a flash button/xml.

there is no support on the stickman site - lots of config info - but not for flash?

is it even possible in flash? anyone know?

in summary how do i trigger lightwindow from an as3 button???

Copyright © 2005-08 www.BigResource.com, All rights reserved