Skip to main content

Posts

Showing posts with the label flash

Best way to determine user"s locale within browser

I have a website (Flash) localized into a dozen of languages and I want to auto-define a default value depending on the user's browser settings in order to minimize the steps to access the content. FYI, I cannot use server-scripts due to proxy restrictions, so I guess JavaScript or ActionScript would be appropriate to solve the problem. Questions: What would be the best method to 'guess' the user's locale ? Are there any existing simple classes/functions that could help me out (no complex localization bundles) ? Specially to break down all the possible languages into a smaller number (the translations I have) on a smart way . To which point can I trust such a solution ? Any other workarounds or suggestions ? Thanks in advance! Source: Tips4all

Flash on top of jQuery dialog

I know many have asked this question, but I think my situation is a little bit different. I have a site where I have some ads which is Flash hidden in a because of xhtml/html compatibility issues. But the flash elements is on top of my jQuery dialogs which is not ideal. Some solutions have suggested setting wmode to opaque but I can't because my ads are scripts which outputs flash elements. Another solution suggested hiding ads when a dialog is shown. So my question is: Is there a way to put flash content behind my jQuery dialogs while they are visible and without altering the flash code? Best regards, Lasse Espeholt Update: I have now reopned the question with a bounty. As for now, I hide every Flash ad on "show dialog". But this is still not an optimal solution. So, I'm looking for a script which can make every Flash animation to opaque (a jQuery solution would be nicest, but a plain JavaScript solution will do). Or if there should be another solution n

Access mobile device camera from a grails application using jquery mobile

I have a grails application using jquery mobile. I am hoping to find some way to access the camera on the devices. I thought about using flash to grab the webcam but that obviously wont work on Apple devices. Does anyone know of a way to do it and keep it all browser based? I am hoping that there is a plugin somewhere or maybe html5 has some magic in there that supports it.

flash object not displaying in firefox

When i first load the page the flash container div is set to display:none, i then apply some jQuery to .fadeIn() and set the div heigth and width size. Fine. But within this div i embed the flash object this way: <object width="692" height="389"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="wmode" value="transparent"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=<?php the_field('vimeo'); ?>&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=<?php the_field('vimeo'); ?>&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_

ActionScript BEncoded XML file. Decoding same way as Flash:URLLoader in PHP

Hope topic is relevant :) I have a class in Action script that loads and interpretes an XML File. What I want to do is to be able to decode this file using PHP (Probably some kind of Binary Decoding) private static function interpreteXML(j:Event):void { ....... some var defined here..... var event:Event = j; var loader:URLLoader = (event.target as URLLoader); try { xml = new cXML(); xml.SetXMLString(String(loader.data)); } I'm looking for a function/class that would be able to decode XML in same way as URLLoader From what I saw in Flash AS3 Docs, URLLoader have abbility to load Binary encoded data and decode it. That's why I look for a PHP version of this method to be able to interprete files on PHP level.

AS3 to PHP - mail() function

When I click on send the textbox displays 'sending....' with no change. I'm very sure that this was working before, but the client has noticed it not working recently. I can't find the problem, please help. I have a swf with this AS3 var var_load:URLLoader = new URLLoader; var URL_request:URLRequest = new URLRequest( "http://www.blah.com/send_email_auto_response.php" ); URL_request.method = URLRequestMethod.POST; function submit(e:MouseEvent):void { if( contact_name.text == "" || contact_email.text == "" || contact_subject.text == "" || contact_message.text == "" ) { message_status.text = "Please fill up all text fields."; } else if( !validate_email(contact_email.text) ) { message_status.text = "Please enter the valid email address."; } else { message_status.text = "sending..."; var email_data:String