Fixing A MC To Another Moveable MC?
Hello,I am wishing to have the user select a random MC object (the child) and be able to 'attach it' to a specific point on another MC (the parent). When the parent is given the order to move, both it and its child move in the same direction at the same time. I was wondering if there is either a feature that can do this, or a way in actionscript to match their exact x and y velocity with respect to the distance between the center of the parent and child objects.I was thinking that if I gave both the child and parent the same velocity, it would be a solution. However I am unsure of how accurate this solution is. If for whatever reason the parent or childs x or y position is off (even by 0.0001) then this would start to seperate the two objects, which would defeat the goal.Any ideas?Thank you,Cedwyn
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-21-2007, 10:21 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moveable Buttons...help Me Someone
OK, I NEED HELP WITH MOVEALBE BUTTONS... THIS IS HARD (I THINK)!
HERE GOES.....
HOW CAN YOU MAKE A BUTTON MOVEABLE, WHILE STARTING AND STOPPING DIFFERENT MOVIE CLIPS WITH IN DIFFERENT LAYERS? I ENCLOSED A LINK TO THE DEMO, BUT I CAN'T FIGURE OUT HOW TO DO THIS, CAN ANYONE HELP ME PLEASEEEEEEEE
JACKIE :0)
PLEASE EXCUSE GRAMMAR AND SPELLING
http://212.240.121.32/demo_content.htm
Moveable HighLight
Hi,
I am simulating an interactive tv inferface and need to move a selection box round the screen, using flash buttons (up, down, left and right) - The same way the Tab selection works ( can move it round the screen using the cursor keys) but I want to do it with actionscript. I've been trying to figure out the best way to do it, but am getting nowhere fast.
Has anyone got any sugestion on how to do this.
Thanks
Kaan.
Moveable HighLight
Hi,
I am simulating an interactive tv inferface and need to move a selection box round the screen, using flash buttons (up, down, left and right) - The same way the Tab selection works ( can move it round the screen using the cursor keys) but I want to do it with actionscript. I've been trying to figure out the best way to do it, but am getting nowhere fast.
Has anyone got any sugestion on how to do this.
Thanks
Kaan.
Moveable Mask
If you look at the attached file i am playing around with animating masks. what i want to be able to do is this, in the fla a text mask animates in and stops when enlarged. at this point i want to be able to move the mask with the mouse, either by click and drag or simply by moving the mouse from side to side. does anyone know how this can be done?
Thanks.
Moveable Objects...?
Hi there! I was just wondering how I might go about creating a whole bunch of dragable objects within a movie clip? Any help or directiosn to tutorials would be great! thanks a bunch!
Moveable Text
Im creating a shirt designer in flash and i want the user to be able to insert text in one box then when he clicks a button it puts it on the shirt and u can Move it and edit the size, colour and font... Can this be done if so how... if you dont understand what i mean just say an ill re word it...
Thanks pepz Jimmy !!
How Do I Make Objects Moveable?
Hi I hope somebody can help me please.....
What I want to do is be able to move objects around the screen on mouse click....I have a doll and want viewers to be able to dress/undress her in various attire....how do I go about setting that up in FLASH 5??....please remember I'm stoopid
Your Basic Moveable Window
Hello
Does anyone know where I can find a tutorial that teaches how to create a moveable window with a minimize button? Windows style??
Thanks!
Moveable Popup Windows
Hi, I'm not sure if this is a newbie question or not (probably is)
But I have a flash movie that has popup windows, (from symbol not javascript type) and I was wondering if someone could tell me or point me to a place that shows how to make it so that the popup window can be moved around stuff.
Thanks,
Bill D.
Moveable Grouped Objects.
Is there a way to group objects but not have their realtive positions locked together?
I want to have a group of object follow a motion guide...but have them all connected so all I have to do is move the first object and all of the other ones will follow.
I guess an example would be looking at a toy train set from the top.
Thanks in advance.
Moveable Color Slider
Using flash MX
Having problems :~ gurr.
I have a hex color slider and a movie clip on a horizontal scroll, but i can not combine the two. I can get either the color or the scroll to work, but not at the same time.
I'm trying to get the movie clip to change from white to yellow as it is slided along the horizontal bar.
Thanks in advance.
k
Moveable Color Slider
Using flash MX
Having problems :~ gurr.
I have a hex color slider and a movie clip on a horizontal scroll, but i can not combine the two. I can get either the color or the scroll to work, but not at the same time.
I'm trying to get the movie clip to change from white to yellow as it is slided along the horizontal bar. - Any suggestions?!?
Thanks in advance.
k
[F8] Making A Moveable Menu
i have made a movieclip (to act as a menu)
but i want it to be moveable like a windows form
the MC is called "moveMenu"
and i have a button called "moveMe"
any help is highley appriciated (I think i spelled appriciated wrong )
(I just started to do flash for a week so go easy on me )
thanks in advance, Haxory'
[CS3] Make Moveable Pices
Well what i am looking to do is moveable pices in a flash game sorta...
I have made it below, the pices of kermit the frog, i want to be able to click and drag them around. Im not sure what to ask for.
http://darkenchantress.com/Kermit%20the%20frog.swf
I would be greatful if anyone could help me.... Im trying to start off with basics first.
Pop Up Moveable Boxes In Flash?
Hello everyone,
Please could I have some advice or a link to a tutorial on how to make pop up boxes in flash. Is it simple?
Like this site here:
http://basic4.mosaicparty.com/
Thanks for your time
George
Moveable Rotating Sphere
Hi all,
I want to make a user controllable rotating sphere. Exactly the same as the google earth initial view only I dont want to be able to zoom, just spin around using the mouse
I then want to map jigsaw shaped pieces over the sphere for users to click and take them to another page.
Any ideas or help is greatfully appreciated!!!
Inserting An Moveable Image
Hi all, I got a question.
I have a textarea that's created with the following lines:
Code:
attachMovie("Placeholder_mc" , "Page1" , currentDepth);
loadMovie("/fl_newsletter/Textarea.swf", "Page1");
Now, I want to place an image into the text. I'm aware of the html features and I know how to simply add an image tag to the html text of the textarea, but I want to try to do something more.
I would like to try to get full MS-Word insert style of image movement and placement into this.
I realize this is not something that's easy, and I'm really not sure how to go about it.
I was thinking of using some type of overlapping MC and using text extent to maneuver the text around it or something.
Also, I'd like to try to have the ability to re-size the image in addition to selecting the initial size when the insert image button is clicked. I have no idea how to accomplish that.
Note that I'm not uploading any images, the images will be chosen from a combo box that's filled from images the user has already uploaded to my database using another script.
Can one of you guru's spill some of that knoweledge this way and gimme a hand? Please?
Please ask questions if I didn't explain something well enough, I'd be happy to clairify.
Thanks.
How Can Create A Moveable Masking Effect?
Hi there,
I am trying to move a block with a maskinf effect, but when I animate it it doesn't show the image behind it? I also want to make the mask draggable? Does anyone know how to do this? I know it is easy to do this in Flash MX, but I wish to do this in Flash 5.
I am grateful for any help given
Flash Akira
Moveable Flash Movie Within Window?
Hi there...
Just wondering whether this is possible in flash...
In html, you have a cell. In that cell you have a load of text and a few images. If you adjust the height and width of your browser window - the text and images adjust also.
Is this possible in flash?
Thanks for any comments posted.
Cam.
Why Isnt This Moveable Button Not Working
right now i am going thru this video tutorial on how to make a moveable button.... i have did everything it ask me but it wont work. when i click on the button to start drag and move it.... it move all the other buttons on the screen also.... so what i did is pulled up a new window and see if i could do my own from scratch now that button dont move at all. the code is listed below
on (press) {
startDrag(getProperty(_x, _y));
}
on (release) {
stopDrag();
}
Detect Where A Moveable Object Is On Stage?
Hi guys, i have a moveable man in a game. I was wondering how i would detect where he was on the stage. I have tried using hittest with an invisible object but i can't get it to work.
Any ideas?
p.s the stage is split into a grid of 4, i want to detect which part of the grid he is in.
Thanks alot, Dave.
Moveable Symbol With Embedded Buttons
i'm creating an activity based CAL (computer aided learning) program, some of the activities will require a calculator, which i have coded.
what i want to do is somehow have the activities able to load the calculator, and drag it about,
is the best way to do this by making a button on each activity screen that can use a calculator, making the calculator a movie clip symbol and toggling the visible property, then adding actionscript to it to make it draggable?
if so, how would i make it so the calculators buttons still work?
How Can Create A Moveable Masking Effect?
Hi there,
I am trying to move a block with a maskinf effect, but when I animate it it doesn't show the image behind it? I also want to make the mask draggable? Does anyone know how to do this? I know it is easy to do this in Flash MX, but I wish to do this in Flash 5.
I am grateful for any help given
Flash Akira
Constraining Relationship Of Moveable Points
Last edited by scottx : 2003-10-20 at 11:33.
I changed the subject line, although descriptive (as per sticky post above) it appears wildly uninteresting to anyone on this forum, 2 views in 2 hrs. Jeebus.
-------------------------------------------
If no one already knows lets collaberate on a solution:
look at this if you haven't already seen it:
http://www.vectorlounge.com/04_amste...wireframe.html
The wireframe moving skeleton piece. How can this kind of motion be achieved. What sort of math constrains all the points of the skeleton to stay in proper relation to one another? The motion of the skeleton is contrained to a more or less natural motion. I use the word contrained as I am imagining an approach whereby a script controlling the posistioning of the elements is controlling the relationships of a series of key variables. This is likely to be a general description of any solution to this problem. Anyone with info or ideas concerning the specifics?
Something similar is the 'spider' at:
www.uncontrol.com
Obviously this is quite elaborate. I suggest we get something simpler going using the same principles.
scott
How To Create This Cool Effect (3d Background:moveable)
Dear reader,
I've spotted a site what totally took my breath away. http://www.chromazone-imaging.co.uk/flashindex.html
I'm really curious on the techniques that's used for the site to make moveable/3d background. (papervision, actionscript)
Obviously I don't ask for a tutorial and my intention is not to copy this site just to know the Chef's secret.
Thanx in advance
Moveable Mask After Blur Filter... Stops Moving
Okay, I have a bunch of pairs of images. And I have a custom cursor with a mask inside that displays alternate versions of the images by being a mask to them. All works beautifully, until I use a blurFilter transition to fade between one image to the next.
All the images get loaded before the mask is set, and I've narrowed the problem to the blur filter. What's happening, is that once I apply the blur filter, the mask seems to stop moving. The movieClip that it's nested in moves fine though. Basically, for a few seconds after I apply the blur, the mask works, but then it just stops moving and only displays the one location where it was when it stopped moving. If I don't apply the blur filter everything works fine. No problems at all...
Anyone encountered this before or have any thoughts? I'm stumped...
Fixing The IE Bug....
I'm currently trying to fix the problem that IE has with flash.
I got a free tutorial how to fix it from (cartoonsmart.com, the free tutorial is here http://www.cartoonsmart.com/change_code.html ) and what I need to do is to put a file called "FlashObject.html" inside the "Macromedia FLash MX 2004 > First Run > HTML" folder.
When I put the file inside this folder and go to "Publish Settings" to chose the new "FlashObject.html" setting, an error message pops up saying:
==============ERROR================
"An invalid template file ( FLashObject.html ) has
been found in your HTML folder"
==================================
On his video it works fine, however it doesn't work when I do it but I need to chose this setting to correct the IE problem. Does anybody know how to make it recognize the file?
Any help would be great,
Thanks.
Can Anyone Help Me Fixing This Please.. ?
In the code below, the setInterval call runs it only one time .. don't know why..
================================
var xx = new Array(20,40,60,80);
var x = 0;
MovieClip.prototype.rectangle = function(w, h, x, y, stroke, fill) {
this.lineStyle(stroke.width, stroke.color, stroke.alpha);
this.beginFill(fill.color, fill.alpha);
this.moveTo(0, 0);
this.lineTo(w, 0);
this.lineTo(w, h);
this.lineTo(0, h);
this.endFill();
this._x = x;
this._y = y;
this._rotation = 180;
trace(this);
//this.onEnterFrame = function()
//{ this._y += (300-this._y)/3;}
}
this.createTextField("t1",100,-100,-100,30,20);
this.t1.text = "";
drawshape = function(i)
{
var i = x;
sid = "c"+i;
trace(sid);
this.createEmptyMovieClip(sid, i);
var cstroke = {width:1, color:0x0000aa, alpha:50};
var ccolor = {color:0xcc0000, alpha:50};
this[sid].rectangle(10, xx[i], xx[i], 30, cstroke, ccolor);
x++;
if(x>xx.length)
clearInterval(sqrInterval);
}
sqrInterval = setInterval(drawshape(),1000,Number(x));
Thanks for your help.
Tab Fixing In Flash Mx
Hy guys just a small question, I've downloaded a movie from this board which should fix the problem of tabbing....the thing is that it doesn't work with flash MX, it does for flash 5 (which it was done with) but nothing with MX.
So is there a tutorial, or movie that explain how to build something with flash MX??
TIA
Giano
Code Fixing
does any one know how to finish this code?
onClipEvent (load) {
gravity = 9;
scale = _xscale;
walkSpeed = 8;
maxjump = 1;
Attack_1 = 4
}
onClipEvent (enterFrame) {
if (air == true) {
_y += gravity;
state = 3;
}
if (Key.isDown(Key.LEFT) && !_root.leftbound.hitTest(_x, _y, true)) {
_x -= walkSpeed;
_xscale = -scale;
}
if (Key.isDown(Key.RIGHT) && !_root.rightbound.hitTest(_x, _y, true)) {
_x += walkSpeed;
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(Key.UP) && jump == true) {
_y -= jumpSpeed;
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(Key.UP)) {
jumpcount += 1;
}
if (jumpcount>maxjump && jumpSpeed>-2) {
jumpSpeed -= 2;
}
if (air == false && !Key.isDown(Key.LEFT) && !Key.isDown(65) && _currentframe<4 or air == false && !Key.isDown(Key.RIGHT) && !Key.isDown(65) && _currentframe<4) {
state = 1;
}
if (Key.isDown(Key.LEFT) && air == false && !Key.isDown(65) && _currentframe<4 or Key.isDown(Key.RIGHT) && air == false && !Key.isDown(65) && _currentframe<4) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
onClipEvent
if (Key.isDown(55)
gotoAndPlay(4)
)
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
Fixing Code [F8]
Hi guys,
I know that it might appear as a strange request but if you could help me I'll appreciate it.
Now the point is that I needed a script which would read the content of a folder storing some images for creating a gallery. I've used the following php script to read the directory: <?php
$dir = "../images/".$cartella."/";
//$dir = 'path/to/the/directory';
$numfiles = 0;
if (is_dir($dir)) {
if ($openDir = opendir($dir)) {
while (false !== ($file = readdir($openDir))) {
if ($file != '.' && $file != '..') {
if (is_file($dir . '/' . $file)) {
$f = explode('.', $file);
$ext = array_pop($f);
if ($ext == 'jpg') {
echo "&filename$numfiles=$file";
++$numfiles;
}
}
}
}
}
closedir($openDir);
}
?>
At this point I needed to pass a variable called 'cartella' from flash which created the stumble point. After different tries I've came up with this solution :
var lv = new LoadVars();
lv.onLoad = function(ok) {
if (ok) {
var i = 0;
while (this["filename"+i] != undefined) {
trace(this["filename"+i]);
++i;
}
} else {
displai.htmlText += "ERROR";
}
};
cartella = "mock";
lv.load("flash/read.php?cartella="+cartella, "POST");
Now, don't take me bad for this, it works but somehow I don't feel fully satisfied with it. Could you have a look to the AS and point me which would have been the right way (if any) to write the code? Especially in the 'load' bit!
Thanks for your time
Giano
Help Fixing Errors
Hi.
Would anyone be willing to help me figure out what is wrong?
I have written a try...catch...finally blocks of code to catch this
error in my swf I created:
Error # 2044:Unhandled IOError Event:. text = Error #2036: Load Never Completed.
Still, the preload animation/progress bar isn't finished running when the main movie appears on stage.
The Finally statement is in the output window yet the error message still show up.
Any help would be greatly appreciated.
Fixing Autoformat?
Occasionally my autoformat tool breaks and says there's an error near a certain line. The code is typed properly and works, but i can't get the autoformat tool to work without ripping the code out...i can't even retype it or it will return! It makes no sense. The code has been working fine and has been untouched and then just breaks. how do i fix this without starting from scratch?
Fixing Prob
so how do i import my images without flash mx quitting and disappearing...it seems to be fine in mx2004.i would use 2004 but it aint backwards compatible with the college computers since they use 2002 boo hoo.
regards apoc
Fixing Eval() In AS3
I have recently purchased a flash app from Flash Den. It is written in AS1/AS2 and I need it to be in AS3. Here is the code that I need to change:
I know that "random" needs to be changed to "Math.random" and "_parent" to "parent" but anything beyond that is beyond me. The problem that I am running into is the "eval()" class. How do I fix that since it doesn't exist in AS3?
___________________________________________________________
Attach Code
stop();
//==========_POSSIBLE_ACTIONS_==============================
//
function func_ACTION_1(p_Choice) { // Fluff...or...wait and then make a flight choice
if(p_Choice < 15) {
play(); // 0 to 14 = wait instead of fluff
} else {
gotoAndPlay("frm_FLUFF");
}
}
//
function func_ACTION_2(p_Choice) { // Fly away...or...start decision process again
if(p_Choice < 50) {
gotoAndStop(1); // 0 to 49 = wait instead of fly away (this action is called on frame 34)
} else {
this._parent.gotoAndPlay("frm_BIRD_FLY");
}
}
//==========_CHOICE_FUNCTION_==============================
//
function func_RANDOMIZE(p_MaxNum, p_FuncNum) {
v_BirdChoice = random(p_MaxNum); // Random number between 0 and whatever number is set in the "INIT_BIRDS" section
v_FunctionCall = "func_ACTION_" + p_FuncNum; // Creates the name of one of the functions above
//
eval(v_FunctionCall)(v_BirdChoice); // Calls the function and sends the chosen random number as an argument
}
//==========_CALLS_==============================
//
func_RANDOMIZE(this._parent.v_FluffChance, 1); // Start decisions right away
Help Fixing My Menu
Check out my menu: http://home.no.net/pnonline/index2.htm
Is there a way for me to make the blue thing follow the mouse on instead of just popping up. like when i drag the mouse from one link to another, it will slide?
Fixing Errors
cant get rid of my errors...can someone help...
PHP Code:
package {import flash.display.MovieClip;import flash.utils.Timer;import flash.ui.Mouse;import flash.events.*;public class main extends MovieClip { public var myTimer:Timer; public var myEnemy:Array = new Array(); public function main() { trace("TEST"); myButterfly = new butterfly4(); addChild(myButterfly); Mouse.hide(); myButterfly.startDrag(true); myTimer=new Timer(60); myTimer.addEventListener(TimerEvent.TIMER,moveEnemy); myTimer.start(); for (var i=0; i < 20; i++) { myEnemy[i]=new enemy3(); this.addChild(myEnemy[i]); myEnemy[i].x=Math.random() * 1024; myEnemy[i].y=Math.random() * 768; for (var i=0; i < 20; i++) { myEnemy[i].x += 1 myEnemy[i].y += 1 myEnemy[i].addEventListener(MouseEvent.CLICK,clickMe); } } public function moveEnemy(e:TimerEvent) { for (var i=0; i < 20; i++) { if (butterfly4.hitTestObject(myEnemy[i])){ var myEnd = new ending(); this.addChild(myEnd); } } } public function clickMe(e:MouseEvent) { }}}
Fixing Up Pixelation
With imported bitmaps with transparency, I am getting a rather heavy pixelated edge. The file is a psd with transparency and looks great on the Flash stage but when published its quite pixelated.
Any idea how to work around this?
Thanks
Rich
::: FLA For Fixing - Hit Test Needed :::
i've got this project that i just can't get a hit test working on.
i want the scene 1 to jump to frame 3 when the 'guy' object hits the 'dynamite' object. i have tried MANY ways but can't get it done. if anyone wants to help me out (i'm major newbie) you can download the .fla and see if you can do it.
thanks for checking it out
let me know what you think
cal
www.callumations.tk
www.animootions.tk
Fixing The Size Of A Swf Movie?
Hi guys,
Can anyone tell me if you can fix the size of a swf movie so it always plays at 100% and people cannot freely scale the movie or reduce the size??
Thanks
Fixing A Movable MC Array
Hi all, I am working on creating a "space invaders" type game here, I found a tutorial on this game type here http://video-animation.com/flash_14.shtml
well the problem I am running into is I can get the "aliens" lined up in rows and columns when it starts out but when it runs into the stage edges, the rows get shifted to where they no longer line up "like the orginal space invaders do when it hits the edges of the screen". I know it has to do with the "i" variable but I cant seem to correct the alignment problem, The tutorial has this problem as well as his aliens dont line up in neat rows and columns either, I have also included the zip file I am working on for this game, I am using just shapes for MC till I get the code laided out, then I will pretty it up with gfx, this makes for a much faster testing and debugging, not to mention if I need to upload the file (such as in this case)
here is the code for the alien setup
any help in this would be appreicated. D-Wiz
stop();
var bombNum = 0;
var lives = 3;
var score = 0;
var speed=10;
this.playBtn.onRelease = function(){
gotoAndStop(2);
}
//---------INITIALISE ALIENS-------------//
_global.initAliens = function(mc) {
depth = 0;
for (var i = 0; i<3; i++) {
for (var j = 0; j<5; j++) {
attachMovie(mc, mc+i+j, 100+depth);
_root[mc+i+j]._x = j*60;//controls clearance and placement of mc instants for X
_root[mc+i+j]._y = i*60;//controls clearance and placement of mc instants for Y
depth++;
}
}
};
//-------MOVE ALIENS-----------------//
_global.moveAliens = function(mc, frame,alspeed) {
// count the dead baddies
_root.deadcount = 0;
// loop through baddies
for (var i = 0; i<3; i++) {
for (var j = 0; j<5; j++) {
// move horizontal
_root[mc+i+j]._x += speed;
// check if aliens hit defender
if(_root[mc+i+j].hitTest(_root.defender)){
cleanup(mc);
_root.gotoAndStop(1);
}
// check if any aliens left alive
if (_root[mc+i+j] != null) {
++_root.deadcount;
}
// -------test bullet hit
bulleti = 6;
while (--bulleti>0) {
if (_root[mc+i+j].hitTest(eval("_root.bullet"+bulleti))) {
_root[mc+i+j].removeMovieClip();
eval("_root.bullet"+bulleti).removeMovieClip();
_root.score += 1;
}
}
// hits left wall
if (_root[mc+i+j]._x<0) {
// set direction to right
speed = alspeed;
// drop down
dropdown = true;
break;
}
// hit right wall
if (_root[mc+i+j]._x>Stage.width) {
// set direction to left
speed = -alspeed;
// drop down
dropdown = true;
break;
}
}
}
// drop down all the rows
if (dropdown) {
for (var i = 0; i<3; i++) {
for (var j = 0; j<5; j++) {
_root[mc+i+j]._y += 20; //dropdown amount when MC hits edges of stage
}
}
}
// reset flag
dropdown = false;
// if all aliens are dead
if (_root.deadcount == 0) {
// go to next level
_root.bombspeed = 0.0;
_root.gotoAndStop(frame);
}
};
//----------CLEAN UP --------//
_global.cleanup = function(mc) {
_root.bombspeed = 0.0;
for (var i = 0; i<3; i++) {
for (var j = 0; j<5; j++) {
// move horizontal
_root[mc+i+j]._visible = false;
}
}
};
Fixing Window Size
I am using the following code to open a new window
on (release) {
getURL("title.html", "_blank");
}
How do I set the size of this widow?
[F8] Help Fixing My Flash Project
i have this project where i am trying to load a txt file in to a dynamic text box by entering the txt files name in to a input box and whatever filename is in the input box thats what it loads (if it's in the same folder as the swf).
Heres the script i am trying to use.
Quote:
on (release) {
var txt_loader:LoadVars = new LoadVars();
txt_loader.load(filename+".txt");
txt_loader.onData = function(src:String)
{ if (src != undefined)
{yourtextbox.text = src;}
}
}
a zip is attached just to help.
Fixing Size Of Swf In Browser ?
hi,
i have got a full flash website and it will be fullscreen in browser.
its orginal size is 900 x 600. i put it in a html file and i make height and weight %100.
when swf 's height and weight %100 in html there is no scroolbar will show in browser.
its ok. but, if size of browser smaller then 900 x 600 i want no more scaling down for swf, fixing swf 's size to minimum 900 x 600 and showhing scroolbar in browser. please help me thx ...
Fixing Size Of Swf In Browser ?
hi,
i have got a full flash website and it will be fullscreen in browser.
its orginal size is 900 x 600. i put it in a html file and i make height and weight %100.
when swf 's height and weight %100 in html there is no scroolbar will show in browser.
its ok. but, if size of browser smaller then 900 x 600 i want no more scaling down for swf, fixing swf 's size to minimum 900 x 600 and showhing scroolbar in browser. please help me thx ...
Fixing Input Text
I am having a problem with a program that is supposed to take the user's name and output a greeting. I used an input text field that saves the input to a var called username. When I used a dynamic text field to output the name, I came up with this: "<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Bucky24</FONT></P></TEXTFORMAT>"
Obviously, I don't want all that other crap, because this data will be used for more than greetings, such as tracking where the user goes on my flash site. Is there a fairly easy way to get rid of all the other stuff and just leave the name?
Fixing Alpha Blink?
Hi all!
I was having some trouble with a loadMovie script that has two MC instances that it loads to. Basically, the script is setup to load random external swf files from an array. It fades the top instance (movietarget) to the one below it (movietarget2), and once it's alpha is at zero it copies the bottom instance to the top and loads a random new swf underneath it to start fading to all over again.
The problem is that I need this to look smooth, and when it's done fading the top image and it's ready to copy the new bottom one I just set it to change the alpha of the top instance to 100. It has a long white blink when it does this.
Do I need to setup a preloader for the swf I'm going to show? Any help is much appreciated!
-----------files----------------
http://web.ics.purdue.edu/~mwallac/ECO/Swap1.swf
pay no attention to the red text, I was just using that to test different variables
http://web.ics.purdue.edu/~mwallac/ECO/Swap1.fla
if you want to test it with the images (which are in swf form) just get this zip
http://web.ics.purdue.edu/~mwallac/ECO/images.zip
Help Fixing My Increment And Then Loop
I am almost there I think. I am using the FUSEKit to fade in and out clips from an array.
The fade in and fade out cycle works fine for the first item in the array, however it doesn't increment like it should to fade in and out the next clip from the array.
The code is basically just using an onClipEvent to see if the current clip has hit either 0 or 100 alpha and then playing the next fade in or out function after that point.
Any clue why it doesn't increment? It should finish the cycle, move to the next array item, and then when they are all done go back to the first item, infinitely.
Thanks!
Neil
Code:
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);
function tweenStartF(box1, box2, box3) {
for (var k in mcArray) {
mcArray[k]._alpha = 0;
}
mcArray = new Array(box1, box2, box3);
for (var k in mcArray) {
mcArray[k]._alpha = 0;
}
n = 0;
tweenIn(n);
}
function tweenIn(n) {
mcArray[n].alphaTo(100, 2, "easeOutBack");
this.onEnterFrame = function() {
if(this._alpha == 100){
tween1Out(n);
delete this.onEnterFrame;
}
}
}
function tween1Out(n) {
this.alphaTo(0, 4, "easeInBack");
this.onEnterFrame = function() {
if(this._alpha == 0 && n<mcArray.length-1) {
n++;
tweenIn(n);
delete this.onEnterFrame;
} else {
n = 0;
}
tweenIn(n);
}
}
tweenStartF(box1, box2, box3);
|