htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Embed Flash files (swf) into textarea?


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


torbjorn
Novice

Apr 29, 2003, 4:35 PM

Post #1 of 22 (6069 views)
Shortcut
Embed Flash files (swf) into textarea? Can't Post

Hi!

Is it possible to embed Flash-files into the rictext/wysiwyg editor?

Thanks,

Torbjørn


Phil Revill
Novice

Apr 30, 2003, 6:49 AM

Post #2 of 22 (6039 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Don't know if there is a more technical solution, but you could always use an <iframe>.


torbjorn
Novice

Apr 30, 2003, 6:57 AM

Post #3 of 22 (6036 views)
Shortcut
Re: [Phil Revill] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Thanks,
That's not a bad idea, but what about Netscape etc. Isn't it just IEx that supports iframe? Or..?


Phil Revill
Novice

Apr 30, 2003, 7:05 AM

Post #4 of 22 (6033 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Got me there, I don't know...


schorhr
User

Apr 30, 2003, 8:40 AM

Post #5 of 22 (6023 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Wasnt there a Thread like this before?

You would just need to wrap something like this around MOVIENAME.swf

<embed src="

and

" align="right" pluginspage="http://www.macromedia.com/shockwave/download/" width="65" height="60" type="application/x-shockwave-flash" quality="high"></embed>

You could either make a inputfield for the filename at the bottom and a insert button that calls a javascript, that inserts the movie.

OR YOU MAKE a link that turns selected text ( example.swf for example ) into a movieclip, as the examples given in HTMLarea3

<a href="javascript:editor_insertHTML('yourFieldNameHere','<embed src="','" align="right" pluginspage="http://www.macromedia.com/shockwave/download/" width="65" height="60" type="application/x-shockwave-flash" quality="high"></embed>',1);">Highlight selected text</a>


torbjorn
Novice

Apr 30, 2003, 9:11 AM

Post #6 of 22 (6016 views)
Shortcut
Re: [schorhr] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Thanks, that's exactly what I was wondering - will this work?

In the editor that I use now - http://www.sourceforge.net/projects/richtext - I have problems inserting <embed> - tags. The editor itself modifies the embed-tag, and sets play=false/0, and the flash-file won't play...

Is this ok with the htmlArea editor? Has anyone tried it?

-Thanks!

Torbjørn


Luis
Veteran

Apr 30, 2003, 11:41 AM

Post #7 of 22 (6006 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Yes. I added the ability to clean up the extra PARAM that IE adds when embeding a Flash movie into HTMLArea. As I'm not a Flash expert, perhaps it's not bullet proof, but you can test it and give me your input on what else could be done.

Right now, the work around is only for pasting a flash movie, copied from a browser's screen or inserting the code in HTMLMode.

There is an abilty implemented in V 3.0 to insert HTML from a textarea in a popup. That would work perfect for this task. Has somebody implemented it for V 2.3?

ok. to test it go to http://webstationone.com/test/htmlarea, just insert the code in HTMLMode or Paste the copied Flash Movie in Rich Edit Mode. and then go back to see the cleaned code.


Don't give up!!
http://webstationone.com/test/htmlarea


torbjorn
Novice

Apr 30, 2003, 12:04 PM

Post #8 of 22 (6003 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Thanks, Luis!

Unfortunately, there were similar problems with your editor at http://webstationone.com/test/htmlarea as I have had with other editors.

I pasted the following code into source view:

//----------------------------------------------------------------------------------------------
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="http://www.voca.no/vocapublic/upload/nor/oyivind.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://www.voca.no/vocapublic/upload/nor/oyivind.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
//----------------------------------------------------------------------------------------------

Then I swithed to WYSIWYG mode, and the flash looked ok. But if I then switched back and forward to sourcemode, the editor automagically altered the html-code to the following:

//----------------------------------------------------------------------------------------------
<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 height=400 width=550 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<PARAM NAME="Movie" VALUE="http://www.voca.no/vocapublic/upload/nor/oyivind.swf">
<PARAM NAME="Play" VALUE="0">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="BGColor" VALUE="FFFFFF">
<EMBED src="http://www.voca.no/vocapublic/upload/nor/oyivind.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED></OBJECT>
//----------------------------------------------------------------------------------------------

As you can see, the "Play" parameter has been set to "0". This was performed by the editor.

I have experienced the same thing with 3 different rich text editors, using IEx 5.5 or 6.0. Havent tried with Netscape or other browsers.

Anyway, I think it must be IEx that alters the code inside <object>-tags. Maybe some kind of safe handling of <object>s inside <object>s? What do you think?

Torbjørn


torbjorn
Novice

Apr 30, 2003, 12:09 PM

Post #9 of 22 (6002 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

I tried just inserting:

<EMBED src="http://www.voca.no/vocapublic/upload/nor/oyivind.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>

..and things were starting to work! Sly

What are the <object>-tags for? Does anybody know? IEx seems to understand the <embed> tags. Are the <object> tags for other browsers?

So I guess this maybe answers my question? If I let the <object>-part out, and just insert the <embed>-part, it will work? Or will it just work on certain browsers? Crazy

Thanks again!

Torbjørn


torbjorn
Novice

Apr 30, 2003, 12:25 PM

Post #10 of 22 (5998 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

I visited http://webstationone.com/test/htmlarea/output_test2.html, which is the output page that is generated by htmlArea, with both IEx 6.0 and Netscape 7.01, and it worked ok!

(I guess the output_test2.html is a temporary file, and you migth not get access to it if you try a certain time after it is created...?)

-Anyway, so far so good!

Could anybody confirm or test other browsers?

-Thanks again Wink


(This post was edited by torbjorn on Apr 30, 2003, 12:26 PM)


Luis
Veteran

Apr 30, 2003, 1:41 PM

Post #11 of 22 (5985 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

I have not tested at all. But I think that if you don't declare a play value, IE inserts 0 (False) wich is the default). I'm not certain if I should clear all the tags, because although they are not very usual, they mean something to IE (WMODE, for example), therefore, when it is inserted a movie that has those parameters implicit it wouldn't work as intended. What do you think?. Anyway, this is just something I started playing with a little bit yesterday. I'm sure it's lacking many improvements, but at least we know it can be done.

The OBJECT tag is specific for other browser, I don't know which exactly. For NS4- for sure.


Don't give up!!
http://webstationone.com/test/htmlarea


torbjorn
Novice

Apr 30, 2003, 1:59 PM

Post #12 of 22 (5981 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

What you are saying is not totally correct, as it seems that even though you specify each parameter (especially "play" to be "1"), and then paste the code into the editor, you are not guaranteed that they will stay unchanged. Because if you try inserting some text before and/or after the flash (after having pasted the code), and then switch on/off source mode a time or two times, you will see that the "play" is set back to "0".

Quite annoying, if I may say so... As I mentioned before, this feels like something Microsoft has put into IEx, that developers/users can't get control over.

Other thoughts?

-Thanks again :-)


Luis
Veteran

Apr 30, 2003, 3:07 PM

Post #13 of 22 (5978 views)
Shortcut
Re: [torbjorn] Embed Flash files (swf) into textarea? [In reply to] Can't Post

I think it's in my set of substitutions. Maybe I forgot to do something. I will make some changes at night and will keep you informed. I'm at work now.

Make another test later tonight by 10.00 P.M.(it's 1:00 P.M .here in San Diego)


Don't give up!!
http://webstationone.com/test/htmlarea


Luis
Veteran

May 1, 2003, 1:30 AM

Post #14 of 22 (5957 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Ok. I dreamed I got it.

It works perfectly for movies where motion is controled by buttons, but if you insert an animated autoplay movie (like the example you posted), it will automatically change the Play Value to "0", as soon as the animation finishes playing, regardless of the loop setting. Weird!!

I'm lost in that part and I'm tired of pulling my hair. If I find out something else incidentally or accidentally, I'll let you know.


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on May 1, 2003, 2:06 AM)


