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




Litebox Lightbox Ajax In/with Flash?



i like the style of litebox - but how can i use it with a flash website?
i need to run following script within a button in a swf file:


Code:
<a href="images/tvtransformers.jpg" rel="lightbox[example]" title="Sprouts"><img src="images/tvtransformers.jpg" width="700" height="500" alt="Beautiful Sprouts" class="bordered"/></a>
this following code doesnt work of course - but i dont know how to fix it:

Code:
on (release) {
getURL("<a href="tvtransformers.jpg" rel="lightbox[example]" title="tvtransformers"><img src="tvtransformers.jpg" width="700" height="500" alt="TV Transformers" /></a>");
}

how can i use a link like this in flash??
i also want to make the gallery modus of litebox work, if there is more than a single image to view!

do i have to modify the html doc to make it work?



please help did anyone anything similar?

its not fixed to litebox - i would also use other clones if they work....



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-30-2007, 02:03 AM


View Complete Forum Thread with Replies

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

AJAX And Flash
ive put the ajax script into a html page and created a div with id of contentarea in the swf file i have a button with the following

on (release) {
getURL("javascript:ajaxpage('hometext.htm', 'contentarea');");
}

How Would I...ASP.NET, AJAX & Flash?
How would I tell a button in a menu in a flash movie to execute a Ajax-refresh somewhere else on the page? I'm using ASP.NET 2.0; I've found a couple of tutorials detailing how to send data into the Flash movie using LoadVars, but I want to send stuff OUT of the flash movie to the ASP.NET page. Specifically, I'd like to run a C# method in my ASP.NET page when the user clicks on a button in the flash movie that would use AJAX to refresh content elsewhere on the page...

I know this is an AS forum, so I don't expect anything beyond what is required on the Flash-end of things, but if anyone has experience doing this sort of thing, I would appreciate your feedback very much!

AJAX And Flash
Hi,

I'm confused by some references to flash and Ajax working together. Am I correct in thinking that:

1- flash sends a request to the Javascript functions on an HTML page.

2- which in turn sends a request to some server side script which requests data from a database.

3- which then sends out an xml file that flash reads?

If not, can someone help and explain?

Thanks.

Is This Flash Or Ajax?
http://www.elpais.com/articulo/economia/presidente/Air/Madrid/hizo/caso/consejos/tecnicos/elpepueco/20061229elpepueco_1/Tes


Specifically the tabs and the 1,2,3,4 options.

Flash/AJAX
Hi,

I'm working on an article that deals with all the pros and cons from combining Flash and AJAX. Have anyone seen an simular atricle somewhere? I know i've seen one ...

Thanks in advance

Richard

Flash Vs. Web 2.0 / AJAX
The company I work for as an application developer has a really bad looking site, and recently I convinced the management to entertain the idea of a re-design. They are interested in showcasing a portfolio, some video case studies, client testimonials, and general about us / what we can do for you content.

I would like to do a full flash website with implementations for back button support, and SEO as described in http://www.jessewarden.com/archives/200 ... e_goo.html

My problem is that the guy who was recently put in charge of the bad looking site is really into SEO. Now I could do the re-design in full xhtml with CSS and use AJAX libraries to accomplish the simple drag, slide, fade stuff. However the fluid seamlessness of flash is a big seller for me, not to mention I'm a sucker for eye-candy.

SO: How do I make a case for using flash?

I want to get an arsenal of information so I can shoot down any possible opposition at presentation time.

Any help on this would be greatly appreciated.

Ajax And Flash - Help Needed
I have a client who wants a website creating using a combination of ajax and flash. Its sort of like a virtual kitchen creator where by you drag and drop different item into a space to see what it would look like and tally the overall cost. Having never used ajax before , and not being familar with what it can and cant do I was wondering if there were any alternativess that i could use as it is a job I would really like to get my teeth in to.

Thanks in advance

Ajax Request In Flash?
Anyone know if its possible to do an Ajax request in flash? Any info or advice would be extremely helpful. Thanks!

