Solved

How to turn this round-corner text box code into a component I can pull out of the component library

Posted on 2011-03-13
5
295 Views
Last Modified: 2012-06-21
I posted a question a while back asking for help in turning some code from stackoverflow into a component.

Deepanjan an expert, re-wrote the code and improved it, has been absolutely amazing in fact; however, I am still floundering with my original problem.

In short I need a component or MC that can be dragged from the library that has rounded corners and will display text locked to the top left, and to be sizable without scaling the text.

I have achieved some success with 9 point scaling on a box, but I couldn't work out how to adjust the text. If embedded it would scale with the box, if not embedded it would not move with or link to the box.

I have posted the demo flash file below, any thoughts / help would be greatly appreciated.

Regards,
Ady

Please note, the flashx line needs commenting out of line 10 of CustomTextField.as demo.zip
0
Comment
Question by:arasburn
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:deepanjandas
ID: 35121617
Hello Ady,
I have just added a sample for creating the rounded TextField in flash whereby you can use the inspectable properties from the property inspector.
You can add the properties now seeing the sample.

Warm Regards
Deepanjan Das
demo.zip
0
 
LVL 17

Expert Comment

by:deepanjandas
ID: 35121619
0
 
LVL 1

Author Comment

by:arasburn
ID: 35124129
Hi Deepanjan,

Once again... Thank you!

I will read the tutorials you sent through and see if I can switch on live preview on those components!

Thank you again :)

Kind regards,
Ady
0
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
ID: 35124962
Live preview is there, just need to create one and associated for viewing purpose :)

Warm Regards
Deepanjan Das
0
 
LVL 1

Author Closing Comment

by:arasburn
ID: 35314466
A thousand apologies for not closing the question and awarding points earlier, very rude of me. Thank you once again for all that you did on this. I got live preview to work in a fashion, not really how I wanted but again it highlighted that I was not perhaps ready to get this deep into the code.

Thank you again, really appreciated your help; I hope you do consider finalizing it and selling it as a component, I think it would do you well.

Kind regards,
Ady
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now