Flash :: Communication Between Cocoa And SWF Using WebKit

Apr 24, 2010

I'm trying to implement a basic WebView containing a SWF file inside. The SWF file plays and apparently works fine. However I'd like to know if there's some way to retrieve an ActionScript variable from my Cocoa application.

View 1 Replies


Similar Posts:


Ios :: Cocoa Touch - Displaying Flash-based Youtube Videos On Devices?

Nov 14, 2011

Is it possible to display flashed-based youtube videos on ios devices?What solution do you use when you decide to embed youtube videos on your app?Or do I have to give up on all flash-based contents?

View 1 Replies

Webkit - Show HTML In Flash?

Feb 19, 2010

You can build apps in HTML using Adobe AIR which parses it using Webkit, can this be done in Flash?For example you have a string that contains <html><body><b>hello world</b></body></html> and then call a function that runs the WebKit parser over it and then outputs 'hello world' in bold to the stage?

View 2 Replies

Can Webkit Show Flash Banners?

Oct 14, 2010

I just wanted to confirm whether or not webkit can show flash banners.

View 1 Replies

Flash - OSX: How To Alter WebKit's Plugin Search Path

Sep 10, 2011

I have a developed a browser-like Mac Desktop app which uses WebKit to render web content. My app links against the standard system WebKit framework (it does not bundle a private WebKit framework).

However, I would like to bundle a private Flash plugin in my app bundle. When my app runs, I would like WebKit to prefer the private Flash plugin in my bundle over any other Flash plugin on the system.

How can I alter WebKit's plugin search path such that my app will load my private Flash plugin bundled with my app?

View 1 Replies

Redirected MP3 Stream Do Not Load In Webkit Browsers - Flash 9

Jan 14, 2012

I'm busy creating a mp3 player (for a music store). Everything works perfectly. Some of the files will be redirected to the original source (located on other server) when Flash wants to load the stream. In all major browsers this works perfectly except Webkit browsers such as Chrome and Safari. I have tried to send a "Moved Permanently" 301 header as well as a normal redirect but does not work. Also when i try to download it from the address bar nothing happen (in other browsers i get a popup to download the stream).

View 1 Replies

Javascript :: Mouse X/Y Detection Within Flash Stage Not Working Moz & Webkit On PC?

Jun 13, 2011

nav item consists of a ball that "follows" the cursor in relation to where it is on the page. JS is used to gather the X/Y info from off the Flash stage and create vars to be used by the Flash movie to move the "orb" in relation to the cursor position. For some reason, FF and Chrome on PC fall short here.I've tried everything from setting the Flash movie to "opaque" and positioning a transparent DIV over it, all to no avail.Any thoughts on this? Has anyone encountered something like this?

View 1 Replies

Objective C :: Objective C Prevent Flash In Cocoa WebView

Feb 3, 2011