[F8] Ajax & Flash Help Needed
Hello folks, I need some help with loading some content using flash and ajax.

Basically I have a flash header with buttons for Home, Forums etc and I want to be able to load the ajax dynamic content using these buttons. Is this possible?

I'm using the script from here http://www.dynamicdrive.com/dynamici...jaxcontent.htm

I have the script working fine using basic href links and it's loading the pages how i want to but not when I click the flash buttongs I made.

I have tried several ways and none are doing anything.

I've tried


Code:
on (release) {
getURL(""javascript:ajaxpage ( 'services.html', 'contentarea')");) ");

}

Code:
on (release) {
getURL("javascript:ajaxpage('services.html', 'contentarea');");
}
Any ideas how i can do this??? The script itself is in the header of the HTML so there's no need to load it externally.

Thanks for any help offered.

Ajax Greybox And Flash
Please take a minute to look at http://orangoo.com/labs/GreyBox/. It is a nice utility in ajax that creates a nice pop up window i want to use. The application is written in javascript and works fine when i deal with simple html pages. I simply copy paste the code they give in my html file and it works!

However.i'm working with flash and what i want to do is to write some actionscript for a button that will call the javascript of the application so as to open the file i want in the Greybox enviroment. Any ideas?

PS: it;s important that you download the application and take a look at the greybox folder.There exists all the necessary js files that implement the greybox effect

Ajax For Flash In IE Problem
Currently I'm doing a project that requires to deploy ajax with a Flash object. I use the fscommand for Flash to communicate with javascript in order to do the Ajax.

I create a flash file name ask.fla. In the file I make a button and add the script for it like this:
on(press)
{
fscommand ("send_var", 1);
}
I have read in the manual of Flash how to make flash communicate with javascript, and I have configure the publish setting of HTML file to run "Flash with FSCommand" .
I have another 2 files namely: ask.php and ask_get.php.
The content of the ask.php file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

Ajax For Flash In IE Problem
Currently I'm doing a project that requires to deploy ajax with a Flash object. I use the fscommand for Flash to communicate with javascript in order to do the Ajax.

I create a flash file name ask.fla. In the file I make a button and add the script for it like this:
on(press)
{
fscommand ("send_var", 1);
}
I have read in the manual of Flash how to make flash communicate with javascript, and I have configure the publish setting of HTML file to run "Flash with FSCommand" .
I have another 2 files namely: ask.php and ask_get.php.
The content of the ask.php file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

Flash Video And AJAX
Hey guys, I am really hoping somebody here can help me, because I am stumped. I am not a programmer, but I have done as much troubleshooting as I know how (Including using a debug script that a friend gave me to verify that there were no errors). I have tried AJAX forums and JS forums, and now I am trying Flash Forums! SOMEBODY has to know whats causing this!

Here is my problem. I used this script to create dynamic content via the maincontent DIV in the Index.html file. Everything works fine until you try and load a Flash Video, and instead of video, you get a White Square where it should be playing.

Now, this only happens if the html file is being loaded into the DIV tag, if you load it seperatley, it works fine! In case I am not quite clear, here are the files in question (There was NO external .js file to reference for this script).

The Actual html file with video (Notice, it plays!):
http://www.emotionent.com/clients/j...racle_drug.html

And the main index file (Click Commercials -> AADAC -> First Image)
http://www.emotionent.com/clients/joe/
Notice it's just a white square!!!

This has been driving me nuts for days, and I cannot figure out what is going wrong! PLEASE help!
Edit/Delete Message

Problem Of Ajax For Flash In IE
Currently I'm doing a project that requires to deploy ajax with a Flash object. I use the fscommand for Flash to communicate with javascript in order to do the Ajax.

I create a flash file name ask.fla. In the file I make a button and add the script for it like this:
on(press)
{
fscommand ("send_var", 1);
}
I have read in the manual of Flash how to make flash communicate with javascript, and I have configure the publish setting of HTML file to run "Flash with FSCommand" .
I have another 2 files namely: ask.php and ask_get.php.
The content of the ask.php file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

