Issue 8: Flash ?
Status:  Invalid
Owner: ----
Closed:  Apr 2008
Reported by phili...@edi-phi.com, Apr 22, 2008
Hello, 

I try to use a flash button to open a modal window, but I can't fid the good syntax to do it, is that 
possible ? and if yes how can I write it ?

Thanks a lot

Phil.

 
Apr 22, 2008
Project Member #1 nyro...@gmail.com
it's depend what do you want open from your Flash.
If you want trigger a click in a link (maybe an hidden link in your case), you'll do
something like:
getURL("javascript:$('a#myHiddenLink').nyroModalManual();");
It's the easiest way as you don't have to worry about the settings in your Flash.

Otherwise, you can do something like: 
getURL("javascript:$.fn.nyroModalManual({content:'YOUR CONTENT'});");

Be careful by using the second syntax, as you have to make your settings linear to
not interfere with the javascript call and esacpe everything.


Status: Invalid
Labels: -Type-Defect Type-Other
Apr 23, 2009
Project Member #2 nyro...@gmail.com
 Issue 230  has been merged into this issue.
Apr 23, 2009
#3 betoceru...@gmail.com
Hi,

Is not working for me... i obviously need the second optios as the path for the content must come from flash, 
(is the content attribute actually the path?). 
Also, do i need to include some javascript code in the html page that host the flash movie?... i mean appart 
from the apropiate imports. 
I have successfully call the modal in ActionScript 3 like:
ExternalInterface.call("$.nyroModalManual", path);
 but i coudn´t pass the path parameter to it and also it reloads the entire page when it lunches the empty 
modal.

Thanks for replaying anyway.

Beto.


Apr 23, 2009
#4 betoceru...@gmail.com
Hi all,

I finally found a solution! Since the point of using a modal window from flash is to show extra content i was 
missing how to add the path to the new content... Here is how it works for AS3:

ExternalInterface.call("$.fn.nyroModalManual({url:'" + itemPath + "'})");

And this is triky because when you use ExternalInterface you are supposed to pass parameters separated by a 
coma like this:

ExternalInterface.call("$.fn.nyroModalManual, "param1", "param2");

However since JQuery works differently i found that the first option wors fine, Voalá!

Thanks for support,
Beto.
May 5, 2009
#5 mailtosu...@gmail.com
Hi All,
I have a close button inside flash.How can i close the modal pop up on click of 
close button from flash.

Thanks
Suman
Jan 24, 2011
#6 rowils...@gmail.com
Regards, help, I can not work.

////code flash as2////
on (release) {
	getURL("javascript:$.nyroModalManual({url:'http://www.youtube.com'});");
}

/////and html///
<link rel="stylesheet" href="styles/nyroModal.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="js/jquery.nyroModal.custom.js"></script>
<script type="text/javascript" src="script/swfobject.js"></script>
///
<script type="text/javascript">
$(function() {
  $('.nyroModal').nyroModal();
});
</script>

///////

I'm doing wrong
Thanks
Jan 16, 2012
#7 b...@billpaynedesign.com
Thanks for the step in the right direction, but that code didn't work for me, I was successful with:

ExternalInterface.call("$.nmManual('http://www.google.com')");