Dynamic URL in a swf file

This is a discussion on "Dynamic URL in a swf file" within the Flash & Multimedia Forum section. This forum, and the thread "Dynamic URL in a swf file are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 25th, 2007, 21:42
Up'n'Coming Member
Join Date: Jul 2007
Location: az
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Dynamic URL in a swf file

Hope this the right forum for this

I'm making some Flash ads that will used for this companies affiliate ad program. There needs to be a dynamic URL inserted into it so when a person clicks on it from another web page, all the tracking can be done (standard affiliate ad tracking)

Thing is, I'm not much of an action scripter so I wouldn't even know where to start. I've done some web searches, didn't see much that covered this. This seems like it should be fairly common - using swf files for affiliate ad campaigns. The programmer here can code about anything - except action script.

Anybody have any ideas or where I might find this info?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 25th, 2007, 22:50
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

So to clarify, anytime said flash add is clicked you want it to send a peice of data about the flash file to a database through asp/php to track the number of clicks?

There are a couple of ways to do this...let me know if I am understanding the question
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 25th, 2007, 23:10
Up'n'Coming Member
Join Date: Jul 2007
Location: az
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

Well, kinda. When a person signs up for as an affiliate ad, a custom url will be generated, so when that ad is clicked on thier site, we'd know who's ad it is so we can pay them the money for the click through.

With a standard banner ad, we'd just wrap the image in the dynamic URL. But with using a swf, we need to somehow embed that url into the swf file code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 25th, 2007, 23:51
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

I've never done this before, but I have a couple of ideas of how this "might work"...

Can I get an example of what this dynamic url would look like? If it needs to be sent on the "click" of a mouse that is fairly easily accomplished.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 25th, 2007, 23:57
Up'n'Coming Member
Join Date: Jul 2007
Location: az
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

Not quite sure what it would look like, but think of it this way. We have the one swf file. When one person clicks on it, it goes to www.site1.htm. When person 2 clicks on it, it goes to www.site2.html

So, we won't be setting the get url in the fla, because for each time someone gets this swf file, it'll get a new url

so, basicaly, we just need to change out the url each time someone signs up to put this ad on thier page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 26th, 2007, 01:09
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

Ahhh!!!!! That makes much more sense, I know a solution - I have to hop into MBA class for a few, I'll respond a bit later.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 26th, 2007, 04:04
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

See if this concept makes sense for your programmer...

You can actually include variables on the HTML page that the flash can view, read, and use for different things. This isn't all the embed code needed just the two lines of what it would look like.

The code would look something like this:

Code: Select all
<param name="flashvars" value= "urlcode=http://testsite.com?s38HbdJ7H" />
<embed src="banner.swf" fashvars = " flashvars" value= "urlcode=http://testsite.com?s38HbdJ7H" />
Then you can use the generic urlcode variable inside of the flash file if needed. You can take this to the next level and set urlcode = "variable" which is a variable pulled from somewhere on the page or the form they use to sign up for the banner. Make sense?

Also, the location of the banner in the embed source can have query strings it and be dynamic well. (aka: banner.swf could be banner.swf?h7yshdgw8sgfr) something to think about.

Do either of these things help spark ideas?
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 26th, 2007, 15:22
Up'n'Coming Member
Join Date: Jul 2007
Location: az
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

Sounds like that would work. I'll ask our programer this morning when I get. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 26th, 2007, 15:28
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic URL in a swf file

Cool, let me know what they say - always willing to brainstorm some more ideas.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
action script, flash

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic vs Static Markb Website Planning 4 Jul 27th, 2007 17:10
Links in a txt file not showing in dynamic text field Darren600 Flash & Multimedia Forum 8 May 9th, 2007 15:48
how do I use a:hover within a html file (without the css file) heyo Web Page Design 2 Mar 5th, 2007 22:50
Creating a log file (text file) and an XML file using XSL kdelacruz Other Programming Languages 1 Nov 4th, 2006 21:12
How make Word file same as html file in ASP humair Classic ASP 5 Sep 24th, 2003 14:35


All times are GMT. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42