Adding .swf reading controls embedded in HTML

Hello

I am completely new to HTML, Flash, etc., then I could certainly use some help.

I took a .flv and placed in a .swf in Flash Professional CS5 (for smoother playback on my site), and I used Dreamweaver to embed the .swf on one of my Web pages.  The video plays well back, but there is no playback control.  In Dreamweaver, I put 'PLAY' and 'LOOP' to false, so in order to play my video, I have to right click and press "Play".  This seems strange and maybe confuse / inconvenient for anyone viewing my Web site (individuals potential employers, because this is my online portfolio).  Anyone have any suggestions on how to add playback controls?  I don't want to use any external players (like Flowplayer), I try hard to avoid watermarks and have to pay for something more.

Interesting note: when I used Dreamweaver to insert the .flv, I had the opportunity to select from a list of playback controls.  However, the .flv did not play smoothly on my site, and I found the solution to put the .flv into a .swf for more comfortable reading.  Unless I find a good solution, I no longer sacrifice impressive quality control or video playback.

Thank you very much

Chris

In Flash, try using the FLVPlayback component.  It has controls/skins that you can select.  And I do not recommend using DW integration of Flash content.  Let the Flash to publish one page html via setting up to do in the publishing settings, copy and paste the embed code for this page into your page html in DW.

Tags: Adobe Animate

