Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:11
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flex, Air, FlashBuilder, Catalyst (Moderators: ..:: Mazhar Hasan ::.., kofi addaquay)
| | |-+  Making Advance Rich Text Area like Wordpress :D
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Making Advance Rich Text Area like Wordpress :D  (Read 1598 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 03/16/10, 03:24 »

Helooo huehehe, i am sry... may be this is really funny but i am sry i dont know flex can do this or not.. Cheesy

U know in the wordpress / blog wathever, when we write new post, the Rich text can browse the picture,

So we can manually input any post from that, i just want to make my mxml application like that..

Like Forum we input right?.. but how about in flex?.. but its manually input with RIch Text Area not by script, thank you very much..

I hope flex can do it, i am really really glad and a good motivation for improving again.. Smiley

Flash-DB Fan'sClub Cheesy
Logged

Huihihi~ Cheesy
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 03/16/10, 04:42 »

For uploading Files in AS3 you should use the Filereference class.

Jorge
Logged

hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 03/16/10, 14:55 »

Yes, but the placement is not dynamic..

If we use FileReference the placement of the picture have been setting before, thats mean the placement of the picture is always there..

If we make with Advance Rich Text Area it will be display the pict as we want depend of we input in the Rich Text Area

For Example we have some Rich Text Area then we input

Text text text
picture
texttexttext
picture
picture

nah after you submit the result is the same as you input before..

Thanks in advance Jorge.. Smiley

Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 03/16/10, 15:09 »

use HTML with textArea.

Inside of it, you can use
Code:
<img src='path to the picture'>
This way it is dynamic.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #4 on: 03/16/10, 21:25 »

Yo got it !!! Cheesy

Thanks, but i want to ask one thing, if we use <img src=""> its just from us right?.. programmer / whatever
but from the other ppl that dont know any about that, he/she cant use that right?.. Smiley

nah, thats what i mean.. Smiley Can we make like that?..

But your suggestion has made some clue for me thanks Ronald Smiley

Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #5 on: 03/17/10, 01:52 »

if you want an user to post compound text with pictures, you need to give him the ability to upload the pictures.
This is, as Jorge wrote, the filereference class.
You can put this into a form.

You have to give the user some kind of replacement code for the files.

something like we use here with the [ brackets, to mark the place, where to put the pictures.
The rest can be done on the server side. It has to generate a well formed html entry.

After flash cannot run javascript, the known AJAX tools and online html editors do not work here.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #6 on: 03/17/10, 04:35 »

Yes, you right i used the FileReference Class for uploading the picture.. Smiley

but how to input that image after we upload to the form without programming?..

For Example like this :

Quote
This is some text balbla
Oh yes blablabla
Wkwkwkwk yeah nice Cheesy

//stop it here then i try to click the browse files
//then after i succesfully uploaded the image should be appear here..

Then i can go some text again blablabla

//then again i click the browse upload success then automatically the image appear here

Finished.. Smiley

Umm Can we make the input form like that?..

Sry about the strange idea, thank you very much.. Smiley
« Last Edit: 03/17/10, 04:37 by hinomotoblade » Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #7 on: 03/17/10, 08:08 »

you generate a name for the image, and insert the img-tag with that name, it after you uploaded it.
Parallel to the upload you have to send this filename, so it is used at the server.

You need to code on both sides - the server and the client.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #8 on: 03/17/10, 13:24 »

wiw its sound difficult Huh, but thank you Ronald Smiley
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything