Avatar billede kalleballe Nybegynder
30. januar 2005 - 16:16 Der er 28 kommentarer og
1 løsning

combobox component med skarpe hjørner

Hvor er det lige jeg kan ændre min border class til combobox componentet så jeg får skarpe kanter i stedet for runde som det er pr. default.

vh

KalleBalle
Avatar billede kalleballe Nybegynder
30. januar 2005 - 16:57 #2
tja... jeg får bare et fint flash logo hvis jeg klikker på dit link :)
Avatar billede flintstone Novice
30. januar 2005 - 16:59 #3
Jaaahhhh..........men den skal lige loade færdig!
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:02 #4
der står done og der sker intet...
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:02 #5
måske en firefox ting, - prøver lige explorer
Avatar billede flintstone Novice
30. januar 2005 - 17:03 #6
Ja, gør det!
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:04 #7
hm, - der står udført, - og der er loadet en frem/tilbage ting øverst.
Avatar billede flintstone Novice
30. januar 2005 - 17:05 #8
Virker fint hos mig.
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:06 #9
sp2 ting måske...
Avatar billede flintstone Novice
30. januar 2005 - 17:06 #10
Ah....sikkert c",)
Avatar billede flintstone Novice
30. januar 2005 - 17:06 #11
Roden til alle problemer
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:08 #12
hvordan kan jeg afinstallere sp2?
Avatar billede flintstone Novice
30. januar 2005 - 17:09 #13
Tilføj og fjern programmer?
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:10 #14
nå ja ;)
Avatar billede flintstone Novice
30. januar 2005 - 17:10 #15
Jow jow......
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:11 #16
r i gang, - vender lige tilbage senere... ellers tak for hjælpen
Avatar billede flintstone Novice
30. januar 2005 - 17:12 #17
Ok.....det var da så lidt.
Avatar billede flintstone Novice
30. januar 2005 - 17:12 #18
Smider lige et svar, hvis det var noget du kunne bruge.
Avatar billede kalleballe Nybegynder
30. januar 2005 - 17:49 #19
jeg kan stadig intet se...

måske du gider at lave en copy paste...
Avatar billede flintstone Novice
30. januar 2005 - 17:51 #20
View comments | RSS feed
--------------------------------------------------------------------------------

Customizing the ComboBox component
You can transform a ComboBox component horizontally and vertically while authoring. While authoring, select the component on the Stage and use the Free Transform tool or any of the Modify > Transform commands.

If text is too long to fit in the combo box, the text is clipped to fit. You must resize the combo box while authoring to fit the label text.

In editable combo boxes, only the button is the hit area--not the text box. For static combo boxes, the button and the text box constitute the hit area. The hit area responds by opening or closing the drop-down list.

Related topics
Using styles with the ComboBox component
Using skins with the ComboBox component
Using styles with the ComboBox component
You can set style properties to change the appearance of a ComboBox component. If the name of a style property ends in "Color", it is a color style property and behaves differently than noncolor style properties. For more information, see Using styles to customize component color and text.

The combo box has two unique styles: openDuration and openEasing. Other styles are passed to the button, text box, and drop-down list of the combo box through those individual components, as follows:

The button is a Button instance and uses its styles. (See Using styles with the Button component.)
The text is a TextInput instance and uses its styles. (See Using styles with the TextInput component.)
The drop-down list is an List instance and uses its styles. (See Using styles with the List component.)
A ComboBox component uses the following styles:

Style  Theme  Description 
themeColor

Halo
The base color scheme of a component. Possible values are "haloGreen", "haloBlue", and "haloOrange". The default value is "haloGreen".

backgroundColor

Both
The background color. The default color is white.

border styles
Both
The Button subcomponent uses two RectBorder instances for its borders and responds to the styles defined on that class. See RectBorder class.

