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




Does Size Matter?



Hi All!

Does it matter -for download speed- whether the viewer (visitor of the website) opens the flashmovie in e.g. 600x470 or fullscreen?

The flash templates I'm playing with to learn have 'good enough' graphics which 'look ok' even in fullscreen.

I wonder if the movie should be opened using a javascript to open in fullscreen OR point directly to the .swf which opens same size as the browser size (I mean you enlarge the browser window and so does the movie..)

Can I insert in/after the intro a page with alternatives for the visitor: 'browser size' 'popup 700x500' 'fullscreen' ... ?

What is the right/best way to handle this?
Appreciate any help to bing light to this, practical examples are welcome too

Maria



FlashKit > Flash Help > Flash Newbies
Posted on: 11-15-2003, 04:14 AM


View Complete Forum Thread with Replies

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

Size Does Matter
I have and invisible button that I want to overlay onto different symbols. The problem is the symbols are different sizes.

How can I just actionscript to make my invisible button the same size as the symbol that it will go on top of?

Does Size Really Matter?
i already did my whole movie at one movie size.... now i want to change the movie size. what's the best way to do it, and how would i go about doing it. thanks in advance

Does Size Matter?
I'm preparing all my raster images in Photoshop to be used in my first flash site. So far everything looks crisp and clean but I'm trying to figure out what will be the best size for my background images and flash movie size. Please bare with me I'm a newbie and I really want my first flash site to come out perfect. What are the best dimensions?

Size Does Matter..
I was just wondering if any of you can tell me what dimensions you usually make your movies to. It seems that, even putting them at 100% today, they arent going. And since you have the borders.. a real 600x800 or what have you doesnt work.

Does Size Matter?
hah,

A question thats plagued man kind for centuries...

Anyways... When making a web site thats full screen, or full browser flash web site. (So it resizes to fit any resolution and browser size) does the size you create it in matter?

Should I leave it as default, 550x400, or make it bigger, or what.. Would it be best to work from 800x600 so when it's scaled down, or up it still fits the screen nicely.. without skewing sizes?

Also, does it constrain properties when resizing it to fit the window of the browser?

I know this must seem like a dumb question, but what i've made so far has been inside a window of the size of the flash.. so it's not able to resize.. and don't wana start making one full sized without being certain rather than having to redo anything.

Ian

Size Does Matter
I am taking a crack at my first all flash site. Each page is a separate swf. When I access the pages through my browser on my test site, each swf opens nearly filling the screen, instead of only the 720x460 size I specified.

I am trying to avoid embedding the swfs in html docs (which could easily solve the problem), but maybe that is just what I should be doing.I just want to know how most flash builders handle this. I want to center the movie on the screen at its designated size.Thanks all.

SIZE DOES MATTER Lol
hi i have a fla. file first it was 1.876mb now just after adding 3 pictures (scaled down) the fla. is now 2.528mb is there any way i can make my file smaller?

so when i publish it, people can access it faster

Does Size Matter?
I have a Movieclip that is 5000px long and it scrolls behind a mask 720px long. I can only get a certain portion to properly display. Does the lenght/width of a Mc in Flash matter?

Does Size Really Matter?
Hi,
just a quick question! how big does a flash file need to be to become too big? Im designing a website in flash with a fair bit of animation. Im new at flash and this is my first website! Ive probably gone round the houses on a few things, but what would you say is the recomended size for uploading? My file is about 1.2mb and im worried this is too big!!

Also, any help with my thread in the newbie section would be most appreciated. It's called Instead of gotoAndPlay, how do you playandGoTo

Thanks!

Does Size Really Matter?
I need to keep my swf file as small as possible b/c most of the people viewing it will have dial up. I've got my jpgs at 72dpi and I've got a few (10-15) mp3 files each on their own layer. The first mp3 is a 45-second song that repeats 4 times and I've got it synced as an event. The other mp3s are all vocal tracks and these are used as narration for my movie. I assume that these need to be synced to stream so they match up with the visual effects (i.e. words on the screen at the same time as words being said).
What else can I do to make sure I keep the swf file as small as possible? Does changing the compression (in publish settings/flash tab/audio event) from MP3 to speech help? I don't want to go below 16 on my mp3 bit rate b/c that just sounds terrible. Would it help to put all the vocal mp3 files on the same layer, each with it's own keyframe?
Got suggestions?

