A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: getURL with expression from an embed var to 3.0

  1. #1
    Senior Member
    Join Date
    Nov 2003
    Location
    N. Virginia
    Posts
    225

    getURL with expression from an embed var to 3.0

    I can't figure out how to make an extression in getURL work in 3.0 with navigateToURL.

    I need to make an embed string variable pass in and use it in the url.

    AS 1.0 Example:
    Code:
    <EMBED src="ad_banner_example.swf?clickTAG= http://adnetwork.com/tracking?http://www.destinationURL.com">
    The code below will allow ad serving networks to dynamically assign a clickTAG to their ad:

    Code:
    on (release) {
    if (clickTAG.substr(0,5) == "http:") {
    getURL(clickTAG);
    }
    How would I do this?

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    PHP Code:
    on (release) {
    if (
    clickTAG.substr(0,5) == "http:") {
    var 
    url:String clickTAG;
    var 
    request:URLRequest = new flash.net.URLRequest(url);
    flash.net.navigateToURL(request"_blank");


  3. #3
    Senior Member
    Join Date
    Nov 2003
    Location
    N. Virginia
    Posts
    225
    thanks jAQUAN, I'll give it a shot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center