Similar Questions

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use the sounds in AS3/Flash. I use Flash Pro CS6, but I can't seem to understand how access control (play, stop, etc) sounds embedded in a SWF external loading in the main SWF file.

    It is easy to control them when they are incorporated on the main swf. However, on a responsible external SWR, I get all sorts of errors. For this application, I really need to incorporate in the external SWF file.

    I've read several solutions, but none seems not to work.

    I integrate the sound file mp3 called soundSegment1.mp3 tool to import Flash CS6 and then open the properties panel actionscript Flash select the name of the class: SoundSegment1. Can I change the class ID and create a file named SoundSegment1.as, and it saved right next to my document class main.as in the same directory. The code for the SoundSegment1 class looks like this:

    package  {

       
    import flash.media.*;


       
    public class SoundSegment1 extends Sound
       
    {

           
    public function SoundSegment1 ()
           
    {
               
    // no code in here
           
    }


           
    public function playSound()
           
    {
               
    var soundSegment1:Sound = new SoundSegment1();
               
    var channel:SoundChannel = soundSegment1.play();
           
    }
       
    }
    }

    Then, in my main.as, I made several attempts to play this sound such as:

    var fileLocation:URLRequest = new URLRequest(SWFToLoad);

    loader.load(fileLocation);

    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);

    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener);

    loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 


    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work

    {

         loader.content.soundSegment1.playSound(); // doesn't work. 

    }

    I get:

    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.

    Otherwise, I also read that I should be able to do something like this anywhere in the Main.as file:

    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.

    I also tried on the completeListener:

    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class;

    var theSound:TheClass = new TheClass();
    theSound
    .play()  //doesn't work either.

    I get:

    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()

    I'm stuck and I really need this to work. I would really appreciate your help.

    Thanks in advance for any help provided. I really need to make it work, because I can not simply incorporate into the main SWF or load them individually outside one by one.

    Thanks again!


    You can use the load and loadCompleteF below:

    var SWFToLoad: String =...;

    var s:String = "SoundSegment1";

    Load (SWFToLoad, s);

    function load (urlS:String, classS:String) {}

    var ldr:Loader = new Loader();

    ldr.contentLoaderInfo.addEventListener (Event.COMPLETE, function(e:Event){loadCompleteF(e,classS);});)

    LDR. Load (new URLRequest (URL));

    }

    function loadCompleteF(e:Event,classS:String):void {}

    var loadedAppDomain:ApplicationDomain = e.target.content.loaderInfo.applicationDomain;

    var C: Class = loadedAppDomain.getDefinition (classS) in class;

    var instance: * = new C();

    Sound (instance). Play();

    }

  • Control embedded Captivate SWF project

    I have a Captivate 8 project that use Flash based fund sovereign and Captivate swf embedded on the slides. I need to be able to insert a button following inside the SWF embedded which will control the project to go to the next slide. The progress bar and the following buttons have been removed from the PlayBar, because users must fill the SWF properly actions in order to move.

    If I understand correctly,

    you have used captivate to create your interactive exercise and published

    then you took the swf and embarked on one of the slides in captivate 'Voulu2 '.

    and now you want your exercise interactive, once completed, make the 'voulu2' to go to another slide

    If this is the case, you can add a flash button to the interactive exercise using the solution in the link I posted above to access variables with one major change... the determination of the scope of where to find the captivateVariables should be like this:

    FOR THE SOVEREIGN FUND DONE WITH CAPTIVATE

    captivateVariables = object (parent.parent.parent.parent.parent.parent.parent) .getMovieProps (.variablesHandle);

    and then just make a flash button to do this:

    someButton.addEventListener (MouseEvent.CLICK, isClicked);

    function isClicked(e:MouseEvent) {}

    var theSlideYouWantToGoTo = 2;

    captivateVariables.cpCmndGotoSlideAndResume = theSlideYouWantToGoTo - 1;

    }

  • Swf flash not working not when it is embedded in html.

    Hi all

    I am a newbie to Flash.

    I'm trying to do is a simple swf with a set of icons of social media like facebook, twitter, youtube, etc.

    I could do in flash using the png as buttons icons and I wrote script action to navigate to the respective Web sites, when you click on each button.

    Everything works fine if I run it from Flash as an swf object (ctrl + enter). When I click on the social media icons, the respective websites are opened in the browser.

    However, if I incorporate this swf in html format, the animation of the buttons work, but sites do not open. I used the code to integrate my swf in html below:

    < div id = "flashContent" align = "center" >

    < object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width = "369" height = "100" id = "social_media" align = "middle" > "

    < param name = "movie" value = "social_media.swf" / > "

    < param name = "quality" value = "high" / >

    < param name = "bgcolor" value = "#000000" / >

    < param name = 'play' value = 'true' / >

    < param name = "loop" value = "true" / >

    < param name = 'wmode' value = 'window' / >

    < param name = "scale" value = 'showall' / >

    < param name = "menu" value = "true" / >

    < param name = "devicefont" value = "false" / >

    < param name = "salign" value = "" / > "

    < param name = "allowScriptAccess" value = "sameDomain" / >

    <!-[if! IE] >->

    < object type = "application/x-shockwave-flash" data = "social_media.swf" width = "369" height = "100" > "

    < param name = "movie" value = "social_media.swf" / > "

    < param name = "quality" value = "high" / >

    < param name = "bgcolor" value = "#000000" / >

    < param name = 'play' value = 'true' / >

    < param name = "loop" value = "true" / >

    < param name = 'wmode' value = 'window' / >

    < param name = "scale" value = 'showall' / >

    < param name = "menu" value = "true" / >

    < param name = "devicefont" value = "false" / >

    < param name = "salign" value = "" / > "

    < param name = "allowScriptAccess" value = "sameDomain" / >

    <!-<! [endif]-->

    "< a href ="http://www.adobe.com/go/getflash' > '.

    "< img src ="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"alt ="Get Adobe Flash player"/ >"

    < /a >

    <!-[if! IE] >->

    < / object >

    <!-<! [endif]-->

    < / object >

    < / div >

    Help, please.

    Thanks in advance.

    Sarat.

    Hey Ned,.

    I tried again by the incorporation of the flash and html on the server download object, and surprisingly, it works now... Maybe that I would have ruined the location of the file in my first test.

    Thanks for your answers.

  • Retrieve the size of the SWF embedded in HTML

    Hello

    I'm looking for the original size (width, height) of a film embedded in a HTML page using javascript.

    In fact, movie.width and movie.heigth return the size of the < object > tag with ID = film, not animation.

    Thank you very much
    Jean-Pierre

    I found the solution.
    Thanks a lot for your help

    Jean-Pierre

  • SWF embedded in html restarts when publishing

    Yes, this is a newbie question, and I'm a little surprised, I can find no mention of this anywhere.  I have a flash banner that plays when my page republished.  I have here a trick to this or don't I have to resort to something heavy handed, as a substitute the flash with the jpg when you publish or write some sort of javascript to check the postpack and assigning false to read.

    Cannot respond to your request for adobe, but no matter which web page you postbacks to will rewrite himself--it's the nature of the beast.  A you have designed your form in Flash, you would have to wonder how to cope since Flash can submit to treatment of file without having to rewrite the page.

    In addition, if you post (postback), you know that you can code the postbacks to rewrite the page differently, then you could go with using a different banner or just a JPEG it as well.

    But you've been given a direction, that you can follow to make it work.  Good luck.

  • duplicate files, added slooowly reading

    I have a Sansa Fuze 8 GB (v 2.02.26) and I am using Windows XP Media Center SP3.

    I used WMP to add files and playlists from the "rocket", while who (eventually) went well (playlists were the problem, not the files) past I listened to it today and I have the following problems:

    1. reading is S-L-O-W. Not to play a single file itself, but by changing the titles is very slow. There is a large gap between the track changes, regardless if the shuffle is turned on or off, or how many files is on the reading list.

    2. I have duplicates copies of almost all the files on my rocket, and almost all of my 8 GB is taken up with less 1 500 files? I don't know how it happened, since I had removed * all * of the "rocket" before restarting the synchronization because she has not so many times.

    This thing is not very old, so hopefully this isn't already in his last breath. My e200 lasted a * very * long time and wasn't half as much of a pain to use:-any help would be appreciated

    {edit}

    I just sync-ed with WMP and there are about 200 files on the "rocket". When I go to my computer > Sansa Fuze there's nothing there!  Then I deleted all the files via WMP but I still somehow don't have 3 GB of free space on the "rocket" and it is * always * nothing on the "rocket" when I search through the route of 'My Computer '. There's also nothing when I search with WMP, but when I unplug the device there are 900 files it contains. Color that confused me.

    Under Settings/Control Panel is the USB Mode. PSG allows Windows Media Player to control the unit. MSC allows workstation see it as a flash drive, for direct drag-and-drop.  Auto Detect go to PSG, if you have WMP 10 or 11 on your computer, MSC, if not.

    That's the fun part: your computer cannot see files added in one mode at a time - EITHER MTP or MSC, not both. This is why my computer can not see them.

    The "rocket" does not care how they got there, he sees all.

    So it is possible you have added files in another USB mode - or had it connected to another computer in Auto - and got dupes. It is also possible that WMP is having one of its small freakouts.

    I suggest that you go to the settings and FORMAT the unit that will erase everything what you have put on (so make sure you have backups before formatting). Then, to clean, to choose a mode, not automatic and add songs.  I love MSC and made myself, but if you like sync with WMP, go to MTP mode.

  • Adding SWF to pdf interactive

    Hello

    I have a multi-doc indesign page preparing to export interactive pdf. I have to add two swf files in different pages, and once I have added to them, they do not show once exported interactive PDF. I tried a lot of different options without success.

    Please let me know what I'm mssing to do.

    1. Add SWF to my page in indesgin,
    2. Export
    3. PDF (Interactive) option.
    4. Without success.

    I see now, my default PDF reader has been set to preview (MAC). I open the file with Acrobat and everything works fine.

    Thank you for looking into this.

  • Reading/Controlling Arduino with iPhone Dashboard

    Hello

    I'm new using Dashboard OR so please bear with me.

    I'm working on the installer is a TCP/IP connection between my computer and an Arduino with WiFi shield. The computer has a VI that connects to the Arduino, currently the Arduino is the server and receives data from sensors that it displays in graphics and medium. VI also adjustable a yellow and Red limits for data from the sensor, and when the latter is reached, a stop test command is sent to the Arduino.

    I am trying to add a smartphone to the current configuration. Initially, I had planned to write an application with a custom telnet but I thought that the dashboard could better work (such as graphics display). I downloaded the dashboard for iPhone but were unable to establish a connection to the Arduino when it is not connected to the computer VI. The connection itself has no effect on the side of the iPhone app shows continually links and nothing else. The only way I know that a connection has been established, it's that the Arduino is defined in the light of an LED only when connected.

    I have three major concerns are:

    1. are there any documents to be able to use the dashboard with iPhone? If not, is the iPhone Dashboard more limited than the dashboard iPad for which there is of the documents? I have not been able to find a lot of documentation for dashboard with iPhone, iPad only (http://www.ni.com/white-paper/13757/en/).

    2. relying on Q1. is it possible to add controls to the iPhone (I have to be able to send a command to stop the phone if the installation should work) of dashboard?

    3 should. the dashboard be connected to a computer running a VI? My original plan to was to directly connect to the Arduino. skip the command stop via the computer, it is doable but diverted.

    Hope to hear from you,
    Yusif Nurizade

    The version of the phone has 'charts', but not 'graphics '. In LabVIEW terminology this means that you can see the latest data and history, but history is stored locally in this table (not the server). You will see that the history of data points that your client has received. In the version of phone we also do support the scalar data types, which means that you can see only one of the data point. Basically, this means that it is not enough for streaming of signals. The dashboard will update the table by adding a single fixed-rate data point (as described here: http://digital.ni.com/public.nsf/allkb/DF058CF63BC25E29862579EB0062E828). No matter what the server made the dash displays only data to the fixed rate, and it will drop all intermediate values arriving between the last update and the next update. It should only be used to see a preview of the last value and certain values passed.

    There are several ways to see the differences between the versions, but perhaps not in the form that you are missing. First of all, this page describes the data types supported for each version:

    http://digital.NI.com/public.nsf/allkb/D9B247551BE7F46A8625795000552CDE

    This page shows the new features available in version 2.x (which is available on the tablets):

    http://www.NI.com/white-paper/14033/en/

    Whatever it is described as a new feature on this page is not available in versions of phone, which are based on the 1.0 version of the application.

    "2. my current setup is Arduino as the server and the client computer. I have to back to allow the phone access to the data on the computer? "You said that theDashboard does not need to delve into TCP/IP at low altitude, so I wonder if there is a way to connect to the VI computer without involving the Arduino or reversal of the client-server relationship.

    I'm assuming that the data that you actually care comes from the Arduino, so at some level, the Arduino could still be considered a server. The concept of client and the server gets a little fuzzier when you introduce an intermediary, i.e. what would be your LabVIEW application. From the point of view of the Arduino the LabVIEW application would be a customer (it connects to the Arduino). From the point of view of the phone the LabVIEW application is the server (the phone connects to it). How your application is connect to the Arduino using its Protocol, acquire all relevant data, convert it to an appropriate data type and publish it in a way that is accessible to the application of data dashboard (i.e. a shared variable or a web service).

  • Save and read control values

    I have a program which is highly intensive GUI.

    It has almost 100 boxes of orders/combo of chain on the front panel.

    Once the user fills all the fields, I need to save all the values to a file.

    I don't care if the user can open/view/play the file, I just need LabVIEW to read.

    Later, it the user will need to load this file and all controls have to be filled from the file.

    From what I have seen when looking for boards of Directors.
    I heard a lot of suggestions like this that say I should

    all controls to group together, and then use the XML functions to read/write.

    I have attached a version very very simplified from what looks like the Panel front of the program.

    Do you agree with the above method? Or do you have another way you prefer?

    I would always try to automate it. Rather than treating each control manually, you can do something in this direction or change my previous example:

    The big advantage is that you do not have to write manually to the code for each single control and when you add controls he just continues to work. If the controls are not all channels, you can use the OpenG screws to convert a string of variant human readable.

  • The variant reading control label

    Hello

    I have a Variant that contains the names and addresses of the various controls. I want to do is be able to read only the label names (in the screenshot, AO3 AO4 address, address, etc.). I tried to use a flatten to a string, but the string data contains the location of the physical address (not the label name). Is there an easy way to read just this first piece of infromation? I also tried to use the variant to the data, but I don't always know what type of data is going to be. Thank you.

    Thank you all! I'll go with the OpenG solution. So far, everything is fine =)

  • CSInterface.evalScript reads the OLD of HTML data

    JS

    $("#browseBtn").click(function(){
        var field = $("#pathField");
        csInterface.evalScript("fileBrowser('*.txt')", function(result){
            field.val(result);
        });
        csInterface.evalScript("setMetadata('file_path', '" + field.val() + "')"); // Reads the old val and not the browsed val
    });
    

    The problem is that the second csInterface.evalScript does not appear to wait for the first update the entry on my UI (HTML) field. Instead, what is sent to my setMetadata() jsx-function is the OLD value. Why? EvalScript is asynchronous?

    $("#browseBtn").click(function(){
        var field = $("#pathField");
        csInterface.evalScript("fileBrowser('*.txt')", function(result){
            field.val(result);
            csInterface.evalScript("setMetadata('file_path', '" + field.val() + "')");
        });
    });
    
  • underscore Embedded fonts html

    I have a html textfield using embedded fonts. I found that because I'm using a font embedded, I am not able to use the HTML < b > < i > and < u >. I found a solution with bold and italic by integrating the fat version and italic of each font and then use the tag make and define the face to the version in bold or italic to the police. The problem I face today is that there is no strictly stressed police. So, how to underline my text?

    You can use these tags.  just assign htmlText to your textfield when using html tags.

  • Adobe PDF Reader - control ActiveX Internet Explorer 11 fails with unspecified error.

    Hello, I'm responsoible to our company's web applications. Part of this application displays PDF files into the browser. Please read the overview of things that I already tried before offering suggestions. I write here before raising the issue through CC for the support teams in the hope that someone is aware of the solution or workaround.

    Recently, we received a large number of requests for assistance regarding files PDF no longer display in the browser window on Internet Explorer 11 despite the current plugins and update being installed. I have reproduced this problem on several machines now. All are running Windows 7 Professional x 64 with IE11, and all Microsoft and Adobe updates are up-to-date. I have limited access to test on other combinations of BONE; However, given the number of customers who have called us, I am sure that the issue is widespread.

    When you try to instantiate the ActiveX control, there is a non-specific error returned: "Error". The following code in the console displays the message:

    try {var ax = new ActiveXObject ("AcroPDF.PDF") ;} catch (e) {console.log (e) ;}

    • I tried using the latest version of the plugin installed by XI Acrobat or Adobe Reader XI (11.06.70). Uninstalling and reinstalling does not solve the problem.
    • I ran the installation repair on the Help menu in Reader and Acrobat, nothing helps.
    • ActiveX filtering does not cause the issue. I checked that it is disabled. The control is not blocked by the preference of the user. I checked that it is authorized to run the site in my configuration.
    • Internet Explorer, Enhanced Protected Mode is not causing the problem. I tested in several security zones and lowered all minimum of IE to the strict security settings.
    • The number of instances of increments AcroPDF.dll during an attempt to instantiate the control, then it is called by EI; "Error" is returned from the DLL not the OLE Automation Server.
    • Other ActiveX controls can be instantiated and will work perfectly, including controls only 32-bit.
    • I tried editing the registry has suggested to "HCU\Software\Microsoft\Internet Explorer\Main\TabProcGrowth" (DWORD) to 1 to no effect.

    Thank you, everyone for the advice.

    I fixed this problem by following these steps:

    -Reset IE11 (Tools-> Internet options-> advanced)

    -Start the ActiveX Installer service in services

  • load the SWF into the centre in html file

    Hello

    I wrote the html file in flash.

    SWF load the high left side in html, but I have to load the html Center.

    How to configure the settings. Please help me

    tnks

    In the html code of the page, set the div holding the Flash content to be centered.

Maybe you are looking for

  • Safari on iPhone 6 blocking up

    My browser safari on my iPhone is locked with a security warning message and tell me to call Apple Support. I know that it is false and I have read several posts on how to fix this on a Mac, but how do I do on my phone. Now, Safari is essentially a l

  • need bios pwd reset for Pavilion 15-n013dx win8 halt-code 65925557

    need bios pwd reset for Pavilion 15-n013dx win8 serl # [redacted for privacy] halt-code 65925557 A used Guigou the laptop computer and the password of the bios.  I see that you have a way to run the stop code to an access code.   It's an allmost new

  • There is a duplicate network name

    How can I fix it?

  • Blue arrows covering tiles

    all of a sudden when I look in my photo files, thumbnails are almost entirely covered by a blue box with 2 arrows forward white. It is so annoying because now I can't see the thumbnails.  How to remove the arrows? Thank you

  • BY buying getTransactionId() get the value zero.

    Hello friends, I do real tests, but still I'm getting transactionID zero. I didn't know why I make id transection zero? When I did my project application at this time I use sandbox at this point I'm getting zero id transection. I got to know that I a