Replacing JS/Ajax With Flash?
I have a web page that plays video clips and displays images that can be selected on the page. These clips and images are loaded on-the fly using Javascript/Ajax, (without reloading the page). The video clip (Flash) file names and image file names are obtained from a mySQL database query by a PHP script called aynchronously by Javascript in the page.
Is it possible to redo the whole thing using Flash and nothing else? In other words, can a Flash control access asynchronously a PHP script and alter its own multimedia contents on the basis of the data supplied by PHP?
Thanks!

Andrew

Importing Flash With AJAX
Hello all.

In order to get round IE's message "click to activate and use this control", I use a piece of JS code provided by Adobe.

However, this approach does not seem to work if the SWF file (and its accompanying JS and HTML) is imported into the page using AJAX.

Using AJAX, I can only get SWF files to show if they are embedded into a TXT file using normal HTML.

Does anyone know a solution to this?

Thanks in advance for any help you can give

Ajax, Flash, Java
Dialie develops today a free web access credit card processing gateway with a digital dispatching web access solution. i would like make our application a little more sexy and i wold be interested to meet someone who already mixed this 3 technologies.

[Flash] Ajax-like LiveSearch
Have you seen Google Suggests? Has anyone ever done a LiveSearch like that but in Flash? If so, I'd like to hear how you did it! Was it successful (did flash perform quickly). Did you use a remote program, like remoting or AMFPHP?

If anyone has any sort of insight into how to do this sort of thing (to say, browse a catalog) then that'd be wonderful.

Ajax/html Talk With Flash
Hi, I am a bit uncertain how to word this question but the thing is that I need an ajax based website to talk to a flash file "realtime".
Say you are interacting with html and by doing so an event occurs in the flash part. Maybe I add a tag and it shows up as text inside the flash file instantly as text. Or maybe I control certain "things" inside the flash file by interacting with the html/ajax part of the site.

Does this make sense?

I would like to know if this is possible and in that case how.

it would nice if someone has an example of something like this working out there or something like articles or toturials talking about it.

Thanks.

How Flash Communicates With Ajax In One Page
Hey guys! I wanna make a page with both a flash bannar and ajax contents, is there anyway to make the flash movie exchange information with the javascript block in the same page? for example click the flash bottom than the ajax block will load a news content.

Flash Embedded In HTML In AJAX
Hello, I am wondering if it is possible to hover over navigation options on a webpage and have a span tag change its content to a flash SWF (implemented with AJAX).

I can get XML programs to fill the span tag and they are formatted with XSL.

Cannot get flash in HTML to work though - would I need CDATA blocks for this? just a guess.

Cheers anyone

Ajax Popup Window Over Flash
I have a site using HTML, AJAX and Flash, the flash starts when the page opens the on a html button click event a popup window appears but about half of the flash is covering it, dose any one know how I can get aroubd this?

Login Screen Using Flash And Ajax
Hi,

I need to develop a login screen in Flash, that submits the login info using POST and moves to the corresponding scenes based on the result of authentication. I've looked at scripts which integrate Flash and PHP, but I'm unable to find a script for making an AJAX call

The basic requirement is that I don't want the login page to reload or redirect to another page incase of invalid username/password.

Can someone please tell me how I can get this done.. or maybe gimme links that have examples?

Many thankses! :)

Flash 10 ExternalInterface And AJAX Issues In IE
Our site has been working fine for a year with Flash Player 9.
After we install Flash Player 10 the Flash to JS interface (ExternalInterface) appears NOT to work after new page content is loaded via an AJAX call.

Example:
1. Load site with Flash content - all is good and ExternalInterface works fine
2. Click to load new content area containing Flash via AJAX call - page content loads ok
3. The SWF's in the loaded content cannot use ExternalInterface. Even ExternalInterface.addCallback() call fails