In the Halo theme, the ComboBox component uses a custom rounded border for the collapsed portion of the ComboBox. The colors of this portion of the ComboBox can be modified only through skinning. See Using skins with the ComboBox component.

color

Both
The text color. The default value is 0x0B333C for the Halo theme and blank for the Sample theme.

disabledColor

Both
The color for text when the component is disabled. The default color is 0x848384 (dark gray).

embedFonts

Both
Boolean value that indicates whether the font specified in fontFamily is an embedded font. This style must be set to true if fontFamily refers to an embedded font. Otherwise, the embedded font will not be used. If this style is set to true and fontFamily does not refer to an embedded font, no text will be displayed. The default value is false.

fontFamily

Both
The font name for text. The default value is "_sans".

fontSize

Both
The point size for the font. The default value is 10.

fontStyle

Both
The font style: either "normal" or "italic". The default value is "normal".

fontWeight

Both
The font weight: either "none" or "bold". The default value is "none". All components can also accept the value "normal" in place of "none" during a setStyle() call, but subsequent calls to getStyle() will return "none".

textAlign

Both
The text alignment: either "left", "right", or "center". The default value is "left".

textDecoration

Both
The text decoration: either "none" or "underline". The default value is "none".

openDuration

Both
The duration, in milliseconds, of the transition animation. The default value is 250.

openEasing

Both
A reference to a tweening function that controls the animation. Defaults to sine in/out. For more information, see Customizing component animations.


The following example demonstrates how to use List styles to control the behavior of the drop-down portion of a ComboBox component.

// comboBox is an instance of the ComboBox component on Stage
comboBox.setStyle("alternatingRowColors", [0xFFFFFF, 0xBFBFBF]);

Using skins with the ComboBox component
The ComboBox component uses symbols in the library to represent the button states and has skin variables for the down arrow. These skins are located in the Flash UI Components 2/Themes/MMDefault/ComboBox Assets/States folder of the HaloTheme.fla and SampleTheme.fla files. The information below describes these skins and provides steps for customizing them.

The ComboBox component also uses scroll bar skins for the drop-down list's scroll bar and two RectBorder class instances for the border around the text input and drop-down list. For information on customizing these skins, see Using skins with the UIScrollBar component and RectBorder class. For more information on the methods available to skin components, see About skinning components.

A ComboBox component uses the following skin properties:

Property  Description 
ComboDownArrowDisabledName

The down arrow's disabled state. The default is ComboDownArrowDisabled.

ComboDownArrowDownName

The down arrow's down state. The default is ComboDownArrowDown.

ComboDownArrowUpName

The down arrow's up state. The default is ComboDownArrowOver.

ComboDownArrowOverName

The down arrow's over state. The default is ComboDownArrowUp.


To create movie clip symbols for ComboBox skins:
Create a new FLA file.
Select File > Import > Open External Library, and select the HaloTheme.fla file.
This file is located in the application-level configuration folder. For the exact location on your operating system, see About themes.

In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder and drag the ComboBox Assets folder to the library for your document.
Expand the ComboBox Assets/States folder in the library of your document.
Open the symbols you want to customize for editing.
For example, open the ComboDownArrowDisabled symbol.

Customize the symbol as desired.
For example, change the inner white square to a light gray.

Repeat steps 5-6 for all symbols you want to customize.
Click the Back button to return to the main Timeline.
Drag a ComboBox component to the Stage.
Set the ComboBox instance properties as desired.
For this example, use ActionScript to set the ComboBox to disabled.

Select Control > Test Movie.

 
   
  Related Topics   
   
 
  Popup 
 


 
  Popup 
 


--------------------------------------------------------------------------------



recoveredfromflashMX2004 said on Jul 20, 2004 at 1:53 PM :
jayfour000 said on Feb 3, 2004 at 2:48 PM :

