A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Dynamically pulling up city and state....Help :P

  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    32

    Question Dynamically pulling up city and state....Help :P

    HI,

    I am using Flash CS4. This needs to be done in flash because it is going to be used for a banner

    Does anyone know the code for dynamically pulling up the city and state?

    So if a user was viewing the banner from San Diego Ca... the dynamic box would say San Diego Ca.

    Thanks, :P

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    you'll need javascript for that. Flash alone can't do that.

    gparis

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    32
    How would you go about doing it?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You can look into External Interface to call javascript. Put the function in the head tag of the html, then call it from flash. More info and example of External Interface here.

    gparis

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    32
    Is there any way to do it all within the swf file?

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    no.

    gparis

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