Groups | Blog | Home
all groups > flash actionscript > july 2005 >

flash actionscript : Loading swf via swf on a web page


Brandine
7/15/2005 9:38:57 PM
Hi,

I have some basic knowledge of using Flash. I was wondering about the best
methods of loading flash content dynamically via flash content in a web page. I
know about using framesets and getURL to load content into frames, but was
hoping there was a frameless method of doing so, i.e. Is there a way to load
flash content into tables...etc,etc. I've been reading about localConnection
that seems like the right approach, but it also seems awfully complex in order
to accomplish a seemingly simple task. I've been all over MM's site looking
for methods, as well as the DW tutorials, searching this forum too. My gut
instinct tells me that frames or localConnection is the way to go.

If anyone has any info or links on this type of method, I'd be most interested.

Thanks,
Brandine
Brandine
7/16/2005 12:00:00 AM
I found my answer, for now:

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15692

This can be easily manipulated to include the loadMovie command. Attach a
button to the receive_from_flash.swf, type in the movie you to load in the
send_to_flash.swf. On the button in the receive_from_flash.swf, enter this code:

on (release, keyPress "<Enter>") {
a= _root.displayVar;

_root.loadMovie(a);
}

Ohwr, supa excellent!!! sank yur wery mach. I'm definitely naive, but this is
news to me.

It's javascript dependant, but that's alot better than usin' frikkin' frames,
at least in my opinion.

But still, if anyone has a better method, I'd love to know what you got.

Thanks,
~Brandine

AddThis Social Bookmark Button