The documentations is not clear on three point here.
1: changing the border color of the 'off' state of the comboBox preferable to an OFF state where it is not visible. There is no MovieClip for the border in the HaloTheme.fla-->Themes-->MMDefaultBomboBox Assets folder. The borderColor property does not work component.
2: changing the line height of the items in the list.
3: adjusting the top and bottom margins of the text

Will you please clarify these points. Dozens of people are posting these questions in the news groups, and no one has any answers.

Cytek said on Mar 2, 2004 at 9:03 PM :

Please specify how to change the vertical postion of the text that is displayed in the combobox... when using very small combobox and small font... the font apears to low and is cut off .... there is a lot of white space at the top almost like there is a "top Margin" ... if that space wasn't there or could be manipulated ... small text could be moved up and made to appear whole and complete
-sks- said on Nov 2, 2004 at 6:14 AM :
sometimes when disabling the combobox results in a square being displayed on top of the down arrow.
jepo said on Nov 8, 2004 at 2:46 PM :
Hi sks,

I can't replicate this in a basic FLA, however if you have discovered a reproducable issue, please file it using the following page: http://www.macromedia.com/support/email/wishform/ because LiveDocs is monitored by Technical writers only.

Thanks!
Jen.


RSS feed| Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.macromedia.com/flash/mx2004/main_7_2/00002145.html
Avatar billede pyroman Nybegynder
30. januar 2005 - 17:52 #21
Der står også en kort introduktion her om hvordan man bruger themes: http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx2004/skinning.php
- Næsten nederst...
Avatar billede flintstone Novice
30. januar 2005 - 17:52 #22
Ved ikke om du kan bruge det til noget...........
Avatar billede kalleballe Nybegynder
30. januar 2005 - 18:37 #23
Hej, jeg har læst ultrashock tingen, - den giver ingen forklaring på hvordan man ændrer til skarbe kanter, kun farver fonte etc.

Og det gør det andet desværre heller ikke, - men jeg er da sikker på at man kan ændre det i den class der laver de runde kanter...
Avatar billede pyroman Nybegynder
30. januar 2005 - 19:10 #24
Det sidste du nogensinde skal gøre er at rode med component klasserne!! Rør dem aldrig!!

Jo der står (næsten) præcis beskrevet hvad du skal gøre:

I din fla. gå op i File > Import > Open external library

Åben filen:
C:/Programmer/Macromedia/Flash MX 2004/en/Configuration/ComponentFLA/HaloTheme.fla

Så får du et nyt libarary frem.
Åbn mappen Themes/MMDefault/ComboBox Assets

Træk Movieclipppet "ComboBoxAssets" ud på din stage. Luk librariet. Slet "ComboBoxAssets" movieclippet fra din stage, det vil stadig ligge i dit library.

I dit libarary, find mapperne "States" og "Elements" samt MovieClippet "ComboBoxAssets" og smid dem i en mappe med navnet "ComboBox Assets"

Nu kan du ændre i elementerne i mappen "elements"... alt det du vil ;)
Avatar billede pyroman Nybegynder
30. januar 2005 - 19:11 #25
Næsten det samme som stod i flintstones citat
Avatar billede kalleballe Nybegynder
30. januar 2005 - 20:44 #26
hm, - tjekker det lige, - tak begge.
Avatar billede kalleballe Nybegynder
30. januar 2005 - 20:50 #27
ked af det, men det er kun hjørnet til højre man ændrer på den måde, - jeg skal også have ændret hjørnet til venstre..... naturligvis kan jeg bare læggen en grafik med skarp kant ind over men det er jo lidt snyd....

Jeg har læst et andet sted (husker dog ikke hvor) at man kunne gå ind i border classen og fjerne en udmarkering af noget kode til at lave skarpe kanter og så udmarkere koden til at lave runde, - det skulle virker, - men jeg kan ikke finde den kode...
Avatar billede kalleballe Nybegynder
30. januar 2005 - 20:56 #28
Avatar billede flintstone Novice
30. januar 2005 - 22:11 #29
Tak for point.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester