Difficulties to use the swf file that is hard-coded to display flv files

Hello

I created a swf player using the flvplayback component to display flv files. The document in flash is 275 pixels wide by pixels long 130px. I also have my video component (flyPlayBack) set to 275px by 100px to display the playback controls. My flash code this is my simple as follows:

Fl.video import. *;

var myflashvars:Object = new Object();

myflashvars = this.loaderInfo.parameters;

var fullVideoPath:String = "";

(point var: string in myflashvars)

{

If (point == "filename")

{

fullVideoPath is myflashvars [point];.

}

}

videoPlayer.source = fullVideoPath;

So, using the above it should play the video and made.

(1) the first question is that I tried to play 2 different videos in my html code.

< object classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase =' http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=10, 0,0,0 'width = ' 275' height = "130" >
< param name = "allowFullScreen" value = "true" / >
< param name = "movie" value = "moviePlayer.swf" / > "
< param name = 'wmode' value = 'window' / >
< param name = "scale" value = 'showall' / >
< param name = "of the flashvars value ='filename = sample_sorenson2.flv" / >
< embed width = '275 "height ="130"allowFullScreen ="true"type = ' application/x-shockwave-flash' src =' moviePlayer.swf"pluginspage =" http://www.Macromedia.com/go/getflashplayer 'wmode = "window" scale = "showall" flashvars =' filename = sample_sorenson2.flv "/ > "
< / object >

Just like above works fine. But I tried to play 2 different videos, the first video image is less than

image1.JPG

The second video is less than

image2.JPG

I noticed the video formats are different, but not the size of the video player, is - do a thing called elongation? Is it possible to change this by using my simple actionscript code above?

(2) I also tried the button full screen, but the video takes a part of the screen, as shown below. Sorry for the size of the image.

image3.JPG

It is a common occurrence, is it possible to access the buttons of the flyplayback instance using actionscript and overridding the behavior? Any advice on my situation would be very much appreciated. Thank you.

For me the first two screen captures look like you set bad size l / h/screen. I don't see any scaling of the player at all... only the black bars on the sides because the video did not fill the video player display together.

And Yes, there are way to display Flash video NetStream, much more powerful and versatile called. You can design your own player and better control the display. I always use NetStream rather than the FLVPlayback instance.

But if you're having sizing issues presented during the creation of the video... then the drive itself will not necessarily fix it. You need to know the correct display size and the report l / h for each video that you want to display.

However, you can adjust slightly the size of the screen for each video using some actionscript... as you see here:

http://www.cataractvideo.com/CV/physicians/cataract_surgery.html

an example of a larger version (high brandwidth) and a smaller (low bandwidth) version... According to the button you click.

More about NetStream:

http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/NetStream.htm l

Here's a good tutorial on building your own video player NetStream:

http://gotoandlearn.com/

Scroll all the way down the page "Video Basics.

Good luck!

Adninjastrator

Tags: Adobe Animate

