A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Bumpbox help?

  1. #1
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755

    Bumpbox help?

    ok..so Im trying to get BUMPBOX working..in its BASIC format..before I 'try' and move onto adding some javascript call/externalface call to my Flash movie to call this BumpBox garbage..

    and for whatever reason..I cant even get the basics working.. (they dump all files in root..yet all code example link to files in directories.. very lame/un-professional)

    anyways...

    I have my html code as such:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
    	
    	<title>BUMPBOX TEST</title>
    
    	<script language=“javascript“ type=“text/javascript“ src=“mootools.js“></script>
    	<script language=“javascript“ type=“text/javascript“ src=“mootoolsmore.js“></script>
    	<script language=“javascript“ type=“text/javascript“ src=“bumpbox.js“></script>
    	<script language=“javascript“ type=“text/javascript“ src=“flowplayer.min.js“></script>
    
    </head>
    <body>
    
    <h2>Example</h2>
    
    <a href="image-1.jpg" class="bumpbox" title="My Image">Open my image</a>
    
    </body>
    </html>
    Pretty straight forward..

    and it doesnt work..just works like a normal link..opens picture in a new page.

    no MODAL anything.. no overlay..etc

    If anyone has used this non-sense.. PLEASE chime in..

    help me out as to what the heck Im doing wrong?

    I must be missing some files? not including some javascript correctly?

    there documentation is angering at best!.. and ther really inst much out there..

    alternatively.. I'll use ANYTHING thats like LIGHTBOX..that can play videos and .flv's..

    I read & searched.. and I have NOT been able to 'do' anything..

    some need to have the JW Player loaded? Which I couldnt figure out its done.. find any examples..

    this Bumpbox joke. is supposed to at least play .flv's.. but it works like kaka..


    any help is appreciated.

    Thanks

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    c'mon..this garbage Lightbox non-sense has been around for years.. (as well as the variants... Bumpbox, Videobox, LightWindow...etc..etc..etc)


    the missing KEY for me here is launching from my Flash movie:

    I add this to my HTML page:
    <script type="text/javascript" src="video/js/mootools.js"></script>
    <script type="text/javascript" src="video/js/swfobject.js"></script>
    <script type="text/javascript" src="video/js/videobox.js"></script>

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


    if I add regular HTML links to the page:
    <a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption">our video</a>
    <BR>

    <a href="http://www.youtube.com/watch?v=VhtIydTmOVU" rel="vidbox 800 600" title="caption2222">our video1111</a>

    it works..


    but I can NOT for the LOVE OF GOD.. launch it from inside of my Flash movie????

    What gives?

    to be more 'complete'

    the project is loading some text from XML.. and displaying it in a TEXT HTML enabled text field..

    the LINK from inside there is how I want my Videobox (or whatever) launched..

    I have tried using an ASFUNCTION to just pass int he movie name/url... and then make a custom function to launch the Videobox thingy.


    the asfunction works for passing in the name/url..

    like so:
    <a href="asfunction:getMovie,http://cdn.video-files.com/services/player/bcpid678787071001?bctid=679069838001">Arizona Media Coverage</a>

    but I can NOT get any sort of javaScript call to work on loading the Videobox???


    I have also tried to leave it default HTML link to call the Vidobox thing.

    <a href="http://www.youtube.com/watch?v=VhtIydTmOVU" rel="vidbox" title="caption2222">our video1111</a>


    Please someone jump in here and show me how retarded Im being??


    Thanks

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    check this

    gparis

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    thats for the reply..

    my JS is zero to none.. =(

    I have things working 'sorta' working.. but cold use some javascript suggestions/syntax help?

    Im using LightWindow..because it 'does' support the media I am calling (finally)

    http://www.p51labs.com/lightwindow/index.html#howtouse

    with some code samples ^



    import my scripts:

    <script type="text/javascript" src="javascript/prototype.js"></script>
    <script type="text/javascript" src="javascript/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="javascript/lightwindow.js"></script>
    <link rel="stylesheet" href="css/lightwindow.css" type="text/css" media="screen" />



    they gave this as an example of how to call form javaScript:

    Code:
    myLightWindow.activateWindow({
    	href: 'http://stickmanlabs.com/images/kevin_vegas.jpg', 
    	title: 'Waiting for the show to start in Las Vegas', 
    	author: 'Jazzmatt', 
    	caption: 'Mmmmmm Margaritas! And yes, this is me...', 
    	left: 300
    });"
    I changed it a bit to be a function I could call form Flash in my html head

    Code:
    function makeLW() {
    		myLightWindow.activateWindow({
    			href:'http://cdn.video-files.com/services/player/bcpid678787071001?bctid=679204101001', 
    			title: 'TEST TITLE', 
    			author: 'AUTHORE NAME', 
    			caption: 'TEST CAPTION', 
    		});"
    	};
    (not even sure I have syntax correct?)

    and eventually I'd like to pass all params through the function in the end.. but for now hard coding will suffice!

    the HTML link works fine...

    <a href="http://cdn.video-files.com/services/player/bcpid678787071001?bctid=679204101001" class="lightwindow" params="lightwindow_width=480,lightwindow_height=2 75" title="Some Movie" caption="Caption test..123">Link Test </a>


    but I cant seem to bridge the Flash > JS call gap.. so any help is appreciated!

    I tried getURL()'s and ExternalInterface calls.


    getURL("javascript:makeLW();","_self");

    ExternalInterface.call("makeLW");


    any ideas?


    thanks for the help!!!!!!!!!!!!

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Just use his code, especially with creating the 'a' element and all the setAttribute() and the parameters that you'll call from Flash. JS is quite like AS. If you get one you should get the other. Same differences than between english and american ;-)

    gparis

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