[CLOSED] .SWF aninimation is not showed using FlashComponent

  1. #1

    [CLOSED] .SWF aninimation is not showed using FlashComponent

    Hi,

    I need to show an animation when a treepanel node is clicked, I am using the control FlashComponent with the following code, but it does not show the animation

    Could you please tell me what else do I need to do?

    protected void TreePanelPortalsNodeClick(object sender, DirectEventArgs e)
    {
        portalAnimation.Url = this.ResolveUrl(@".\Portals\EN\Portal1.swf");
    }
    
    <West Split="true" MarginsSummary="5 5 5 5">
        <ext:TreePanel 
            ID="TreePanelPortals" 
            runat="server" 
            Padding="5"
            Animate="true"
            EnableDD="true"
            ContainerScroll="true"
            DDGroup="organizerDD"
            RootVisible="false"
            Width="200"
            AutoScroll="true">
            <DirectEvents>
                <Click OnEvent="TreePanelPortalsNodeClick"/>
            </DirectEvents>
        </ext:TreePanel>
    </West>
    <Center>
        <ext:Panel ID="Panel3" runat="server">
            <Items>
                <ext:FlashComponent ID="portalAnimation" runat="server" Height="400px" Width="700">
                </ext:FlashComponent>
            </Items>
        </ext:Panel>
    </Center>
  2. #2

    RE: [CLOSED] .SWF aninimation is not showed using FlashComponent

    Hi,

    FlashComponent doesn't support changing url after rendering. Therefore you have to rerender component

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>FlashComponent - Ext.NET Examples</title>      
        <script runat="server">
            protected void ChangeMovie(object sender, DirectEventArgs e)
            {
                VideoPlayer.Url = "http://vimeo.com/moogaloop.swf?clip_id=9505354&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1";
                VideoPlayer.Render();
            }
        </script>
    </head>
    <body>    
        <form runat="server">    
            <ext:ResourceManager runat="server" />
            
            <ext:Window 
                ID="Window1"
                runat="server" 
                Title="Flash Movie" 
                Layout="fit" 
                Height="320" 
                Width="402"
                Maximizable="true">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button 
                                ID="Button1" 
                                runat="server" 
                                Text="Change movie" 
    
                            >
                                <DirectEvents>
                                    <Click OnEvent="ChangeMovie"></Click>
                                </DirectEvents>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:FlashComponent 
                        ID="VideoPlayer"
                        runat="server" 
                        Url="http://vimeo.com/moogaloop.swf?clip_id=3911557&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1&amp;js_api=1">
                        <FlashParams>
                            <ext:Parameter Name="allowfullscreen" Value="true" Mode="Raw" />                
                        </FlashParams>
                    </ext:FlashComponent>
                </Items>
            </ext:Window>
        </form>
    </body>
    </html>

Similar Threads

  1. Replies: 16
    Last Post: Mar 14, 2013, 8:34 AM
  2. FlashComponent in window
    By bovo13 in forum 1.x Help
    Replies: 14
    Last Post: Dec 11, 2012, 2:04 PM
  3. Image and FlashComponent
    By LLdeOJ in forum 1.x Help
    Replies: 0
    Last Post: Nov 24, 2010, 1:24 PM
  4. FlashComponent Example is not working
    By Hiverli in forum Examples and Extras
    Replies: 3
    Last Post: Sep 30, 2010, 7:52 AM
  5. [CLOSED] Icon is not showed with the ActiveItem using CycleButton
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 05, 2010, 4:45 AM

Posting Permissions