Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Add a class to dynamically loaded image


Add a class to dynamically loaded image

Reply
  #1 (permalink)  
Old 02-28-08, 09:01 AM
stuartm stuartm is offline
Newbie Coder
 
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Add a class to dynamically loaded image

In AS3 is it possible to add a class to a dynamically loaded image? If so can anyone point me to an example of how to go about it?
Reply With Quote
  #2 (permalink)  
Old 02-29-08, 04:57 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
can you explain a little more what you mean with "add a class to an image" ?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 02-29-08, 12:08 PM
stuartm stuartm is offline
Newbie Coder
 
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Its ok ive now fixed the problem! i do however have another....

Converting text to shape/vector using ActionScript....

The scripts now working great apart from one part (quite important too), so I have one more simple (for you) question...

Ive tried the bitmap conversion but its not good enough quality to have resized! The file that the PDF outputs (30"x12") is smaller than the size of what will actually be printed 1:4 (6ftx2.5ft) and 1:8 (10ftx4ft). As you know i want to break the text apart into a shape before it creates the pdf, well i have found this while ive been searching the net... http://www.actionscript.org/forums/s....php3?t=103408

then after finding this i came across the adobe site with info on... http://livedocs.adobe.com/flash/9.0/...=00003895.html

Im not sure what im suppose to do with it ive added a new function called 'breakText' and added the info it suggests to the function but i get an error saying... 1180: Call to a possibly undefined method getDocumentDOM. Ive tried to import 'import fl.*;' and import 'fl.getDocumentDOM;' but to no avail!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add url to the image Nikas JavaScript 5 01-30-09 04:25 PM
I need to pass this class Please Help! Negative6 Everything Java 1 05-03-07 06:55 AM
Image > click on it > position registrated > add things to the image Oskare100 PHP 2 05-23-06 08:59 AM
how to change text dynamically with image? rabbit51 JavaScript 1 02-23-04 08:35 AM
How to change text dynamically with image? rabbit51 Script Requests 0 02-07-04 12:14 PM


All times are GMT -5. The time now is 06:37 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.