Loading external video flash site bug

I’m having issues with the loading external video method in acitonscript 3.0 book by todd perkin.  The issue is about the lesson on page 308 in ch 11.
The above screenshot of the lesson file.
My site:
The following is the actionscript for controlling the flv(ignore my notes):
/*code for putting external video on page*/
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);
var videoStream:NetStream = new NetStream(videoConnection);
/*comp vs abom video link*/
videoStream.play("CompVsAbom.flv");
var video:Video = new Video();
video.attachNetStream(videoStream);
addChild(video);
var metaListener:Object = new Object();
metaListener.onMetaData = onMetaData;
videoStream.client = metaListener;
function onMetaData(data:Object):void
            /*link funct*/
            play_cva_vid.addEventListener(MouseEvent.CLICK, play_Cva_vid);
            stop_cva_vid.addEventListener(MouseEvent.CLICK, stop_Cva_vid);
            /*btn backs up to techno toy sect*/
back_techno_toy.addEventListener(MouseEvent.CLICK, techno_toy_back);
function techno_toy_back(event:MouseEvent):void {
            gotoAndStop(36);
            /*back btn should be under function.*/
/*link funct*/
function play_Cva_vid(event:MouseEvent):void
            videoStream.play("CompVsAbom.flv");
/*link funct*/
function stop_Cva_vid(event:MouseEvent):void
            videoStream.pause();
This is the only thing that crashing my site.  The load external video methods nice but if I can’t make practical use of it, its useless.  Any actionscript gurus out there know a solution to fix this problem?  Your help would be much appreciated.  Btw, the fla and the flv are in the same folder.

To reposition video you just need to change its x and y:
video.x = [Number];
video.y = [Number];
Also, you should take advantage of onMetaData and resize the video to it doesn't have black box around it.

Similar Messages

  • NTSC External video flashes in FCP HD

    Hello all,
    I have a Sony VX2000 connected to my G5 by firewire with an NTSC monitor connected to the A/V ports of the camera so I can watch the timeline play on a regular TV. The problem is that after I have been editing for about 30 minutes or so, the NTSC monitor starts flashing (Viewscreen on camera flashes also) and I loose the sound output from the camera. The canvas window on the computer monitor plays fine. I have 4 other systems (G4s & 5s) with this configuration and they all work fine. I have tried deleting all my preference folders, reinstalling FCP HD, wiping the hard drive clean and loading everything again, but none seems to help. Any help would be greatly appreciated.
    Thanks,
    Ronnie Aldrich

    That's either a Firewire bus issue or a problem in your camera. I'm voting on the camera as the culprit but you imply you have used the same camera on the other systems successfully. Yes?
    If so, you start testing the FW bus. You can really only do that by adding another FW bus with a PCI card.
    DV inputs on cameras can go wonky and they appear to be supersenstivie. The slightest variation in the data stream can make them blank out. Especially troublesome with Canons, I hear.
    Try the easy stuff before doing clean installs wipes.
    bogiesan

  • Firefox still loading a video (like youtube) after I close that window and it left my internet slow to load another video or site?

    It's a very technical problem and only few peoples can understand it, but I certain it's making a lot of internet slow... sorry my "bad" english, i'm brazilian and i don't use translator :)
    == This happened ==
    Every time Firefox opened
    == Since I use firefox, about 3 years

    See these articles for possible solutions:
    *[[Firefox is already running but is not responding]]
    *http://kb.mozillazine.org/Profile_in_use

  • How to insert videos in flash site

    hi
    you might have seen on many sites the affect in which small
    video clips of real people are imported into flash movies. e.g on a
    site some people are working in office and that video is loaded
    into the flash site but the people matches with the design of the
    site without their actual background etc.
    how this kind of video import is done? where i can upload my
    own video into flash site's some scene.
    thank you

    Hi
    thanks for your reply. I am not sure really how should I
    classify the videos I am taking about but let me try to explain...
    You might have seen NIKE websites about football and
    merchandise etc. On those website you will find a footballer
    playing with foot ball or if you have seen a site of an energy
    drink where there are few dancers, you need to answer few questions
    to get to the dance movie of a dancer.
    What I want to do is that I want to design a 3D environment
    for my flash website where I want to show some people working in
    office in a section of the site. For that I will make a video with
    my digital camera and will use it in the site. Similarly I want to
    show my own videos merged with the website design. So it sounds
    like I am acting within the wesite design environment.
    I hope I am clear enough now..

  • Problem loading Youtube videos

    Hy...starting from yesterday I had a problem with loading Youtube videos, the site works but when I try to watch a video it looks like it skips to the end and I'm not really sure what is wrong with it

    Hi CucAdrian,
    Welcome to the forum.
    Which device are you using?
    Pfrancoise.
    If this post has helped you to solve this issue, please press the "accept as solution" icon. Kudos would always be appreciated.

  • Load External HTML/Website in Flash (urgent)

    Hi all,
    I've found the codes to load the external html and text in
    flash at run time, but I when I tested most of the html sites
    cannot show very well at all such as videos and swf advanced tag in
    html.So is there any way to load external website into flash at
    runtime?
    Thanks

    you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
    When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
    yes, exactly.
    use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.

  • Firefox consistently crashes when loading Flash sites

    For a couple of reasons I decided to go ahead and install OSS a few days ago.  On the first day, the install went smoothly and everything was working just as it should (I used the oss-linux-free PKGBUILD in AUR).  Yesterday and today, however, I've started to get a reoccurring problem that is, to put it lightly, driving me nuts.
    Firefox (or Epiphany, though I prefer the former) consistently crashes when opening up any site that uses Flash or Java.  With the way the internet is going, this is a large chunk of websites—not being able to visit YouTube or the website for Enemy Territory: Quake wars, for instance, is driving me nuts.
    Now, when I say "consistently" I don't mean each and every time.  I've been able to get these sites to load a number of times, but in the last two days Firefox has crashed in probably 2/3-3/4 of the time when loading any site that has a Flash element.  I've made sure that I have not wrongly assumed this has to do with my newly installed OSS by uninstalling, reinstalling the kernel and all ALSA packages, rebooting, and then surfing the web for a while to see if anything went wrong.  It didn't. 
    So my question is this: why is Firefox crashing so often in the two days since I've installed OSS?  What can be done to rectify this?
    After some experimenting, it seems the problem is worst under the following conditions:
    - Having several tabs open, though not necessarily several tabs with Flash
    - Listening to music and THEN navigating to YouTube or something.
    However, it's not specific to these circumstances.  In fact, just before I decided to make this post I opened Firefox, went to a site with Flash on it (one tab), and it immediately shut down.  I tried this three or four additional times and was met with the exact same results.
    Other info
    Firefox: Pre-compiled Mozilla i686 build, v. 2.0.0.11
    OSS: OSS (GPL version) 4.0, build 1012
    Operating System: Arch Linux 2.6.23-ARCH
    I've also posted this here.

    I have the same problem. I've never been able to identify when it started. Once firefox crashes, mpd, if it was playing, becomes unresponsive. The only way to get a flash site working again is to reboot my computer.
    I uninstalled flash: I'm not going to put up with that kind of behaviour. Now I watch youtube videos on other people's computers --you know how they say "You've GOT to see this movie!". And if I really need to see that one specific video, there's youtube-dl.
    Unfortunately gnash doesn't work on youtube for me.

  • Problems loading PNG in flash. is it a bug?

    Hi, I,m having a problem with flash. I've done a simple flash
    viewer that dinamically loads external images in PNG format via
    loadmovie. The viewer works fine if the PNG has a small size but
    when I try to load a big file (3000x4000px) it won't work... is
    this a flash bug?

    lemik wrote:
    > is there any known workaround?
    What we do is cut the image in small pieces, say 500 to
    1000pixels each, load it
    and duplicate, placing each copy next to another, making one
    large image in run time.
    Tho, I noticed that when I was using the scrollRect property
    to scroll very large images
    I get away with the 2880 pixels but still, cutting and
    stitching is the best and most
    safe way to go. You can than have very large images w/o
    worries.
    Best Regards
    Urami
    "Eat one live toad in the morning and nothing worse will
    happen to you for the rest of the day."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Error 2044 when loading external swf into my site

    Ok what i have is a site made from 1 flash file where i am loading external swf files for my picture galleries. now what is happening is in Flash, dreamweaver and when i test the site, everything is working perfectly, the problem is coming when i go into internet explorer go to the site and click on the flash button to go to the picture gallery, that is when it is giving me a Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
    does anyone know why this is happening and a possible way to fix it? thanks

    See if the following link helps at all...
    http://www.gotoandlearnforum.com/viewtopic.php?f=29&t=20453

  • Load external images and video in edge

    Hi.
    I am looking into edge instead of flash.
    My question is how do you load external images and videos from an external server?
    To clarify, I need to insert a link from where the images can load into the stage, so they don´t take up any of the final weight.
    Thanks in advance.
    Best,
    Stig.

    The above solution I provided works if you already have the images in your composition and than if you want form load images from another server rather than the relative location to your html file.
    Now if you want to load images dynamically into a rectagle containter you will have to code it.
    below is a sample for that
    Create a 'rectangle' with name 'Rectagle'.
    Add the snippet in the compositon ready or on other user actiosn based on your requirement
    var myImagetag = '<img src="http://wwwimages.adobe.com/include/style/default/SiteHeader/logo-2x.png">'
    sym.$("Rectangle").append(myImagetag);

  • Some Flash video/audio sites not working, Mac - Tiger

    Hey there
    I'm having an issue where certain flash sites don't work
    properly on my mac, they just sit there loading and never actually
    do anything.
    The vast majority of sites work just fine, youtube, google
    video, gamevideos.com, the escapist, etc..
    But some sites such as veoh.com simply will not play the
    videos.
    In addition to that, www.pandora.com will not work either,
    but there I at least get an error message stating that "flash local
    storage is not turned on". In this case I've tried to load the
    flash manager and turn it on, but after changing it and going back
    in, it seems that my changes were not saved and my local storage is
    stuck at 10k max.
    The exact same sites work fine on my friends PC using my
    wireless connection.
    I have tried to uninstall and reinstall flash with no
    success.
    I've tried both firefox and safari, neither work, but the
    flash stuff seems to be global on the machine, so I suspect it's
    more of a problem with the flash than with a specific browser.
    I've even tried to run firefox as root, install flash as
    root, etc thinking that it was something to do with not having
    permission to write to wherever flash was trying to store stuff.
    I've got Firefox 2.0.0.14, OSX 10.4.11, and Flash 9.0.124.0
    installed.
    I suppose I'm most concerned about pandora.com, but I think
    the video issues may be related to the "local storage" error I'm
    getting aswell.
    Any and all help greatly appreciated.

    No, not yet, support finally got back to me, but suggested it
    was site specific.... which it's not, since every other computer
    but mine works fine on that site (goto pandora.com if you're in the
    US, it works fine, just not for me)
    I've tried the flash 10 beta, that didn't help either.
    I did a verify and repair permissions with apple's disk
    utility, it did correct the permissons on the flash plugin, adding
    write access for the group, but that didn't fix the problem.
    Also, the fact that when I use the flash manager on adobe's
    site and it won't remember the settings makes me think it's
    something to do with Flash not having access to write a local
    config file. It doesn't even have anything in the list of visited
    sites like it should...
    I don't know where this config file is, i'm still waiting to
    hear back form support again...
    I'll post something when it's fixed...

  • Flash player won't load all videos

    Hi there.
    Flash players load youtube and facebook videos fine but on pages like live leak or Vimeo it doesn't work.
    It states that there's an error or the videos is unavailable.
    I've uninstalled it and when I go to the Adobe flash site it says that Google Chrome has a built in flash player :/
    I'm using Windows 7 with the newest updates and Google chrome 21.0.1180.79
    What can I do?

    Google Chrome has in-built Flash Player. You don't need to install it separately.
    Do you have issues with Internet Explorer too?
    Could you please try the solution provided in the following page? http://helpx.adobe.com/flash-player/kb/enable-system-flash-player-google-chrome.html
    Thanks,
    Sunil

  • Error message when loading FLASH site in ie on PC (swfobject)

    Hello...I sudes "swfobject" to embed my Flash site, and have also alt. XHTML content representing the site for non-Flash users and for SEO purposes. Everything loads and wroks just fine from the MAC, but some users (on IE, with PC), are getting the fllowing error message:
    Line (Zeile):5
    item (Zeichen): 9157
    Error (Fehler): expecting function
    Code: 0
    URL: www.foxolutions.de
    I have included the german words in parentheses (they are viewing the site from there and are getting the message in German).
    My question: does this message refer to my code in FLASH? Or is there something in the XHTML that I messed up? Please let me know....thanks - your input is greatly appreciated!
    Claudia

    I had a quick look at your code and found;
    The issue happens on page load and is not confined to the button.
    When I copy| paste the page code into my browser I can load it without errors… this suggests a script error of some kind.
    <link rel="stylesheet" type="text/css" href="css/where-to-buy.css?459606632" id="pagesheet"/>
    <!--[if lt IE 9]>
    <link rel="stylesheet" type="text/css" href="css/iefonts_where-to-buy.css?78722181"/>
    <![endif]-->
    <!-- Other scripts -->
    This comment is suspicious but I can't see that style sheet to test it… did you comment it out to test a font and forget to put it back?

  • Flash cs4 mac - Error opening URL '/:Users:someting.swf' - Not a "loading external content" problem

    Hello.
    I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
    The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
    This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
    I can publish the project or export the movie with no problem at all.
    I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
    Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
    Things that I've tried so far but nothing worked:
    Update the flash cs4 to the latest version
    Update the flash players
    Restored the release flash player as default player (I am using as default the debug player)
    Cleared the preferences
    Move the flash cs4 folder to another location in hd
    Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
    Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
    Unistall and install the application 3-4 times.
    Test every as version just in case.
    Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
    The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
    Thanx in advance.

    In this particular example I am using this code to start the
    xml file load:
    // now load the XML file that contains the content strings
    var sXMLFile:String = "xml/home.xml";
    var xmlContent:XML = new XML();
    xmlContent.ignoreWhite = true;
    xmlContent.onLoad = onXMLLoadComplete;
    xmlContent.load( sXMLFile );
    But I don’t think the code is the problem here . This
    happens on every file I load when I am using a relative path to the
    content, regardless of how I load the content (XML object,
    loadMovie, MovieClipLoader, etc…) and the same code executes
    perfectly on every other machine in the office(Mac and PC).
    I’m more concerned with the semi-colons and .swf filename
    that Flash is putting into my relative path on the error message.
    Is that normal?

  • FAQ: SWF's and loading external files in Flash Catalyst

    How do I make the images in my Flash Catalyst project external to the published SWF?
    You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
    Answered by: Adam Cath.
    See entire discussion.
    How do I make the SWF I imported to Flash Catalyst load external files?
    When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
    Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
    1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
    2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
    2. Note the file path to Main.html in your browser
    3. In your OS, open the folder that contains /bin-debug/Main.html from above
    4. Open the "src" folder
    5. Paste all of the files from step 1 into the src folder.
    6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
    7. Run your project. If it doesn't work, try closing and reopening your project and running again.
    For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
    See entire discussion.
    Answered by: Bear Travis

    You can make you swf a custom component with 2 states.
    The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
    Then go back to your artboard/project, add your 2 buttons ON & OFF.
    For the ON button add interaction "play transition to custom component ON"
    For the OFF button add interaction "play transition to custom component OFF"
    Here is an example swf_control

Maybe you are looking for

  • Editable field in alv

    hiii when doing editable field in alv you set i_fieldcat-edit = C_X i_fieldcat-input = C_X P_selfield-refresh = C_X this is not working when i click on save the internal table is not keeping the change i have edit on the screen and the p_selfield val

  • Two Deliveries did not go through Batch Job Runing

    Hi, In this company every evening the automatic batch Job for Billing due list is run but on Nov 23 one Deliver and on Nov 30 another delivery has not gone through i.e. the invoices were not created for these two deliveries. I checked in VF01, the in

  • Unable to delete Order does not exist in live cache but in table POSMAPN

    Hi Experts, We are facing an issue where purchase order is not available in live cache (which means no GUID) but exists in database table POSMAPN. We have tried to delete it using standard SAP inconsistent order deletion program and also using BAPI B

  • Have problem to order copies of the Book just completed in iPhoto

         My first venture at making a book in iPhoto with family pictures, has, once I understood the practical business of getting pictures organised, been very successful, so I clicked on the "Buy" button and thereafter my efforts to order 3 copies of

  • TV flashes when connecting iPad with HDMI

    I bought the Apple 30-pin Digital AV Adapter to connect my iPad with the TV, with an HDMI cable. The problem is that when I connect everything, the image appears on the TV, but in two seconds it starts to blink, like making flashes. I changed the HDM