Only thing that changed appears to be the Flash version 10.
We have founf one vista machine with Flash 10 that does work. All XP and other Vista machines fail. Firefox works just fine with Flash 9 and 10!

Flash Communicate With Ajax In One Page
Hey guys! I wanna make a page with both a flash bannar and ajax contents, is there anyway to make the flash movie exchange information with the javascript block in the same page? for example click the flash bottom than the ajax block will load a news content.

Using Ajax And Flash To Open Url On The Same Page
how do i make a flash button to change the content of a page using Ajax?

the menu have to remaing the same and not load again.

Thanks

Flash Navigation And Ajax Content
yeah i know flash navigation is bad for SEO and all, but its not up to me, i just need help figuring out if this is even possible. can you change the content of a div when clicking a link in a flash nav, and make it linkable? so that when the link is clicked, the url is changed to

domain.com/index.php#link

and when the person goes to that page, its directly visible?



im clueless as far as flash goes, and know a bit of ajax, so id really apreciate some help

thanks a lot

Flash/Ajax/SWFObject Problem
I've been having this issue for several days now, and it should be clear that I'm only savvy enough to be dangerous, but I'm hoping someone here can help me, because I'm sooooo close to achieving the results that I want, and am achieving them in all browsers, except for the beloved IE. Here's my issue.

I have 3 things in play.
1. Flash navigation on the left of my page. Very simple, nothing fancy going on.
2. I'm using ajax. This script to be exact: http://www.dynamicdrive.com/dynamici...jaxcontent.htm
This I use for the main content area of the site, laid out similarly to how the demo is laid out on that page, only I have a Flash nav.
3. I'm using SWFObject.js to get around the IE "feature". The 'click to activate'.

On all browsers (except IE) it works fine. My Flash buttons in the nav tell the ajax to load the content into my main content area to the right. However, in IE, my navigation disappears, which seems to be a direct result of the script not pulling properly, and therefore not displaying the Flash navigation. In fact, I'm sure that's what the problem is, because if I just embed the Flash normally, it works, but then of course I have the 'click to activate' issue, which I don't want. I've narrowed it down, to the problem is that I'm not loading that Javascript correctly on my Flash button. My actionscript is incorrect. According to the Ajax document, I need to load that SWFObject.js script, as it will not carry over to the styling of my new content that appears on click.

How would I accomplish this? I need to write some actionscript that will load point to the page and also load that javascript, so that my navigation appears in IE. Here's the script I have on there now, that is not working:

on (release)
{
getURL("javascript:ajaxpage('../templates/calendar/calendar.php', 'content-area'); loadObjs('swfobject.js')");
}

It works in all browsers, except IE, because its not loading the swfobject script. The ajax part of that is fine. I need that script to be called, to get rid of the 'click to activate'. In anyway possible. Efficiency and ease would be best, but at this point, I'll take any solution.

I'm really hoping someone has the answer here as its the last issue I have to work out and its driving me nuts. I'm sure its my syntax. I'm pretty sure my approach is correct, but as you can tell, I'm no Flash/Actionscript guru.

Can anyone point me in the right direction? Thanks!

Flash Lightbox?
I am trying to imitate the Javascript Lightbox features onto Flash, however I am stuck on a few spots of actionscript coding.

- Constraining the Image to a Thumbnail.
As an quick preview to the images, I need to constrain or resize it. However, the filesize of the image remains equal to the full size of the image. Is there any way to reduce the filesize to the puny thumbnail number?

My current Ideas now is using the loadmovie syntax and ajusting the _x, _y scale.

Any help is appreciated!

Lightbox 2 (From Within Flash)
I'm trying to use Lightbox 2 from within flash, however obviously I can't setup a URL like this inside of flash...

[html]<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>[/html]

Does anyone know of a way to do this using Lightbox 2 and Flash 8 Pro?

Thanks

Flash Lightbox Help
Is there anyone who knows how to use this because i can't figure it out and i havn't been able to find a tutorial with a walkthrough and not being a great coder or anything i've having no luck getting it to work.

if you think you can help me let me know and i'll explain my problem a bit better. trying to keep this short.

thanks in advance

How To Or Where: Flash LightBox
Does anyone know where I can get a tutorial for launching a video into lightbox?
Thanks,

Lightbox In Flash.
I dunno if any of you are familliar with Lightbox at all? http://www.huddletogether.com/projects/lightbox2/

I'd like to be able to call this from Flash. It works well in an "<a>" tag in HTML.
As an example: <a href="gallerypics/Juniors2001.jpg" rel="lightbox" title="juniors 2001" >
where I can use a rel and title tag to call the necessary scripts.

Is there any way of including rel and title tags in flash along with the regular link?

Lightbox And Flash
Hi anyone know if you can open flashbox images from a flash file? like if your on a flash gallery and click an image.. the light box app loads on top????

http://www.huddletogether.com/projects/lightbox2/ (lightbox)

Cheers.

Flash LightBox
Lokesh Dhakar the indian guy who wrote the revolutionary LIGHTBOX script is now famous through out the internet. Last day I even saw Apple.com using his script.

The script is really simple but awesome. Looks flash even though its JS and HTML.

Lately I was thinking about LightBox in Flash. Coz you dont need a lil bit of HTML if your site is entirely done in Flash
So I started digging and even though i saw lots of scripts online none gave out the script (This is one of them - Click here)
But I got something which could trigger a HTML on a Flash movie which I thought wasnt a bad idea as long it doesnt messes up main Flash movie.
http://www.codefidelity.com/blog/?p=16

This is the link to download the complete script for the same. (You need to upload the script to your server to see it working!)
http://www.codefidelity.com/blog/dow...telightbox.zip


If any one could do a completely FLASH LightBOX please do post your script out here.
Make sure to include the Slideshow option

Thanks.
Ben

Lightbox In Flash?
im newbie in css and html, so could some1 explain me what code should i write
in the html and what in the button function so i can get Lightbox work with flash
i will appreciate any help.
thank you

Flash LightBox
ok, first, this is not my source. i found it but i can remember where. it was one of those 3 am Google search finds.

However, i did try and simplify it as best i could. It's a great file and when i find out where i found it i will post it ASAP!

enjoy.

EXAMPLE

SOURCE

Flash With Lightbox 2
I have been able to get this working - but my problem is when trying to get a gallery going. I can get single image to open - but don't know how to link it up to others.

I have attached the files I am using.

Using LightBox 2.0 With FLASH
http://www.huddletogether.com/projects/lightbox2/


Does anyone know how to implement this functionality by making calls from within the SWF environment?

Using Lightbox In Flash
I'm having trouble using lightbox in flash. The readme says to add,

on(release) {
getURL("javascript:flashLightbox('path/to/imagejpg');");
}

to the button-- so I convert my image to a button and under actions I put that in there.. correct?

Then it says to add <param name="wmode" value="transparent" /> to the html.

I do this, but it doesn't work at all.

I click the button and nothing happens. Any idea why?

Here's the full readme,

Quote: This is a very small and simple modification to Lightbox to allow you
to use the script in conjunction with a flash movie (for a sample of
this see (URL address blocked: See forum rules)).

I've added a new function flashLightBox() that can be called from within
any SWF file. I've left showLightbox() in thre as well, so the script
can still be used normally.

To call a lightbox image from flash, you would simply assign the
following actionscript to your button/movie clip:

on(release) {
getURL("javascript:flashLightbox('path/to/imagejpg');");
}


I've also modofied the default CSS to give the lightbox containers and
image a higher z-index than the flash movie.

Finally, to get the images to display on top of the movie, you will need
to add the "wmode" paramater to the mark-up for embedding the SWF movie:

<object type="application/x-shockwave-flash" data="myMovie.swf" width="400" height="400">
<param name="movie" value="myMovie.swf" />

<!-- Your MUST add the 'wmode' paramater or your flash will appear
over top of your lightbox images! -->

<param name="wmode" value="transparent" />
</object>