File Size -- Does Size Really Matter
I got this site and most of you already know about it - I have been trying and trying to crunch it -----

QUESTION:
what is a decent file size that I should be aiming on - no bare in mind that the site has imported graphics and sounds --> the lowest I can get it is 398KB ---> and that's with the sound being horrible ->

what is an ideal site usually? 250kb ---> is that even possible? I mean - sound - graphics - should I just quit?

ERRRRRRR
Low Key

Layers: Does Movie Size Matter?
I have a main movie that employs several layers of other .swf's. Does it matter what size (movie properties) the other layered movies are?

Thanks!

[F8] No Matter What, Tab Key Still On
I have tried EVERYTHING, and cannot get tabEnabled = false to work!

I have tried this:

MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;

NADA! I have tried this in frame 1 of root timeline:

_focusrect = false;
this.tabEnabled = false;

All that last one does is turn off the rectangle, but TAB key STILL selects buttons! And the weird this is, it doesn't affect ALL buttons, just SOME.

Any ideas? I am publishing for Flash 8, AS2

Help On This Matter
hi users,

I am using textfields with the checkboxes. As the user clicks any checkbox it shows it's textbox [which is in invisible mode and after clicking the checkbox it becomes visible.] Now what I want to do is that when the textbox appears it should contain a value which should be 0. Below is the code which I am using. When I click on the first checkbox it shows the first textbox with the initial value 0 and then I enter the value 10 in it, but when I click on the 2nd checkbox to make the 2nd textbox visible the value of the first textbox becomes 0. I think so whenever I click any checkbox to display the textboxes it refreshes all the values of the textboxes and make them 0. I want help on this matter. Note this is everything happening in a movieclip.

PHP Code:



function CheckImage()
{
    if(chk1.getvalue() == true)
    {
        attachMovie("Exe20","Exe20",1) //attaches a movieclip
        Exe20._x = -135.9; //movieclip x-coordinates
        Exe20._y = 0.0;     //movieclip y-coordinates
        q_chk1._visible = true; //textbox getting visible
                          q_chk1.text = 0; //giving the value zero to the textbox
    }
    else
    {
        unloadMovie("Exe20"); // unloads the movieclip
        q_chk1.text = ""; // makiing the textbox empty;
        q_chk1._visible = false; //making the textbox invisible
    }
    
    if(chk2.getvalue() == true)
    {
        attachMovie("Exe23","Exe23",2) // attaching movieclip
        Exe23._x = -135.9; // movieclip coordinates
        Exe23._y = 0.0; // movieclip coordinates
        q_chk2.text = 0; //Giving value 0 to textbox
        q_chk2._visible = true; //making the checkbox visible
        
    }
    else
    {
        unloadMovie("Exe23"); //unloading the movieclip
        q_chk2.text = ""; // making textbox empty;
        q_chk2._visible = false; //making the textbox invisible
    }


Can Anyone Help Me In This Matter...
hi all,

What I want to achieve is active links like in HTML websites. I have 3 buttons on the stage, when the user clicks on the first button it should be highlighted and should remain in that position till the user clicks on the next button. When he clicks on the 2nd button the previous one should come in normal state and the 2nd one should become highlighted and so on....I know that this is a game of variables but I am little confused in it. So if someone can help in the Actionscripting....

Regards,
Xeeschan

What's The Matter With The .fla
this is uncanny!
in this .fla have a ball mc.
one row has nothing in this mc,but the effect can't go when delete the row.

i don't know why?!


this .fla

Does It Matter?
hi!...im a really newbie at this...does it matter if i wright the code in order ?

Player 5 Or 6 Does It Matter?
I developed a site in flash mx for the company I work for. We are finding out that some of the employees cannot view one page that I built in flash mx. I found out that these people have flash player 5. It just suprises me how they can view everthing on this website but one page. All pages were saved as flash 6.0. Has anyone had this issue before?

A Matter Of Sound
Ugh,,, still cant work it out.

I have a MediaDisplay componant in an eternal swf.

I have a volume control i made in my MAIN MOVIE so when it loads the external swf, i can control the volume.

Unfortunately,,, it isnt working...

in the ext mc i have

sound1 = new sound();

in the main movie u can click on a button and it sets the volume to e.g. 100

_root.blankMC.sound1.volume = 100;

the instance name of the Media Display is mcMOVIE

so i even tried

sound1 = new sound(mcMOVIE);

still no luck

HELP!!!! PLEASE !!!

No Matter What I Do To Increase...
Hello AS world!


Code:
onClipEvent (load) {
this.onPress = function() {
JokerCoin = function () {
trace("function initialized");
n = 1;
jokerCoin = 0;
posA = this._x;
posB = this._y;
for (var l = jokerCoin; l<jokerCoin+n; l++) {
trace(l+"Coin Depth");
coinDepth = coinDepth+n;
if (!_global.outOfPauseMode) {
_root.attachMovie("coin_mc", "coin"+l, coinDepth);
_root["coin"+l]._x = posA;
_root["coin"+l]._y = posB;
}
}
jokerCoin += n;
};
JokerCoin();
};
}
I have this function working partially. I mean that I need to attach a movie clip (coin) at actual event joker coordinates (when press on). I want to attach as much as possible coins while joker on start is clicked. The problem is that I can attach one coin only... and I believe the problem is the depth, because always that I trace l, it is 0... but I have spent one whole day trying to fix this that I can´t see now the answer... please help!

Thanks

PS. The most bothering think is that this code logic is working in other place, with other movie clip exactly as i wish... can´t understand I know that places and variable changes slightly, but the logic is the same... at least for me...


Code:
this._parent.balloon.onPress = function() {
_root.score = _root.score+50;
_root.poppedballoons++;
trace("was pressed");
var dropCoin = random(2);
if (dropCoin == 0) {
_global.chanceForCoin = 0;
trace("no coin");
this.removeMovieClip();
} else if (dropCoin == 1) {
_global.chanceForCoin = 1;
trace("coin");
}
if (_global.chanceForCoin != 0) {
n = 1;
posA = this._x;
posB = this._y;
for (var k = coinsOnTheStage; k<coinsOnTheStage+n; k++) {
coinDepth = coinDepth+n;
if (!_global.outOfPauseMode) {
_root.attachMovie("coin_mc", "coin"+k, coinDepth);
_root["coin"+k]._x = posA;
_root["coin"+k]._y = posB;
}
}
coinsOnTheStage += n;
}
};

Button Matter
hi,
i would like to make a button which when i press on the button, the text field will keep incresing untill i release the button.

Code:
on (press){
txtTest.text=parseInt(txtTest.text)+1;
}
currently what i had wrote is as above. but it did not work. it just increase 1 in everytime i release the button. anyone can help me? appreciate a lot.

A Matter Of Compression?
Howdy.

So, Im trying to do this banner-ad for a client of mine and I keep getting way above the accepted limit of 25Kb. I've tried using JPEGs and unchecking smoothing and pretty much everything else I cuould think of.

I need to animate 2 photos of 2 dif. cars plus text flying in and ending on the clients logo. (sort of)

I've looked for compression software. But they all seem to be either for Flash 5 or for PC (Im on a MAC) i.e: Flash Pack

What the **** can I do???

Is there any banner experts that might lend me a hand here?

PLZ.

Thanx in advance.

kometa

A Matter Of Compression?
Howdy.

So, Im trying to do this banner-ad for a client of mine and I keep getting way above the accepted limit of 25Kb. I've tried using JPEGs and unchecking smoothing and pretty much everything else I cuould think of.

I need to animate 2 photos of 2 dif. cars plus text flying in and ending on the clients logo. (sort of)

I've looked for compression software. But they all seem to be either for Flash 5 or for PC (Im on a MAC) i.e: Flash Pack

What the **** can I do???

Is there any banner experts that might lend me a hand here?

PLZ.

Thanx in advance.

kometa

Just As A Matter Of Interest..
are there any other users still getting by with Flash 5? Do you think you are really missing out if you don't have MX? I like the Flash/php/mysql combination, and F5 seems to be able to handle them well enough...

Is Just A Matter Of Tweening Up And Down?
Howdy Folks,
Quick question for you all (i hope).

http://www.gm.co.id/content_data/AP/IN/en/GBPIN/BRANDSI...

is this just a matter of tweening a large pic in the backround.. i like it and it feels like it should be more complicated for some reason!!!

What dya think?  

-------------------------------------
Laughing out loud every day,
keeps the doctor away....gotoAndPlay
-------------------------------------

What The Matter With SetInterval() ?
ActionScript Code:
var gn = setInterval(function () {
    trace("gn");
    updateAfterEvent();
}, 600);


this supose to be regular no ?
but no !
the interval isn't exactly the same on each call,
with or without updateAfterEvent().
is this a bug ?
am I missing something ?

Desperate For Help In This Matter
Hello!

I have asked about this on other forums to but noone seems to be able to help me with this. They told me to go to you!

I have a small little grungy interface, with the menu buttons spread diffirently over the menu. So its NOT in a vertical or horizental line! What i want is a little object, that smootly eases... moves to the button that currently is onMouseover, and positionate just left of it (xy cordinates), AND stays there untill another button is onmouseover (touched by mouse pointer).
Where the little object starts is not important. All i want is to get the object (which is a mc shaped as a arrow pointer) to move my'pre-plotted' xy cordinates left of the buttons, when having the mouse pointer on the buttons.

I have read all tutorials i have been able to find about easing and actionscripted movement, but none of them shows how to make the movment trigged by a onMouseover button.

SOMEBODY?

Thanks!

LoadMovie Paths - Does It Matter?
hey guys,

i'm running into a problem. i've got a index.swf file that calls on other swf files via the loadmovie method.

everything works fine when embedding the swf in an html/asp page, but when i change the path of the intitial index.swf file, none of the other movies load. since i had about 9 swf files, i put them all in a "swf" folder and then changed the path in the html (where the index swf is embedded) to "swf/index.swf". so that loads the initial swf, but the other ones never load.

i have no idea what the problem is here. as long as all the swfs are together, there shouldn't be a problem. but just pointing the embed tags to look in another directory for the swfs messes everything up but the index swf file.

anyone ever run into this problem?

thanks,

ed

Matter Of Life And Death
I have asked for help with this problem in the General Help Forum but have not got a solution yet... You can read the details in the thread titled "Why Does it Stop"

But basically to save you some reading.... I have a large .swf (about 7Mb) that randomly rewinds to the first frame and stops there, rarely on my 350Mhz with 160Mb RAM, nearly always on a 1000Mhz with 128Mb RAM and sometimes on a 500Mhz with 128Mb RAM.

It is not meant for the internet but only to be played from CD or direct from HDD.

Has anyone else experienced this problem?
Could it be because of the size and/or complexity of the movie? I would have thought you could make any leangth movie in Flash.

Suggestions please.
I need help fast as the publication must be ready in a week to be played on a computer that I have never seen and I'm not even sure of the systems profile.

**CHEERS**
Mousey

Does Amount Of Commands Matter?
HI I have this button with on rollover, it does like 3 telltarget commands... does that affect how it works?
I say this because 1 thing doesnt work and the others do...

Levels? Movies? What Is The Matter?
OK... i am in a big problem... read carefuly...

I have 3 movies (.swf)
1º Main
2º A
3º B

The main movie has inside 2 movieclips:

a) site
b) galery
-----------------------

Ok, here is my problem.

1º step - From the main movie, I call movie "A" into the movieclip "site"

2º step - From the movieclip "site" I want to call movie "B" into the movieclip "galery" in the main movie, and unload "A" movie form the main movie

3º step (and final one) - from movie "B" in the movie clip "galery" of the main movie, i want to call "A" movie to the "site" movie clip, and unload the "B" movie.

What sould I do???????????
I can call the "A" movie(1º step), but nothing else!!!!!!!!!!

Any suggestion?

Thanks

Loops: For, While, Do While: Just A Matter Of Preference
just a quick question.
I am very comfortable with "for" loops.

from my understanding they can achieve everything that while and do while can.

is it just a matter of preference or are the others better for different scenarios?

i don't find the info on livedocs to highlight much of a difference.

thanks for your input
carl

[F8] ParseFloat Returns 0 No Matter What
Hi,
I'm in the situation where I'm getting numbers in the form of varchars from a dabase using a loadvars. When the loadvars onLoad function is called I try to use parseFloat on the incoming variables to retype them to floats. It looks like this:


Code:
var people = parseFloat(loadIn.variable1);
I know that variable1 contains the value 0.5 in the database but after applying parseFloat and then tracing my variable people I get the result that people is 0 and not 0.5 as one would expect.
I have been banging my head against this for quite a while now so I would greatly appreciate some help!

