FLVPlayback - how to specify source fla when running

I am a total newbie with Flash.

We want to host video on our site. The video display is selected by the user. I wanted to use the FLVPlayback component to display the video by specifying the URL of the source of the .fla file when running in the HTML code of the page. I have no idea how to access the source property when running in the object tag or whatever. Obviously, I need to learn the Actionscript to understand, but can someone give me a simple example of how it would be done or point me to a tutorial on this?

The object tag looks like this:

< object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase ="" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,0,0 " width ="550"height ="400"id ="Viewer"align ="middle">"
< param name = "allowScriptAccess" value = "sameDomain" / >
< param name = "allowFullScreen" value = "false" / >
"" "< param name ="movie"value =" viewer.swf"/ > < param name = value of 'quality' = 'high' / > < param name ="bgcolor"="#ffffff"value / > < embed src =" viewer.swf "quality ="high"bgcolor ="#ffffff"width ="550"height ="400"name ="Viewer"align ="middle"allowScriptAccess ="sameDomain"allowFullScreen ="false"type =" application/x-shockwave-flash"pluginspage =" http://www.macromedia.com/go/getflashplayer ' / >
< / object >

There is also a javascript function:

AC_FL_RunContent)
'codebase', ' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,0,0',
'width', '550'.
'height', '400',
'src', 'drive ',.
'quality', 'high ',.
"pluginspage", ' http://www.macromedia.com/go/getflashplayer ", "
"align", "middle",
'play', 'true ',.
'loop', 'true ',.
"scale", "showall"
'wmode', 'window ',.
"devicefont", "false."
'id', 'drive ',.
'bgcolor', '#ffffff ',.
"name", "viewer",.
'menu', 'true ',.
'allowFullScreen', 'false. '
"allowScriptAccess", "sameDomain",.
'film', 'the observer ',.
"salign", "
); end AC code

It's a question of falling in the code here, or I need to change my viewer.swf to accept the parameter?


Seems to be quotes in the flashVars parm. I removed the and it works now.

Thanks for listening!

Tags: Adobe Animate

