This is a migrated thread and some comments may be shown as answers.

How to open a RadWindow on a flash

3 Answers 107 Views
Window
This is a migrated thread and some comments may be shown as answers.
Haderach
Top achievements
Rank 1
Haderach asked on 24 Oct 2008, 08:26 AM
Hello,

I am trying to open a RadWindow on a flash for which I have not the source.
I try this :

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:90000" 
                EnableEmbeddedSkins="False"  VisibleOnPageLoad=false VisibleStatusbar="false" Skin="Officin" Behaviors="Close">  
                <Windows> 
                          
                        <telerik:RadWindow        
                            OpenerElementID="<%# lnkFlash.ClientID %>"               
                            NavigateUrl="Inscription1.aspx" 
                            Runat="server"   
                            Width="478px"          
                            Height="440px" 
                            Modal=true 
                            Id="RdWinInscription2" EnableEmbeddedSkins="false" style="z-index:90000" Skin="Inscription"  > 
                        </telerik:RadWindow> 
 
</windows></telerik:RadWindowManager> 

with

<asp:LinkButton ID="lnkFlash" runat="server"><OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="305" width="641" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT> 
                            <PARAM NAME="Movie" VALUE="images/animation_Prehome.swf">  
                            <PARAM NAME="Src" VALUE="images/animation_Prehome.swf">  
                            <PARAM NAME="WMode" VALUE="transparent">  
                            <PARAM NAME="Play" VALUE="false">  
                            <PARAM NAME="Loop" VALUE="true">  
                            <PARAM NAME="Quality" VALUE="High">  
                            <embed src="images/animation_Prehome.swf" wmode="transparent" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
                                type="application/x-shockwave-flash" height="305" width="641"</embed> 
                        </OBJECT></asp:LinkButton> 

but it is not working...

Do you have any idea to help me?

Thank you!


3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 Oct 2008, 08:59 AM
Hello Haderach,

You cannot put a flash movie inside a link button and refer the link ID to open RadWindow, because you cannot get the click on the link button, but on the movie.

In order to achieve the desired result you have to edit the .fla file of the movie, and use the getURL method of ActionScript to set the scirpt that will open RadWindow and then export the .swf file.

Unfortunately, I cannot help here, as we are not much into Flash, but I believe that it is relatively easy to do this, something of the kind:

getURL('javascript: radopen('window.aspx')');

Have a great weekend,
Martin Ivanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Muneezah Hashim
Top achievements
Rank 1
answered on 21 Jul 2009, 12:03 PM
Hello Mr. Ivanov,

I need to open a RadWindow through a flash file and your solution [ getURL('javascript:radopen('....')'); ] though seems quite simple but I am unable to figure out how the flash file will recognize the function radopen() ?? Do we require to register the telerik DLL with the flash? If Yes, then HOW? [ We're using Adobe Flash cs3 and Actionscript 2 to create the flash file and VS 2008 along with Telerik 2008.3.1125.35 to open the RadWindow!!!  ]

It'd be kind if you can please help me out!

Thanks and regards.

Muneezah.
0
Martin
Telerik team
answered on 21 Jul 2009, 12:19 PM
Hi Muneezah Hashim,

I was wondering if you have tried the getURL() solution?

I believe that firing radopen though getURL is as simple as firing getURL('javascript:alert("")') with the same method. in Flash, getURL() loads a document from a specific URL into a window or passes variables to another application at a defined URL. By the light of the above, you may also use pseudo protocols such as javascript: or mailto:, and the method will act exactly as the <a href="javascript:radopen()" /> or <a href="mailto:email@server.com" /> will work. However, the best proof of concept, is trying it.

Greetings,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Haderach
Top achievements
Rank 1
Answers by
Martin
Telerik team
Muneezah Hashim
Top achievements
Rank 1
Share this question
or