Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Taking The LAG Out Of The Movie



http://www.mannymedia.com/mulfolio

is the site portfolio im working on...

in the portfolio... the motion is laggy...
the bandwidth profiler says its using 34 KB...

is that whats making it lag.... if so, how do i bring that down?
nothing is animating when the folio comes on in the site...

http://www.mannymedia.com/mulfolio/folio.htm is how fluid the movements is supposed to be...


THANK YOU MILLIONS IN ADVANCE... kind of a tight deadline to...

-manny



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-17-2004, 12:59 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Taking Printouts Of A Zoomed Movie
Hi,
I need to take out the printout of a zoomed in movie clip.
i tried taking the print by Right click-->Print,but it gives me the printout of the original size,not the zoomed size.
is there a possible way to do so?
thanks
jayant

Taking A Variable Into Another Movie On A Different Level
Gday,
I'm looking for the piece of code that will take a variable I have that is on level 0, and transport it into the level 2 to be used by the movies there. There is a seperate .swf file for each level. So far I've been unsuccessful so any help on this would be brilliant,
Thanks!

Taking Chunks Out Of A Movie Clip
I would like to take chunks out of a large movie clip using smaller duplicated movie clips.

For example: Having an apple then duplicating a bite shaped movie clip that takes bites out of the apple. Basically I want to be able to punch holes in a movieclip so you can see the background behind it.

Simply overlaying a shape over the movieclip to simulate a hole isn't enough. I need to be able to see the actual bg behind the movie clip as it will be moving and changing.

The only thing I cant think of is a reverse mask, where the mask shape hides part of a movieclip rather than revealing it. That however doesn't seem to exist.

Any suggestions? or alternate ways I could achieve the same effect?

I am really beat on this one.

Taking A Loaded Movie To Another Scene
Hi there...

got this problem with loadmovie in scenes.
I've made a flashfile on one frame, where all the actionscript is.
Our designer has made an intro and an outro scene.

the problem is that the current background of the .swf is chosen in my actionscripts, by loading an swf and going to a specified marker in it.

How can I tell flash to start the outro animation with that specific marker still loaded? What I want to do in the outro is to fade in the standard image above the current background, but I don't know how to use that loaded movie on that right frame.

robin

It's Taking Forever To Publish A Movie In CS3
Hi everyone,
just wondering if anyone knows what the problem is. It takes forever to publish a simple movie I created and I'm just wasting time. The reason I need a published movie is that I can load it into another one, so I can't test it on its own and need a published one.
The Flash just hangs there and it takes about 1-2 min to process it even though the movie is tiny. I didn't have this problem with previous versions..

thanks you,
Olga

Movie Taking To Long To Start
Hi!

I have a preloader that is not working the way I wanted it to be.
I have this code in the first frame:

ActionScript Code:
this.onEnterFrame = function() {
    total = getBytesTotal();
    lidos = getBytesLoaded();
    restantes = total-lidos;
    if(total == lidos) {
        gotoAndPlay(5);
    }else{
        barra._alpha = 100;}
    porcentagem = Math.round((lidos/total)*100);
    barra._xscale = porcentagem;
    // * 2 ;
    if (porcentagem == 100) {
        gotoAndStop(5);
        delete this.onEnterFrame;
    }
};
stop();

and on frame 5 I have a MC with this code to load a sound.swf file.

ActionScript Code:
onClipEvent(load){
        loadMovieNum("sound.swf",1)
}
onClipEvent(enterFrame){
        percentloaded=Math.floor(_level1.getBytesLoaded()/_level1.getBytesTotal()*100)
        percentdisplay=percentloaded + "%"
        bbarra._xscale = percentloaded;
        if(percentloaded == 100 && !initialized){             
                _root.gotoAndPlay(10);
                initialized=true
                _visible=false
                delete this.onEnterFrame;
        }
}


and I have two dynamic fields to show the percentage.One before frame 5 for the main movie and one inside that MC holding the last posted code to show the percentage of the sound file being loaded.

The problem is it is taking to long to go to the second preloader and the bars are being mixed up.

You can check it out at www.djchambinho.com please!

I need help please!

Movie Clip Problem...They Are Taking Over
I have my site which has buttons which play mc's which open up to other mc's which are different parts of the site.

A mc loads in then the buttons appear you click on the buttons and it plays a mc and goes to that section. And the button interface slides away. This is the same for each button. Now i have a button which stays on the screen at all the its like the back button. It i sment to play the original you could call intro mc and send you back to the interface.

On the button i have

on (press, release) {
tellTarget ("_root") {
gotoAndPlay("nav_intro");
}

Which works when you click it takes you to the start of everything.

This is where the problem starts, everything works fine you can press all the buttons all the mc's play like they should. Then click the back button and everythign loads in again. However, once it has loaded in after pressing the back button i have no control over the navigation when you roll over a button it justs plays the mc without any clicking. Infact when you roll over any button it just plays button1 for examples mc.
Once you have clicked that back button you loose control over anything.

Anyone have any idea what this problem is, cuase if i cannot figure it out my whole site wont work

Exporting Flash Movie - Taking Way Too Long
Hello,

I am developing my first CD-ROM, that will have a lot of video (that will play in the flash presentation) and audio (mp3).

Now that I have added some sound and video, it is taking FOREVER to export as an .SWF file. Should I somehow be linking to these files externally?? Not sure how to do that.

Thanks!

Taking A Snapshot From A Movie Clip And Storing It
Hi guys !

I need to take a snapshot of a movie clip (only a rectangular of a movie clip, not the whole) and to store it in a variable so I can later show it to the user.

Can you help me ?

Flash Movie Showing Exe File Taking Over PC
has anyone done something like this before or seen it somewhere? would appreciate info on this... im looking to create something like that, a 1min to 1.5mn swf simulating a takeover of someones work station....
lmk,
kml

Taking A Snapshot From A Movie Clip And Storing It
Hi guys !

I need to take a snapshot of a movie clip (only a rectangular of a movie clip, not the whole) and to store it in a variable so I can later show it to the user.

Can you help me ?

Export Movie: Taking Too Damn Long
What are the factors that contribute to export time?
What can I do to speed things up when I'm trying to test a movie?

Thanks!

Flash Movie Taking Too Long To Load Up
Hi guys,

My website http://www.isokodesign.com is taking too long to upload, can somebody tell me how to fix this problem? Thank you in advance

Flash Movie Taking Up Browser But Stage Not Resizing
Hi been trying to do this for a while now. I have a movie lets say 640x480 but i want things that are off the stage to be visible as well. I know you can acheive this when you go to Publish Settings>HTML and make the movie 100%w and height. But when i do this my movie stretches out of wak. How can I still have things off the stage be visible with out the design and images on the site be stretched out of proportion. have seen it done 1,000 times.. is it something i am missing in the code? a script i have to put in my movie ?!?!?!

below are some examples of what im talking about.

http://www.vera-icon.com/

http://www.mandarinaduck.com/eng/

any help on this, and i bow down to your wisdom!:

thanks

Taking A Snap-shot Inside A Flash Movie
I put up a crude mock-up at this link here.

The objects are draggable. The goal is for a user to drag any objects they wanted onto the area labeled "stage". Then when they are happy with the final layout of the objects on the stage, they could click the "Snap" button, which would take a snap-shot of the stage area then would send a jpeg of this snap-shot to their e-mail.

I don't know if this is even possible. If so, having someone point me in the right direction would be most appreciated as always.

Movie Taking Long Time To Load, Needs To Load Faster
I am a loading several movies into level 2 of the main movie. The movie is taking up to 1.35secs to load. The issue is that the images are too big. Can I do something about the movie itself or do I need to compress the images more?

Why Is Taking That Much CPU?
In the project that I'm working on, I have under a mask (about 500x200) a movieclip with 4 pictures that are motion tweened and in the end of the mc some text motion tweened.
In the main scene I have some bouncing balls actionscripted, using some gravity formulas.
Now the problem....
When I play the swf, in the first part (the one with the pictures motion tweened) the bouncing balls are visibly slowed down (as if frame rate dropes), and I notice also that the CPU usage is quite high (85% approx.).
When the timeline arrives in the 2nd part (the one with the motion tweened text) everything is back to normal (CPU usage drops too...).

The size of the swf is 130k...the 4 imported pictures are PNG...Can I do something to fix the sluggish play in the first part?
Thank you!

Why Is Taking That Much CPU?
In the project that I'm working on, I have under a mask (about 500x200) a movieclip with 4 pictures that are motion tweened and in the end of the mc some text motion tweened.
In the main scene I have some bouncing balls actionscripted, using some gravity formulas.
Now the problem....
When I play the swf, in the first part (the one with the pictures motion tweened) the bouncing balls are visibly slowed down (as if frame rate dropes), and I notice also that the CPU usage is quite high (85% approx.).
When the timeline arrives in the 2nd part (the one with the motion tweened text) everything is back to normal (CPU usage drops too...).

The size of the swf is 130k...the 4 imported pictures are PNG...Can I do something to fix the sluggish play in the first part?
Thank you!

3d For The Taking
Hi Gang,

I got pointed to a link by pedalspeed (most helpful chap). It was in the thread entitled "node code".

So anyway.. I took the code there and built a framework for the underlying 3d transforms (which I can't really understand cause Im sorta math stupid .

What I basically have here is a few objects which generate point sets (cirlces, cubes, and a grid) and a corresponding pointSet interpreters.

The point object is kinda special because it represents a point in space. I have a wrapper that assigns a glyph (mc) to each point. I did this because as I was coding a point, it just seemed to me that how the point is drawn is an arbitrary detail. Doing it this way, I could actually draw a 3d mc and attach that as the glyph to represent the point.

In sharing this, I hope others will build 3d (or 2d) point set objects and their interpreters. I was thinking about pie charts, or a globe even .

Lastly, the hardcore oopers may notice several patterns here. An iterator, a visitor and a factory. I think this piece represents a pretty broad range of the stuff I have learned about object oriented programming thus far.

anyway.. enjoy.

http://www.nebulouscore.com/examples/flash_3d_mod6.swf (+.fla)



> <

I Am Taking A Poll....please Help
Hello to all web developers. I am trying to take a poll about frustrations. Particulary using rich media authoring. There are a couple of questions actually....and they apply to all - beginners thru expert.

1. What frustrates you the most about using flash or rich media tools. Including audio & audio editing, graphics, animations (vector & bitmaps)and actionscripting??

2. What products/libraries/rescources would make your life easier - and save you time and money?? Even if they do not exist yet?? (For example....a library of flash web forms that covered a variety of scripting formats, PHP, CGI, Java- all drag n drop)

3. Would flash developers be interested in media assets like audio loop libraries, interactive flash banner libraries, motion graphic clip libraries, smart clip libraries....etc??

Thanks for your poll feedback...just interested in what others think!!

Sinnaudio

Taking Out An Actionscript
I am trying to find the actionscript in a flash document that I have for a client and I cannot find the script. I am using Flash MX has anything changed? I remember having an a in the frame before.

Please help...

Taking Actionscripting A Little Further ..
I want to take my actionsripting a little further than just gotoAndPlay() and tellTarget kind of actions. Can anyone recomend a good book, not to advanced and not novice-like ..?
Lars

Taking .fla Exporting To .swf
Good morning all.

I am currently working a swish site and i'm using a flash plug in to import my .txt files.

i can get one to work using the original .fla files but when i try to export as a new .swf file all i get are scroll buttons.

here is an attached file. hope someone can help also here is the recommended actions. but i just can't seem to get it working.

Actions for (No Instance name assigned) (Scroll down)
onClipEvent ( enterFrame ) {
if (lPressed) {
_root.allpages.about_us.MySprite.TextBox.scroll += 1;
}
}

Actions for (No Instance name assigned) (Scroll up)
onClipEvent ( enterFrame ) {
if (lPressed) {
_root..allpages.about_us.MySprite.TextBox.scroll -= 1;
}
}

Actions for Frame 1 of Layer Named Layer 1
loadVariablesNum ("about_us.txt", 0); "this is where it is suppose to take my .txt file but no go"

Taking A Look At ActionScript
I have about 20 pages worth action script... is it possible to print it out with the proper colors.... so that i can debug it on paper??? cause if i cut and paste it to notepad... all i get is black and white code...

Thanks,
Carlos

Taking Sound Out A Fla
Hi,

Does anybody know how you can take a sound out of a .fla file?

tnx in adv

Airplane Taking Off?
i am going to be building a web site for a local travel agency. they wanted to have a intro with a airplane taking off from a runway. preferrably a 747 or something like that. i have looked all over here for a intro that would suite something like that and i could then load text to match the web site. does anyone know where i could find a fla file of this?

if not a airplane, then a cruiseship. anything for the travel agency. it just is going to be a intro then will autoredirect to the index2.htm page.

thanks in advanced...

sorry if i posted this in the wrong place, i wasnt sure where to post this.

Taking Away From Score
Ok ive got this game, you shoot things out of the sky to get points, now i want to add things that if you shoot them it takes away points.

I just guessed this but it dosnt work
code:
_root.score - 1;


Thanks for any help you can give

Taking A Screenshot
What is the keyboard shortcut for taking a screenshot of a finished Flash Movie?

Taking The Audio From SWF
Hi.
I'm recreating a project from a bunch of SWFs and I don't have the original FLAs. Is there a good way to extract the audio from the SWFs so I can re-build the animation?

[F8] Taking Animation Out
Hello all. Long time listener, 1st time caller here. Here's my issue:

I have designed a website using a template that the client selected from a website. Included in this was a flash header. The site itself contains a database and is also spliced with wordpress/AJAX technology. I'm having some issues with the flash header. My backend guy needs me to give him the .fla file, but needs it to contain NO ANIMATION. i do not have flash experience. is this complicated to do? like i said...i have the original flash file as well as the compiled .swf file. where do i got from here. you can view the header at:

http://www.inspgh.com

please help me flash heads!

Taking Xml Literally
let's say i load in some XML:
<root>
<pos>
<x>stage.stageWidth</x>
</pos>
</root>

And let's say i have a movieclip i would like to position by way of the xml value. This is simple if my value is numeric. But in this case, it's a relative position based on an unknown. Is there a way to import this value from xml, and later in my code , state:

mc.x=xml.pos.x

??

Taking To XML Through ActionScript
Hi there,

I'm currently working on a Flash Menu 'carosuel' and I've got to a point were I can't work out how to get the carousel to slow down and stop spinning once the cursor rolls out from the Flash area. I'm pulling in XML too, which I'm finding a bit tricky. Here's my code:

#include "mc_tween2.as"
import mx.utils.Delegate;
import flash.filters.BlurFilter;
var blur:BlurFilter = new BlurFilter(0, 0, 1);


var numOfItems:Number;
var radiusX:Number = 320;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2 - 15;
var centerY:Number = Stage.height / 2.4;
var speed:Number = 0.05;
var perspective:Number =15;
var home:MovieClip = this;
var blurX:Number = 30;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOver = blurX;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
trace (home.tooltip.thing._y);
home.tooltip.thing._y = -180;
home.tooltip.thing.tween ("_y",-119,.5,"easeOutQuart");
home.tootip
home.tooltip._alpha = 0;
//home.tooltip._x = home.tooltip._x - 40;
home.tooltip.alphaTo(100, 1.5, "easeOutQuart");
//home.tooltip.tween((home.tooltip._x + 40), 1.5, "easeOutQuart");
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
}

function out()
{

delete home.tooltip.onEnterFrame;
home.tooltip.alphaTo(0, 1, "easeOutQuart");
//home.tooltip._alpha = 0;
}

function released()
{
trace(this._parent.toolText);
}

function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this._alpha = s*150-5;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
this.blurY = s*150;
trace(s);
this.filters = [blur];


//this._alpha = this._y - 525;
/* blur.blurX = speed * 5;
//blur.blurY = -this._y / 10 + 62.5;
this.filters = [blur];

var s:Number = this._y/(centerY+radiusY);
this._xscale = this._yscale = s*100;
this._alpha = s*150-70;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale+100));
}
*/
}


this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/10000;

blur.blurX = Math.abs(speed * 200);
this.filters = [blur];
}


Any help would be much apreciated!

Thanks

Anyone Mind Taking A Look?
Please Take a look at my attached .FLA so you can see what I'm trying to explain....All Help Is GREATLY appreciated
================================================== ==========================================


Basically I have 6 Layers

RedButton
Blue Button
Green Button
OrangeButton
Text
Actions

Each of the buttons corresponds to a different word which I have nested inside the "Text" movieclip which when pressed SHOULD bring up the word with a little alpha from 0-100
Each word has an instance name to be referred to as well.

Here's my action script for the first button

this.RedButton.on(release){
_parent.Text.Hello.gotoAndPlay(2);
}

When it compiles it gives me an error of "Field name expected after "." operator. Anyone know what this is or how I can fix my code....see any other errors? What's the best way to approach this movie?

Thank you for all your help...you guys are awesome.

Taking A Snapshot
hey guys, im using the webcam function in flash to take photos, does anyoen now how to save these photos into a database, i want the user to be able to take there photo, put there name, and appear in a highscore for a game, any ideas???

this is my code so far

output_vid.attachVideo(Camera.get());

import flash.display.BitmapData
import flash.geom.Matrix

var snapshot:BitmapData=new BitmapData(x=155,y=120);
var snapshot2:BitmapData=new BitmapData(x=155,y=120);

function takeSnapshot(nr)
{
snapshot.draw(output_vid,new Matrix());
}
function takeSnapshot2(nr)
{
snapshot2.draw(output_vid,new Matrix());
}

i have 2 buttons that take the snapshots

cheers

Taking Snapshots
hey frendz i need an actionscript 2 code through which i can take a snapshot of two dynamically loaded images into a movieclip and save it as a .jpg image.
plz help me out!!!!!!!!!

Taking A Number Out
Hi again,

Thank you very much for your help, it worked like magic.

I have come to another dilema,

I am trying to make a televison that when a combination of numbers are pressed, and enter is pushed, it will go to a specific scene depending on what numbers were pushed.


Code:
Button_Enter.onPress = function()
{
_root.gotoAndPlay("Website_" + channel.text, 0);
}
That is the script for the Enter button.

Website_ is the name of the scene + channel.text which is the number

When typing in the numbers to bring up a certain page, if its a single digit, some people might put a 0 infront of the number. Example 08 instead of 8 just like on a TV. Is there a way to set it so that if they punched in 0, it would still bring up 8 so that i wouldnt have to make two scenes just incase they punched in 08 or 8.

Your help would be greatly appreciated.

Taking Cover
okay, im making some kind of shooter game and does anyone know how to make something like that you press space while standing next to some object, you'll take cover?

Swf Taking Up Whole Browser?
I want to have my site with a swf that is taking up the whole browser. So if someone is at a smaller resolution it will shrink perfectly to their browser. same with larger resolutions...

I see that some have javascript detecting browser size?

Flash Taking Over?
This is a simple question but I want enough feedback to make a informed decision in the future. While I think it is important to keep up to speed on multiple languages and techniques with web design, it seems as though a majority of the 'major' website's these days are being taken over by entire flash sites. So I guess my question is, should I concentrate my learning on Flash to keep up to speed with the industry or is this just a 'flashy' (no pun intended) time consuming, pricy solution for large scale sites? Everyone's opinion is of value..

Taking A Snapshot
hey guys, im using the webcam function in flash to take photos, does anyoen now how to save these photos into a database, i want the user to be able to take there photo, put there name, and appear in a highscore for a game, any ideas???

this is my code so far

output_vid.attachVideo(Camera.get());

import flash.display.BitmapData
import flash.geom.Matrix

var snapshot:BitmapData=new BitmapData(x=155,y=120);
var snapshot2:BitmapData=new BitmapData(x=155,y=120);

function takeSnapshot(nr)
{
snapshot.draw(output_vid,new Matrix());
}
function takeSnapshot2(nr)
{
snapshot2.draw(output_vid,new Matrix());
}

i have 2 buttons that take the snapshots

cheers

Taking On An Intro
Hiya guys!

I was thinking, when taking on an intro for ones site, what approach is the easiest?

If I were to make an intro, I'd go with one MC per layer in the main scene, then use a s***load of framelabels and telltargets. So one MC starts out, when it reaches a certain frame#, it triggers another MC... and so forth...

Taking Screenshots?
Hi,
Does anyone know how to take a screen shot? Also can you take a screen shot of anything on the web or just your own?
I'm not sure how the subject works so I don't know the boundries of it all..

Thanks in advance
postatomic

Swf Taking Up Whole Browser?
I want to have my site with a swf that is taking up the whole browser. So if someone is at a smaller resolution it will shrink perfectly to their browser. same with larger resolutions...

I see that some have javascript detecting browser size?

Flash Taking Off
Hi, Will Flash ever take over from PHP, ASP etc? Will sites be taken over completely by flash? What are the disadvantages of using Flash on websites?

Taking Over A Site
I was asked to take over a website and modify it.  I have flash4 but it won't open the swf (must be a newer version).  Would purchasing flash8 allow me to do this? Do I need the source fla?  Is there a more cost effective route?  

Thanks in advance for any assistance.
EJ

This Is Taking Too Long To Load
ive sent published flash animations from my home computer to the school computers so i can put them on my website. I transferred the .html files but they are taking too long to load.

Also when i try too enter them into frontpage, it says that the format isnt supported!

What do I do???

P.S im using flash 4 and the computer at school isnt slow, but yet it isnt loading

Just Taking The Sound Off Videos
Hey - i've only posted here once but i go great results.......hope it works again. I'm making my girlfriend a v-day animation rather than just a card which i had planned but thought this was cooler. I want to take the audio off of this video i have. I import the clip and one time i got it to go into my library so and i let me just use the audio (which i put in it's own layer). I can't get it to do it again. Please help! I need to do this before v-day! Thanks to whoever helps!

Layers Taking Up More Space?
I was wondering, if you have a lot of layers will it take up more space and make the movie slower to load?
I made a few things animated should I convert to symbol and choose movie and then drag them back into the stage?

I hope I was clear enough..thanks for the help.

Taking Screen Pics
You know in the tutorials on Flashkit, how you guys take a picture of the screen as is for a demonstration? How does one do this, capture a still image of whatever object (ie. dialog box) is on the screen. Just curious? Please answer

Copyright © 2005-08 www.BigResource.com, All rights reserved