Sie sind nicht angemeldet.

1

Sonntag, 10. Mai 2009, 15:10

* selector in css ?

Hi,

I've try something like this in my css data

Quellcode

1
2
3
	<data name="cssdata">
		*       { text-decoration:none; font-weight:bold; font-size:24}
	</data>


But it doesn't work. I've tried with the a selector, and it's ok.

Any reason why ? * isn't valid for flash stylesheet ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

2

Montag, 11. Mai 2009, 13:15

yes, it seems so that - * - isn't valid for flash,

there is nothing in CSS documentation for Flash textfields about that:

http://livedocs.adobe.com/flex/201/langr…StyleSheet.html

best regards,
Klaus

3

Montag, 11. Mai 2009, 14:23

Thanks

So it's a little bit tricky to use a css for all your text, you have to wrap it in <p> selector or something like this.

There is no way to apply a CSS on all the text with a default textstyle ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

4

Dienstag, 12. Mai 2009, 04:30

it's not too bad to setup a default textstyle for the textfield plugin.

Instead of...

Quellcode

1
2
3
<data name="cssdata">
*       { text-decoration:none; font-weight:bold; font-size:24}
</data>


use...

Quellcode

1
2
3
4
 <data name="cssdata">
 babble{ text-decoration:none; font-weight:bold; font-size:24}
 </data>
 


and then your html data would look like...

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<data name="html_info_box">
<babble>
	<h1>
		<b>Kings Harbor</b>
	</h1>
	<h2>
		<b>Visual Content by Marlin Creek</b>
	</h2>
	<br/>
	<p>Kings Harbor is a mixed-use village situated along the bank of Lake Houston.  It offers premier waterfront dining, specialty retail, urban living, and boutique offices.</p>
	<br/>
	<br/>
	<p>To start exploring, simply click on a spot on the map on the left... and close this box.</p>
	<br/>
	<br/>
	<h3>
	<a href="event:action(close_info);">Close Box</a>
	</h3>
</babble>
</data>


Of course "babble" can be replaced with whatever significant nomenclature that you would like.

And in my limited testing... it looks like "babble" will apply unless one of the other styles referenced below it override.

5

Dienstag, 12. Mai 2009, 10:32

Use the body tag for all text elements?

Quellcode

1
2
3
#body {
...
}

6

Dienstag, 12. Mai 2009, 13:07

I'm not sure flash understand body selector, but it's a good idea, I'll give it a try !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).