dynamic linking between servers

  • Wiggy
  • Born
  • Born
  • Wiggy
  • Posts: 1

Post 3+ Months Ago

Basically, my client has a master server with some flash files on it with three access points to that master server:

• The local Intranet for staff ( http://localhost )
• The Internet ( http:// )
• Secure Internet for transactions etc ( https:// )

What I need is some code that will find which access point they are in, get that url and then insert it in front of a loadMovie command on a button or movieclip.

An example of what I mean:
Staff on the Local Intranet click on a button, the code reads they are on the http://localhost access point and then directs them to a file in a folder http://localhost/content/images/flash.swf

I only have a basic understanding of actionscripting so any help/ information would be greatly appreciated as this is quite an urgent project.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

basically I would use javascript to get the url. (I think its window.url but not positive) and then pass that as a variable to Flash. Since the domain shouldn't be changing your probably safe passing the variable to flash at run time (you can simply pass the variable when you embed the swf in the page)

The easiest way I know is to use the swfObject to embed the swf and pass a variable of something like "basepath"

Then inside flash you simply say
Code: [ Select ]
loadMovie(basepath+"/added path content/some.swf",targetClip);

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 15 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.