Setting It All Up
Hiya, i'm almost finished with all of my graphics and sounds for my first flash production ever, yes...i'm a noob. I have a storyboard and everything and it just occurred to me i'm still not sure how to throw this bad boy together. Since everyone hates scenes i'm gonna learn how to use the loadmovie command (haven't touched actionscript yet)and load external swfs. So basically my question id how do u figure out where you want one swf to stop and the next to start? Do you make a swf for like every minute or so of production or do u make a swf for literally every new shot (which could result in 20-25 swf files? Thanks in advance for the help!
FlashKit > Flash Help > Flash Newbies
Posted on: 08-19-2004, 09:26 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Quality Setting - Changing The Default Setting?
Whenever people go to my site www.findraf.com I find that the quality is set to Medium by default and most people don't know computers enough to realize how easy it is to change it. Any idea's how to change this?
Dynamically Setting Labels Or Dynamically Setting Frames To Print
1. Does anyone know if there is a way to dynamically set a frame label. The reason for this is that I want a particular frame to Print with other frames (requiring a frame label of #p) if you answer a question a certian way and not to print with the other frames (needing a different label or no label at all) if the question is answered differently.
2. Option #2 would be to be able to dynamically set which pages print when you call the "PRINT" command (probulary through an expression). Any ideas would be appreciated.
thanks
Setting My RGB's
now this i need heaps of help with cause i've never done it before
I want to make a movie clip so that everytime it enters a frame it will go a different shade of blue and I'm thinking the right way to do this would be the setRGB bit of actionscript
so far I have
this.setRGB( 0xRRGGBB )
now if anyone could point me to a good tute or fill me in on what to do next it could help me heaps.
well thanks in advance
Novex
Setting It All Up...
I seem to have trouble with the parameters of my movie. does anybody have a foolproof sytem of beginning a website? stage size, publish settings, everything... i want my work to be displayed as it was intended on every monitor and browser. How would 2advanced set theirs up? thanks for everybodiy's help, i wouldn't be here without you
Setting RGB...
i once found a source that explained how to change the RGB of a movie clip, and fade it from one colour to the next.
so for example, say you had a rectangle that was red, and when you clicked a button, you wanted it to turn to blue, it would fade from red to blue, does that make sense?
anyone shed any light onto this?
cheers
paro
Setting A Name...
Is it possible to change the name of a folder that is in the same folder as the movie you are playing?
For Example:
Folder 1-
Some pictures
Some text files
Flash Movie
Folder 2-
Other pictures
Various items
I want to be able to change "Folder 2" to "Folder 3", I know this is a very crude example, but if this is possible it will help me a lot.
Thanks in advance...
-Graidian
Setting A Value When There Is None...
hi everyone, i have a php form that receives the vars from a flash interface. as my script requires vars i need the flash as to set a var incase it is not defined...
here's the code...
-----------------------
on (release) {
if (name eq "") {
gotoAndPlay (11);
} else if (contact eq "") {
gotoAndPlay (11);
} else if (evtype eq "") {
gotoAndPlay (11);
} else if (evdate eq "") {
gotoAndPlay (11);
} else if (evlocation eq "") {
gotoAndPlay (11);
} else if (comments eq "") {
gotoAndPlay (11);
} else {
getURL ("http://www.mypage.co.za/mail/mailform.php", "", "POST");
}
}
-----------------------
i only want the comments to be not required. so basically if the comments text box is empty flash will give comments the value of 0.
can anyone help me out here,
thanks
protocol
Setting Up CGI Or PHP
I'm trying to setup a submit form with some pretty basic stuff. How do I setup the CGI or PHP part on the server? Do I just copy a modified script into the cgi-bin? This part has me stumped.
Thanks
Help Setting RGB
I am duplicating a movieclip, naming it "mc"+i. I want to set RGB of a movieclip that is inside "mc"+i wich is named (instance name) color1
if I put
mc = new Color("mc"+i); it sets RGB of the whole movieclip, how can I set RGB of color1 that is inside "mc"+i?
thanx
Setting A URL
I've loaded in an XML file and managed to set the main text of a TextBox, but I cannot figure out how to set the URL of it.
Hows it done?
[F8] Setting Max _Y
How do you set the max Y of a MC? Like MaxY = _root.A.ymax or something like that.
Setting New X And Y
What script would i use for making the X and Y of a movie clip to change when clicking a button i tried
Code:
on (press) {
test.x=200
test.y=200
//Test is name of the instance
}
But it doesn't work =/
please help
☻
Setting X And Y
I have a dragable MC and when set itst constrain area it constrains it to _x and _y at the center of the MC
I would like to set it ukp ant its top left corner and its bottom right corner ao that done of the MC goes out side ot the constrinde area.
Ho do i go about doing this.
Thanks
Setting The _x Value
I am having trouble resetting the _x value of a movieclip. I have 3 MCs that scroll along the bottom. When one of the three clips move to far to either the right or left side, I want to move it to the opposite side. Here is a sample of the code I am trying to use to do this:
Code:
function moveLeft(position, index) {
//check if index is negative nubmer
if (index <0) {
index = -index;
}
//get story # if index is over the total number of stories
if (index >= entryNode.length) {
index = index-entryNode.length*(Math.floor(index/entryNode.length));
}
//if the first TN is clicked, get url
if (position == 0){
getURL(links[index]);
}
//move TNs left
else {
for (h=0; h<3; h++) {
//move tnSets
trace(_root.tnContainer_mc["tnSet"+h]._x);
var current_mc = _root.tnContainer_mc["tnSet"+h];
var oldX = current_mc._x;
var newX = current_mc._x - ((tnWidth+tnSpacing)*position);
setEase(current_mc, oldX, newX);
//move tnSet to the right if too far left
if (_root.tnContainer_mc["tnSet"+h]._x <= -2*(tnSet._width + 10)){
trace('move right: '+ _root.tnContainer_mc["tnSet"+h]);
_root.tnContainer_mc["tnSet"+h]._x = (tnSet._width+10);
trace(_root.tnContainer_mc["tnSet"+h]._x)
}
}
loadStory(index);
}
}
I have zipped my .fla file and attached it.
Setting The _x Value
I am having trouble resetting the _x value of a movieclip. I have 3 MCs that scroll along the bottom. When one of the three clips move to far to either the right or left side, I want to move it to the opposite side. Here is a sample of the code I am trying to use to do this:
Code:
function moveLeft(position, index) {
//check if index is negative nubmer
if (index <0) {
index = -index;
}
//get story # if index is over the total number of stories
if (index >= entryNode.length) {
index = index-entryNode.length*(Math.floor(index/entryNode.length));
}
//if the first TN is clicked, get url
if (position == 0){
getURL(links[index]);
}
//move TNs left
else {
for (h=0; h<3; h++) {
//move tnSets
trace(_root.tnContainer_mc["tnSet"+h]._x);
var current_mc = _root.tnContainer_mc["tnSet"+h];
var oldX = current_mc._x;
var newX = current_mc._x - ((tnWidth+tnSpacing)*position);
setEase(current_mc, oldX, newX);
//move tnSet to the right if too far left
if (_root.tnContainer_mc["tnSet"+h]._x <= -2*(tnSet._width + 10)){
trace('move right: '+ _root.tnContainer_mc["tnSet"+h]);
_root.tnContainer_mc["tnSet"+h]._x = (tnSet._width+10);
trace(_root.tnContainer_mc["tnSet"+h]._x)
}
}
loadStory(index);
}
}
I have zipped my .fla file and attached it.
Anybody Know About SFX Setting?
Hey out there;
reposting this - there must be someone that uses sound with flash on this forum... Anyone?
Advice on settings for sfx and music.
On things like a background thunderstorm -i've set it to MP3 kbps 64 - would you set it lower, say 56? I know i could listen and see if i hear any difference, but what always worries me is that maybe someone with a much better sound system (that does excist in computers right?) would hear lousy sound at 64 kbps. Or am i just stressing?
on the background music - there's no doubt that if i could knock all the songs down to 64 or even 56 my files sizes would be much lower and thus reduce load times - would you do this?
any advice would help.
thanks
hoss
Setting Properties
Is this:
for (var i = 0; i<10; i++) {
duplicateMovieClip ("line", "line"+i, i);
setProperty ("line1", _x, 50);
setProperty ("line1", _y, 50);
setProperty ("line2", _x, 150);
setProperty ("line2", _y, 250);
etc etc etc...
}
Setting Variables
Hi, I'm having some problems getting variables to work. I have a movie clip and an invisible button which I am trying to make interact with that movie clip. I wish to make the movie clip play from frame 2 to 5 when it is rolled over. On rollout, it reverts back to frame 1. When it is clicked, it plays from frame 6 to frame 10, and stays on frame 10 until another action from another clip tells it otherwise, meaning no matter if you click it or rollover it again, whatever. I am unsure of which command to set the variable to activate. Here is my code:
on (rollOver) {
set (press1, true);
if (press1==false) {
_root.about_movie.gotoAndPlay(2);
}
}
on (press) {
set (press1, true);
if (press1==false) {
_root.menu1.gotoAndPlay(6);
press1 = true;
}
}
on (rollOut) {
set (press1, true);
if (press1==false) {
_root.menu1.gotoAndStop(1);
}
}
Setting _X _Y Movie.
Ok, not on an MC, but when I load an External SWF using LoadMovie, how can I set the X and Y coords for that swf? If it's smaller? Or should i just size it the same and place the stuff i need somewhere else?
-Paradoxz
P.S. I'd like to set the X and Y cuz i'm using around 8+ Layers.
Setting _X _Y Movie.
Ok, not on an MC, but when I load an External SWF using LoadMovie, how can I set the X and Y coords for that swf? If it's smaller? Or should i just size it the same and place the stuff i need somewhere else?
-Paradoxz
P.S. I'd like to set the X and Y cuz i'm using around 8+ Layers.
FRUSTRATION IS SETTING IN
ok i need to do something really simple....
I need my swf file to automatically resize to the borders of the internet explorer.....
how do I do this? and what do the demensions for my swf file need to be so it always fits perfectley???
thanks
Setting D&D Constraint...
Hi all, I would like to know how to set a contraint area for my drag and drop MC.
Also...is it possible to set a non-rectangular or square area for my constraint?
pls help thanx
Setting Colours Using AS
Okay, first I want to know how to set the colour of an object using AS. Then I want to know how to set random colour for an object. Anyone know?
Setting Mc Depth?
I know that I can set the depth on either the duplicate or attatch movie commands but how do I set the initial depth of a movie clip that was not created with either of the two commands?
Thanks
Carter
Setting Up Arrays
i have a movie clip of a pink dot. i want to define an array that creates 50 duplicates of that pink dot.
how would i go about defining the array?
would i have to create the duplicates first using duplicateMovieClip and then assign the duplicates to an array? if so, how?
anyone help would be appreciated, TIA
Please Help Setting Variable
Hi everyone,
I have a input text box called "1" as its value, and a dynamic text box which is called "2" as it's value.
The user input's their name in textbox "1" and then when they press the submit button I would like the dynamic text box "2" to say:
Hello, (name user entered in) how are you doing today?
So, I have been playing with codes but they don't seem to be working. Does anyone have any ideas?
Here is what I came up with, but its obviously not working and isnt right!
For the submit button's actions:
on (press) {
set ( 2, Hello, var="1" how are you doing today? );
}
What am I doing wrong! how do you do this?
Any help would be great!
thanks!
- leland
Setting RGB Of Movieclip
Scenario:
I'm loading a set of background images.
I have a logo that is black and orange
The backgrounds are really colorful
When some backgrounds load, the colors of my logo are lost in the colors of the background
Objective:
I need the problematic backgrounds to set the RGB of my logo to a different color to make it stand out.
Solution:
Code:
myColor = new Color(_root.myMovie);
myColor.setRGB(0x993366);
I placed this line of code in the first frame of the loaded background, and it works great.
Problem:
How do I reset the RGB to its original value, which is no color changes at all?
Your help is much appreciated
[Edited by flipsideguy on 04-08-2002 at 04:26 AM]
Setting Z-axis?
I have three movie clips on the same layer on the _root level. These movie clips may or may not be visible (depending on the user), but if all three are visible at the same time how do I set the z-axis so whatever one the user clicks on come to the front. I tryed a javascript focus()(movieclip.focus() method, but I couldn't get it to work. Anyone have any suggestions, it would be greatly appreciated.
Setting A New Color
Hi, I´m doing some simple games, exactly one of painting some figures. I´m looking for the way to make some squares with different colours and when you click inside and drag to the mc you want to paint, it turns to the colour of the previous mc. I know it must be whit setRGB and hitTest, but I don´t know how, could anyone please help me? Or telling me where´s a good web with .fla examples. Thank u.
Boolean Var Setting
K.I got the basics of this. But I am trying to do something very simple and probably will have it figured out by the time someone actually posts. If someone decides to be kind. Well here is my issue.
I have a button that when on release it tells my movie to play.. Ok. Well that is easy. Next, I wanted to make it to were it can only be pressed once. So I added a IF statement and made the variable a Boolean statement as well TRUE/FALSE what ever. And then on the MC that plays, on the inside of that is another button. To close the new opened MC. Basicly tell it to play again and then reset the variable. But it doesn't reset it. My code is below.
// My root button here. On my main screen. Plays movie if statement is FALSE else ignore basicly.
Here is a LINK to what I am working on.
Only the ABOUT button is in use right now.
http://vmagonline.net/spoke
on (release) {
if (Played_About == FALSE) {
var Played_About = TRUE;
tellTarget ("ABOUT") {
gotoAndPlay(2);
tellTarget ("Faces") {
play();
}
}
} else {
}
}
// This is my movie's button on the inside of the MC.
on (release) {
Played_About = "FALSE";
play();
}
Setting Variables In URL
Hello All,
I am attempting at making dynamically loaded URL's for my dynamic buttons in flash mx. I have this issue: Is it possible to place a variable in the "URL" field of the "GET URL" browser function? If so, how? I have come up with the following code with no success.
Frame 1 actions
test = "http://www.google.com";
stop();
Dynamic button actions in Frame 1
on (release) {
gotoAndPlay(5);
}
Frame 5 actions
getURL("test");
stop();
I believe my problem lies in the "qoutes" around my variable "test" in the "getURL" field. I cannot remove them, flash puts them in there when I type anything in the URL field.
Any other suggestions on how to due this please reply.
Thank you
Steve
Delay Setting?
I have a movieclip with 15 frames in it.
I want the movie to pause for about 10seconds on each frame, then advance to the next, looping back to the beginning when it reaches the last frame.
How do I set the delay on this? I've tried all the search results that came up for "delay frames" but none of them seemed to work. Thanks-
Setting A Varibale
Does anyone here know if i can set a variable in a symbol to the instance name of the symbol....for instance
i have a symbol with the following code
on (release)
{
lotNumber = 75;
getURL("javascript:window.open('maps_text.cfm?Lot= "+lotNumber+"&CC="+_root.communityCode+"','Lot"+lo tNunber+"','resizable=1,width="+_level0.Lot1.windo w_width+",height="+_level0.Lot1.window_height+"'); void(0);");
}
the instance name of the symbol is Lot5
i woul like the lotNumber variable in the above code to be
lotNumber = 5;
but use some sort of variation of the instance name
ie start at the fourth character
lotNumber=(InstanceName,4)
Setting A Timer
Say if I wanted an action to happen every 5 seconds, how would I do that?
Setting The Swf File Right
I am trying to set my swf file in the far left corner of my html page but the margin is in the way. How do get rid of the top and left margin?
Setting The Stage...
sup everybody,
i have kind of a specific question... i have been making my flash sites on a stage size of 750x464 and embedding and centering them. i wanna format kind of like this one... http://www.realityslip.com/rs.htm but i don't know how to approach it. do they make a movie, build some slices for the background in photoshop? how are they seeing to it, it fits anybodys screen? any kind of good formula would be greatly appreciated.
Setting A Delay
I'm currently trying to make a button that, when rollOver'ed it fades in a loop that's playing by setting the volume...
How i've CURRENTLY got it set up is using a for() loop.
for(i=0; i<100; i++){setVolume(i);...
but what i want to accomplish is a delay between the next action. the code flies by so fast it just turns the volume ON and then when you mouseout it turns it off. So i need the equivalent of C++'s delay()... similar to
s.setVolume(i);
delay(100);
or something to that effect.
Anyone know if this is possible or perhaps can you think of an alternative method? I could make a sliderbar, but i really don't want to do that. I want it to be automated on mouseover. Thanks!
Setting Boundaries....help
Ok. I'm loading external .swf's into a main movie. The swf's are draggable windows. I want to set boundaries in the main movie when these .swf's are loaded so that when they are dragged, they don't drag over content that's in the main movie. Can anyone help me here?
Setting Boundaries...please Help.
I posted this in another forum. I figured this one would be more appropriate
Quote:
Ok. I'm loading external .swf's into a main movie. The swf's are draggable windows. I want to set boundaries in the main movie when these .swf's are loaded so that when they are dragged, they don't drag over content that's in the main movie. Can anyone help me here?
Problems With Setting Var's :(
hi,
I'm initialising two vars in a keyframe with this script:
var _global.startopen = new String(1);
var _global.inwork = new String(1);
but when I like to test the movie it says:
Scene=Scene 1, Layer=actions, Frame=1: Line 1: ';' expected
var _global.startopen = new String(1);
but I made that at the end of the line
does anybody knows how come this error message appears?
I really appreciate any helpful answer
thanks in advance,
xant
Setting An IF Statement?
I have 4 MC's playing consecutively (on individual frames) on my main time line, each MC ending with _root.nextFrame(); Problem is my MC's, when going back to frame one it activated my newsound.start again (which is OK BUT) if the user has hit audio off, this repeat causes the audio to turn back on. is there a if statement that might check to see if that has been pressed already or not?
Thanks! You guys are the BESTEST board in the whole widest world! haha
~geoff
Setting Variable ... Bah
i have an image viewer i got from this site. and I have been trying as hard as I can to make a button open up an image depending on which thumbnail you clicked. In other words if I click on thumb1.jpg I want the button to open thumb1.jpg, and if I click on thum2.jpg same thing button should now open thum2.jpg. Make sense? I've tried what I know how to do and just can't get this variable to pass ... here is the code ... sorry it's a lot. I th ink what i need to do is get a varialb to set to iNumber onclick of that thumbnail ... then get the button to grab 'thumb'+iNumber+'.jpg' but it doesn't seem to work. toward the bottom of the code is a comment
//
// Image selection functions
//
this is where I THINK i need to do this ... please help.
code:
http://FuzzyDzygn.com/testing/code.html
Setting The TAB Key -- (advanced)
Hi all,
This code works with FLASH5, but it isnt working with MX. I used to to set my tab arrays. Can anyone tell me why it is not working. This goes in a movie clip that sits on the page. Also on another movie clip I disable the tab key setting a variable to 0 when the user hits the tab key! But the main code..goes like this :
onClipEvent (load) {
fscommand("trapallkeys", "true");
tabOrder = ["_level0.sim1.c1", "_level0.sim1.c2", "_level0.sim1.c3", "_level0.sim1.c4", "_level0.sim1.c5", "_level0.sim1.c6","_level0.sim1.f1", "_level0.sim1.f2", "_level0.sim1.f3", "_level0.sim1.f4", "_level0.sim1.f5", "_level0.sim1.f6"];
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.TAB) {
var focussed = Selection.getFocus();
for (var i = 0; i<tabOrder.length; i++) {
if (tabOrder[i] == focussed) {
currentFocus = i;
break;
}
}
if (typeof (currentFocus) == "undefined") {
Selection.setFocus(tabOrder[0]);
} else {
if (Key.isDown(Key.SHIFT)) {
nextFocus = currentFocus-1 == -1 ? tabOrder.length-1 : currentFocus-1;
} else {
nextFocus = currentFocus+1 == tabOrder.length ? 0 : currentFocus+1;
}
Selection.setFocus(tabOrder[nextFocus]);
}
}
}
Setting MCs _x Variable
G'day FlashKit! Ive got 3 MC's (button1, button2, button3, - all MCs) and one "slider"(MC) that appears from off the stage and slides over until its above the button(MC) the users mouse is over. now I wrote this code, but I need the buttons _x value to be the target _x for the slider on a mouseover for each button. I'm not quite sure how to execute this, or it could just be lack of sleep and/or complete and total brain failure. Any help would be greatly appreciated...
Now this isnt much, and I know its a mess, but heres what code Ive got so far:
================================
maintimeline frame1
================================
//am trying to get the slider to slide across the stage when user rolls over button//
//another problem...??? I need it to start off the stage//
slider.onEnterFrame = function() {
if (slider._x < target) {
speed = target - slider._x;
speed = speed / 4;
slider._x += speed;
}
}
//am trying to establish each buttons _x as the target when theres a mouse over the button//
button1.onRollOver = function() {
button1._x = target;
}
}
button2.onRollOver = function() {
button2._x = target;
}
}
button3.onRollOver = function() {
button3._x = target;
}
}
================================
Thanks
Geoff
Setting Boundaries
ok I have a mc(1) that I have placed another mc(2) in say a ball and I have it to where the ball will follow the mouse. I place the mc on my main stage I want the ball to stay within the boundaries of mc(2)/or be able to set the boundaries to stay within the boxed area if you look at the .fla I uploaded
thanks
Setting The Focus
Does anyone know how to set the focus on a swf file when it is loaded into a browser window without having to click on it and without having a text input window? Thanks.
|