/    Sign up×
Community /Pin to ProfileBookmark

Flash in Popup Windows

I’m working on a portfolio website and I’m trying to show a website I made in Flash using a popup window created with Javascript on my site. The .swf is the only thing in the popup window. For some reason, the text files I used for the dynamic text boxes aren’t loading. But, if I directly load the .swf in the browser instead of the popup window, it works (except it doesn’t keep <br> or n – another problem). It also works offline on my PC. I can’t find any posts about this. I figure it has to do with how I am embedding the Flash into the website.

This is how I am adding the Flash to the popup window.

[code]
document.write(“<object type=’application/x-shockwave-flash’ data=’file.swf’ width=’768′ height=’768′>
<param name=’movie’ value=’file.swf’ />
</object>”);
[/code]

Again, it works, but it doesn’t load the text files. Is there a param that is needed for this?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@DriklynauthorMay 22.2008 — Does anyone know the answer or have a guess cause this is the 3rd site I've posted this on and I have yet to get any response.
Copy linkTweet thisAlerts:
@DriklynauthorMay 22.2008 — Problem solved thanks to Maggical. I had to add a 'base' param because Flash was looking in the wrong folder for the files.
×

Success!

Help @Driklyn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...