Is it possible to envoke the events that occurr when right clicking a flash movie and clicking “Zoom In” and “Show All”? This zooming in of a flash movie solves problems of full screen flv’s, but needs a front ended interface. I’d like to code to this “zooming” technology already present in the Flash Player.
In order to see what I’m talking about look at any flash site in a web browers, right click whichever element is Flash then click zoom in. I need to be able to do this, but the user will click a button that envokes the same functionality.
I suppose that would work, however I would be running into the same problems I am facing concerning FLV’s, processor speeds, and older computers. Scaling a media display component on a 3 ghz computer doesn’t cause a blink, but scaling a media display component on an older computer causes a choke and heart attack. I don’t understand why the right click + zoom in doesn’t cause the same bottleneck, but for some reason it’s immune.
Actually, newhopekenny, you’re wrong.
Masked areas are still renderred. Only way for something not to be renderred is by moving it outside the stage area (aka: myHeavyMovie.move(Stage.width2, Stage.height2)).
Anything other than that will still cause the player to render the object.
On a side note: It is a good practice to use the “move” method istead of “visible = false” whenever possible.
You’ll be amazed how such a little thing can make your project play smoother!
I am trying to make the lines in SCENE 3 run differently. Right now they are a whole lot of small gradient circles moving and re-shaping on tweens under a mask of the line.
if you have any ideas on how to do this… i would really appreciate it.
Well, there are several “drawing” classes on the web, which allow you to dray lines using AS. I’m pretty sure it’ll run much smother (and faster) than your current method.
Google for “MX Drawing Class” and I’m sure you’ll find something.
did you see that SCENE 3 on the webpage i linked you to?
HMmmmm I hae come across a whole bunch of drawing tutorials, using AS, but none that would fit my specific dilema. I have those complex routes on the map… and they twist and turn to follow rivers…
It would be good if there were code that formed to a path that you already have.
Yes, I saw your “Scene 3”.
My suggestion is that you make each river a mask, and have the mask animated according to the path of the river. Get what I mean?
Think of the old games they used to make for babies, where they had a tube with a spirle-shaped cut, that when you turned it it looked as if the tube is being filled with color…
I hope this makes sense to you. If not, let me know and I’ll try to make my self clearer.
I just created one small little MC dot with a small repeating glow to it. then i placed one at the start. and zoomed in, and using ALT, copied the dot many times till i reached my destination. the used DISTRIBUTE TO LAYERS, and of sett the actual key frames that they started on by 1 or 2. - It was thesame way i populated the land in SCENE 6… i was really happy with the outcome.
The only down fall, is that i like how the paths advance on scene 3… they appear to be growing… and i would like to find or write code to do that one day…
(if he’s scaling it out [simulating a zoom] there would be a lot of stage run-off, so less CPU usage)
Also try tweening a huge image, test the movie, and check your CPU usage.
Then repeat, but mask most/all of it.
Tell me how it goes for ya… :thumb:
There’s not a huge CPU change, but the fact that your computer doesn’t actually have to render the image saves CPU power – regardless of whether or not Flash actually “renders” the hidden image at compile time.
Like how a video game is contantly calculating AI – but the real processing task comes in when it’s actually visible on screen.
Flash only tracks the vitals of the element, saving the hard work for when you can actually see the object.
Yeah, I have found that regardless of whether or not a MC is under a mask and the MC is scaled, the processor usage is increased exponentially. I have found no decrease in processor usage when scaling the media componenent directly or putting it within a MC and scaling the MC.
The reason I think the processor use sky-rockets is because nothing is being cut off by the mask. When I’m scaling the video, all video is still seen… 320 x 240 up to 700 x 500 (or whatever)…