x


Flash to html communication

I've been struggling with an issue for some time. When I build a unity project with the flash player (and run it with Chrome) the Application.ExtrenalCall is not working. For example: Application.ExternalCall("alert('Hello!')");

While I do receive a pop-up with the unity web player, it does not seem to be supported with flash player. Same goes for when I try to call a javascript function from the html.

Is there a way around, am I doing something wrong, or is it just not yet supported on unity.

Thanks,

more ▼

asked Mar 19 '12 at 03:15 PM

Cave38 gravatar image

Cave38
3 1 1 1

Same issue for me.

Mar 23 '12 at 11:58 PM felix.
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

According to the script reference, Application.ExternalCall() is web player only.

This forum thread might have some helpful tips for you. Looks like the Flash exporter may be updated to support ExternalCall() at a later date, but that there are some possible workarounds in the meantime.

more ▼

answered Mar 24 '12 at 12:54 AM

rutter gravatar image

rutter
5.2k 2 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3460
x269
x72
x53

asked: Mar 19 '12 at 03:15 PM

Seen: 868 times

Last Updated: Mar 24 '12 at 12:54 AM