In my Cocoa app, I want to prevent Flash from loading in a WebView, and let the user decide if the Flash should be shown for each page. (That's the same behavior already available through the ClickToFlash plugin or Safari extension. Bundling any of those extensions is probably not an option because of licensing issues.)Unfortunately most of the Flash I'm trying to avoid is generated from embedded JavaScript specifically designed to prevent easy flash blocking, so I cannot filter the raw HTML for inclusion of Flash objects.Also, I cannot disable JavaScript for my WebView, as the page I want to display looks completely different when JavaScript is turned off.Is there a notification/hook I can use to modify the page DOM after JavaScript has been executed, but before the Flash plugin is loaded?

View 3 Replies

AS3 :: Objective-C-Cocoa Book Recommendation For A Developer

Jan 15, 2010

Just looking for more recommendations for great Ojective-C-Cocoa books. My ideal book would be one with actual hands-on walk thru examples increasing in complexity and doesn't spend unnecessary time on basic OOP. Trying to leverage what knowledge I DO have in Actionscript 3. (or maybe its all about unlearning?)

View 1 Replies

WebKit Browsers :: Error In Flex Webapp With TabNavigator Loaded Using SWFLoader?

May 19, 2011

I use a flex app (A) to load another flex app (B) using SWFLoader (both built using Flex Builder 3 sometime ago).Everything works fine as expected across all (IE, FF, Chrome, Safari) desktop browsers.However, if I use a TabNavigator within the flex app (B) then when you click on any of the tabs it unloads the flex app (B) and re-starts flex app (A). This behaviour appears to be limited to Webkit based browsers (Chrome & Safari) the rest of the browsers (IE, FF) work fine.

View 1 Replies

Android :: Eclipse Can't Locate Android.webkit.WebSettings.PluginState?

Dec 12, 2011

I am trying to load a flash in a webview using the codes below

mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
mWebView.loadUrl("http://www.adobe.com/software/flash/about/");

but when I import android.webkit.WebSettings.PluginState; eclipse return an error, asking me to search repositories to find it , the minSDK of my app is 7, any ideas?

View 1 Replies

Flash - Communication Between As2 And As3

Mar 16, 2010

I have this code under a button in 'as2.swf'

[code]...

and this swf is being loaded into as3 container called 'main.swf', but when i press it nothing happens and the file does not unload itself.

View 1 Replies

Professional :: Flash And ASP.net Communication

Mar 7, 2011

I recently made a mp3 player in Flash. I have an aspx page that has the mp3 player in it as well as a .net button which is disabled on page load. The .net page tells the audio player waht file to play and the player plays. What is supposed to happen next is when the audio player reaches the end of the file the button on the aspx page is supposed to become enabled. I am not sure how to do this [have Flash tell the aspx page that it is done playing].

View 2 Replies

Php :: Php-Flash Communication Over Sockets?

Nov 5, 2009

I am not any kind of network programming pro, but it happened that I have faced necessity to develop socket-server on php (no way for using Java) for flash multiplayer browser-game (standard features like locations, team battles, etc).

The main problem is that TCP is point-to-point protocol and it completely occupies given port.Of course it is possible to create some kind of queue, which will manage connections to the socket, but this solution doesn't seems to be the fittest one.

It seems to me that using interval of "fair" ports (from 2000 to 2200, for example) is more fitting solution, because one request may take a lot of time to execute and players won't be happy to wait in queue.

But how can I implement this "port inteval" strategy?The solutions that I see are:

launcing php-script per every port (he-he, 2 hundreds of launched scripts!);somehow forking the initial process to new processes (2 hundreds of processed? Not nice too), one for every port;additional while-loop, which listens all the ports (looks very bad);using threading or something like that (the problem is that php is single-threaded, as far as I know; pcntl?).But somehow I don't like any of them, or at least don't know how to implement them in the best possible way.

What is the best existing strategy to handle multiple requests from multiple users per time unit without delays, and how to implement this strategy in php? We have our own Debian-server, so it is possible to use any required php extensions.

For example, if we are trying to develop chat application, we need some sort of fixed (I mean persistent) connections for each user. For example, we have 80 users in chat, and then one of them posted a message, which server tries to handle and send to all other connected users, also putting an entry to the history file or something like that.

In this situation polling server for new messages every 10 seconds from each of 80 users is craziness, so the need in persistent connection gets obvious.But I don't know what is the best way to implement something like this, considering that not all requests are handled instanlty.

View 2 Replies

Java :: Communication Between EJB And Flash?

May 19, 2010

Is it possible to call my ejbs from Flash actionscript?Also if my ejbs are returning List how will flash come to know about this class?

View 2 Replies

Communication Between Flash Files?

Jun 28, 2010

How can I make something like this: [URL]One flash triggers the other one.

View 1 Replies

C# :: Communication Between Flash And C# Using ExternalInterface Without TLF Text

Jun 15, 2010

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like:

[Code]...

The axFlash_FlashCal is called fine, as long as there is a textbox on screen that's set to use TLF text. (any textbox will do, no specific ID). Without the textbox the even will not fire. (Even though ExternalInterface.Avaliable is set to true) I've tried using CS4 and CS5 to publish, using both Flash 10 and 9 as output.

View 1 Replies

Html :: Flash And JavaScript Communication Within IE

Jul 21, 2010

I am having in issue with IE passing a string back into an swf using the EternalInterface class in Flash CS4.I have an swf with the following code: var externalString:String = ExternalInterface.call("IncomingJS")which is inside an event listener attached to an Event.ENTERFRAME and an if statement waiting for ExternalInterface.available. [code]I am able to successfully get the externalString variable and procceed with the rest of the AS3 script in Firefox, Safari and Chrome, but not in IE.If I add in an alert (stringFromHTML) before the return statement in the Javascript, I get the value of the stringFromHTML spammed, which looks like Flash is firing the function at the right rate[code]Unfortunately, the HTML code is actually working within a 3rd party HTML generator, and one of it's limitations is that I can only have a single line (with unlimited length) of html at a time.Are the other options (swfObject etc) able to run either with no line breaks in the code, or would I be asking for trouble with Javascript and the SWF to, instead of embedding the SWF directly, use something like an iFrame and refer to a 'proper' flash delpoyment html file?

View 3 Replies

ActionScript 3.0 :: Flash P2P - Communication Between More Than 2 Clients

May 24, 2011

I'm doing some experiments with Adobe Cirrus. I've managed to connect 2 clients to each other. But what I want now is the following:
I want client A to publish and clients B and C to play A's stream. I've tried to do this. A starts publishing, B and C create receiving NetStream based on A's nearID. Unfortunately only latest connected to A client can play A's stream.

View 1 Replies

Flash :: Communication Between Two Data Grids?

Sep 26, 2011

I am trying to make connection between two datagrid in two separate windows.

Until now, I am able to create a datagrid in one FLEX browser window but got stuck furthur.

On some click event in one of 1st datagrid row-column field value, (i.e itemRenderer in form of button), I want to open a new window (using some LocalConnection or ExternalInterface.call) to open another window with the part of the original data grid.

Which method should I use - LocalConnection or ExternalInterface.call ?

View 1 Replies

Flash :: AS2 Parent - Child Swf Communication

Feb 29, 2012

How do I do this? Inside the parent swf myVar value is set by query string value loaded in by swfobject var myVar = _level0.part; // i have the value 123 here ..all good so far

[Code]...

Always childLog.text is undefined :( - so how to access the value of myvar from the child?

View 1 Replies

ActionScript 3.0 :: Flash Communication Between Computers?

Oct 14, 2008

I am trying to play flash video on one computer and get a flash program (on another computer) to know what content is being played, so it can respond appropriately with related content.Has anyone got ideas on the best way to achieve this?I have tried using socket connections through a Java server with a policy file request, but after receiving delivery of the policy file as text over the socket, Flash won't reconnect to talk to the server. I can't figure out how to enable policy file logging either.

View 1 Replies

ActionScript 3.0 :: Php Mysql Flash Communication

Jul 5, 2009

I am having a huge problem and need a fix or at least to be pointed in the right direction quickly. I am working on a massive flash project for which I have quite a large deadline tomorrow. I have 8 movie clips on my stage, and each of these clips has a number of entities which need to be loaded and changed by data from a database. These entities are all dynamic text boxes bar one thing: the name of the clip, the id of the clip, its internal colour, a question, and an answer to this question. I have already created a table using phpMyAdmin that is laid out like this:

name - number - colour - question - comment There are currently 2 rows in this table but there will eventually be 8 minimum as I am still largely in test mode. I found a tutorial for as2 (bare with me ), which shows me how to take a single source of data from a database and then parsing the xml generated inside of actionscript and add each item to a list. However, taking into account that I am a complete newbie when it comes to xml and php and mysql, I am very confused as to how I could access all these details using php, using the below php and as code as a template:

[Code]...

View 1 Replies

ActionScript 2.0 :: Communication Between JavaScript And Flash Possible?

Feb 27, 2007

So flash invokes javascript functions using fscommand. Javascript can invoke flash commands using the ExternalInterface class . Is there any other way that javascript can invoke flash commands???

View 2 Replies

ActionScript 2.0 :: Better Way To Protect Php Flash Communication?

Jun 25, 2007

I have a flash interface that uses php to write/read vars.So if someone wants to hack our website all he has to do is look at the code and send some vars manually to the .php file. I've seen some encryption apps that claim to fully protect your swf but at the same time there are those who claim to decompile protected ones.Is there any better way to protect the php>flash communication?

View 2 Replies

ActionScript 3.0 :: Html To Flash Communication?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

[Code]...

View 1 Replies

IDE :: Flash Pages And Communication Handling

Apr 28, 2009

I am having mainly 2 problems in Flash for some time and I need some clarifications on them.

1. Handling pages.
How do I handle working with pages in Flash? Do I create a frame for each page and place the content of the page in that frame and when needing to go to a page I simply go to it's frame? Or do I use ActionScript to put and remove content from the stage and create every page in this way? What I mean by this is: if a page has a menu and a picture, I use ActionScript to put the menu and the picture there. If the next page has some text and a button, I use ActionScript to remove the menu and the picture from the last page and put the text and the button from the new page.

The first method seems simpler but that means that if the page has some content that needs to be loaded (a picture, for example), this content will need to be loaded every single time the page is opened.

The second method requires more work but is it more efficient ? When I remove the content from the page, do I move it to a negative x and y so that it cannot be seen or do I remove it completely and just load it again the next time the page is opened?

2. Handling a flow communication with PHP.
I constantly need to communicate back and forth with PHP. I use a LoadVars variable to send data to PHP (using "POST") and I use an XML variable to retrieve data from PHP (I use the "sendAndLoad" method). The data sent by PHP is in an XML structure. The problem here is that I need to have different channels working. I need to receive several different types of data. Do I create a set of LoadVars and XML variables for each type of data that I need to receive or do I simply use only the one set and use an ID variable to specify with which type of data I am working at the moment ?

View 1 Replies

ActionScript 3.0 :: Flash Creating A Two Way Communication?

Mar 25, 2012

I'm trying to create a two communication between AS3 and PHP. So far I was able only to send data from AS3 to PHP using URLVaribles.

1. How do I proccess data sent from PHP to AS3 on the AS side?

View 1 Replies

ActionScript 3.0 :: Html To Flash Communication Impossible?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'movie', 'aidonitsa',

[code].....

View 3 Replies

Flash8 :: Flash Pages And Communication Handling?

Apr 28, 2009

1. Handling pages.How do I handle working with pages in Flash ?Do I create a frame for each page and place the content of the page in that frame and when needing to go to a page I simply go to it's frame ?Or do I use ActionScript to put and remove content from the stage and create every page in this way ?What I mean by this is: if a page has a menu and a picture, I use ActionScript to put the menu and the picture there. If the next page has some text and a button, I use ActionScript to remove the menu and the picture from the last page and put the text and the button from the new page.

The first method seems simpler but that means that if the page has some content that needs to be loaded (a picture, for example), this content will need to be loaded every single time the page is opened.The second method requires more work but is it more efficient ? When I remove the content from the page, do I move it to a negative x and y so that it cannot be seen or do I remove it completely and just load it again the next time the page is opened ?Please explain to me, as detailed as possible, what do you think is the best method in working with pages.2. Handling a flow communication with PHP.I constantly need to communicate back and forth with PHP. I use a LoadVars variable to send data to PHP (using "POST") and I use an XML variable to retrieve data from PHP (I use the "sendAndLoad" method). The data sent by PHP is in an XML structure.

The problem here is that I need to have different channels working. I need to receive several different types of data.Do I create a set of LoadVars and XML variables for each type of data that I need to receive or do I simply use only the one set and use an ID variable to specify with which type of data I am working at the moment ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved