Need to play TV Tuner o/p in SWF file

Hi,
I want do show Telivision outout in SWF file. I am using
flex.
I have alread display webcam oputput in SWF file by using
"flash.media.Camera" class. I have used <mx:VideoDisplay />
to show live captured images by webcam on SWF file.
Is there any way so that I can show TV Tuner output in SWF
file?
Thanks
Shikhar

Hey I have resolve this problem.
Here is the code:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import flash.profiler.showRedrawRegions;
import mx.controls.Alert;
// Define a variable of type Camera.
import flash.media.Camera;
public var cam
public function initCamera():void {
// Initialize the variable.
cam = Camera.getCamera();
cam.setQuality(0,100);
cam.setMode(320 ,288,30);
cam.setMotionLevel(100);
myVid.maintainAspectRatio = true;
myVid.attachCamera(cam)
]]>
</mx:Script>
<mx:VideoDisplay id="myVid" width="100%" height="100%"
enabled="true" visible="true"
creationComplete="initCamera();" autoPlay="true" />
</mx:Application>
Thanks
Shikhar
www.shikhar.net

Similar Messages

  • Every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    Everything worked fine for the last two years but now every time that I play a tune from my itunes the file duplicates itself into my 'MyDocuments' folder. If I delete this the song is erased from itunes totally. Ideas??

    You are of course deleting the tunes from within the iTunes interface.
    The settings that I am referring to are your device settings for the iPad. It should show in the left column of iTunes when your iPad is plugged in.
    Go through your playlists and make sure that the tunes(s) are removed from any playlist. You can prevent the sync as noted above then do a sync and the iPad should update with the content from you Mac.
    MJ

  • Problem with FLVPlayer in Flash CS3 (need to save out as Actionscript 3.0 SWf file)

    I am using Flash CS3 and am trying to publish a SWf file that
    makes use of the "FLVPlayback" component. I need for this SWF file
    to be published as an Actionscript 3.0 file, so I have set my
    publish settings to Flash Player 9.0 and Actionscript 3.0, but keep
    getting an error as follows:
    "WARNING: The component 'FLVPlayback' requires ActionScript
    2.0."
    Has anyone encountered this?? I am doing something wrong? I'm
    pretty comfortable within Actionscript/Flash 2.0, but am only
    beginning my first steps into the relam of CS3 and AS3.
    I have also attached a screenshot of the files that represent
    my FLVPlayback component (or so I assume). (see this link for
    attachments
    http://www.actionscript.org/forums/showthread.php3?t=140886)
    Thanks all,
    Mark
    http://www.actionscript.org/forums/showthread.php3?t=140886

    Mark,
    > I have set my publish settings to Flash Player 9.0 and
    Actionscript
    > 3.0, but keep getting an error as follows:
    >
    > "WARNING: The component 'FLVPlayback' requires
    ActionScript 2.0."
    Gotcha. You must have started the document in AS2, then
    changed the
    publish settings. Each version of the language has its own
    version of the
    FLVPlayback Component (written in the relevant language).
    Start over and
    compare two compleley new FLA documents: make one for AS3 and
    one for AS2.
    Open the Components panel and note the differences between
    the two. There
    are a different set of Components depending on the language
    chosen for the
    document. Drag the FLVPlayback Component from the Components
    panel in an
    AS3 document, and you'll have the AS3 version.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • I need flash to play two movies in a single swf file

    Here it is.
    I have two videos: bending.flv and lifting.flv (I also have
    them in swf format).
    I want the user to click play and for the videos to play one
    after the other, basically combining the videos
    into one. However, I need to add a screen that says the
    second video is coming up after the first one finishes
    playing. How do I do this? I am new to flash, have CS3 and
    could really use some help.
    Thank you.

    Thank you, Auziman. (must be from Australia?)
    I have a video on key frame 1, do I create an Action Script
    on key frame 2 for the SWF and then put the 2nd video on the 3rd
    key frame? I'm new to this game.
    If you wouldn't mind walking me through this a bit, it would
    be very helpful and welcome. Thank you.

  • Need some help embedding a url into a swf file

    Hi all
    Thanks to help I have received here, I am almost done with my add banner. I need the banner to link to a url.
    The entire banner needs to be a clickable link for  the duration of the animation. So anyone can click on the banner at any point during the animation, and be brought to my site. I tried putting a frame at the end with getURL("http://www.mybsite", "_blank"); but that doesnt work. When I do that, the banner is not a clickable link, but the site opens automatically  after the animation has played. Cant have that. So after doing some research, the apparent correct way to do this is by making a button, but I do that and the button obsures everything else.
    Any ideas on what I should do?
    Thanks in advance.

    if nothing else is clickable, attached to your main timeline:
    this.onRelease=function(){
    getURL(whatever,"_blank");

  • Help needed in accessing the url from which a swf file has been loaded

    Hi All,
    Can anyone help me out in finding the url of the swf file
    from which it has been loaded? The purpose of the url is, I am
    loading some flv files using relative path. I just want to achieve
    the same by appending the relative path to the parent swf url from
    where the parent was loaded.
    I am a newbie to AS3, So please don t mind if this is a silly
    question.
    Can anyone help me on this.
    Thanks in advance,
    Prabakaran Srinivasan.

    Hi,
    Thanks for the reply. I think the option you gave is only
    applicable when the AS3 class comes in the DisplayObject hierarchy.
    I want this information in an AS3 class which does not extend any
    of the Sprite or its super class hierarchy. Can you let me know the
    possibility of fetching the value from such a class which i
    specified???
    Thanks,
    Prabakaran Srinivasan.

  • I need to access/pass variables'(s) of a .swf file into another .swf file.

    Hi all,
    I have basic knowledge of Flash and AS3.0.
    Suppose i have a flash swf file(main.swf). In this main.swf
    file, i loaded another swf file(sub.swf) by writing the following
    code snippet in main.swf file as shown in Attach Code:
    Now, how to acess the data present in main.swf into sub.swf.
    Note: Here data represents values/data stored in
    variables/objects of main.swf file.

    Does this actually work -- assigning variables directly on the loader?  I'm interested in setting flash variables on the loaded SWF, but I get a compilation error when trying something similar:
    Error: Access of possibly undefined property x through a reference with static type flash.display:Loader.
         [exec]
         [exec]             textLdr.x = 50;
    I also tried casting the loader to Object, which compiles but then fails at runtime.
    -Dave

  • I need to combine 2 swf files into 1 file

    I have a flash template that is controled by basicly 3 files website.swf, text.xml and index.html (there are a lot of supporting files)  When i put a video.swf in the xml file it runs with the website.swf as long as I don't turn on the sound on the video.swf because it will not stop.  So I needed some controls on the video.swf which is the skinunderall.swf, but the file comes in 2 pieces and will not intergrate on the website.swf.  I have about 18 video.swf files and they all need to be controlled by the user on the site.  Is there anyway to combine video.swf and the skinunderall.swf to ONE file with the controls?  I will settle for a start stop button, however once the file starts I can't touch it--it seems.  But I have turn the video.swf into a link and it was clickable.
    I read the captive thing but it seems to be out of date.  Oh yeah and I am a page one (begining) coder.
    Any help?

    Hi,
    "combine 2 swf files into 1 file" is a pretty abstract question. The short answer is - yes, you can, but you need an appropriate  software tool for that. But really it's not clear (for me) how all your files work together exactly. The only what I can derive from your explanation, is that you need to add an interactive control to some SWF files with embedded video, loadable into the main "envelope".
    In general all what you need are:
    - you must have some named mc within your "main" SWF, which will load your video SWF's into itself by loadMovie() function.
    - you need to have some controls (buttons, etc.) in your "main" movie. which will control this mc playback - mc.play(), mc.stop(), etc.
    I'm almost sure it's resolvable problem, but can you upload this template to let us see how it all works now? If you don't wish to disclose it all publically, then you may write to me personally. You can find email address at the bottom of the webpage in my signature.
    FlashDigger
    www.flashdig.com

  • Swf file has stopped playing in 'live' browser only

    Hello everyone,
    Hope you can help with this, whilst working on my site one of the swf files stopped playing when viewed in the browser (live). The file plays ok from Dreamweaver from both local view and remote view. Went onto web server cpanel and played the swf file ok from there as well. Have checked the code and all seems fine, I wasn't even working with that file when it went wrong, all I done was replaced a png picture with a swf file on a different part of the page, this new swf plays fine along with all other swf files on my site. I have uploaded and syncronised both the page and swf files again but still no joy.
    I really am stumped for an answer, any help would be greatly appreciated.
    Thanks in advance,
    Stuart

    Here's the link, but after 3 hours of not playing it started to play by itself after I added a favicon (which still isn't working) to the index page.
    That is really strange and a bit worrying as it seems to have a mind of it's own. It also happened once before on another page when I was adding content to the site. I was able to kickstart that one by uploading the page again from local.
    The swf file which wasn't playing is midway down page showing drawings.
    http://www.joinerycadsolutions.com/St_Johns.html
    At least it's working now although I feel scared to touch the site in case I loose it/another again.
    Thanks for the reply.
    Stuart

  • Need to resize a SWF file

    i need to resize a swf file thats 800 x 300 down to 600 x 226
    how can i do this without having to set the new parameters in
    the embed tag like this <embed src="banner.swf" height="226"
    width="600"> ..??
    is there a way to resize the whole project when i export the
    swf file or something.
    i made my project a lil to bigger than i needed and have
    already imported a few other swf files into this main banner swf
    project so i need to resize everything down now..
    How can i do this..??

    What format is the file in before you export to SWF?
    What program are you using to convert your file from its
    current form to SWF?

  • I need to play offline FM radio in my i phone, I need to play offline FM radio in my i phone

    I need to play FM in offline too .

    How do you expect to do that when the iPhone doesn't include a radio tuner?

  • Using another computer to play  my tunes

    My computer at home is my computer I use for my Ipod and to
    store my music. I want to take my tunes on the road with me
    on my work laptop. I downloaded iTunes now how to I get
    the music stored on my iPod to play on my laptop?

    Hi--
    I need to play a song off my ipod on a school computer system, which will not let me dowload additonal software (iTunes). Is there any way I can do that?
    Thanks--

  • I have bought my husband his own i pad and we both need to use our own on a shared computer. will the two apple IDs show as separate on the i tunes or do I need two different I tune programs?

    I have bought my husband a new I pad and we both need to use our own on a shared computer. Will the two different Apple IDs show as separate on the i tunes program or do I need two different i tune programs?

    Each device is different and will only sync what you select

  • HT204382 what software do i need to play movies on avi file . have connected a external memory disk and all the movies are in avi format.

    What software do i need to install in order to be able
    to play movies in .avi format.
    have connected an external memory and all the entertainment
    files are in .avi format.
    Ansver i get : does not support

    VLC is a good choice. While I don't know if it will play your files, Perian is a helper app for Quicktime which allows you to play a lot of things in the Quicktime Player.
    There is also Flip4Mac which allows you to play windows media files in Quicktime.
    Finally, note that the extension on a video file doesn't really tell you what you need to play it. The .avi, .mpg, etc. is only the wrapper around the actual video. The video is encoded by some means and needs to be decoded. The video inside the .avi can be encoded in one of many different schemes.
    VLC, Perian, Flip4Mac, and many others, are all able to decode various flavors of encoding. Having all of those in your toolbox will help to allow you to play most of the things you'll find.

  • Cd/mp3 player was not playing all tunes burned to disk

    Got my Mojo workin'.
    That's a TDK "Mojo" CD-MP3 Digital Jukebox.
    Sit back and relax while I tell of my Grand Journey of Exploration. (There is a question below too.)
    I had made a some iTunes playlists of MP3s, and decided to burn them on CD-R disks for my portable player. I had them all sorted by Artist and Album. The burn process seemed to go well, but when I loaded the first disk into the Mojo, it seemed to scan the entire disk and count all the tunes. It finished counting after it found all 193 titles. However, when I tried to play them, it would only play the first 26 tunes or so. (Another disk I had burned at the same time (different playlist) gave similar unsatisfactory results, something like 19 out of 186 tunes.) I knew the Mojo was not a current model, and thought maybe there was some weird file incompatibility thing going on.
    I popped the disk into my son's CD/MP3 player ("Koss" brand), and it managed to find 30 or 40 of them. A bit better, but not perfect.
    I tried it in my DVD player, and it was able to play all 193 tunes. In fact, it loaded and started playing quicker than I had ever seen it do before. It usually thrashes and whirs for an annoyingly long time.
    The odd thing was that the Koss was able to play all 76 tunes on another disk I had burned over a year ago, on my wife's Mac, with a version of iTunes for Mac System 9.2. Unfortunately, those files were gone from her Mac so I couldn't see what the iTunes setup was. I was thinking maybe the newer version of iTunes had a bug or something.
    Then I inspected the old and new disks in the Finder and noticed that the new disk had a bunch of folders with the Artists' names, and each artist folder had folders within them with Album names, and the tunes were inside those folders.
    The old disk (which worked fine in the Mojo player) just had the MP3 files and no folders whatsoever. I knew I was onto something, but I couldn't figure out how to burn a folder-less MP3 disk from iTunes, as opposed to doing it manually via the Finder.
    I searched Apple.com > Support > Discussions > iTunes for Mac > Importing & Burning in iTunes for Mac yet again, this time using "folders" for the search term, and up popped several threads where people wanted files organized by folders on disks:
    http://discussions.apple.com/thread.jspa?messageID=1464192
    http://discussions.apple.com/thread.jspa?messageID=1791538
    http://discussions.apple.com/thread.jspa?messageID=781976
    ... which brought me to the document "iTunes: How to set the play order of songs on an MP3 CD", at http://docs.info.apple.com/article.html?artnum=60931
    So, I removed the columns for "Artist" and "Album" names from the playlist, and burned it, et voila! it worked just fine in my Mojo, which plays all 193 tunes. (Too bad I didn't fix the ID3 tags beforehand.)
    Now, for points:
    I had the playlist sorted by Artist, and here are the first four titles (of 193)
    Title ____________ Artist____________
    Relative Ways ...And You Will Know Us By The Trail Of Dead
    Mistakes & Regrets ...And You Will Know Us By The Trail Of Dead
    Jubilation 20 Minute Loop
    Queen of Pain Alkaline Trio
    Muffin57 All Natural Lemon And Lime Flavors
    ... etc.
    Then when I remove the "Artist" column so that it only shows the Titles, it resorts like this:
    Title ____________
    Blacken My Thumb
    Buckler
    After School Thunder
    Futuristic Genitalia
    Once In A Lifetime (Cul De Sac)
    ... etc.
    This is not the same as it was, nor is it alphabetical by Title.
    If I click on the Title column header of course, it is ordered alphabetically by title, like this:
    Title ____________
    (Do Not Feed The) Oyster
    (Got My) Rock Pants On
    3 Away
    27
    68
    Adventures In Conversation
    After School Thunder
    Algorithm Of Desire
    Alive and Amplified
    ... etc.
    Other than dragging all 193 tunes, one at a time, in order manually, how can I keep the original play order by Artist, without creating folders on the burned CD?
    There is talk of "Copy to Play Order" in the iTunes Help/Support files...
    To use this command, Control-click one of the songs in the playlist,
    and choose "Copy to Play Order" from the shortcut menu. Tip: These
    steps also apply to a playlist you have reordered directly (by clicking
    on one of the column headers like Artist or Album).
    ... but I don't see that option when I Control-click anything. The bottom menuitem in the popup menu is "Clear". Same results with Right-clicking.
    300 MHz "Blue & White" G3   Mac OS X (10.4.7)   iTunes 6.0.5

    Hmm. I see that the spaces have been chopped out in part of my first post, and it appears that I cannot edit it.
    For clarity's sake, these are the Artists' names, in the partial listing for Ordered by Artist example in my previous post:
    ...And You Will Know Us By The Trail Of Dead
    ...And You Will Know Us By The Trail Of Dead
    20 Minute Loop
    Alkaline Trio
    All Natural Lemon And Lime Flavors

Maybe you are looking for

  • How can we see the settled document

    Hi      i settled the production order in the month may,now my client is asking me that all entries which are generated at that time .i mean he is asking both FI and Controlling documents. can any body tell me how can we see that documents rgds neeli

  • Having trouble opening and installing Flash CS3

    Hey there, I recently downloaded the Flash CS3 trial version for my mac, and after downloading it seems that i can't complete installation, because once its installed about 2 out of 3 parts it comes up with an installer alert, saying the following "P

  • Anyone else getting an error message when trying to update their ipad2?

    everytime I try to update my ipad2 I get an error message! What gives?

  • Condition Determination in CN33

    Hi Experts, I am attempting to build a report that would mimic PO creation process for my client. My issue is that I am unable to find where the conditions are determined for each component being added into the project when CN33 is being run. After e

  • What exactly is included with the new adobe photography package?

    okay first off, I'm in love with all of these massive changes all the way around. secondly, I'm a bit of a hot mess. For starters I am upgrading my poor old PC to a Mac (it was time!) this means I loose all my previous software. (It's time to upgrade