Log in

View Full Version : Calling DHTML Window widget From within Flash



Sentis
06-18-2007, 02:21 AM
Hi, I've been trying ways of calling the DHTML Window widget from within a Flash movie (using on(release) on a Flash button), with no luck at all.

Can anyone tell me how to call:



<a href="#" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'external.htm', 'Ajax Win Title', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false">Create/ Open Ajax Window</a>


from withing Flash? Am not an expert at all, hence a layman-explanation would be highly appreciated.

Thanks again

triskelion
06-19-2007, 04:49 AM
After several hours of trying (im not programmer just a bit curious) i made a button with this as in it:

on (release) {
getURL ("javascript:ajaxwin=dhtmlwindow.open('ajaxbox','ajax','pageintoyourserver.htm','title','width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1');void (0);");
}

this works perfectly for me, using firefox last version and IE 6 too.

Hope this helps you!!!!

triskelion
06-19-2007, 04:51 AM
note: dont know why a space appeared in the void word, it must be all together as here:

on (release) {
getURL ("javascript:ajaxwin=dhtmlwindow.open('ajaxbox','ajax','pageintoyourserver.htm','title','width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1');void (0);");
}

triskelion
06-19-2007, 04:52 AM
Whoops!!!! it happened again and i double checked!!! ... just remember, void MUST be all together, just one word.