[CLOSED] How to show a .swf animation with FlashComponent using Javascript?

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] How to show a .swf animation with FlashComponent using Javascript?




    Hi,

    Could you please give me an example about how to show a .swf animation with FlashComponent using Javascript?


    Thanks,

  2. #2

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi,

    FlashComponent is just wrapper around flash object. Its javascript functions depends from loaded swf file. Therefore you should to ask about it your flash developer.


    To get flash object in the javascript
    FlashComponent1.el.dom
  3. #3

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi,

    I have the following code to show the swf animation using javascript, but it does not work.

    Could you tell me please what I am doing wrong?


    
    
    
    
    <script type="text/javascript"> 
    
    
    function showAnimation(portalAnimation)
    
    
    {
    
    
        var animationUrl =  './Portals/EN/' + portalAnimation;
    
    
        flasSearchPortal.load({ url : animationUrl});
    
    
    }
    
    
    
    
    <ext:LayoutColumn ColumnWidth="0.8">
    
    
    <ext:Panel ID="Panel5" runat="server" Width="680px" Padding="5" Height="415px" >
    
    
    <Content>
    
    
    <ext:FlashComponent ID="FlashSearchPortalAnimation" runat="server" 
    
    
    Height="415px" 
    
    
    Width="680px"  />
    
    
    </Content>
    
    
    </ext:Panel>
    
    
    </ext:LayoutColumn>
    
    
    </script>
  4. #4

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi,

    I had a wrong name for the flash componet and fixed, but the animation is not showed.

    
    
    
    <script type="text/javascript"> 
    
    
    function showAnimation(portalAnimation)
    
    
    {
    
    
        var animationUrl= './Portals/EN/' + portalAnimation;
    
    
        FlashSearchPortalAnimation.load(animationUrl);
    
    
    }
    
    
    
    
    
    </script>
  5. #5

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi,

    FlashComponent doesn't support changing url after rendering.
    Try the following code but I am not sure that it will work
    FlashComponent1.el.dom.data = newurl;
  6. #6

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    HI,

    I did what you say what it does not work.

    Do you think the following code is correct and it is enough to make work the animation using javascript or I am missing something?

    
        <script type="text/javascript">   
             function showAnimation(portalAnimation)
             {
                 var animationUrl= './Portals/EN/' + portalAnimation;
    
                 FlashSearchPortalAnimation.el.dom.data = animationUrl;
             }
         
         </script>
  7. #7

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi,

    Are you sure that you use correct ulr? Just the dot in the begining of the url confuse me. May be you have to use two dots?
    '../Portals/EN/'+portalAnimation
  8. #8

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Yes I am sure "./ " is for the current directory

    I use it for almost all of the code and it works fine.
  9. #9

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    Hi Flor,

    Can you demonstrate how you would change the url of a flash object using JavaScript without Coolite/ExtJS on the Page? just using raw native JavaScript.


    Once we have that we should be able to provide an example of how to hook that up to a Listener and use the el.dom object.


    Geoffrey McGill
    Founder
  10. #10

    RE: [CLOSED] How to show a .swf animation with FlashComponent using Javascript?

    I found the following link that can be useful to you:

    http://bytes.com/topic/javascript/an...ge-flash-movie

Page 1 of 2 12 LastLast

Similar Threads

  1. FlashComponent in window
    By bovo13 in forum 1.x Help
    Replies: 14
    Last Post: Dec 11, 2012, 2:04 PM
  2. [CLOSED] Show Mask using javascript.
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 07, 2011, 9:49 AM
  3. [CLOSED] Loading a swf file with a FlashComponent using javascript
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 26, 2010, 3:50 PM
  4. Replies: 1
    Last Post: Feb 24, 2010, 4:38 PM
  5. Help...Javascript Window show...
    By SamBoKing in forum 1.x Help
    Replies: 0
    Last Post: May 26, 2009, 11:59 PM

Posting Permissions