Similar Questions

  • How to tie a menu when running in forms 6i?

    HII,

    I use Form 6i,

    Is there any possible to attach the menu module when running?

    Please guide me.

    Iqbal

    Hello

    Use integrated replace_menu.

    Arun-

    Note: This is obsolete in 9i.

  • How to specify copyright information, when you use a .jad file.

    When deploying applications by using a files .alx file, we have the ability to specify the tags to provide copyright information.  Is there an equivalent property that can be added to a .jad file to use in the deployment of the OTA?  Or is the best way to add copyright information to the MIDlet-Description?

    Thank you in advance!

    It is not a specific entry of JAD file for copyright information.  I recommend to add to the item description as you suggested.

  • How to import a jar when running?

    Hi all

    I'm going to develop an application for BlackBerry and I have a question for you. My application needs to load data from a webservice, well, it's pretty easy, but the xml it receive contains a base64 string is (decoded) a .cod containing classes. Is it possible to load while running? If true, can you show me how?

    Thank you

    James

    Yes - see CodeModuleManager and associated classes - for example the writeNewModule (.) method.

  • How to draw a line when running

    I need to draw a line at run time, and I found this myShape.graphics.moveTo '(100, 100);  myShape.graphics.lineTo (200, 200); "but do not know with certainty how to declare myShape, I think he needs 2 lines to declare correctly, right?

    :

    var myShape:Shape = new Shape();

    addChild (myShape);

    myShape.graphics.moveTo (100, 100);

    myShape.graphics.lineTo (200, 200);

  • How to load the list when running

    hiiiiii I have total 100 events list...

    But first, I have 20 events display when I scroll the list down when I reached 20 events th I load another 20 events to the list please give me suggestions to do this to me...

    If you have all 100 items available then you should put all the entries in the ListField.

    In situations when not all are available and you must get them (from a server), a little at a time, then you might have a 'Next' button and allows to do the treatment.  Without doubt, you also need a 'Back' button  I wouldn't try to drive it when the user scrolls to the end of the list.  Because there is a long delay, get the 'next page', I think that instead of using a user interface there different - people expect a scroll to be instant.

  • How to resize the Bitmap when running?

    Hello

    I created a Bitmap that reads directly from a file. The actual size of the image (test.png) is 360 x 50. I displayed this bitmap image in a BitmapField.  Now, I want to display this image in my application so that it should take the width of the screen and adjust (expand or compress) so based on the TILT of the device (in the case of BB storm). My code is as below:

    {
       Bitmap image = Bitmap.getBitmapResource("mainmenu_green.png");
        BitmapField bmpMainMenu = new BitmapField(image);
    
        MenuScreenVFM verticalManager = new MenuScreenVFM();
        verticalManager.add(bmpMainMenu);
        add(verticalManager );
    }
    
    //MenuScreenVFM  Class..
     static class MenuScreenVFM extends VerticalFieldManager
     {
            // Constructor
            private MenuScreenVFM()
            {
                super(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR | VerticalFieldManager.FIELD_HCENTER);
            }
    
           net.rim.device.api.ui.container.VerticalFieldManager#sublayout(int,int)
             */
            protected void sublayout(int width, int height)
            {
                int nTop = 65;
                Field field = getField(0);
                layoutChild(field, Display.getWidth(), 40);
                setPositionChild(field, 0, nTop);
                setExtent( Display.getWidth(), Display.getHeight());
            }
    }
    

    The image must stretch/compress based on the width of the screen. Any info/code would be really appreciated.

    Thank you

    -DK

    I created a CustomBitmapField extends the field and for the scaling of the image, I used the following code:

       public static EncodedImage scaleImageToWidth(EncodedImage encoded, int newWidth) {
                 return scaleToFactor(encoded, encoded.getWidth(), newWidth);
       }
    
        public static EncodedImage scaleImageToHeight(EncodedImage encoded, int newHeight) {
               return scaleToFactor(encoded, encoded.getHeight(), newHeight);
        }
    
        public static EncodedImage scaleToFactor(EncodedImage encoded, int curSize, int newSize) {
             int numerator = Fixed32.toFP(curSize);
             int denominator = Fixed32.toFP(newSize);
             int scale = Fixed32.div(numerator, denominator);
    
             return encoded.scaleImage32(scale, scale);
        }
    
      protected void paint(Graphics graphics) {
            graphics.setColor(backgroundColour);
            graphics.drawImage(0, 0, Display.getWidth(), fieldHeight,   this.scaleImageToWidth(bmpBG, Display.getWidth()), 0, 0, 0);
               }
    

    I would like to know if it works... If works please set Bravo... that will encourage those who post the solution

    Kind regards

    -DK

  • How to remove lov associated to an element when running?

    Hi all

    I have a text element that will have either an associate or not during the performance lov depends on another column. I know how to assign a lov when running but how to remove associate lov of a component during execution?

    Thank you
    Allen

    Allen,

    Try this code,

    SET_ITEM_PROPERTY('.', LOV_NAME, '');
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • How I can run GWBASIC when running Windows 7 Home Premium?

    How I can run GWBASIC when running Windows 7 Home Premium?

    Depends on what makes your source GWBASIC program, you could possibility to use the new direct version of the base system:

    http://SmallBasic.com/

  • When I shut down windows end progra - sample appears and windows will not be stopped, unless I click for end of program. Eny one have an idea how to stop this program from running?

    When I shut down windows end progra - sample appears and windows will not be stopped, unless I click for end of program. Eny one have an idea how to stop this program from running?

    Then, you will need to request Support Intel if the drivers you downloaded were appropriate for your hardware and Windows XP.

  • How is it that some machines running windows vista, when the router is updated or changed, they show "limited or local only" when you reconnect then wireless.

    problems with wireless Vista "local only".

    How is it that some machines running windows vista, when the router is updated or changed, they show "limited or local only" when you then reconnect wireless... nothing else was changed on those computers and other devices can connect ok?

    Hello

    Each router is assigned to the specific address (called IP address or IP address). And each router maintains its own database (called as base of router) to follow the networking devices communicate with him. When the router is changed, the particular router is unable to detect the device, especially the network card to communicate with the computer.  Since he does not have details of the database of network devices, communicate with him.

    • You are able to access the Internet?

    Try the steps mentioned below and check:

    Method 1:

    Step 1: Enable or disable a network adapter and then check:

    http://Windows.Microsoft.com/en-CA/Windows-Vista/enable-or-disable-a-network-adapter

    Step 2: Run Network Diagnostic tool and check:

    Network connection issues: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    Method 2: Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Reference links:

    Of network connectivity status incorrectly as 'Local' only on a Windows Server 2008 or Windows Vista-based: http://support.microsoft.com/kb/947041

    Setting up a wireless network: http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-wireless-network

    Connection to wireless with Windows Vista: http://technet.microsoft.com/en-us/library/bb878035.aspx

    Hope it works.

  • How to display values of connection/iterator when running?

    Hello:

    I'm trying to debug problems with the links and iterators, with jdev 11.1.2...

    When you look at the EL Expressions for the links, I am presented with many opportunities. I want to display those values to determine what I'm looking for. Currently, I am assigning an EL expression as #{bindings.dept.inputValue} to an af:output text field, but it is a slow, tedious process. Where in the Oracle documentation each link field mentioned?

    Also, is there a faster way to examine the values of different fields in links when running? So I'm looking for something like the browser component except for links and iterators. I can do this with the debugger, or what? If so, how? For example, what is the difference between #{bindings.dept.inputValue} and #{bindings.dept.items}.

    So the question is to know how to create a form or? to examine the values of the bindings/iterators executing?

    Thanks for the help.
    Don

    the el elvauator will get activated only when the debugger see a breakpoint...
    one thing you can do, it's that to set a breakpoint in the pagedef... for the links section or the executable section...
    as mentioned here
    http://blogs.Oracle.com/DavidGiammona/entry/new_features_in_the_adf_debugg

    You can also set the breakpoint in the taskflow... and allow the assessor of el...

  • How to add a PPR to the button when running

    Hi all
    I have a text named "status" entry and it has links to this method
          public void setStatus(RichInputText status) { 
            setCurrentRecordStatus((String)status.getValue());
            System.out.println("status value is"+(String)status.getValue());
            status.setAutoSubmit(true);
            this.status = status;
        }
    And I have the "submitBtn" command button and I set the disable property to this method
          
        public boolean isDisableSubmitButton() {
          if (getCurrentRecordStatus() == "E") {
              disableSubmitButton=false;
          } else {
             disableSubmitButton = true;
          }
            return disableSubmitButton;
        }
    
        public void setCurrentRecordStatus(String currentRecordStatus) {
            this.currentRecordStatus = currentRecordStatus;
        }
    
        public String getCurrentRecordStatus() {
            return currentRecordStatus;
        }
    I want to put the partial "trigger" property of the command key is the id of the input text 'status' when running so that the property enable and disable the Refresh button.

    I can't do this design-time for many reasons, one of them is that the button is on the template and the content of the page changes after menu selection.

    My question is: how to add a PPR to this button during execution?
    Help, please
    Thank you

    Hello

    Try like this I hope this helps.

    for example:

    Jspx page:





    At the bean:

    private RichPopup * bindpopUp *;

    public String testmMethod() {}
    AdfFacesContext.getCurrentInstance (.addPartialTarget(*bindpopUp*));
    Returns a null value.
    }

    * Note :*

    Add partialsibmit if you use all the action in the component.

    Remove the partial triggers in the page, if you gave for the same component in the managed Bean. Add target partial bean or in the page... in a place...

    Kind regards
    Guillet

  • How to change text labels that created when running?

    Hello

    I am creating label dynamic runtime controls and adding them to a group element. This component of the group is in another custom component and I have a lot of comp. custom in my application.

    My question is how to access (via id) and change a text whict labels created when running?

    I can change it, but I am the creation of the id and that you want to reach via id.

    var lbl:mx.controls.Label = mx.controls.Label (subMenu5.group_subMenu5.getElementAt (1));

    LBL. Text = "good job."

    Thanks, have a nice day.

    First of all, if you already use a group of Spark, I would say that you use a label of the spark instead of a label of MX. If you want to refer to the label of the group, to loop through the elements of the Group and check if the id of the item corresponds to the label that you want to assign text.

    var lbl:Label;

    var n: int = myGroup.numElements;

    for (var i: int = 0; i< n;="">

    {

    LBL = myGroup.getElementAt (i) as Label;

    If (lbl & lbl.id == "myLabel")

    {

    LBL. Text = "newText";

    }

    }

  • How to create a reference in the schema when running?

    Hello

    I make a program and I would like to create references to objects at run time, y at - it a function in labview that lets do?

    Thanks in advance!

    It of maybe just me, but what do you mean by "cluster objects"?

    What is a cluster as terminal? If this is the case, then just to let you know, that a cluster cannot change the size/number when running, you need a table for this.

    Where are you what to change the visibility for?

    If it's a 'high-level' orders/lights vi you what to change the visibility on a Subvi, then you must provide the sub - vi with an array of references to the controls/indicators.

Maybe you are looking for