Anders

NameSpaces.. Can Someone Clear The Matter Up?
I am struggling to see the point in Name Spaces.

namespace tv = "http://blah.com/app/tv"
namespace life = "http://blah.com/app/life"

If the major point in namespaces is to allow me to do this

tv var live:String = "I am on TV Live on Air";
life var live:String = "i love life and living it to the full"

Well is all this worth it?

Can i not just ignore all the code and go for

var liveTV:String = "I am on TV Live on Air";
var liveLife:String = "I love life and living it to the full";

In all possible future scenarios???

Why are name spaces important and is it really worth taking the time to pound it into my head? I just know Adobe will change to AS4.0 soon and probably change everything all over again.

In the real world, how important is a Namespace? What benefits (apart from having 2 variables of the same name) do namespaces provide and can you give an example scenario in whihc a namespace(s) is required?

Thanks

Actionscript Versions 2 Or 3? Does It Matter?
Hi there,

I've done a fair few sites before in flash using actionscript 2.

Ive looked at actionscript 3 briefly but am alot more familar with actionscript 2.

So does it matter what version i use and can you mix and match. IE use and external AS3 movie/clip in an AS2 designed flash site.

I'm quite unsure whether to start learning AS3 or carry on using AS2.

Please help and advise what you think is best?

Thanks

Back Button No Matter What
Hi.
I am building a site entirely in flash. So it is only one html.
I use frames and loadMovie to load diferent pages ( diferent swf).
Since there is only one html the back button of the browser does not work in my site.
I have a strong desire to build this button but how? I cannot use goto prev frame because i used loadMovie so there are no frames.
I need it to magicaly know what it did and redo when the users pushes "back"
Can i do that?
Thanks

Does It Matter If Code Is On 1 Or 2 Lines?
Using AS 3, when adding code to make a button go to another frame in another scene like this:

myButton.addEventListener(MouseEvent.CLICK,buttonClick); function buttonClick(event:MouseEvent):void {gotoAndStop("Scene2", 1); }

Does it matter if the code all resides on line 1 or if I hit enter/return and carry some of the code over to line 2?

Thanks.

Does It Matter If Code Is On 1 Or 2 Lines?
Using AS 3, when adding code to make a button go to another frame in another scene like this:

myButton.addEventListener(MouseEvent.CLICK,buttonClick); function buttonClick(event:MouseEvent):void {gotoAndStop("Scene2", 1); }

Does it matter if the code all resides on line 1 or if I hit enter/return and carry some of the code over to line 2?

Thanks.

URLLoader Time Matter
Hello,

I use URLLoader class with load() method who load an XML stream from a PHP file. COMPLETE event launch a fonction, everything works great ! Except one time out of ten...
WHY ? here s a element of response : I tried the same with a .xml file instead of a PHP stream, and it works ALLWAYS (even with a 1MB .xml). The conclusion is that Flash read an XML stream that the PHP IS SOMETIMES STILL WRITING. So the bug appears. How to avoid that ?
This is a Flash<>PHP project where every client action reload an XML stream provded by PHP, ay advices.

Merci énormément, this is very important.
Sylvain.































Edited: 11/15/2008 at 02:51:15 PM by sylvainhugues2

PLease Help Blurry Text No Matter What.
HEy,

