Want to hire a development team?
No Images Added Yet

Get current url to Flash swf using an External Interface call

Not Rated Yet.
Add to Favorites
Publisher
access to the url from flash
Product Details

Many have struggled with the task of getting you swf to read or get the current url showing in the browser, the html page the browser is at which has the swf embedded. Not to be confused with the _root._url which returns the path of the swf file. This would be helpful to know if someone is embedding your swfs on their site, or even customize your swf depending on which page it resides on. There is a pretty simple, yet virtually undocumented way to do this. We have to use javascript by calling External Interface and get the url from the DOM. Window.location.href. Then we must call the toString() function only because ExternalInterface.call requires a function rather than only reading a static property.

Report this Listing
Price
Free
Licence Type
Free
Views
898
Submitted on
14th December 2010
Last Updated
25th December 2010
Licence Type
Freeware
License Price
USD 0
Advertisement The banner below is an advertisement
Quikwit - AI Chatbot Platform

You May Also Like

Cloud Services You May Like

1 Hour AWS issues/problems review and fix

One hour dedicated session to review and fix a specific AWS issue or problem.

Cost optimization by archiving standard AWS snapshots

Reduce storage costs by cleaning up and archiving old EC2 or EBS snapshots safely.

Help/Fix on AWS CloudFront (1 Hour)

One hour of help to configure or fix AWS CloudFront distributions.

Create CloudWatch Alarms and Automated Performance-Based Actions

Setting up CloudWatch alarms to monitor server performance and trigger automated actions based on customized conditions.

User Reviews

Please rate the listing and tell the world know what do you think about the listing.
(0 ratings)
Not Rated Yet.
No reviews found.
Not yet reviewed by any member. You can be the first one to write a review for this listing.Click hereto submit your review.