Solved

Flash embedded from directory

Posted on 2007-11-22
1
146 Views
Last Modified: 2010-04-03
Hello, I've uploaded a flash swf file to a directory at a different server, so I cannot use a relative path for embedding swf. How can I resolve this problem?? Would you please show me a  sample code?

If it supposed that a.swf file will be located at 'http://www.abc.com/images/a.swf' and my HTML file will be in 'http://www.ppp.com/embed.html'

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
  id="movie" width="250" height="80">
  <param name="movie" value="movie.swf">
  <param name="bgcolor" value="#FFFFFF">
  <param name="quality" value="high">
  <param name="allowscriptaccess" value="samedomain">
  <embed type="application/x-shockwave-flash"
   pluginspage="http://www.macromedia.com/go/getflashplayer"
   width="250" height="80"
   name="movie" src="movie.swf"
   bgcolor="#FFFFFF" quality="high"
   swLiveConnect="true" allowScriptAccess="samedomain"
  ></embed>
</object>
0
Comment
Question by:portal123
1 Comment
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 20339603
I am not sure if I understand you correctly, but can't you just specify the domain name like this???

<param name="movie" value="http://www.otherdomain.com/movie.swf">

src="http://www.otherdomain.com/movie.swf"

CyanBlue
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now