OKay, so im exporting a movie and no matter what i do the pixel font wont come out clear. here is the dilemma.
the font is set on ".0" corrdinates, the movie is the same.
if i used the text as dynamic, it comes out clear, but as soon as i embed the font, it becomes unclear again.
if i use the text as static, it also become unclear on publishing.
If i save the text as a transpernt gif or png. and publish it using flash, it also becomes unclear..
i have no idea what other options i have. please help.

thanks.

Does It Matter If You're Black Or White?
Okay back to basics here, am going home and plotting tomorrow's work - I'm planning to use a pile of black and white images in a corporate looking site, does that mean I will be able to cut down the .jpg file size?

If so - cool. How you all doing?

PLease Help Blurry Text No Matter What.
HEy,

OKay, so im exporting a movie and no matter what i do the pixel font wont come out clear. here is the dilemma.
the font is set on ".0" corrdinates, the movie is the same.
if i used the text as dynamic, it comes out clear, but as soon as i embed the font, it becomes unclear again.
if i use the text as static, it also become unclear on publishing.
If i save the text as a transpernt gif or png. and publish it using flash, it also becomes unclear..
i have no idea what other options i have. please help.

thanks.

Code Not Working, No Matter What.
I have this preloader code on the main timeline, loading in the main .swf and it works fine. I have the same preloader code within a _mc loading jpegs into target_mc and it also works fine UNTIL I upload it to the server. then it no longer works within the _mc (only works on main timeline)

I am at my wits end. I have no idea what is wrong. Can anyone help?



ActionScript Code:
onClipEvent (load) {
    percent = 0;
}
onClipEvent (enterFrame) {
    loading = _root.target_mc.getBytesLoaded();
    total = _root.target_mc.getBytesTotal();
    percent -= (percent-((loading/total)*100))*.25;
    per = int(percent);
    _root.bar.bar2._alpha = 100;
    _root.bar.bar2._yscale = per;
    if (percent>99) {
        _root.bar.bar2._alpha = 0;
        _root.bar.gotoAndPlay(25);
    }
}

Matter Of Loosing My Mind
Hi everybody i am loosing my mind
i put my site on line please check http://www.car-wash.net choose portfolio
the problem is that i ahve used jpgs loading through xml file first time in my llife and result is not cheering.
Although in publish settings i have put my file on 100% no scale align =centered
i got in result my carouselle shouwing up in the right corner as well as my photos jumping all over the screen
this is the AS i used to load the photos from xml file
imgbtn1.onRollOver = function() {
infoField._visible = true;
startLoading("an001.jpg");
};
imgbtn2.onRollOver = function() {
infoField._visible = true;
startLoading("an002.jpg");
};
imgbtn3.onRollOver = function() {
infoField._visible = true;
startLoading("an003.jpg");
};
imgbtn4.onRollOver = function() {
infoField._visible = true;
startLoading("an004.jpg");
};
imgbtn5.onRollOver = function() {
infoField._visible = true;
startLoading("an005.jpg");
};
imgbtn6.onRollOver = function() {
infoField._visible = true;
startLoading("an006.jpg");
};
imgbtn7.onRollOver = function() {
infoField._visible = true;
startLoading("an007.jpg");
};
imgbtn8.onRollOver = function() {
infoField._visible = true;
startLoading("an008.jpg");
};
imgbtn9.onRollOver = function() {
infoField._visible = true;
startLoading("an009.jpg");
};
imgbtn10.onRollOver = function() {
infoField._visible = true;
startLoading("an0010.jpg");
};
imgbtn11.onRollOver = function() {
infoField._visible = true;
startLoading("an0011.jpg");
};
imgbtn12.onRollOver = function() {
infoField._visible = true;
startLoading("an0012.jpg");
};
imgbtn13.onRollOver = function() {
infoField._visible = true;
startLoading("an0013.jpg");
};
imgbtn14.onRollOver = function() {
infoField._visible = true;
startLoading("an0014.jpg");
};
imgbtn15.onRollOver = function() {
infoField._visible = true;
startLoading("an0015.jpg");
};
imgbtn16.onRollOver = function() {
infoField._visible = true;
startLoading("an0016.jpg");
};
function startLoading(whichImage) {
loadMovie(whichImage, "imageLoader");
_root.onEnterFrame = function() {
infoLoaded = imageLoader.getBytesLoaded();
infoTotal = imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
imageLoader._x = (Stage.width-imageLoader._width)*0.5;
}
delete this.onEnterFrame;
infoField._visible = false;
};
}

