Flash gurus, I need help!

Status
Not open for further replies.

Mike

New member
Jun 27, 2006
6,777
116
0
51
On the firing line
Okay, somewhere within the 145k + members, there's got to be a flash monkey that can help out with this.

Long story short:

I need to create (or hire someone that can) a FLV that can server a buncha different banners based on some external criteria (ie. IP, or browser)

It's been about 8 years since I cracked Flash, so I'm not sure how this can be done.

Guessing it would work something like this:
1. FLV with all the banners starting at different frames
2. Actionscript to check the IP and then display the appropriate banner
or...
3. Actionscript that connnects to an external script that then tells the FLV which banner to display.

Yeah... I need helps.

If someone would be so kind as to point me in the right direction or to the right designer, I would be most appreciative.
 


More possible solutions to this. My quick-shot approach would be:

1. PHP script which gets the IP address and user agent string
2. Pass these variables to swf (example.swf?foo=bar)
3. Use something like FlashVars to parse the variables inside Flash
4. Now, either you have the banners embedded, starting at different frames, but this is highly inflexible. What I would rather do is loading external XML file with banners configuration etc.
5. Display some banner based on the variables passes from PHP

Yeah, I am a shitty tutor.
Send me a PM if you need a working example, I will put something together.
 
Would love to, but the network stopped accepting iframes or javacript from adservers. Now, they will only accept flash. So, I'm trying to figure out how to get all my old banners into flash to make them happy.

lawl, can you share which one is this?

Is it security reasons or something? I know javascript tags have performance issues sometimes, what's the deal with iframes?
 
1. Get user agents and parameters and elaborate with JavaScript

2. Pass these variables to SWF code, I strongly advice you to use SWFObject

3. Create your class or your simple FLA code on stage.loaderInfo.parameters

The core of your timeline based code should remind this:

Code:
switch(stage.loaderInfo.parameters.c){
    case “US”:
    gotoAndStop(“US”);
    break;
    case “UK”:
    someFunction();
    gotoAndStop(“UK”);
    break;
    case “DE":
    someFunction();
    gotoAndStop(“DE”);
    break;
    default;
    break;
}


Or if you want to use only AS3:

Code:
switch(stage.loaderInfo.parameters.c){
    case “US”:
    loadXML(“US”);
    break;
    case “UK”:
    someFunction();
    loadXML(“UK”);
    break;
    case “DE":
    someFunction();
    loadXML(“DE”);
    break;
    default;
    break;
}

Implement your own loading functions.
 
I don't understand. The problem is for publishers who want to embed your ads in their pages? Which kind of code do they use to embed your SWFs? The raw <object>....</object>?
 
LOL, I don't understand either. Honestly, I posted the OP without fully understanding what the network wants. I realized that last night and thought "how can I intelligently ask for help, when I don't even know what the network wants?"

Then realized I should have waited for more info first.

So, I'm gonna close this thread for now, and when I can intelligently ask the right questions, I'll reopen or start a new thread.

Thanks for trying to help guys.
 
Status
Not open for further replies.