Solved

* VERY URGENT *Adding a Scroll Bar

Posted on 2004-04-28
22
170 Views
Last Modified: 2010-08-05
All I need is to add a normal scroll bar.  This one only has end arrows, I need the middle drag part.  This is VERY urgent. Go to the following link and download the zip
www.jasonkoscho.com
0
Comment
Question by:mtb007
  • 10
  • 5
  • 5
  • +1
22 Comments
 
LVL 22

Expert Comment

by:rascalpants
ID: 10940220
why not just use a component?

rp
0
 
LVL 1

Author Comment

by:mtb007
ID: 10940250
a component scroll bar? i tried, and i cant get it working
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 10940428
it is probably because you are using Flash 4 code...   if you want this project to work, then you need to use proper coding format...  

all you need to do is add a scrollbar component, and use the dynamic text field as the scroll target...  you need to give the text field an instance name first...


rp
0
 
LVL 1

Author Comment

by:mtb007
ID: 10941137
I did do that, and it dosent work still.  I dont have the time to figure out how to recode this, nor the skill.  Is there anyway that I can use the scroll component with this code?
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 10941602
I couldn't tell you...  at the moment I am not sure why it is not working...

here are some things to check...

- you have given your scrollbar component an instance name
- you have given your dynamic text box an instance name
- you are targeting the instance name of the text box for the scrollbar


other than that, I am not too sure what else to do...

rp
0
 
LVL 19

Expert Comment

by:Iammontoya
ID: 10941904
I'll put something together for you
0
 
LVL 1

Author Comment

by:mtb007
ID: 10941925
THANK YOU!!! you are a life saver!
0
 
LVL 19

Expert Comment

by:Iammontoya
ID: 10942240
Well, It's done, but I have no way of sending it to you, and I have no access to my server right now. They frown upon sharing of email addresses and contact info, so we can't break the rules. I can give you the info here, if you like, it doesnt take long.

1:  Inside the controlmenu movieclip l(I deleted the scrollbar you had, and the scrollbar component you had before)

2: I used the texttool to create a dynamic textfield and sized it to the size of the box you were representing before.

3. I named the new textbox "mybox" (no quotes)

4. I drag a scrollbar component from the stage onto the right margin of "mybox". The scrollbar component should pick up the name of the textbox, but if it doesnt, make sure it says "mybox" under the target.

5. make sure the dynamic text box html property is set to "true". You can do this by clicking on the button that looks like <> in the property panel, or you can the code

mybox.html=true;

6. Add the following code (after line 5)
mybox.htmltext='<a href="http://www.microsoft.com">First link</a>'+"\n";
mybox.htmltext+='<a href="http://www.macromedia.com">Second link</a>'+"\n";

if you want it to be bold, just add the <b> tag as you would in html
the "\n" gives you a new line
please take note of the quotes.. I start and end with single quotes and quotes in between those are double quotes.

I assume you know where to put your asfunction code..

Good luck!

I have a file for you, but will not be able to post until much later this afternoon or early tonight.

0
 
LVL 1

Author Comment

by:mtb007
ID: 10942261
ok, thanks, ill try this and check this post again later tongiht.!!! THANK YOU!
0
 
LVL 1

Author Comment

by:mtb007
ID: 10942353
Yeah, ill check this out later tonight.  Thanks! Again.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 19

Expert Comment

by:Iammontoya
ID: 10945300
0
 
LVL 1

Author Comment

by:mtb007
ID: 10948789
Yeah that works, but it dosent use the sort and search function, kind defeats the purpose of having it.
0
 
LVL 19

Expert Comment

by:Iammontoya
ID: 10949615
to add those functions, change the method by which the text field is populated, and populate the form with text references, the way you did it originally.

0
 
LVL 1

Author Comment

by:mtb007
ID: 10949665
I didnt do that. it was a tutorial from flashkit.com.  Its old crappy code, and i dont have the skill to transfer that info along to what you sent me
0
 
LVL 19

Expert Comment

by:Iammontoya
ID: 11106120
hmm... after all that work. :)

0
 
LVL 1

Author Comment

by:mtb007
ID: 11107384
I appreciate all of your work Iammontoya, but it didnt work the way I needed it to.  And in my time constraints, I had to find someone local to help me.

Thank you for everything & sorry.

mtb007
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 11107967
Jason,

It is your own fault for trying to use an example that was written for Flash 4 and you wanted it to have Flash MX and above capabilities.  That is like trying to modify an old 486 computer to run like a 2GHz machine of today...  or trying to put a monster truck engine in a Chevy Nova.

I don't think you can expect experts to help you out if they don't receive some type of recognition for their efforts...

In my case, I don't need the points, but others would...

just something to think about before you try to use legacy code again...


rp
0
 
LVL 1

Author Comment

by:mtb007
ID: 11108045
I understand your point, and its a good one, but im not going to give full credit to someone for something that doesnt work. I dont mind giving out the points, but I was under the impression that you give points to the person who did what you asked.  I think in this case since he did make a working example i can give him half of the points.
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 11108740
the grade is what gives the multiple of points...

if a question is worth 100 points, then a grade of an A gives the person 400 expert points...  B gives 300, C gives 200.

In this case, I would recommend an A or B, because a C is typically no a good thing to give or receive...  sometimes an A is awarded for effort...


rp
0
 
LVL 1

Author Comment

by:mtb007
ID: 11108777
I did not know that. i thought you only recieved points depending on what was offered. thanks for clearing this up.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11147453
PAQd, 325 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

746 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

12 Experts available now in Live!

Get 1:1 Help Now