I NEED HELP TO ADDING FILTER ON SHAPES

Questions on how to use Transform SWF.

I NEED HELP TO ADDING FILTER ON SHAPES

Postby ranadheersingh » Mon Jan 03, 2011 5:03 pm

Hi,

I am new to this and I am trying to apply filters on a shapes but I did not successes to do this. Please any one give me sample code to fix this problem.
i am add sample file to this. please check this once
Thanks & Regards,
-Ranadheer Singh.
Attachments
test.java
(3.43 KiB) Downloaded 76 times
Last edited by ranadheersingh on Wed Jan 05, 2011 2:42 pm, edited 1 time in total.
ranadheersingh
 
Posts: 5
Joined: Fri Apr 16, 2010 10:51 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby smackay » Wed Jan 05, 2011 10:02 am

Ranadheer,

Can you be more specific as to what the problem is - it is a bug or are you unsure which classes to use ?

Regards,

Stuart MacKay
Flagstone Software Ltd.
smackay
Site Admin
 
Posts: 594
Joined: Sat Sep 03, 2005 9:04 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby ranadheersingh » Wed Jan 05, 2011 2:39 pm

Hi,

i am trying to add filters on some text and i create once sample also but it is not working. i am attaching sample file to this mail. i do not know is this correct or not. please help me to fix this or please send me once sample on applying filters on text or any shape.

Thanks & Regards,
-Ranadheer Singh.
ranadheersingh
 
Posts: 5
Joined: Fri Apr 16, 2010 10:51 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby ranadheersingh » Wed Jan 05, 2011 2:40 pm

Hi,

i am trying to add filters on some text and i create once sample also but it is not working. i am attaching sample file to this mail. i do not know is this correct or not. please help me to fix this or please send me once sample on applying filters on text or any shape.

Thanks & Regards,
-Ranadheer Singh.
Attachments
test.java
(3.43 KiB) Downloaded 64 times
ranadheersingh
 
Posts: 5
Joined: Fri Apr 16, 2010 10:51 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby smackay » Thu Jan 06, 2011 11:03 am

I am not absolutely sure but it looks like you need to use the latest definitions for fonts and shapes, e.g. DefineFont3, DefineShape4, in order to make use of filters.

So the bad news is that the current suite of classes used for creating Shapes and Fonts are not filter friendly. The good news is that it should not take much effort to simply convert the generated objects to use DefineFont3 and DefineShape4.

I have attached a flash file showing text with a drop-shadow along with a text dump showing how the movie is created. It is not the answer you were looking for but it does show how to create the effect.

Regards,

Stuart
Attachments
text_drop_shadow.txt
Text dump showing how the file is structured.
(1.94 KiB) Downloaded 74 times
text_drop_shadow.swf
Text field with drop shadow
(135 Bytes) Downloaded 58 times
smackay
Site Admin
 
Posts: 594
Joined: Sat Sep 03, 2005 9:04 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby ranadheersingh » Thu Jan 13, 2011 9:42 pm

Hi Stuart,

Thanks for your help. But when I am trying creating drop shadow on text using DefineFont3 and DefineShape4 classes i am not getting drop shadow on text.So Can you please provide me any sample or any like to fix this problem.


Thanks & Regards,
- Ranadheer Singh.
ranadheersingh
 
Posts: 5
Joined: Fri Apr 16, 2010 10:51 am

Re: I NEED HELP TO ADDING FILTER ON SHAPES

Postby smackay » Fri Jan 14, 2011 9:41 am

The previous post had a text dump of a file that showed exactly how to create the drop shadow effect. All you have to do is write the code to generate a file with the same attributes and it will work.

Stuart
smackay
Site Admin
 
Posts: 594
Joined: Sat Sep 03, 2005 9:04 am


Return to Using Transform

Who is online

Users browsing this forum: ASeineESiffgop, Domislirl, ShiennySeiday and 0 guests

cron