<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - stiobhart</title>
<link>http://snipplr.com/users/stiobhart/tags/flash</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 04:28:21 GMT</pubDate>
<item>
<title>(ActionScript) actionscript - cuepoint listener for FLV video in flash</title>
<link>http://snipplr.com/view/16301/actionscript--cuepoint-listener-for-flv-video-in-flash/</link>
<description><![CDATA[ <p>basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash</p> ]]></description>
<pubDate>Thu, 25 Jun 2009 09:01:16 GMT</pubDate>
<guid>http://snipplr.com/view/16301/actionscript--cuepoint-listener-for-flv-video-in-flash/</guid>
</item>
<item>
<title>(ActionScript) actionscript -  trace actions to get info about cuepoints in FLV video</title>
<link>http://snipplr.com/view/16299/actionscript---trace-actions-to-get-info-about-cuepoints-in-flv-video/</link>
<description><![CDATA[ <p>this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list</p> ]]></description>
<pubDate>Thu, 25 Jun 2009 08:55:37 GMT</pubDate>
<guid>http://snipplr.com/view/16299/actionscript---trace-actions-to-get-info-about-cuepoints-in-flv-video/</guid>
</item>
<item>
<title>(ActionScript) actionscript3 - seek to cuepoint in FLV flash video clip</title>
<link>http://snipplr.com/view/15838/actionscript3--seek-to-cuepoint-in-flv-flash-video-clip/</link>
<description><![CDATA[ <p>send an FLV clip to a designated embedded cuepoint.  the cuepoint must be of the type 'navigation' and must have previously been embedded when the video was converted to FLV format.

in this example, the FLV video is called "vid" and it lives inside a movieclip called "videoholderMC".  if you're going to have multiple videoclips on the stage,it makes sense to put each one inside a movieclip, so you can talk to it with actionscript</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 08:08:34 GMT</pubDate>
<guid>http://snipplr.com/view/15838/actionscript3--seek-to-cuepoint-in-flv-flash-video-clip/</guid>
</item>
<item>
<title>(ActionScript 3) actionscript3 - show and hide a movieclip</title>
<link>http://snipplr.com/view/15837/actionscript3--show-and-hide-a-movieclip/</link>
<description><![CDATA[ <p>how to show or hide a movieclip, using either the "visible" or "alpha" properties.  the movieclip needs to have an instance name. in these examples it is called "stupidmovieclip".  quite similar to actionscript, except that we dinnae use underscores with the property names any more.  so "\_alpha" becomes "alpha" and "\_visible" becomes "visible"</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 07:39:31 GMT</pubDate>
<guid>http://snipplr.com/view/15837/actionscript3--show-and-hide-a-movieclip/</guid>
</item>
<item>
<title>(ActionScript) actionscript - show and hide a movieclip</title>
<link>http://snipplr.com/view/15836/actionscript--show-and-hide-a-movieclip/</link>
<description><![CDATA[ <p>how to show or hide a movieclip, using either the "\_visible" or "\_alpha" properties.  the movieclip needs to have an instance name. in these examples it is called "stupidmovieclip"</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 07:38:35 GMT</pubDate>
<guid>http://snipplr.com/view/15836/actionscript--show-and-hide-a-movieclip/</guid>
</item>
<item>
<title>(ActionScript) actionscript3 - targetting 'root' or 'parent' timelines</title>
<link>http://snipplr.com/view/15833/actionscript3--targetting-root-or-parent-timelines/</link>
<description><![CDATA[ <p>how to target the 'root' or 'parent' timelines from within a movieclip.  the old actionscript method of using [for example]  "\_root.gotoAndPlay("intro");" or "\_parent.gotoAndStop(3);"  no longer works in actionscript3.</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 07:18:16 GMT</pubDate>
<guid>http://snipplr.com/view/15833/actionscript3--targetting-root-or-parent-timelines/</guid>
</item>
<item>
<title>(ActionScript 3) actionscript 3  - button action [listen for multiple events.  eg. MOUSE_OVER, MOUSE_OUT, MOUSE_UP]</title>
<link>http://snipplr.com/view/15830/actionscript-3---button-action-listen-for-multiple-events--eg-mouseover-mouseout-mouseup/</link>
<description><![CDATA[ <p>actionscript3 version of a more complex button action, which responds to rollover, rollout and clicking.  this method uses one single 'buttonstuff' function with a  'switch'  inside which causes the function to respond differently, depending on what the user action on the button was.

i think this is a neater way to do it than to have each individual 'addEventListener' trigger a separate function.

in actionscript3, button actions can no longer be attached to the buttons themselves or called from the main timeline. you need to put an 'addEventListener' in the timeline to 'listen' for interaction with the button and then call an appropriate function to deal with that action.

the button needs to have an instance name. in this case it is called 'stupidbutton'</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 06:44:00 GMT</pubDate>
<guid>http://snipplr.com/view/15830/actionscript-3---button-action-listen-for-multiple-events--eg-mouseover-mouseout-mouseup/</guid>
</item>
<item>
<title>(ActionScript) actionscript 3  - button action [listen for a single event.  eg. MOUSE_UP]</title>
<link>http://snipplr.com/view/15829/actionscript-3---button-action-listen-for-a-single-event--eg-mouseup/</link>
<description><![CDATA[ <p>actionscript3 version of the basic button action. in actionscript3,  button actions can no longer be attached to the buttons themselves or called from the main timeline.  you need to put an 'addEventListener' in the timeline to 'listen' for interaction with the button and then call an appropriate function to deal with that action.

the button needs to have an instance name.  in this case it is called 'stupidbutton'</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 06:27:12 GMT</pubDate>
<guid>http://snipplr.com/view/15829/actionscript-3---button-action-listen-for-a-single-event--eg-mouseup/</guid>
</item>
<item>
<title>(ActionScript) actionscript - button action [to attach to the timeline]</title>
<link>http://snipplr.com/view/15828/actionscript--button-action-to-attach-to-the-timeline/</link>
<description><![CDATA[ <p>basic actionscript button action that should be attached directly to a frame on the timeline - NOT to the button itself.  this is a slightly more complex version of the  'standard' button action which attaches directly to the button itself.  this version has the advantage of allowing you to keep all your actionscript code together in one place on the timeline, rather than having it scattered across all the various elements in your movie.

for this to work, your button must have an instance name.  in the code here, my button instance name is "stupidbutton".

this action will NOT work in actionscript 3, which uses "addEventListener" to respond to button events.

make sure you're attaching this action to the timeline and not directly to the button. the actions window should say "actions - frame" when you open it. if it says "actions - button" you're trying to attach this action to the button itself and flash will blow a fuse!</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 05:49:23 GMT</pubDate>
<guid>http://snipplr.com/view/15828/actionscript--button-action-to-attach-to-the-timeline/</guid>
</item>
<item>
<title>(ActionScript) actionscript - button action [to attach directly to button]</title>
<link>http://snipplr.com/view/15827/actionscript--button-action-to-attach-directly-to-button/</link>
<description><![CDATA[ <p>basic actionscript button action that can be attached directly to a button on the stage.  this will NOT work in actionscript 3, which does not allow actionscript to be attached directly onto buttons.

make sure you're attaching this action to a button and not to a keyframe on the timeline.  the actions window should say "actions - button" when you open it.  if it says "actions - frame" you're trying to attach this action to the timeline and flash will blow a fuse!</p> ]]></description>
<pubDate>Thu, 11 Jun 2009 05:45:59 GMT</pubDate>
<guid>http://snipplr.com/view/15827/actionscript--button-action-to-attach-directly-to-button/</guid>
</item>
<item>
<title>(ActionScript) actionscript - load in XML [with attached  stylesheet info]</title>
<link>http://snipplr.com/view/15617/actionscript--load-in-xml-with-attached--stylesheet-info/</link>
<description><![CDATA[ <p>load in XML and style the text via CSS</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 10:44:55 GMT</pubDate>
<guid>http://snipplr.com/view/15617/actionscript--load-in-xml-with-attached--stylesheet-info/</guid>
</item>
<item>
<title>(ActionScript) actionscript - date object</title>
<link>http://snipplr.com/view/15616/actionscript--date-object/</link>
<description><![CDATA[ <p>actionscript date object and some date calculations</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 10:39:50 GMT</pubDate>
<guid>http://snipplr.com/view/15616/actionscript--date-object/</guid>
</item>
<item>
<title>(ActionScript) actionscript - paypal button in flash</title>
<link>http://snipplr.com/view/15615/actionscript--paypal-button-in-flash/</link>
<description><![CDATA[ <p>code to implement a paypal button in flash</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 10:34:29 GMT</pubDate>
<guid>http://snipplr.com/view/15615/actionscript--paypal-button-in-flash/</guid>
</item>
<item>
<title>(ActionScript) actionscript - sorting [with an external javascript]</title>
<link>http://snipplr.com/view/15614/actionscript--sorting-with-an-external-javascript/</link>
<description><![CDATA[ <p>an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus:

#include "objSort.js"</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 10:29:05 GMT</pubDate>
<guid>http://snipplr.com/view/15614/actionscript--sorting-with-an-external-javascript/</guid>
</item>
<item>
<title>(ActionScript 3) actionscript3 -  trace actions to get info about cuepoints in FLV video</title>
<link>http://snipplr.com/view/15599/actionscript3---trace-actions-to-get-info-about-cuepoints-in-flv-video/</link>
<description><![CDATA[ <p>this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video].  these traces will display the name, type and time of the cuepoint - in a nicely formatted list</p> ]]></description>
<pubDate>Sat, 06 Jun 2009 06:47:17 GMT</pubDate>
<guid>http://snipplr.com/view/15599/actionscript3---trace-actions-to-get-info-about-cuepoints-in-flv-video/</guid>
</item>
<item>
<title>(ActionScript) actionscript switch statement</title>
<link>http://snipplr.com/view/15598/actionscript-switch-statement/</link>
<description><![CDATA[ <p>shows the basic structure of a switch statement. switches are useful when you want to respond to a series of possible  values that a variable might have, without having to write a shitload of  "if(blah blah){do blah}" code which, as we know soon  ends up as curly bracket spaghetti!</p> ]]></description>
<pubDate>Sat, 06 Jun 2009 06:26:07 GMT</pubDate>
<guid>http://snipplr.com/view/15598/actionscript-switch-statement/</guid>
</item>
<item>
<title>(ActionScript 3) import necessary  actionscript to work with FLV  &amp;amp; metadata [ie. cuepoints]</title>
<link>http://snipplr.com/view/15597/import-necessary--actionscript-to-work-with-flv---metadata-ie-cuepoints/</link>
<description><![CDATA[ <p>this code loads in the necessary actionscript classes for dealing with FLV [flash video] and metadata [in this case cuepoints].  this needs to be loaded right at the beginning of your code, so flash knows how to handle cuepoints embedded in FLV [flash video] files.</p> ]]></description>
<pubDate>Sat, 06 Jun 2009 06:07:56 GMT</pubDate>
<guid>http://snipplr.com/view/15597/import-necessary--actionscript-to-work-with-flv---metadata-ie-cuepoints/</guid>
</item>
<item>
<title>(ActionScript 3) actionscript cuepoint listener for FLV video in flash</title>
<link>http://snipplr.com/view/15596/actionscript-cuepoint-listener-for-flv-video-in-flash/</link>
<description><![CDATA[ <p>basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash</p> ]]></description>
<pubDate>Sat, 06 Jun 2009 05:59:41 GMT</pubDate>
<guid>http://snipplr.com/view/15596/actionscript-cuepoint-listener-for-flv-video-in-flash/</guid>
</item>
</channel>
</rss>