Similar Questions

  • How to convert dvd win7 with the ISO on my office installation files so that I can again use the iso file to make an installation key bootable win for my net book which has no dvd player.

    I bought a proffessional win7 genuine dvd of microsoft I received today. the dvd has no iso file but only installation files. I need to install win 7 on my dell inspiron mini 1018 10 net accounting that only has usb ports and no dvd support. So I want to use a microsoft tool (if it is possible to avoid 3rd party tools) and firstly convert the files in the bootable dvd into an iso file on my desktop which has the dvd player. so I want to use the iso file and use the windows download dvd tool from microsoft to make a bootable USB key and use it to install win 7 on my netbook usb ports. I need urgent links to the microsoft tool if it is available or any reliable free tool to convert DVDs to iso. Help, please

    You can use iSO recorder:

    ISO Recorder v3

  • Is there anyway that I can use the MP3 files for the computer system sounds in windows 7

    Is there anyway that I can use the MP3 files for the computer system sounds in windows 7. Any help would be appreciated, thanks - Joe

    I don't think so. If you convert the .wav files, you could. Google for an MP3 to WAV converter.
     
     
  • 6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash.

    6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash. The files are: DK5A0243. CR2

    Lightroom 6 trying to copy pictures to a different directory than what is Lightroom 5. That's why you have the problem.

    You can change the directory where you are teaching LR 6 to place photos, or change the permissions on this directory to read & write.

  • Firefox does not display the .swf files

    Hello

    Everything worked quite well in Firefox and then all of a sudden it stopped simply to display .swf files. Where they should be is simply empty. On Web sites with a background, I can see the background through where the .swf file should be. This includes the locally saved files as well as all Web sites with a .swf file that is supposed to play.

    I don't want to suddenly quite literally, as it was in the middle of a browsing session. I changed nothing, just... one minute they worked very well, the next they completely arrested. It is clear that the program is to recognize that something is supposed to be there, like Adblock appears a little tab 'Block' on where the file should be, but again, this space is completely empty. He's not black, it is transparent.

    I completely uninstalled reinstalled from zero and 'upgrade' Shockwave it three times now, all without effect.

    You can check for problems with the current versions of the plugin Shockwave Flash and try this:

    See also:

    Start the computer in safe mode Windows with network support (on the startup screen, press F8) to see if it has an impact.

  • questions to open the .swf files

    At the opening of the .swf files I open or save as options. I tried all the fixes I could find nothing help. I even tried reinstalling the flash player program. I can read the files from the site, but after downloading, I can no longer read the files from my desktop without having to open it or save as options as it tries to re - download the same file. This repeats non-stop. I checked the options in tools but I can't seem to change or reset things to the .swf files. One of the options for the target of shockwave flash file, which I installed it, but the other says always ask. I can't change to firefox, if I set it to IE he repeats the open or save as options as it does in firefox. I can't locate any program to open the file in firefox.

    Before the last update that I use to just be able to click on a .swf file and it will open in firefox without problem. I don't know what has changed in the last update, but now I can't open the .swf files unless I do it from the site, I downloaded the file from.

    Try to rename (or delete) the file mimeTypes.rdf in the profile folder of Firefox to reset all the actions file.

  • Presentation of the SWF file

    Hello

    What is the best solution for the presentation of the SWF file on computers that have not installed FLASH player?

    There is none. Flash is owner and using little flavor of Flash player is inevitable.

    Mylenium

  • Export interactive PDF in indesign, with the animation of the edge to the SWF file?

    Hello

    I have an interactive pdf in indesign with animation, works very well when they are exported to the swf file.

    I need to use more complex animations that Indesign has, so I created some new features of Adobe Edge animate, exported save them as a file .oam and then put them in the Indesign file.

    If I use the Preview on the animation tab I see indesign animations and the edge, but if I export it to a SWF file is - this only animation to indesign working, and if I export to epub file is only the edge animation work.

    Somehow it is possible to export so that the two works of animation types. and it is possible to do it in a SWF file.

    I have Creative Cloud 2014 for both programs

    Thank you!

    NO.

  • When I change the main mxml file in the project and then export the swf file does not change, why?

    I have an existing project, years ago that I need to change, I am using Flash Builder 4. When I export the project, it creates a SWF in bin-release, then when I change the code in the mxml project file or files of any format and export the swf file needs to change, but it's not. You have an idea why this might happen?

    Thank you

    I found the problem, there was a SWF into the html-template folder within the project. This has led to substitute the swf of the new generation.

  • If sendAndLoad() returns correctly in the swf file, but not when they are incorporated...

    If sendAndLoad() returns correctly in the swf file, but not when they are incorporated, does this mean that I am missing something in my html code?

    I use generic Flash embed code generated from Dreamweaver.  I can post more information if necessary.

    Thank you

    Peter

    peterbrinson wrote:

    Very useful.

    Is it because my swf/html and the database are in very different places?

    Yes, they are in different domains and adobe imposes restrictions on what a swf file can do with the data from one server to another (from the swf) area.

    Are you talking about a PHP or ASP file that integrates the swf?

    lol you create an executable file on the same server that hosts your swf.  This executable can query your database and not trigger cross-domain issues.

    your swf file can send and receive data from and to this executable without triggering cross-domain issues.

  • Could not get the same font in the swf file

    Hello

    I created a swf files in which the text was written using a particular font. When I run the swf files on other computers that do not have this font, the text gets displayed in different characters.

    How to get the same font in other computers also without having to install the font.

    I tried embedding fonts in the fla file. But I made the mistake to a place. Could someone help me understand?

    Thank you!

    Hello

    Finally, I found the reason for the display of incorrect fonts on different computers. It is the font settings.

    In the font settings, Anti alias has been defined as use device fonts. That's why he was choosing fonts of device on which the machine is not. Now, I changed it to anti-alias for animation. I was not even embed all fonts. It works perfectly.

    I do not change even from static to dynamic text text. Just changed the parameters of smoothing. Is this right? Could you tell me whether he set the anti-alias for animation or anti-alias for readability, I see no big difference between the two but?

    Thanks for your great support in due course.

    Thank you.

  • Error #2136: The SWF file

    I am trying to learn how to use classes. The book I use gave me this example.

    In Vechile.as

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    Vehicle/public class extends MovieClip {}

    public var _gasMileage:Number;

    public var _fuelAvailable:Number;

    public var _milesTraveled:Number = 0;

    public var _go:Boolean;

    public void vehicle (mpg:Number = 21, fuel: Number = 18.5) {}

    _gasMileage = mi/gal.

    _fuelAvailable = fuel;

    this.addEventListener (Event.ENTER_FRAME, onLoop, false,

    0, true);

    }

    public void onLoop (evt:Event): void {}

    If {("go-ahead")

    -_fuelAvailable;

    _milesTraveled += _gasMileage;

    If (_fuelAvailable < 1) {}

    this.removeEventListener (Event.ENTER_FRAME,

    onLoop);

    }

    trace (this, _milesTraveled, _fuelAvailable);

    This.x = _milesTraveled;

    }

    }

    public void go (): void {}

    "go-ahead" = true;

    }

    }

    }

    In the main.fla

    Framework 1

    var: = new Vehicle vehicle (21,18.5);

    addChild (vehicle);

    Vehicle.Go ();

    When I compile it gives an error output.

    Error #2136: The SWF file file:///C|/Users/Ravenwind/Documents/Main.swf contains invalid data.

    in Vehicle / frame1)

    I'm stumped

    ' I don't then assign vehicle to document class box in the property ' Do not assign the vehicle that the document class... out of the way.

    In the main file, if you don't already create one, create a movieclip symbol (just draw a shape in there at the moment).  Right click on the symbol in the library and select the link.   In the interface that appears, select the export for Actionscript option and give it the class name "Vehicle" in the field labeled 'Class'

    Make sure that you save the file Vehicle.as once you put the code in it and have this file in the same folder as your Main.fla file.

    If you do the things that I just you describe should see an instance of movieclip, which cross the scene when you run the file.

  • Web page do not see the SWF file

    Hi, I wonder if someone can point me in the right direction?

    I created a web page with Indesign, which includes some animation.

    When I export as SWF, it creates separate HTML and SWF files.

    I moved these two files, and any other files that I used to create the document to my hosting provider (Hostmonster). I read on other threads that I should probably have a RESOURCE file, I do not have.

    When I go to my home page, I get a gray screen that Hostmonster inform me is because HTML can't find the SWF file.

    Someone has an idea of what I can hurt.

    Thanking you in advance.

    Warm greetings

    Peter

    index.HTML is looking for a swf file that is named Magazines1.swf. If the swf file that you are trying to load only is index.swf rename it to Magazines1.swf.

  • Tween alpha works fine in preview, but not in the swf file

    I was wondering if anyone could offer some suggestions. I have a few words written in text mode static I made a graphic symbol. On the timeline, I used the motion tween and classic Tween to create change aplha from 0% to 100%.  I made sure that I have enoough to space on my calendar (10 images).

    Aplha interpolation works fine in preview, however when I export the swf file the aplha interpolation doesn't work anymore? I tried to break the text, flash of reboot, restart my computer and similar proposals for other items such as:

    I was able to fix this by checking the box 'use bitmap caching DURATION' in Blend in the properties panel for the MovieClip in question.

    I am currently using Flash CS5 on an imac. Would be grateful for any suggestions, that I do not understand how something that worked very well, has suddenly stopped working? Bug?

    Thanks in advance

    Stace

    Create a new fla and duplicate your efforts with your tween alpha of your text.  any problem?

  • Size of the SWF file

    When you create an application, you are aiming for a specific size? and what is usually a good size for an application?

    I'm trying to figure out can I integrate the assets or not like that.

    More the SWF file, the longer it takes before you can see something else

    that the progress bar.  On the corporate network, Fund sovereigns 1Mo loading very

    quickly, at home on WIFI, ADSL and VPN, it takes several seconds.  What is

    the user of your target and what speed of downloads they have and will

    they use the application often enough that it will be cached in the browser?

Maybe you are looking for