but i think that problem is somewhere else i dont knw where
PLS PLS PLS PLS HELP

Will It Matter If I Have Flash 5, And MX Installed In 1 Computer
Hi all,

I need to work on something that's done (and needs to stay) in flash 5, but I have MX installed right now. I don't really want to go through the hassle of "saving as" or "exporting as" flash 5 from MX. It's a lot of files. Will it conflict if I install flash 5 in the same machine.

thanks in advance

StartDrag() Working No Matter Where I Click
I've created a music player using the sound object tutorials at Kenny Bellew. The thing I'm having a problem with is the volume slider. At first I thought I had miscoded something, but upon reviewing Kenny's file, his movie has the same problem.

The sliding movie clip that indicates how loud the sound is is _root.volcontrol.slider.vslider. Here's how I'm starting the drag:


PHP Code:



onClipEvent(mouseDown){
    startDrag(this, false, _root.left, _root.top, _root.right, _root.bottom)
}
onClipEvent(mouseUp) {
    stopDrag();
}




No matter where on the stage I click, startDrag() always activates. Obviously, this could pose a few different problems.

I tried changing the movie clip to be a button, but that messed up the rest of the script and I don't feel like going through and recoding it. I don't know what else I could do. Can anyone help?

How To Keep Flash Movie Centerd No Matter What.
i was wondering how to keep a flash movie centerd in an html page and have it stayed center if the user makes the window smaller or larger.how can i make the flash movie move to the center when the user adjusts there window?
thanks

How Do I Make It So That My Functions Can Be Called No Matter Where They Are Placed?
A lot of helper functions that I've written are scattered around and I want to just place all of them at the very bottom. Unfortunately, whenever I do that some of the functions that call those helper functions no longer work. How do I make it so that functions can be called no matter where they are placed?

----

The following will work.



giveMeOne = function()
{
return 1;
};

runMe = function()
{
trace( giveMeOne() );
};

runMe();



-----

The following usually won't work. I say that it usually won't work because sometimes helper fuctions work even though they come before the functions that call them and sometimes they don't. I still have not figured out why this happens.



runMe(); // probably won't work when placed at the bottom either

runMe = function()
{
trace( giveMeOne() );
};

giveMeOne = function()
{
return 1;
};

Button Issue, A Matter Of Referencing I Think
hi hi, i always get in diffuculty with referancing in flash, this is no exception lol,....

got this code on main timeline:


Code:
loader._visible = false;
function preLoader(mc) {
_root.onEnterFrame = function() {
lBytes = mc.getBytesLoaded();
tBytes = mc.getBytesTotal();
if (percentLoaded<100) {
_root.loader._visible = true;
} else {
_root.loader._visible = false;
}
percentLoaded = Math.floor((lBytes/tBytes)*100);
_root.loader._xscale = percentLoaded;
if (lBytes>=tBytes) {
link._width = 800;
link._height = 600;
_root.loader._visible = false;
}
};
}
newDepth = 1;
leaf2.onPress = function() {
newDepth++;
var h = link.createEmptyMovieClip("holder"+newDepth, newDepth);
h.loadMovie("IMG01.jpg", "_root.holder"+newDepth);
preLoader(h);
};
leaf3.onPress = function() {
newDepth++;
var h = link.createEmptyMovieClip("holder"+newDepth, newDepth);
h.loadMovie("IMG02.jpg", "_root.holder"+newDepth);
preLoader(h);
};
on the same layer are the buttons "leaf2" and "leaf3". everything works good.

problem is that this was just for testing and these buttons will eventually be inside a moviclip called "bar" that rolls up on stage to show the buttons, my question is how do i referance and call the leaf functions above if the buttons are in this part of my movie? would this be something like

_root.bar.leaf3.onPress....etc etc

is that anywhere close? btw the above didnt work.

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