Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-26-2010, 01:00 AM   PM User | #1
gribbs100
Regular Coder

 
Join Date: Feb 2006
Posts: 168
Thanks: 32
Thanked 1 Time in 1 Post
gribbs100 is an unknown quantity at this point
complicated issue with loading swf into a wordpress page.

I have a very complicated situation and iv tried endless approaches.

ok, I have a swf file that loads external mp4 videos. a external txt doc tells the flash file the list of videos. that way I can add/remove videos without editing the flash all of the time. I just need to update the txt file.

The txt file, swf file and videos are all in 1 folder on the server.

when tested in its own html page, it all works fine. the videos play. if I update the txt doc, the new info is properly displayed in the swf.

here is the problem, I have to embed this swf into a wordpress page ( home.php) and it loads the swf fine but.... the swf stops interacting with the txt doc. no videos get called in.

I really don't know why that happens. I mean the swf,txt doc and videos are all in their own folder but when you call the swf into wordpress, it stops working.

I have been using the standard object embed tag ( like you see with youtube videos) and it just wont work. the flash file does come up on the page but no videos will load because it stops interacting with the txt doc.

my alternative was to call it in with an iframe but that had its own issues ( the txt doc updates wouldn't refresh, when the wordpress site got refreshed). I wont even bother with the iframe approach for that reason.

Im really stuck here on a way to embed this swf in wordpress and the swf will still call its txt info.

Last edited by gribbs100; 01-26-2010 at 01:02 AM..
gribbs100 is offline   Reply With Quote
Old 01-26-2010, 01:47 PM   PM User | #2
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
Most probably a paths issue. Can you post a link to the wp page that has the swf embedded?
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Old 01-26-2010, 11:32 PM   PM User | #3
gribbs100
Regular Coder

 
Join Date: Feb 2006
Posts: 168
Thanks: 32
Thanked 1 Time in 1 Post
gribbs100 is an unknown quantity at this point
Thanks. When you mentioned paths, I double checked mine. You were right.

Apparently, for some reason, in my flash movie I had to use the absolute path when calling the txt doc (the full url) even thought the txt doc was in the same directory as the swf on the server. those files were all together but the actual wordpress page was in a different directory. all in all, I got it working.

thanks
gribbs100 is offline   Reply With Quote
Old 01-27-2010, 07:43 AM   PM User | #4
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
Ah nice one
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher
[Paul Ferrie ] is offline   Reply With Quote
Reply

Bookmarks

Tags
embed, external, swf, variable, wordpress

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:48 PM.


Advertisement
Log in to turn off these ads.