Domain blocking for video player

i creat domain blocking for video player.
in this file i took 2 scence.
message in scence1 & video player in scene2.
running fine scence1, next scence2 coming.
but not run script file in scene2
var allowed_site:String = "website.com";
var domain:String = this.root.loaderInfo.url.split("/")[2];
if (domain.indexOf(allowed_site) >=0 && domain.indexOf(allowed_site) == (domain.length - allowed_site.length))
          play();// Everything's okay.  Proceed.
else
          // Nothing's okay.  Go away.
          myText.text = "Sorry for viewing";

var domain:String = this.root.loaderInfo.url.split("/")[2];
this means "domain" is the 3rd element when the URL is split with "/" - may be this is not what you intended? Perhaps the below is sufficient
if(loaderInfo.url.indexOf(allowed_site) > -1)
Kenneth Kawamoto
http://www.materiaprima.co.uk/

Similar Messages

  • Where do I go to download a plugin for video player on my iPad, Where do I go to download a plugin for video player on my iPad

    Where do I go to download a plugin for video player on my iPad, Where do I go to download a plugin for video player on my iPad

    You can't download plugins. If the built-in Videos app doesn't support the type of video that you want to play, then try searching the App Store for a video or browser app that supports the type of video that you want to play.

  • Specific domain blocked for both mail programs

    Hi all. Need some help... One specific domain name's email addresses has been blocked by my mac for outgoing email from both 'mail' and entourage programs. I don't get any error messages but the emails never get delivered. However emails from the domain name get delivered to me just fine.
    It is isolated to my mac as I can send/receive using a different computer on the same internet connection to the domain name addresses.
    I think it results from a moment last week when I accidentally clicked on 'junk' instead of delete for an email from the domain name thats causing the trouble. I immediately clicked 'this is not junk', and thought nothing more of it. it appears that somehow the computer will now not deliver email to the domain name address in question. Its like a very specific block, but effects both mail programs. Apple Support suggested posting to this disscussion board or an 'archive and install'. Hope someone can help. thanks.
    iMac   Mac OS X (10.4.8)  

    Open one of these messages in the Sent mailbox, and then click on View in the Menubar of the Mail window, place the cursor on Message, and choose Long Headers from the resulting menu. In the Long Headers, is there on named Message ID#? If so, then the message was sent from this Mac, as the ID# must be reported back from the SMTP.
    Are you using Rich Text Format, when composing and sending on this Mac? Do these messages have any attachments, or images such as might be in a Signature? If this is the situation, then the RTF may be getting converted to HTML, and a SPAM filter in front of the recipient may be blocking the receipt of messages from this Mac.
    Try resending one of these message, after first changing to Plain Text, as a test. Open the message in the Sent mailbox, click on Message in the Menubar, and choose Send Again. Next click on Format in the Menubar, and choose Make Plain Text, and send.
    Keep us posted.
    Ernie

  • Help with volume slider for video player

    I'm trying to set up a slider that will adjust the volume of
    the video that is playing. I currently have a slider that adjusts
    the progress of the video that works just fine. I set my volume
    slider up the same way (as far as making it slide and the bounds
    it's contained within) but it fails to actually be draggable. I
    click on the slider and it disappears from view instead of allowing
    me to drag it. It's been a while since I've done any AS work and
    I'm struggling to figure out the problem here as everything appears
    to be correct. Any help would be greatly appreciated. You can view
    a demo
    here.
    I've attached my source code below.

    Nevermind, figured it out. Problem was I'm just retarded with
    math.

  • How to change or add new ext for video?, How to change or add new ext for video?

    How to change or add new extensions for video player???

    Hi,
    Please try to  use Explicit Commit work to save the changes.
    check if there in any BAPI FM related to this.
    Please check the structure you have passed for these fields.
    check the Item category for BOM items - POSTP in table T418. if the entry exists then try to add the values again.
    Thanks & Regards,
    Chandralekha.

  • Why so I keep getting 'blocked-plug in' message!   Very frustrating.  Never happened before.   related to Adobe Flash Player for videos.   Have deleted Adobe and put the new Adobe on, but still get message.   Seems others have had this same problem.

    Why so I keep getting 'blocked-plug in' message!   Very frustrating.  Never happened before.   related to Adobe Flash Player for videos.   Have deleted Adobe and put the new Adobe on, but still get message.   Seems others have had this same problem.

    What is your current Flash Player version: http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html ?
    What is your display adapter, driver version & date?  See http://forums.adobe.com/thread/945765

  • Can the video player for FlashDVD be configured to show download progress?

    The video I'm using for a FlashDVD is about 1GB in f4v format, so it takes awhile to fully download. It's choppy until it's fully downloaded. It would be nice if the video player used for FlashDVDs showed the progress of the background dowloading of the video, the same way that all other video players do.
    Is this configurable, or is it showing, but the colors are so subtle that I can't see it?
    Can this be configured so I can see a clear progress for the download?

    I'm guessing, but my guess is "no." I am assuming it is not present currently.
    Configuring the progress bar ends up with code in the swf. It COULD be made configurable by putting variables for the code in the theme.xml, but it is not.

  • Video player, Is this a good project for Flex.

    I am creating a video player similar to BrightCove player (
    http://www.brightcove.com)
    and also allows viewers to dynamically change the skin with CSS
    files (text file) at runtime. Is Flex a good choice for this
    project?
    Thanks

    Sure, why not. I don't know all of what BrightCove can do,
    but Flash handles video very well.

  • Video player for N79

    Hi All,
    I am having N79, in this only .flv, .wmv, .3gp and .mp4 video files can be played.
    I cannot play .avi, mpg and .dat files using it.
    Can anyone suggest me a good video player I can download for N79 and where I can do that for free ;-)  ?
    Thanks
    Suren

    I am planned to research on the video player for Motorola L7. I am a Dot Net Developer.and have some knowledge in J2ME. Can u help me how the mobile applications can be created for Motorlola L7? Or what r the peculiarities of Moto L7 to take care while creating mobile applications?

  • Best export from FCP4.5 for conversion to Flash video player?

    Hi,
    I'm prepping a 5 min edit production for the best web presentation w/o excessive file size / loading time. The production has a lot of subtle detail & layered images so there a lot of opportunities for this to turn to mud (shot on low grade digital consumer video camera & also in lower light settings).
    I exported in H264 at med quality & got a good looking 75 meg file. Tried uploading to YouTube, fearing the worst, and it actually created something decent from that file. I could just link that embedded file to the intended website, but I dont want that YouTube logo in the corner. I'd rather recreate what they do in Flash w/o the logo.
    Does anyone have info on what YouTube does to the videos it processes into those flash video player files? Compression or resolution settings? It looks like going that route will give better results that can be universally viewed than the standard mpeg route. (file size & universal viewing on all platforms are my only reason not to post in H264).
    Are these issues best solved going from a big FCP export and handled with settings in Flash? Or is there some export choice in FCP that will give best (size & res) quailty with minimal influence needed from Flash?
    I've tried Compressor but havent been able to get any results from it. I just get errors that I dont understand. If thats the solution, I'll dig into that further, but would appreciate any tips / guidance.
    thanks
    Duane
    G5 tower   Mac OS X (10.4.8)  

    You could try Sorenson 3 at 640x480. Try a quality setting of about 80 percent.

  • Importing Video for flash player 7

    Hi, im importing video for use on flash player 7. before
    importing i note that the audio and video quality is perfect.
    however after importing i notice the audio quality is not as good.
    i need to import with the audio embedded with the video in the
    timeline. i notice there are several audio settings (kbps) but im
    not sure which is best. and of course i select high quality for
    flash player 7.
    any ideas to get rid of the lisp that is added to the
    person's voice on import?
    thanks!

    What all browser did you check your output on? Can you also check on a different machine, playing it locally.
    Can you try and set your CPLIBS files to the latest files available in the patch--
    Please try the patch available here -- incase you have not till now-- http://forums.adobe.com/message/4623434
    Let me know if this works?
    Thanks,
    Anjaneai

  • How to block domains not for all mailboxes in our organization?

    Hello everybody! Need some advice - I have a script to block some domains ("black domains list") - I am using this command: Set-SenderFilterConfig -BlockedDomains:$list But now I need to block these domains not for all mailboxes in our organization,
    for example: somebody is sending a message from "black" domain company.com and there is a mailbox [email protected] - so only this user should receive message from "black" domain. Any others should receive nothing even their addresses
    are in copy. Is it possible? Thanks.

    Hi,
    When we use Set-SenderFilterConfig –BlockedDomains to block domain, exchange will block any messages from that domain without any exception.
    The only thing I can think of is transport rule, so please try to create this transport rule to have a test:
    If this transport rule doesn't work, then there is no way to block domain not for all mailboxes in organization based on my knowledge.
    Best Regards.

  • No Media Player for Videos in N8 ?

    Please someone answer me. Is there no video media player for N8?
    I observe that there is no media player for videos and if I have to play video, I will do so by playing the video file one by one. Is there not a way there can be video media palyer to play all the video collections in the phone.

    There is a video player. Menu>videos
    What exactly are you trying to do?
    The video player only plays one video at a time. That's just the way it is. It's just one of those i have learnt to live with. It's irritating, I understand but we'll just have to wait and see if the developers fix it with upcoming updates
    Show your appreciation. Hit that kudos button real hard

  • Create a video player for embedded FLV

    So I want to embed a FLV in my flash so that I just have ONE SWF that contains everything.
    I know if I say "load external video with playback component" I will end up with a swf, html and the flv- this is NOT what I want so please don't ask me why I'm not using this option.
    "Embed FLV in SWF and play in timeline" is EXACTLY what I want- the result is just a single SWF.
    Here is the question: How do I get a video player if I embed a FLV in flash?
    I know if I load the video external I will get some nice players - exactly what I want. How do I get a player if the video is embedded? Are there any coded player templates on the net? I couldn't find anything on google I could use but I've to admit I'm not too good at AS.
    Thanks A LOT for your help

    Not sure if this will work. Embed the FLV into a movie clip and in the expanded propertied check export for action script. Then you may be able to call the movie clip from the content path in the FLV video component.

  • Is there a way to increase the video buffer for Flash Player 9?

    Does anyone know if it's possible to increase the buffer
    capacity for Flash Player 9? I'm living out in the boondocks for a
    while and am jonesing for Comedy Central videos. I just subscribed
    to a DSL provider in a rural setting but it's a little too far from
    the hub and the data transfer rate is slow. The Flash Player
    application appears to only buffer a minute of video. Currently I
    click the pause button while a selected video is playing and then
    wait for the data to buffer. Unfortunately, the data transfer is
    stopped after a minutes worth of video is loaded. Any
    suggestions?

    There's no way to do it on the client side. That can only be
    controlled by the developer of the content..

Maybe you are looking for