Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-15-2004, 05:58 PM   #1
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528
Default Searching for colors

Would it be possible to search for a HEX color in a movie clip, or a text object, or ANYTHING in a swf for that matter. Just wondering
mcmcom is offline   Reply With Quote
Old 10-15-2004, 07:36 PM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

Hmmmmm MAYBY not sure

Color.getRGB()
__________________

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Old 10-15-2004, 07:38 PM   #3
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528
Default

that could do ti but now the way i want. For that to work i need to loop through either a selection object or a textSnapshot, this returns only index position of text within a text box. (IE character 1000 will have that color) Unfortuantely I need to find a bounding box (x, y coords) that is that color.

mcmcom is offline   Reply With Quote
Old 10-15-2004, 08:05 PM   #4
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

NO SHANCE !!!

it woud by great if there woud by somthing like this because then you coud make nice pixel efects but there is nothing like this

i hope i understand you right and you mean somthing like ---> my_mc.GetPixelcolorAt(10,10)
__________________

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Old 10-15-2004, 08:11 PM   #5
mcmcom
Asleep At The Keyboard
 
mcmcom's Avatar
 
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528
Default

ya exactly.

It goes with my previous posts about searching. I have created a search function and can highlite found text, but the text it searches for is on a mc within a scrollPane. so if the FOUND text is below the viewable area in the scrollPane i need to be able to scroll Down to it. Unfortunately all the numbers i get back from the search are character positions. With this i would have to make a lookup table with all the metric information of the text (ie. number of chars in a line, number of lines on the page) Its a lot of work, just checkin out other options.

Thanks
McM
mcmcom is offline   Reply With Quote
Reply


Thread Tools
Display Modes 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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:27 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.