I'm working on a Flash presentation portfolio. So far I have a blue bubble theme going on.
Progress so far.
I used the following code to get those square bubbles on the left which I'm going to do for the bottom as well.
Code:
int squar = #0033FF;
int back = #99CCFF;
boolean left = true;
void setup(){
size(200, 600);
smooth();
background(back);
fill(squar);
noStroke();
if(left){
rect(0, 0, 20, height);
}else{
rect(width - 20, 0, 20, height);
}
rectMode(CENTER);
}
void draw(){
float x = random(width);
float y = random(height);
float xpos = x;
fill(lerpColor(back, squar, (1.0 / width) * x));
if(left){
xpos = width - x;
}
if(mousePressed){
rect(xpos, y, x / 10, x / 10);
}
}
void keyPressed(){
save("blok.tiff");
}
But I want to frame the MenuBar and TextArea with the same effect (hence those drifting bubbles).
Flash secretly has the ability to import .pngs with transparency (I guessed this because it comes bundled with FireworksMX, and I was right).
Now is there some hack I can do doing the pngs with, should I dig out the dreaded AIExport or perhaps use some other package
I'm a bit tired at the moment from learning
undocumented Flash tweening classes all day so I'm not sure what to do.