Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Flash in Silverlight 3: Will Flash be able to communicate with Silverlight layer and web page through External Interface or other methods?
6 replies. Latest Post by bitPusher on June 10, 2009.
(0)
netdragon
Member
0 points
1 Posts
07-01-2008 9:37 AM |
I have read on various blogs (e.g. http://www.insideria.com/2008/04/microsoft-announces-support-fo.html)
that Silverlight 3 will support calling in Flash SWFs. What I'm wondering is whether SWF <-> Silverlight communication will be possible when the SWF is loaded inside of Silverlight, not on a seperate OBJECT in the page (which is an obvious yes). Additionally, will Silverlight allow Flash External Interface to pass through to the web page? I imagine for the 2nd part, if the SWF can communicate with Silverlight through External Interface, then EI can pass it through to the page if Silverlight doesn't have the requested method.
chad.cam...
Participant
1918 points
332 Posts
07-01-2008 9:45 AM |
You can communicate between Flash and Silverlight now. Both technologies are browser-based plug-ins. Because of this, you can communicate through the HTML DOM.
Bill Reiss
Contributor
4840 points
919 Posts
08-11-2008 2:39 PM |
netdragon: I have read on various blogs (e.g. http://www.insideria.com/2008/04/microsoft-announces-support-fo.html) that Silverlight 3 will support calling in Flash SWFs.
that Silverlight 3 will support calling in Flash SWFs.
Umm check the date on that article...it's a fake.
rajesh s...
2314 points
505 Posts
08-12-2008 3:42 AM |
chad campbell is absolutely right.
tlsrcracer7
4 points
2 Posts
05-21-2009 11:47 AM |
What if I have a Listbox that is dynamically filled from a list of objects. Each object contains an address to a different flash video. I would like to have a button (on each ListBoxItem) or something the user could click on the play each different flash video. Is this possible?
05-21-2009 12:15 PM |
Another question about dynamically filling a listbox. Some of the objects have fields that have no value (either string.empty or null). If this is the case, I don't really want to display anything for these fields in the ListBoxItem. Is there a way to set the visiblity of part of the item template to Collapsed if the field that is supposed to go there is null or empty?
For example: If I have a listbox, and I say ListBox.ItemsSource = List<customObject>();Then I have an ItemTemplate defined for the ListBox that displays things like FirstName, LastName, Email, etc. etc. Well if the customObject does not have an email address, I don't want to display the Email address or the 'Email: ' textblock.The template would look like this: First Name: <customObject.FirstName>Last Name: <customObject.LastName>Email: <customObject.Email>
Xaml would look like this:<StackPanel Orientation="Horizontal"> <TextBlock Text="First Name: "/> <TextBlock Text="{Binding Path=FirstName}"/></StackPanel><StackPanel Orientation="Horizontal"> <TextBlock Text="Last Name: "/> <TextBlock Text="{Binding Path=LastName}"/></StackPanel><StackPanel Orientation="Horizontal"> <TextBlock Text="Email: "/> <TextBlock Text="{Binding Path=Email}"/></StackPanel>
Is there a way to do this?Thanks!
bitPusher
2 points
06-10-2009 4:06 AM |
use an IValueConverter bound to your value field to set the visibility. common technique.
tlsrcracer7: Another question about dynamically filling a listbox. Some of the objects have fields that have no value (either string.empty or null). If this is the case, I don't really want to display anything for these fields in the ListBoxItem. Is there a way to set the visiblity of part of the item template to Collapsed if the field that is supposed to go there is null or empty? For example: If I have a listbox, and I say ListBox.ItemsSource = List<customObject>();Then I have an ItemTemplate defined for the ListBox that displays things like FirstName, LastName, Email, etc. etc. Well if the customObject does not have an email address, I don't want to display the Email address or the 'Email: ' textblock.The template would look like this: First Name: <customObject.FirstName>Last Name: <customObject.LastName>Email: <customObject.Email> Xaml would look like this:<StackPanel Orientation="Horizontal"> <TextBlock Text="First Name: "/> <TextBlock Text="{Binding Path=FirstName}"/></StackPanel><StackPanel Orientation="Horizontal"> <TextBlock Text="Last Name: "/> <TextBlock Text="{Binding Path=LastName}"/></StackPanel><StackPanel Orientation="Horizontal"> <TextBlock Text="Email: "/> <TextBlock Text="{Binding Path=Email}"/></StackPanel> Is there a way to do this?Thanks!