This wasn't a difficult mod, but it did take me a few minutes to sort out,
since there were several files to change, so hopefully this will be of
use to someone.

Flash Behind Lightbox
Hi guys
I suppose many of you are using Lightbox or other versions/mods of it...
http://particletree.com/examples/lightbox/

Well, I have some flash movies, and when I show this lightbox, the flash movies keep always on top, I mean, the lightbox "layer" does not cover the flash movies...

Does any1 know an easy way to put the flash movies behind lightbox when this last is showing ?

Thanks

Initiate Php/javascript/ajax Function From Flash ^-^
Hello, I'm very sorry if this question has already been answered, but is there any simple way to initiate a php, javascript and/or ajax function from within a flash app embeded into a page?

IE: when the user uses a flash login, to login to the site, could i make a java/pph or better yet ajax call to update the HTML of a blank div (javascript updateHTML command) with "events" (ie - you have 2 messages) from a mySQL database, without the need of a page refresh? ^-^

Try saying that fast =B

Thank you, for reading and thank you more if you can comment/point me in any direction XD

I thought; upon user loggin, I could send a "loggedIn" var (for example) with POST to a php page (havnt worked out ajax yet =B) that if loggedIn = true; query mySQL, then update the div with javascripts updateHTML command.

Would there be a better way? ^-^

