
Tags
3D abstract actionscript animation as2 as3 blog cg charcoal circle cube color css design download drawing dreamweaver experiment flash flex free iq game graphic design html illustrator ink interactive javascript maya movie network open source painting photoshop php portfolio review rhino sketch stompernet tutorial video web design website work xmlConnect with circlecube
Recent Posts


Flashvars and as3
Flashvars and actionscript 3! Flashvar is a way that in your html embed codes (object tags) you can send variables
Tutorial to Create a Responsive Image Scroller in ActionScript 3.0
I’ve written a tutorial which is published over at flash.tutsplus. This tutorial demonstrates how to create a horizontally scrolling image
circlecube’s New Clothes – Theme Redesign
Thanks for your patience as I’ve been tinkering with the theme, layout and css of circlecube.com. old theme The last theme I used
Stomper999
Interactive Design project for StomperNet’s tease of the announced reveal on 09/09/09 at 09:09:09! “Online Marketing Changes Forever!” Wanted it to be
Forthcoming Actionscript Image Scroller Tutorial
Here is a preview of a file I’m writing a tutorial for. It’s nothing groundbreaking, but it deals with many
StomperNet FormulaFIVE Launch Web Design
StomperNet relaunched the popular FormaulFIVE and I was responsible for the design of the landing pages. Here are screenshots from
Stock Flash Site, Introducing ‘BuyStockFlash.com’
Buy Stock Flash Sell & Buy Flash Buy or Sell, Start Now - Stock Flash – Royalty Free Stock Flash effects, Video, Audio The
Web Hosting Search Review
I recently stumbled across a site that could easily help with your web hosting needs. They are called Web Hosting
Actionscript Drag & Drop Tutorial | Vertical and Horizontal Flash Sliders
A specific use of drag and drop which is a bit more complicated than your average drag & drop
Stomping2 Design
subscribe page with video salesletter page Stomping2.com is the Stomping the Search Engines 2 relaunch by StomperNet. I was responsible for the
Flash Video Issue: loadbar (size) vs playbar (time) usability
This deals with some issues I’m having with the seekbar of a player. The seekbar is the area that displays
Loading ...Popular Posts
- Actionscript Javascript Communication | ExternalInterface call and addCallback Tutorial
- Get current url to Flash swf using an External Interface call
- Get Current URL and Query String Parameters to Flash | Tutorial
- Integrate Google Analytics with Flash | Tutorial
- Intro to Flashvars | Passing variables to actionscript from the html embed | Tutorial
- How to as3 resize a movieClip and constrain proportions | Actionscript Tutorial
- XML and Flash Actionscript made Easy | Parse XML to Object | Tutorial
- Event Tracking with Google Analytics | Flash Integration | Tutorial
- Actionscript Key Listener Tutorial AS3
- ColorTransform | RGB, Hex and random colors | Actionscript Color Tutorial
FlashDen Files
Dynamic scrolling link list, xml driven, auto wrapping
An interactive link list. Vertically scrolling list of links or just text...
Dynamic scrolling link list, xml driven, no wrap
Make your own scrolling list, easy to customize and user friendly interactions...
Interactive image viewer with physics
It is fully customizable and fully driven by xml. Portfolio animated with the interaction options...
Round preloader bar
Clean slick preloader. Rounded bar with gradient and bevel style. All actionscript driven...
Preloader with Stats
Calculates the following: Percent Loaded, Loaded kb, Total kb, Average kbps speed, Remaining time...Calendar
Recent Comments
Burroughs
Mullins!! You are brilliant…email me so I can call you. Please…StuJ
took a little while to sink in it makes perfect sense now! (I’ve had a beer!) And it works! Didnt take long to get it centred...steve
Hi, Thanks for the creative example. I used these once for a flash header on a website. The client wanted the movie to continue to...Rose
I’m using AS2, but this will help me with randomly generating hex values. Thank you so much!Maikel
Thx! Helped me out a lot!
WE
That’s the conclusion I’m starting to come to. I’ve been searching around for a working version of a flash...Hieu
Thanks a lot for sharing.davea0511
this is also worth checking out … http://indivision-codebase-as2.goog lecode.com/files/indivision_code...Ronald
Thanks for the great idea and clear tutorial. I used your code as starting point and tried if I could make some random fireflies...Mohamed A.El-Kady
Or use _root.functionName








