Starting loaded content in a windowless player

If I use windowed activation (giving a valid HWND to the Flash PLayer in the GetWindow function is enough to trigger this), the player will run the loaded swf file. However, if I use windowless activation, the loaded file does not run, only the very first frame is displayed. This article claims that I'm supposed to call
DoVerb(OLEIVERB_SHOW, NULL, (IOleClientSite *)this, 0, NULL, NULL);
However, this does not have any effect. What am I doing wrong?
Since I made this post, I found out that it returns -2147467259, which is not a known HRESULT, but certainly not 0. What does it mean?
More information:  After some more digging I found out that the return value is OLE_E_NOTRUNNING.

I have found the problem. Before this call, I was doing:
hr = _shockwaveFlash->put_WMode(BSTR("opaque"));
BUT I blatantly ignored the HRESULT there. It made the Flash Player confused, because it is not a valid way to insert a BSTR constant in the code (which is a wide string). Correctly:
hr = _shockwaveFlash->put_WMode(L"opaque");
Now it works as it should. Check you HRESULTs, kids

Similar Messages

  • Problem loading swf file in flash player 9.0.47.0

    Hi all!
    I have a really strange problem and couldn't find any information over the internet.
    The problem only occurs in flash player 9.0.47.0. It works in all the others players, newer and older..
    I try to load a swf file to my web application and get the following error: "This content requires Adobe Flash Player 10.2. Would you like to install it now?"
    the log file shows:
    *** Security Sandbox Violation ***
    SecurityDomain 'http://10.1.1.84:8080/app/jsp/flex/bin-release/LP_FLEX_project.html' tried to access incompatible context 'http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?0.5087 71003223956'
    Warning: Reference to undeclared variable, 'out'
    Warning: Reference to undeclared variable, 'out'
    Warning: 'out' has no property 'text'
    Warning: Reference to undeclared variable, 'cameraSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'microphoneSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'privacy'
    Warning: checkPort is not a function
    Warning: Reference to undeclared variable, 'xOffset'
    Warning: Reference to undeclared variable, 'yOffset'
    Warning: Reference to undeclared variable, 'cameraSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'microphoneSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'privacy'
    Warning: checkPort is not a function
    Warning: Reference to undeclared variable, 'cameraSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'microphoneSettings'
    Warning: 'System' has no property '_visible'
    Warning: Reference to undeclared variable, 'privacy'
    Does anybody has a solution??
    Thanks alot!
    Assaf

    Maybe FP9 does not support your application / swf file?  How did you develop it?

  • Nokia E71x browser no longer loading content corre...

    I have had my Nokia E71x since September and until now everything has worked fine.  A couple of days ago when I tried to use the browser, it started loading the content differently.  So now when I goto my AT&T Media Net homepage, the page is off centered and no longer loads pages with lots of content correctly.  Other webpages like google will load fine. 
    I took the phone into an AT&T device service facility and tried to master reset the phone.  That did not work.  Then we exchanged the phone for a different one and that did not work.  We switched SIM cards and everything but could not figure out what was going on.  We tried multiple phones and the same problem came up with each different phone.
    Is anyone else out there having this problem with their Nokia E71x on AT&T?
    Anyone have a solution to the problem?

    Try clearing cookies and cache:
    [[How to clear the cache]]
    [[Deleting cookies]]
    Otherwise use firefox in [[Safe Mode]];
    Also try [[Troubleshooting extensions and themes]]

  • Flash content in Windows Media Player

    Can Flash Content play in the Windows Media Player? I don't see it as a supported file type but found this on the Microsoft site:
    ...you must have Adobe Flash 9 installed to play Flash content through Windows Media Player. If Flash 9 is not installed, a dialog box that contains the following text prompts you to install Flash 9
    Thanks

    I looked up the internet but can't find anything on this. As no replies here too I guess I'm the only one. The other thing that struck me is the enormous CPU usage when playing flash in the browser. Up to 95%-100% cpu usage when playing HD flash content. First I assumed it was a Flash issue but Internet Explorer never used more then 35%-55%. I then assumed it was just Flash in Safari. Strange thing is, if I maximize the window the cpu load actually drops to 55%. I only get high cpu usage when flash is played in the Safari window. I guess that means it's something to do with the browser and not an isolated flash 'bug'.
    Also still no luck playing WMV in the browser itself. Maybe time to look for yet another browser. A shame as I like the Safari browser a lot. MobileMe and iPhone are great to sync bookmarks and the look and feel is great. The engine is not so good unfortunately.

  • When I rent a movie using Apple TV, it takes several hours to load and then I select watch later. When I go to my rented movies and try to watch it , it starts loading all over again. This can't be normal. Is there something that I am doing wrong?

    When I rent a movie using Apple TV,it takes several hours to load. At this point, I opt to watch later. When I try to watch the movie, it starts loading again and tells me that it will be ready to watch in one hour forty four minutes. This can't be normal. Is there something I am doing wrong? Any suggestions.

    If it's taking several hours then that is likely due to your internet connection. You can verify at speedtest.net
    6mbps required for instant 720P
    8mbps for 1080P
    You can switch to SD in the settings (which only requires 3mbps)
    You can also check istumbler or netstumbler for interference
    Make sure you are on your ISPs DNS
    The reloading is normal. There is no accessible storage on ATV. The small flash is used for caching streamed content, if you access other things or turn the device off it will be flushed.

  • I'm unable to steam flash videos in Firefox. I can view youtube videos, but nothing else. Some videos take forever to load and my webpages are starting load slo

    I can view youtube videos, but nothing else. Some videos take forever to load and my webpages are starting load slowly as well.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Load content in another viewing space... Button..Viewer..Video..Panorama.. Carousel..Dreamw..Flash..

    Dear Reader,
    I made a site with a custom player to show video. I made my own buttons in Flash. On type showed while hovering over the played video and are used for controlling play/pause - button for homepage and two buttons for the next or previous gallery. The other type are underneath the playing video and let you pick thumbnails whose links were shown in the player window.
    First I wanted to use a carousel (Lee Brimelow) for the second type of buttons, but I couldn't integrate these with the rest of the player code (my flash-code knowledge is rather limited).
    Later on I wanted to show a panorama wich I only got to work with the Away3D-method. In this case I couldn't integrate it with any other code, so I used Dreamweaver to let a viewer choose thumbnails. One can navigate in the viewer window by dragging in the window, so I left out the other navigation buttons within the player window, mentionned earlier.
    Now I am thinking of this concept:
    - Button(s) for Homepage and (Next/Previous) gallery;
    - Viewer window, with
              - timeslider and Play/Pause button integrated in case of a video or slideshow;
              - dragging in case of a Panoramic view;
    - Carousel for picking a subject that will be shown in the Viewer window.
    Question:
    - Can I combine these 3 types of the concept as Flash-movies and buttons/carousel in Dreamweaver and still have the carousel control the viewer window?
    or:
    - Should I do all in Flash and make a personal Flashplayer (like I did before) and study more Flash?
    What tutorials could I take a look at? (For instance I found a lot of sites about how to make a carousel. I don't know how to make it control a viewer window (to make it load content in another window or space.)
    Greatings,
    Richafrost.

    Hi,
    Just wanted to clarify a few things to try and eliminate what could be causing the problem.
    1. You are using rtmps protocol. Do you have SSL certificate configured and port 443 enabled?
    2. When you tried playback via the hosted OSMF player was it via rtmps?
    3. The standard way the request url is protocol://server-domain-or-IP/fms-app-name/[fms-app-instance-name/][codec-prefix:]file-pa th[filename-extension]. Could you try with that?
    I tried to reproduce your issue with simple rtmp prtocol and here are my observations/suggestions :
    1.When I first entered the source url I got the error you mentioned : "The video player is in the connection error state." However, when I publish the same .fla again it works fine.
    2. When you are placing the on a computer on the same network and running the html in the browser, it might not have permission to access the network. You will generally get a pop-up saying "Flash Player has stopped a potentially unsafe option". In any case, in your Flash player settings manager you can go to the Advanced tab and add the location of the folder containing the swf as a Trusted location and then try to reload the page again. I get the "status bar spin" when the folder did not have permissions.
    3. Also, when you try playback via Share Point can you go back to FMS and check if a connection request has actually come to the server. You can check under the access logs in root_install/logs or the application logs under root_install/logs/_defaultVHost_/vod/
    Please let me know if this helps.
    Thanks,
    Apurva

  • "error occurred while loading content" ?

    Curious if anyone is having the same problems with their Apple TV.
    It first started when we tried to rent episodes from Apple.  We'd purchase the episode, it would be ready for veiwing, and after about 5 mintutes the "error occured while loading content".  We'd go over to netflix and I could watch old episodes of various tv shows without a problem.  Downloading a movie rental in HD would also take up to 5 or 10 minutes. 
    I checked our wireless modem - everything was working fine.
    I reset the network settings on the Apple TV and checked that it was up to date.  Also reset all the username/password stuff.
    That did the trick for about a week and now we're having the same problem. 
    Thoughts anyone?
    Thanks

    I'm somewhat convinced that errors on the network (or for that matter over HDMI) can cause corruption of the Apple TV. In such cases restarting the Apple TV by removing ALL the cables for 30 seconds, usually does enough to reset things.

  • TS3623 I paused my rented movie on Apple TV. Now I continuously get an "Error loading content" and it won't play. I've turned it off/on, reset, etc., no luck.

    Four minutes into my movie, I paused it to answer the phone. Now I can't get it to come back on. I've held the center button on the remote to turn off the Apple TV, then turned it back on, my internet connection is fine, I've tried starting it over from the beginning. It just won't come back on. Meanwhile, since I started the movie, my 24-hour time-limit to watch it is ticking down.
    This is annoying! Any possible solutions? I get "error loading content" a lot - more than reasonable. Usually with Netflix, but sometimes this happens with iTunes movies as well.
    Any help is appreciated. Thanks,
    Reid

    Four minutes into my movie, I paused it to answer the phone. Now I can't get it to come back on. I've held the center button on the remote to turn off the Apple TV, then turned it back on, my internet connection is fine, I've tried starting it over from the beginning. It just won't come back on. Meanwhile, since I started the movie, my 24-hour time-limit to watch it is ticking down.
    This is annoying! Any possible solutions? I get "error loading content" a lot - more than reasonable. Usually with Netflix, but sometimes this happens with iTunes movies as well.
    Any help is appreciated. Thanks,
    Reid

  • Can't find my loaded content on itunes

    just got a computer with windows 8.  Started loading my albums to my itunes library.  All of the sudden I can't find my loaded content and can only see my purchased music in itunes.  It is still on the computer but I can not see it in itunes

      Thank you.  I see what you mean, and I'll use your method when I need apps. 
      For syncing my phone, however, I am automatically sent to the iTunes page, and to the sync/device screen I want.   After I sync, though, it's gone and I can't view my other details.  The only reliable way back there is to unplug the phone and plug it in again.  Fair enough, I guess.  But, weirdly, the little phone icon does sometimes show up (by the menu upper left) and will let me back in, but there's no rhyme or reason to when or why.  It's funny - kinda like some random game of Whack-a-Mole. 
      I appreciate you taking the time.  Cheers, -- Gordon180

  • Javascript not loading content after updating from firefox 26 to 27

    on my site i have a page on which javascript pre-loads the content and then shows it.
    this thing was working perfectly fine on firefox 26 but soon as i updated to firefox 27
    the content doesn't show after loading
    Like i have an image for 'loading content' which first appears and then the loaded content
    shows up. This image is still showing in version 27 but the content which shows after is not showing at all.
    I inspected the page and the divs and content is there but its just not visible somehow.
    Please help me with this problem .. im stuck with this if it doesn't show up. Thanks.

    this doesn't solve the problem.
    actually its working on all other browsers, the content is showing.
    but its not working on firefox 27. what problem could it be which is preventing version 27 from loading the content when its working just fine on version 26 (i just checked it on a different system with version 26).
    also there was an instance when the same content wasn't loading on version 26 also but it was a problem due to some pinterest script. once i removed it everything became just fine i.e. content started loading (on version 26). Now, if that helps in deducing the problem please help me out.

  • Loader content got vanish on resize root movieclip

    Hello,
    I have made 30 dynamic movieclip and I put all these Movieclips in MainMovieclip, each movieclip loads one jpg image dynamically, when i resize root movieclip then
    all graphics got invisible. How can i resize parent movieclip, I can't resize individual loader content because there is complex thing will happen where i need to calculate x y position and height widh for individual,so that i put all movieclip in root moviclip and I resizing root movieclip.

    You likely already solved this issue...
    As I understand it, X, Y, width, and height are only read from the first frame of a loader object. Check to make sure that the content on the first frame of your object that your loading is the same size as the content of the entire object. In other words, if you have content on frame 50 that's 200 px wide in total from the registration point of x=0 y=0, and your content on frame 1 is only 100px wide, you'll need to add a transparent object on frame one (starting at x=0 y=0) that is also 200 px wide. If I understood your issue correctly, this should solve the problem. You can easily do a trace on the size of the object your loading to be sure that it's sizing correctly.

  • BB10 Internet Browser - loading content window

    Hello,
    I am new at using BB10 and have an issue with the Internet browser.
    After I open a web site that has a lot o contents ( usually is Jalopnik site) I get interupted by a player that lasts around 2 seconds that loads a black page with writting on it "Loading content". This is annoing because if I have the music player opened it will pause it.
    Is there an option to turn this thing off?
    Thank you!
    Vlad 

    Depends on what it is driven by, you might like to try turning off flash in the settings.
    If you've been helped click on , if you've been saved buy the app.
    Developer of stokLocker, Sympatico and Super Sentences.

  • Problems loading songs into flash mp3 player

    I am very new to actionscript, and I am still trying to learn some of the basics, but I'm getting there, understanding it better with help from great forums like this one.
    I have a music community website, visitors can sign up, upload mp3 files, their files get uploaded into their own folder named '$id' in the php code, (if they are the 10th member to sign up, their folder would be named 10, and so on)
    I have a prebuilt flash player that I want to playback the mp3 files just for that member when their profile is being viewed, I have some code in the mp3 upload script that automatically writes an xml file to their folder containing their song data, with Andrei1's help, I got that part working using flashvars, now the problem I am having is that I can't get the songs to play back, the data is there but no music.
    as I said I am using a prebuilt flash player that is using a static call to a directory, so should I use flashvars again to load the mp3 files into the player? and I also need help figuring out what to change in the actionscript.
    here is the object embed src for the html:
    <param name="movie" value="flplayer1a.swf">
                        <embed src="flplayer1a.swf" FlashVars="xml=<?php echo "members/$id/playlist.xml" ?>"></embed>
                        <param name="FlashVars" value="xml=<?php echo "members/$id/playlist.xml" ?>">
    and here is the actionscript code for the playback on frame 1
    stop();
    var myFormat:TextFormat = new TextFormat();
    myFormat.color = "0xFFFFFF";
    list.setRendererStyle("textFormat", myFormat);
    var trackToPlay:String;
    var pausePosition:int = 0;
    var songURL:URLRequest;
    var isPlaying:Boolean = false;
    var i:uint;
    var myXML:XML = new XML();
    var XML_URL:String = loaderInfo.parameters.xml;
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
        myXML = XML(myLoader.data);
        var firstSong:String = myXML..Song.songTitle[0];
       var firstArtist:String = myXML..Song.songArtist[0];
      songURL = new URLRequest("????" + firstSong + ".mp3");
       status_txt.text = "1. "+firstSong +" - "+firstArtist;
         for each (var Song:XML in myXML..Song) {
    i++;
      var songTitle:String = Song.songTitle.toString();
    var songArtist:String = Song.songArtist.toString();
    list.addItem( { label: i+". "+songTitle+" - "+songArtist, songString: songTitle, Artist: songArtist, songNum: i } )
    var myArray = new Array (0,0);
             list.selectedIndices = myArray; // This highlights song 1 by default
    gotoAndStop(3);
    this is on frame 2 for the song switching
    songURL = new URLRequest("?????" + trackToPlay + ".mp3");
    and this on frame 3:
    stop();
    var snd:Sound = new Sound();
    var channel:SoundChannel;
    var context:SoundLoaderContext = new SoundLoaderContext(5000, true);
    snd.load(songURL, context);
    channel = snd.play(pausePosition);
    I'm starting to build my own flash player based on what I have learned here, I just have to figure this part out and I'm good to go.

    songURL = new URLRequest("?????" + trackToPlay + ".mp3"); and
    songURL = new URLRequest("????" + firstSong + ".mp3");
    this is where the movie looks for mp3 files, when I downloaded this prebuilt player, the line looked like this
    songURL = new URLRequest("http://www.mydomain.com/mp3_files" + firstSong + ".mp3");
    songURL = new URLRequest("http://www.mydomain.com/mp3_files" + trackToPlay + ".mp3");
    this is the part I am trying to figure out how to change, if I were to have all the members mp3 files go into the mp3_files folder, the player works fine, no problems at all, but I don't want all the members mp3s in one folder, they need to be in each members folder(which I have it set up to do) and I can't figure out how to change the "http://www.mydomain.com/mp3_files" to http://www.mydomain.com/members/$id, that's why I was asking if we add another value in the flash vars, again my inexperience with 2 way communication between as3 and php variables is what's choking me
    the list component is a movie clip
    "You did not answer the question about whether scripts are spread through several frames"
    the first frame has all the code for variables, xml loading, inserting data, the second frame has code for song switching, the third frams has the sound variables, button functions, scrubber and volume, animated meters, etc., I hope i answered it this time, being a newbie, I am trying to answer the best I can.

  • Please help on the Loader.content to movieclip

    Hello there,
    I have been search around and got some mixed solutions,
    summarized as follow:
    If I need to load external swf into the main swf file, I need
    to Loader with appropriate URLRequest for this purpose.
    After loaded, you can listen to the complete event and
    addChild the loader.content to the main swf.
    Because I have a stop on the loaded swf first frame, I need
    to start the swf with a button. Some solutions on the net pointed
    that to make this happened, you need to cast the loader.content to
    MovieClip and have to through a tricky way to accomplish it like
    var movie:*=loader.content ;
    var clip:MovieClip=movie;
    clip.gotoAndPlay(4);
    I tried this method and still got Type Coercion failed
    ::cannot convert flash.display to MovieClip
    Please help, don't know why some experts said it is working
    while I can not get it to work. Thanks in advance

    Thanks WL, you are very close. I have a flash8 movie (purely
    animation)
    and I actually opened it in CS3 and saved as CS3. after
    publishing that's the movie I am tring to load.
    I recreate the whole animation in CS3 and everything start to
    run as supposed to. By trace the loader.content I find out one is
    [object AVM1Movie] for sudo as2 movie and [object MainTimeline] for
    the pure as3 movie. Thanks again.

Maybe you are looking for

  • Error while posting BAPI BAPI_PO_CREATE1

    Hello All, I am getting the following error while creating the purchase order through BAPI as No instance of object type PurchaseOrder has been created. External reference: Can somebody has the idea what exactly is the error. Thanks Jatender Narang

  • Re: OCA 1Z0-147

    Hi! This is Agnit Chatterjee! I have completed the OCA 1Z0-007 exam a couple of days back and now looking forward to the preparation of the OCA 1Z0-147 exam. Wanted to know whether or not there is any time limit starting from the day of giving the fi

  • In Design crashes when starting on apple os10.8.5

    I have an apple os 10.8.5 and In Design crashes when trying to open.

  • Unable to see any purchases in Family Sharing

    I know iOS8 is completely new, but has anybody messed with Family Sharing yet? I set it up, and invited my husband. We both have "share purchases" turned on, the credit card is set up fine. On my iPad, if I go to the Purchased link in the App Store,

  • Bury 9050 and 6120c

    I recently bought the above two mentioned products. Yesterday I got my new car with the bury 9050 car kit. I wasn't aware at the time that because of certain features that 6120c has, I will not have full use of the car kit. Due to its support of a2dp