user warning: Got error 28 from storage engine
query: SELECT node.nid AS nid,
node_revisions.body AS node_revisions_body,
node_revisions.format AS node_revisions_format,
node.title AS node_title,
RAND() AS _random
FROM node node
LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid
WHERE (node.type in ('quote')) AND (node.status <> 0 OR (node.uid = 0 AND 0 <> 0) OR 0 = 1)
ORDER BY _random ASC
LIMIT 0, 1 in /var/www/jg-soft.com/modules/acquia/views/includes/view.inc on line 755.
user warning: Got error 28 from storage engine
query: SELECT node.nid AS nid,
node_data_field_images.field_images_fid AS node_data_field_images_field_images_fid,
node_data_field_images.field_images_list AS node_data_field_images_field_images_list,
node_data_field_images.field_images_data AS node_data_field_images_field_images_data,
node_data_field_images.delta AS node_data_field_images_delta,
node.type AS node_type,
node.vid AS node_vid,
RAND() AS _random
FROM node node
LEFT JOIN content_field_images node_data_field_images ON node.vid = node_data_field_images.vid
INNER JOIN term_node term_node ON node.vid = term_node.vid
LEFT JOIN term_node term_node2 ON node.vid = term_node2.vid AND term_node2.tid = 41
WHERE (node.status <> 0 OR (node.uid = 0 AND 0 <> 0) OR 0 = 1) AND (node.type not in ('project')) AND (node_data_field_images.field_images_list <> 0) AND (term_node.tid = 13) AND (term_node2.tid IS NULL)
ORDER BY _random ASC
LIMIT 0, 1 in /var/www/jg-soft.com/modules/acquia/views/includes/view.inc on line 755.
Today I, Jason Gordon, created my first production flash applet. It's very simple, but the applet is a great beginner's example for how to create a timeline effect animation and use basic action script. Below I'll describe the application in terms of its component parts.
I. Animations
First I created 3 textfields and entered a word in each one, "LIVE.", "RIGHT.", "NOW.", respectively.
Then, for each textfield, I inserted a timeline effect on it. The effect was a fade in transition lasting 24 frames (1sec @ 24fps).
I then lined up all the frames so that live animated, when finished, right animate, and when finished now animated.
On the last frame for each of these layers I added a keyframe and to this keyframe i attached an actionscript action. The code was just stop();
II. Countdown
The countdown was a bit less tricky, honestly. I've done countdowns in code a few times in the past, so the code part wasn't new. Attaching the actionscript was a trick. I didn't realize I just had to click the stage somewhere and start typing! Man..tricky son of bitch you are, flash.
For the countdown I created a layer and added 2 textfields to it. In the first textfield i typed "Countdown: ". The second I made a dynamic textfield, and named it result. Below is the actionscript I wrote to implement the countdown:
Submitted by Mark (not verified) on October 28, 2009 - 9:20pm.
I found this to be really useful in learning to create a reliable countdown timer. One thing i was wondering though is how would you use it to trigger an event, or a message for example when it hits 0. I figured just using an if statement that compares the showStart.time == now.time would do the trick, but i don't seem to be getting any output using this method ? Any ideas.
Thanks for the code tips by the way :)
M
Photo of the Moment
There aren't any Photos right now, but check back soon!
Thanks Mark! As to your
Thanks Mark!
As to your question about triggering an event...I'm not quite sure yet. When I find out I'll modify the post here with an update on what I found.
I found this to be really
I found this to be really useful in learning to create a reliable countdown timer. One thing i was wondering though is how would you use it to trigger an event, or a message for example when it hits 0. I figured just using an if statement that compares the showStart.time == now.time would do the trick, but i don't seem to be getting any output using this method ? Any ideas.
Thanks for the code tips by the way :)
M