Hello! bendyclickr
Tell me - what you want to know.
|
|
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 |
<action name="buildthumbs"> if(isflash, set(thumbnails[thumbs1].width, 600); set(thumbnails[thumbs1].thumb_width,150); set(thumbnails[thumbs1].thumb_height,75); ); if(isiphone, set(thumbnails[thumbs1].width,200); set(thumbnails[thumbs1].thumb_width,100); set(thumbnails[thumbs1].thumb_height,50); ); if(isipad, set(thumbnails[thumbs1].width,300); set(thumbnails[thumbs1].thumb_width,80); set(thumbnails[thumbs1].thumb_height,40); set(plugin[btn_prev].y, 100); set(plugin[btn_next].y, 100); set(plugin[scrollleft].y, 65); set(plugin[scrollright].y, 65); ); thumbnails_build(thumbs1); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mindlessboss« (8. September 2011, 07:40)
Hi!
Yes of course
note - thumbnails has plugin with same name. But you can't changing x y width and height directly, only by thumbnails_build function
but you can do it by parent plugin
example:
create plugin with some name ('thumbsstageplugin' - for example)
set(plugin[thumbs1].parent,thumbsstageplugin);
tween(plugin[thumbsstageplugin].alpha,0,3);
this will hide thumbnails with name 'thumbs1' by changing alpha to 0
now you can moving thumbs by moving 'thumbsstageplugin' plugin
changing x y alpha scale (for scale dont forget about scalechildren attribute, must be true)
Hope this help
Regards!
Andrey![]()
|
|
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 |
<plugin name="thumbsContainer" url="images/whiteBar.jpg" alpha=".6" enabled="true" align="bottomleft" x="0" y="0" width="100%" height="100" keep="true" scalechildren="true" onclick="hideThumbs();" /> <plugin name="thumbsButton" url="images/btn_fullScr.png" visible="false" alpha="0.0" scale=".2" align="bottomleft" zorder="5" enabled="false" keep="true" x="10" y="10" onclick="showThumbs();" /> <action name="hideThumbs"> <!-- Set thumbs to thumbsContainer --> set(plugin[thumbs1].parent,thumbsContainer); <!-- Remove thumbsContainer from Stage --> tween(plugin[thumbsContainer].alpha, 0, 2); tween(plugin[thumbsContainer].y, -100, 2); <!-- Show thumbs stage Button to retrieve the thumbsContainer --> set(plugin[thumbsButton].visible, true); tween(plugin[thumbsButton].alpha, 1.0, 2); set(plugin[thumbsButton].enabled, true); </action> <action name="showThumbs"> <!-- Double Check for set thumbs to thumbsContainer --> set(plugin[thumbs1].parent,thumbsContainer); <!-- Insure the thumbs come back TEST FAIL --> set(plugin[thumbs1].alpha, 1.0, 2); <!-- Bring back the thumbContainer --> set(plugin[thumbContainer].enabled, true); tween(plugin[thumbsContainer].alpha,.6,2); tween(plugin[thumbsContainer].y, 0, 2); <!-- Remove the thumbs stage button --> tween(plugin[thumbsButton].alpha, 0, 2); set(plugin[thumbsButton].enabled, false); set(plugin[thumbsButton].visible, false); </action> |
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »nefar1ous« (16. Oktober 2011, 17:53)
|
|
Quellcode |
1 2 3 4 |
<plugin name="prevThumbArrow"devices="desktop"zorder="86"handcursor="true"url="%SWFPATH%/assets/img/additional/prevnext.png"scale="0.3"keep="true"align="bottomleft"y="-50"x="15"alpha="0.5"visible="true"onover="tween(alpha,1);"onout="tween(alpha,0.5);"onhover="showtext(Scroll Left,standardText);"onclick="thumbnails_movebegin(thumbs1); thumbnails_movestop(thumbs1);"/> <plugin name="nextThumbArrow"devices="desktop"zorder="86"handcursor="true"url="%SWFPATH%/assets/img/additional/prevnext.png"scale="0.3"edge="left"rotate="180"keep="true"align="bottomright"y="-50"x="15"alpha="0.5"visible="true"onover="tween(alpha,1);"onout="tween(alpha,0.5);"onhover="showtext(Scroll Right,standardText);"onclick="thumbnails_moveend(thumbs1); thumbnails_movestop(thumbs1);"/> <plugin name="thumbsContainer"devices="desktop"visible="false"zorder="81"url="thumbsContainer.png"align="bottom"width="100%"height="5%"keep="true"state="false"alpha="1"x="0y="-150"scalechildren="false"/> <thumbnails name="thumbs1"vertical="false"edge="top" align="bottom" y="140"thumb_width="162"thumb_height="120"thumb_margin="1"skin_url="%SWFPATH%/assets/scroller/thumbsxml/skin/"scroll_speed="3"folow_mouse="true"> |
PS - please dont share unprotected code it's not safe, if i want i can grab all yours plugins...![]()
Andrey![]()