You are not logged in.

Rodeus

Beginner

  • "Rodeus" started this thread

Posts: 27

Location: Russian Federation

  • Send private message

1

Thursday, June 13th 2013, 10:07pm

Loadstyle: CSS Switcher

Not work actions "sign_active" and "sign_inactive"!
http://livepano.ru/temp/smp/index.html

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
	<layer name="pdf" onclick="pdf_list_on();" />
	<layer name="pdf_cons_ru" style="pdf_list" visible="false" alpha="0" />
	<style name="pdf_list"
		url="%SWFPATH%/skin/pdf.png"
		keep="true"
		align="center"
		edge="bottom"
		y="0"
		onover="sign_active();"
		ondown="sign_active();"
		onout="sign_inactive();"
		zorder="501"
	       />
	<layer name="pdf_cons_ru_txtplace"
		style="pdf_txtplace_style"
		x="-255"
		width="125"
		visible="false"
		alpha="0"
	        html="data:pdf_cons_ru_text"
	        />

	<data name="pdf_cons_ru_text">
		<p align="left">
		<font face="arial" size="13">
			<a href="docs/SMP_Bank_Consolidated_2012.pdf" target="_blank">Консолидированная<br/>отчетность</a>
		</font>
		</p>
	</data>
	<style name="pdf_txtplace_style"
		url="%SWFPATH%/plugins/textfield.swf"
		keep="true"
		align="center"
		edge="lefttop"
		y="3"
		background="false"
		autosize="center"
		zorder="501"
	        css="data:pdf_css"
	       />

	<style name="pdf_txtplace_style_hover"
		url="%SWFPATH%/plugins/textfield.swf"
		keep="true"
		align="center"
		edge="lefttop"
		y="3"
		background="false"
		autosize="center"
		zorder="501"
	        css="data:pdf_css_hover"
	       />
	<data name="pdf_css">
		a       { color:#FFFFFF;	text-decoration:underline;	font-weight:normal; }
		a:hover { color:#FFFFFF;	text-decoration:none;		font-weight:normal;}
	</data>


	<data name="pdf_css_hover">
		a       { color:#FFFFFF;	text-decoration:none;		font-weight:normal; }
		a:hover { color:#FFFFFF;	text-decoration:none;		font-weight:normal;}
	</data>

	<action name="sign_active">
		layer[pdf_cons_ru_txtplace].loadstyle(pdf_txtplace_style_hover);
	</action>

	<action name="sign_inactive">
		layer[pdf_cons_ru_txtplace].loadstyle(pdf_txtplace_style);
	</action>
Livepano.ru

This post has been edited 1 times, last edit by "Rodeus" (Jun 13th 2013, 10:37pm)


2

Tuesday, June 18th 2013, 8:00am

Hi,

I will try find out more here, but so far I remember there was a Flashplayer limitation/bug that doesn't allow dynamically changing the css...

Best regards,
Klaus

Similar threads