Sie sind nicht angemeldet.

1

Mittwoch, 19. September 2012, 10:47

Radar cone not displaying

Hi

What could cause the radar cone not to displaying on my map.... here's my plugin code:

Quellcode

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
<layer name="map" url="img/nav_images/imagemap.png" keep="true" 
           align="rightbottom" x="40" y="100" width="316" height="222"           
           handcursor="false" scalechildren="true" maskchildren="true" onclick="closemap();">
        
        <!-- 'rooms' and spots - the 'room' container elements were used for masking the radar -->
        <layer name="room1" type="container" align="lefttop" x="125" y="4" width="187" height="115" maskchildren="true">
            <layer name="spot1" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="91" y="59"  zorder="2" onclick="loadscene(scene_filled_location_1, null, MERGE, BLEND(1));" />
        </layer>
        <layer name="room2" type="container" align="lefttop" x="4" y="4" width="117" height="214" maskchildren="true">
            <layer name="spot2" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="61" y="104"  zorder="2" onclick="loadscene(scene_filled_location_2, null, MERGE, BLEND(1));" />
        </layer>
        <layer name="room3" type="container" align="lefttop" x="125" y="123" width="187" height="95" maskchildren="true">
            <layer name="spot3" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="92" y="46" zorder="2" onclick="loadscene(scene_filled_location_3, null, MERGE, BLEND(1));" />
        </layer>
    </layer>
    
    <!-- radar plugin, will be assigned to be a child of spot -->
    <layer name="radar" keep="true" visible="false" 
            url="plugins/radar.swf"
            alturl="plugins/radar.js"
            align="center" edge="center"
            fillcolor="0xFFFFFF" fillalpha="0.5" scale="3.0"
            headingoffset="0"
	       />

    <!-- activated spot image (child of the radar layer) -->
    <layer name="activespot" parent="radar" url="img/nav_images/mappointactive.png" keep="true" align="center" edge="center" />

    <!-- actions -->
    <action name="closemap">
        set(onclick, openmap() );
        tween(width,64);
        tween(height,45);
    </action>

    <action name="openmap">
        set(onclick, closemap() );
        tween(width,316);
        tween(height,222);
    </action>

    <!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
    <action name="activatespot">
        set(layer[radar].parent, layer[%1]);
        set(layer[radar].visible, true);
        set(layer[radar].heading, %2);
    </action>

2

Mittwoch, 19. September 2012, 12:06

sorted, didn't include

Quellcode

1
onstart="activatespot(spot4, 0);"
on scene ;-)

Ähnliche Themen