schorhr
User

May 1, 2003, 3:59 AM

Post #15 of 22 (5948 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Well,

a solution would be to insert the moviename in a imagetag maybee, and replace it by a embeded SWF with PHP maybee? ;-)


torbjorn
Novice

May 1, 2003, 5:30 AM

Post #16 of 22 (5944 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Thanks, Luis!

I understand your frustration Unsure

It actually looks like this is a problem for most rich text editors, for some reason.

Torbjørn


torbjorn
Novice

May 1, 2003, 5:31 AM

Post #17 of 22 (5943 views)
Shortcut
Re: [schorhr] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Sounds interesting, but could you explain a little more?


Luis
Veteran

May 1, 2003, 12:01 PM

Post #18 of 22 (5923 views)
Shortcut
Re: [schorhr] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Making the replacement server-side would be piece of cake in any language (ASP, PHP, CGI, etc).
One of the big challenges or principles of HTMLarea when it was launched was to maintain it client-side as much as possible. I'm pretty sure that Microsoft is working in something that will make it possible soon.
I took a look to the Command Identifiers section of MS website and I found out that it exists a command called PLAY, but unfortunatelly it has not been implemented yet. My guess is that being able to set the PLAY to false, it could be done, since we would prevent the movie to play inside the editor.
I'll keep trying as soon as I digest my recent frustration. Perhaps in the meantime MS makes it available.

I'm glad that at least half of the work can be done now.


Don't give up!!
http://webstationone.com/test/htmlarea


Stormbringer
New User

Jul 19, 2004, 4:57 PM

Post #19 of 22 (4606 views)
Shortcut
Re: [Luis] Embed Flash files (swf) into textarea? [In reply to] Can't Post

well, I was the same problem... the first solution I found: eliminate <object> tag, remaining onli the embed...

but its a PIG solution Wink The solution of a parse with a server-side(php in my case) sounds better, but the magic of htmlarea is be a client-side, so:

So I found a better solution...

complete all params which the htmlArea creates automaticaly, this way resolves, for example, the <PARAM NAME="Play" VALUE="0">

simple, whem you put im textarea, put all params with desired values:

<OBJECT height=300 width=300 align=center classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<PARAM NAME="_cx" VALUE="">
<PARAM NAME="_cy" VALUE="">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="http://www.saps.com.br/sites/demo/flash/globo.swf">
<PARAM NAME="Src" VALUE="http://www.saps.com.br/sites/demo/flash/globo.swf">
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Play" VALUE="1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="never">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<EMBED src="http://www.saps.com.br/sites/demo/flash/globo.swf"
quality=high wmode=transparent WIDTH="300" HEIGHT="300" ALIGN="center"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>


thats it...

(sorry, my english it's veeeeeery bad)


chet
User

Jul 20, 2004, 1:46 AM

Post #20 of 22 (4576 views)
Shortcut
Re: [Stormbringer] Embed Flash files (swf) into textarea? [In reply to] Can't Post

Here is a solution

http://www.college4vents.net/testhtmlarea/example.php?action=ajouter


Stormbringer
New User

Jul 20, 2004, 5:34 AM

Post #21 of 22 (4571 views)
Shortcut
Re: [chet] Embed Flash files (swf) into textarea? [In reply to] Can't Post

your server is down :-D

do yiu have another example in other server?


sulleleven
Novice

Aug 30, 2004, 1:08 AM

Post #22 of 22 (4019 views)
Shortcut
Re: [Stormbringer] Embed Flash files (swf) into textarea? [In reply to] Can't Post

i am working on something for v3. info and testing at http://interdigitate.com/base


(This post was edited by sulleleven on Sep 1, 2004, 1:20 AM)

 
 
 


Search for (options)