`kormyen

[ajax Compatability?] Flash Button Updates DIV
Hello.. i have a dynamically attached movie clip with a dynamic, html enabled text link. This all works fine.. what i want to know is how do i have the link update the content div (a separate div than the one the flash window is in) with a new php script?

im sure this is possible, but any suggestions or tutorials i can turn to would really help.

thanks in advance.

Using Lightbox Gallery In Flash
I'm having trouble using lightbox in flash. The readme says to add,

on(release) {
getURL("javascript:flashLightbox('path/to/imagejpg');");
}

to the button-- so I convert my image to a button and under actions I put that in there.. correct?

Then it says to add <param name="wmode" value="transparent" /> to the html.

I do this, but it doesn't work at all.

I click the button and nothing happens. Any idea why?

Here's the full readme,


Quote:




This is a very small and simple modification to Lightbox to allow you
to use the script in conjunction with a flash movie (for a sample of
this see www.kellishaver.com).

I've added a new function flashLightBox() that can be called from within
any SWF file. I've left showLightbox() in thre as well, so the script
can still be used normally.

To call a lightbox image from flash, you would simply assign the
following actionscript to your button/movie clip:

on(release) {
getURL("javascript:flashLightbox('path/to/imagejpg');");
}


I've also modofied the default CSS to give the lightbox containers and
image a higher z-index than the flash movie.

Finally, to get the images to display on top of the movie, you will need
to add the "wmode" paramater to the mark-up for embedding the SWF movie:

<object type="application/x-shockwave-flash" data="myMovie.swf" width="400" height="400">
<param name="movie" value="myMovie.swf" />

<!-- Your MUST add the 'wmode' paramater or your flash will appear
over top of your lightbox images! -->

<param name="wmode" value="transparent" />
</object>

This wasn't a difficult mod, but it did take me a few minutes to sort out,
since there were several files to change, so hopefully this will be of
use to someone.

Flash Lightbox Problem
I've made a flash site that uses a "lightbox" effect to load the pages of the site, so click on a link, an overlay appears and the page loads in the center as an external swf.

Everything works fine, the only problem I'm having is that if you click anywhere within one of the external swf's it closes the lightbox. If the swf has buttons etc they are clickable and work as expected, but essentially each swf is acting as a huge close button (the overlay can be clicked anywhere to close the lightbox, but on the external swfs i only want the close button to close it, not anywhere).

Anyone got any ideas how to stop my swf's acting as giant buttons?

Thanks
Lee

Activating Lightbox 2 From Flash
hi guys, im wondering if it is possible to activate lightbox 2 from flash.

As extracted from the Lightbox tutorial, lightbox needs an <a href> tag with a rel="lightbox" attribute to be activated.

e.g.

Code:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
However I dun think it is possible to use getURL(); for this in flash right?

is there a work around for this? what i am aiming to do is have the user click on an image/mc in my flash

e.g.


Code:
my_mc.onRelease = function() { // Activate lightbox from here };
and have it call the light box up.

thanks a million in advance for anyone who is willing to help...

Lightbox Printing From Flash
Hi everyone... I could use a little help sorting this one out. Thanks in advance for anything that may work. This should only be a couple lines of code that I'm missing.

I have a simple flash file that I created... http://www.internextdesigns.com/Spir...uctPanels.html. In the live version the image thumbs don't spill out.. this is just a quick example page.

The issue is that I can't get the "pop-up" image to print. This is really just a javascript issue, but I thought someone here might know what to do to the Lightbox function.

From researching, I found an older version of Lightbox that prints ( http://www.sitepoint.com/forums/showthread.php?t=558191 ), but the javascript is different from the Flash lightbox that I used. ( Found Here )... and fails when I get to the print part. The button gets added just fine... and it calls the printImage function that I created... but I'm lost with how to make it print. I know it's only a few lines of code, but everything I try breaks.

Any ideas?? I really need to get this figured out... so any help is really appreciated. Thx


Code:
//In lightbox++.js I added the following lines of code in the appropriate places:

var fileBottomNavPrintImage = "images/printlabel.gif";// Print image

var objBottomNavPrintLink = document.createElement("a");
objBottomNavPrintLink.setAttribute('id','bottomNavPrint');
objBottomNavPrintLink.setAttribute('href','#');
objBottomNavPrintLink.onclick = function() { myLightbox.printImage(); return false; }
objBottomNav.appendChild(objBottomNavPrintLink);

var objBottomNavPrintImage = document.createElement("img");
objBottomNavPrintImage.setAttribute('src', fileBottomNavPrintImage);
objBottomNavPrintLink.appendChild(objBottomNavPrintImage);

// and the the function that is blank right now with commented out code that works in other lightbox versions:
//obviously there's a CSS sheet as well


printImage: function()
{
//event.stop();
//var objHead = $$('head')[0];
//objHead.appendChild(Builder.node('link',{id:'lightboxPrintSheet',media:'print', type:'text/css', href:'css/lightbox-print.css',rel:'stylesheet'}));
//window.print();
//setTimeout("$$('head')[0].removeChild($('lightboxPrintSheet'))", 2000);}).bind(this));
}

Calling Lightbox From Flash
Hi!
I'm preparing my portfolio and have some problems with it:/
I would like some buttons in my swf file to call lightbox (http://www.lokeshdhakar.com/projects/lightbox2/) with images.

I have changed my html document:
------------------------------------------------

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>strona</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>



<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

<script type="text/javascript">
function GroupDelegate(id) {
var objLink = document.getElementById(id);
Lightbox.prototype.start(objLink);
}
</script>

</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '700',
'height', '150',
'src', 'strona',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'strona',
'bgcolor', '#ffffff',
'name', 'strona',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'strona',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="700" height="150" id="strona" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="strona.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="strona.swf" quality="high" bgcolor="#ffffff" width="700" height="150" name="strona" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
<a id="img" href="img.jpg" rel="lightbox" title="my caption"></a>
</body>
</html>
------------------------------

and put some as3 code to my button:

------------------------------

Code:
btn.addEventListener(MouseEvent.CLICK, gotoPage);
function gotoPage(event:MouseEvent):void
{

var js:URLRequest=new URLRequest();
js.url="javascript:GroupDelegate('img');";
navigateToURL(js,'_self');
}
------------------------------


but it still doesn't work.
I hope sb will help me It's very important for me to find the right solution because it's part of my school project...

I'm waiting for reply!!! Marta

Flash Intro In A Lightbox
Hi all,

does anyone know what steps i need to take to make make my website start off with my flash introduction in a lightbox?link to lightbox info

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