Using CSS Attribute Selectors to Stylize HTML | Style outbound links | Tutorial
Intro to CSS
We use css to apply styles to certain elements on the page, we can target any div like this:
HTML
CSS
2
3
css-property: value;
}
Any class selector <div class=”divClass”> like this:
HTML
with this:
CSS
2
3
4
5
6
7
css-property: value;
}
<!-- or simply -->
.divClass {
css-property: value;
}
or any id selector, <div id=”divID”> like this:
HTML
with this:
CSS
2
3
4
5
6
7
css-property: value;
}
<!-- or simply -->
#divID {
css-property: value;
}
These are the basics of css. Use an element tag name to target it, use a dot to access class names and a hash (#) to represent id names. A lot can be done with just that, but sometimes you may want to access something differently, an option is to use attribute selection.
Overview
More advanced we can apply styles to elements based on their attributes. Attribute selectors use the attributes of the tag.
We can use attribute selection to specify certain elements to stylize. For example if we have a page with many images but only certain ones have title attributes, which we want to stand out more, this css rule would do the trick:
CSS
2
3
border: 2px solid #000000;
}
It would cause any image with a title tag (no matter what the value of the title tag is) to have a 2px wide solid black border, such as <img title=”MyImage” src=”/images/sample.jpg” /> or <img title=”" src=”/images/sample.jpg” /> but not <img src=”/images/sample.jpg” /> because it has no title attribute.
HTML
2
3
4
5
6
7
<img title="�MyImage�" src="http://blog.circlecube.com/wp-admin/�/images/sample.jpg�" alt="" />
or even
<img title="�"" src="http://blog.circlecube.com/wp-admin/�/images/sample.jpg�" alt="" />
but not
<img src="http://blog.circlecube.com/wp-admin/�/images/sample.jpg�" alt="" />
because it has no title attribute.
Further we can specify which values of the title attribute we want to target. If we want to stylizee links to a certain site we can do this: a[href="http://blog.circlecube.com"] { }
CSS
2
3
background-color: #EBEBEB;
}
it would style <a href=”http://blog.circlecube.com”>This link</a> but not <a href=”http://blog.circlecube.com/2008/05/21/”>this one</a> because it is not an exact match, nor <a href=”http://www.google.com”>this one</a> because it isn’t a match either, or at all.
HTML
2
3
4
5
6
7
<a href="�http://blog.circlecube.com�">This link</a>
but not
<a href="�http://blog.circlecube.com/2008/05/21/�">this one</a>
because it is not an exact match, nor
<a href="�http://www.google.com�">this one</a>
because it isn’t a match either, or at all.
For another example, if we want to stylize local links differently than absolute links, we’d want to look at the beginning of the attribute’s value only so we’d use ‘^=’. We could have something like this:
a[href^="http://"], a[href^="https://"] {
background: url(/images/external.gif) no-repeat right center;
padding-right:20px;
}
it would style <a href=”http://www.google.com”>This link</a> because it begins with ‘http://’ but not <a href=”/2008/05/21/”>this one</a> because it is does not begin with ‘http://’. But it would also style <a href=”https://paypal.com”>this</a> because it matches the selector after the comma ‘https://’, and even <a href=”http://blog.circlecube.com/2008/05/21/”>this</a> will be styled, because the link is absolute (even though it is local) so be careful with how you use it.
HTML
2
3
4
5
6
7
8
9
10
11
12
<a href="�http://www.google.com�">This link</a>
because it begins with ‘http://’ but not
<a href="http://blog.circlecube.com/wp-admin/�/2008/05/21/�">this one</a>
because it is does not begin with ‘http://’.
But it would also style
<a href="�https://paypal.com�">this</a>
because it matches the selector after the comma ‘https://’,
and even
<a href="�http://blog.circlecube.com/2008/05/21/�">this</a>
will be styled, because the link is absolute
(even though it is local) so be careful with how you use it.
Summary
Hoping you will see the pattern and can use the rest of these somehow (I’m drawing blank on interesting examples),
1 is: [attribute] exists
target anchors with any titles attributes.
CSS
2
3
background-color:#0000FF; (blue)
}
HTML
2 equal: [attribute=x] equals x
target only anchors where the title attribute contains something exactly
CSS
2
3
background-color:#FF0000; (red)
}
HTML
3 hat: [attribute^=x] starts with x
target instances where something comes at the beginning of the attribute. This can prefix a word or even be the first word in a phrase or sentance.
CSS
2
3
background-color:#00FF00; (green)
}
HTML
4 dollar: [attribute$=x] ends with x
instances where something comes at the end of the attribute. This can be the suffix of the word or the last word in a phrase.
CSS
2
3
background-color:#FFFF00; (yellow)
}
HTML
5 asterisk: [attribute*=x] contains x
or even titles which contain a certain word somewhere/anywhere in the attribute. This wildcard be anywhere, in a word, as a word, whatever.
CSS
2
3
background-color:#FF00FF; (magenta)
}
HTML
6 tilde: [attribute~=x] one of which is exactly x.
a space-separated list of “words”, one of which is exactly x.
CSS
2
3
background-color:#FF00FF; (magenta)
}
HTML
7 pipe: [attribute|=x] which first word is exactly x.
a hyphen-separated list of “words”, first word is exactly x.
CSS
2
3
background-color:#FF00FF; (magenta)
}
HTML
view all examples on this page.
refer to w3 for more
Let me know what you come up with or if I’ve left out any essentials.