Skip to main content
Participating Frequently
March 16, 2009
Question

Commication between asp.net and flash

  • March 16, 2009
  • 1 reply
  • 317 views
hi

ASP.NET 2.0
ActionScript 3.0
Flash CS4 Pro

I've created a flash movie (menu) which I want to use in my webproject. This flash movie will display different background images depending on what page is selected.... So if Default.aspx is shown in the Internet browser then show backgroundA, if Default2.aspx then show background2

I've been looking into flashvars, If I should use I should when the page loads calculate the correct value of flashvars etc... Then I need to use FIndControl (.net method) to get reference to the object tag... > not sure how+

Another approach is to have the flsh movie to test what the URL of the webpage hosting it has...If Default.aspx then show backgroundA, else show Background3

I'm not sure how to implment this communication. Any suggestions?

<object width="960" height="108">
<param name="movie" value="Flash/test.swf" >
<embed src="Flash/test.swf" width="960" height="108"></embed>
</object>
This topic has been closed for replies.

1 reply

xchanin
Participating Frequently
March 16, 2009
You could do something like this to see what the current page is:
var browserLocation:String = flash.external.ExternalInterface.call ("window.location.toString");