Background Prob
I got some problems with making cool backgrounds; I don't know how to do a changing color background, like the bottom left change first and after 5-10 layer, the color go to the top right corner. And how do we do that changing background type, but not all the background, just like half of it separated by a line, a curving one...
Next question; how do we do a drawing line? A continuous line who apear smoothly.
FlashKit > Flash Help > Flash Newbies
Posted on: 03-25-2003, 10:49 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Transparent Background/ XML Code To Change The Background Colour
Hi,
In a bit of a pickle here; I need a way to insert a swf file into any color background website, so it automatically matches up.
Now, can one make the swf files background transparent? And match the background of any given websites background?
Or, can one use some sort of XML file and simply change this xml file to match the background color of the website?
Now, what if the website uses a particulare pic background? How would one match this?
As usual folks, I am stuck between a rock and a hard place, so any help deeply apprecaiteed!
Kind Regards,
Boxing Boom
HTML Background Matching Flash Background
Hey, I have a flash website that opens as a pop up, the pop auto fullscreens. The background in the flash document is a gradient, and I have a gradient in the background of the html. My question is how would I get the background of the HTML to always match up with the flash background using a percentage?
www.flippingsweet.net/index2.html
Printing A MC With White Background, Not Stage Background?
I’m trying to print a movieclip with a white background while keeping the stage background black. The movieclip, printResults_mc has a white rectangle in the bottom layer, 850 pixels x 1100 pixels. The following function scales printResults_mc to the printer’s printable area but because it’s impossible to predict the aspect ratio of the printable area some black background always leaks out. I tried making the white background 20 pixels larger than I need (870 x 1120) and then setting a crop rectangle in addPage of (10,10,850,1100), no luck, the black stage background just fills in the area outside the crop. A simple solution would be to temporarily set the stage background color property to white, print, then set it back to black, but I can’t find any such property. Anyone have some ideas?
Attach Code
function printResults(e:MouseEvent):void {
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
var pageMargin:Number = 0;
if (result) {
prepPage();
var cropRect:Rectangle = new Rectangle(pageMargin,pageMargin,printResults_mc.width-pageMargin,printResults_mc.height-pageMargin);
printResults_mc.width = myPrintJob.pageWidth;
printResults_mc.scaleY = printResults_mc.scaleX
myPrintJob.addPage(printResults_mc,cropRect);
myPrintJob.send();
} else {
//User does not have printer or user canceled print action
};
}
Transition Problems - Background To Background
my problem is, when click on the button to make a background go away ( fade out ) and another fades in...there is a quick blip or jump when it should be a very smooth transition from one to the other.
can anybody help me with this problem? the file is attached.
oh yeah, click on the red buttons toward the buttom to see the problem.
Transition Problems - Background To Background
my problem is, when click on the button to make a background go away ( fade out ) and another fades in...there is a quick blip or jump when it should be a very smooth transition from one to the other.
can anybody help me with this problem? the file is attached.
oh yeah, click on the red buttons toward the buttom to see the problem.
Transition Problems - Background To Background
my problem is, when click on the button to make a background go away ( fade out ) and another fades in...there is a quick blip or jump when it should be a very smooth transition from one to the other.
can anybody help me with this problem? the file is attached.
oh yeah, click on the red buttons toward the buttom to see the problem.
MC Prob
Got a litlle prob with my buts and mc's
In my Navigation MC are 5 buttons
Each button should activate a different MC.
on the first frame of those Mc's is just a stop, the animation begins at frame 2.
So its instance in the NavigationMC is invisible and is called 'scherm'.
why doesn't this work;
on (release) {
_root.scherm.gotoAndPlay (2);
}
-next prob:
When I place those MC's WITHOUT a stop in the Navigation MC,
they start playing WITHOUT activation on the butts. THEY PLAY MUCH SLOWER as in the .fla !!!!!!!! (22fps)
Has this something to do with the fact that there isn't a loader in the movie yet?????
thx for the help
Xml Prob
im loading an xml file into my movie. it works fine. When i publish my movie as an HTML, it won't load the xml file. Why?
Prob With 2 MCs
Hi
I have created an expand/colapse menu with buttons.
The menu isnt the problem, my problem is trying to get one of the buttons to play a certain frame of another movie clip. I have tried almost everything i can thing of...
can anyone help me???
-thanks
>-MORE INFO-<
-the menu is a movie clip on the stage named (expanding menu)
-the second movie clip is also on the stage, in the same layer and named (Content)
An AS Prob
hey guys check this script and tell me whats wrong with the movements (the AS tween is fine but the "on release" is not working good. it moves only 1 way!!!)
Code:
onClipEvent (load) {
pro = {sn:0, rr:0, gg:0, bb:0};
}
onClipEvent (enterFrame) {
ph = [0.1, 0.5];
xs = ((endx-(this._x))*ph[0])+(xs*ph[1]);
this._x += xs;
}
onClipEvent (mouseMove) {
this.onRelease = function() {
acted = true;
if (acted = true) {
i = 6;
xp = 10;
while (i <> pro.sn) {
_root["mtb"+i].endx = xp;
xp += _root.pro.dbb;
_root["mtb"+i].acted = false;
i -= 1;
}
} else {
i = 1;
xp = 630;
while (i <> pro.sn) {
_root["mtb"+i].endx = xp;
xp -= _root.pro.dbb;
_root["mtb"+i].acted = true;
i += 1;
}
}
};
}
Can This Be Done (prob XML)
Okay, here's the situation...
I have a website which demonstrates over 200 martial arts techniques, a page for each one, with so many pics and a caption for each pic.
At the mo they're all individual HTML files, i'm now porting my site to Flash.
In my new Flash site i load in external swf's into a mc.
Would it be possible to have all my techniques stored as XML files (saying how many pics, and which caption goes with which pic), and use just one swf (sending in a parameter for which technique to display) that creates the right amount of pics (as determined by the XML files) and put the captions in the right place?
It sounds like a biggy and prob won't know myself until i get half way through it. just don't wanna get that far then suss out it can't be done.
Any guidance would be nice too, maybe tutorials that will speed me along. I have a limited knowledge of XML.
Thanks for any help guys,
Robsco!
I Got An Prob
look i want to make an flash movie of the top 100 most sexy woman now i'm at nr 80 ( started at 100 ) and my .swf is already 778 kb b/c of all the pics ,schould i upload the rest in difrent movie clips ore should i just make an vey cool preloader ( that nevers works )
Prob
Is there any way to see an inputtype textfield when it is not horizontal.
I want to place in vertical and, there seems to be no way I can see the text.
can someone help me
Has Anyone Had This Prob?
I need to display text from an external txt file so the site is easy to update. I have a simple txt scroller that enables me to do this and works perfect, until I place it within another movie file then the scroll stops working. Why is this?? Can anyone help!!
Little Help With This Prob Please
i've attached my .fla file with this post so that it would be easier to understand.
ok (assuming you opened the file), Once you have dragged the yellow circle and it opens up in the 'bigger circle' the green rectangle will show up. Now i want it so that when u press the green rectangle, it would go to frame 11 so that it will extend the yellow circle.
for some reason it won't work, maybe something to do with a button inside a movie clip? im not sure about this.
Can anyone help me in making it work please?
thanks much appreciated.
Anyone Come Across This Prob ?
Hi,
I have had some serious problems in getting Loadvars() to work. Recently I have completed a site in MX with backend php & mysql, but I have had to use the old loadvariables() action.
I had thought that I was doing something wrong, and today I have gone over all the tutes, searched all the threads, done a very good tute at MM, but the darn thing (loadvars() that is) still will not work on my PC. In desperation I downloaded a file from this thread (which was posted by cyanblue), the file is simple enough, explains well the difference between loadvariables() & LoadVars(). I changed the http://www.address and placed the files on my server , and, loadvariables works and loadvars() does not.
Has anyone come across this problem before. Is it something to do with the settings on my PC ? Does anyone have any ideas whatsoever - please? If you click here you can see cyans file in action, I am certain there is absolutely nothing wrong with his code - help please !!!
Vosgien
For Or While Prob
why does this not work? Can I not pass the value of "total" to the for loop and increment it up to its value? Al it seems to be doing is is an endless loop.
copy = new LoadVars();
copy.load("hwp.txt");
copy.onLoad = function(success)
{
if (success)
{
trace("total = "+copy.total);
for (var i=1; i <= copy.total; i++)
{
trace(i);
}
trace("done loading");
þ;
}
else
{
trace("not loaded");
}
};
Any One Can Help On A Prob.
I want the follow tasks .
if time is 12:00 pm play file1.mp3
if time is 12:05 pm play file2.mp3
if time is 12:10 pm play file3.mp3
The mp3 files are not the some length some of them are 20 seconds.
some of them are 3 seconds. noone is more than 1 minute duration.
My problem is i check every 10 seconds the time.
when i play a small mp3 smaller than 10 seconds everything is ok.
but if the mp3 file is bigger than 5 seconds then flash stops my mp3 file
if i use a stop(); command then flash play the mp3 file until the end but never return to check the times again.
any idea?
how can i tel flash to wait Until the mp3 file is played and then continue the time check .
Prob With Nav
Ok, I'll try to do my best to explain this. I also attached a fla file just in case.
I have three MC's called nav_mc, menu_mc and experiment_mc. When I rollOVer the menu_mc, the nav_mc is called and takes place of the menu_mc. Inside the nav_mc is the experiment_mc (which is a button). When I click on experiment_mc, the menu_mc is called back into place and the nav_mc fades away. My problem is when I rollOver the menu_mc again, the nav_mc doesn't re-appear.
Any help will be greatly appreciated
ActionScript Code:
nav_mc.onEnterFrame = function() {
if (this._alpha>0) {
this._alpha -= 5;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
an example of what I'm trying to do http://www.milla.de
Prob 2
Well the answer to 1 worked. Thanx.
But I'm still having trouble with prob 2... any help?
Prob With AS
im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest.
ive typed in
Quote:
onClipEvent(enterFrame) {
Mouse.hide();
startDrag(this,true);
}
for the cursor and that works fine and ive typed in this on the cursor's AS for the hitTest and it doesnt seem to work
Quote:
onClipEvent(enterFrame) {
if (this.hitTest(_root.wall)) {
this.stopDrag();
}
}
i cant seem to get it working so if someone could help me it would help
thanks in advance
Prob With Nav
Ok, I'll try to do my best to explain this. I also attached a fla file just in case.
I have three MC's called nav_mc, menu_mc and experiment_mc. When I rollOVer the menu_mc, the nav_mc is called and takes place of the menu_mc. Inside the nav_mc is the experiment_mc (which is a button). When I click on experiment_mc, the menu_mc is called back into place and the nav_mc fades away. My problem is when I rollOver the menu_mc again, the nav_mc doesn't re-appear.
Any help will be greatly appreciated as I'm new to flash and this is all a great learning experience.
Code:
nav_mc.onEnterFrame = function() {if (this._alpha>0) {this._alpha -= 5;}
else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
Btn Prob
having probs with hiding btn when it reaches the end of MC.
it's not working.
Code:
hidenext = function () {
if (loc>slider_mc._width-335) {
_root.nextMC._alpha = 0;
}
};
Prob 2
Well the answer to 1 worked. Thanx.
But I'm still having trouble with prob 2... any help?
Prob With AS
im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest.
ive typed in
Quote:
onClipEvent(enterFrame) {
Mouse.hide();
startDrag(this,true);
}
for the cursor and that works fine and ive typed in this on the cursor's AS for the hitTest and it doesnt seem to work
Quote:
onClipEvent(enterFrame) {
if (this.hitTest(_root.wall)) {
this.stopDrag();
}
}
i cant seem to get it working so if someone could help me it would help
thanks in advance
Help Mi............actionscript Prob.
ok i wan a user to enter an array of input...
this "input array" will be checked with an existing array..
EG.
User's array : 5,4,8,4,1
Existing array: 1,2,3,4,5
as u can see the user's array and Existing array doesnot
match at all..
WEN this happens the result is a "False" but wen the User input "tallys" with the existing array...
EG.
User's array :1,2,3,4,5
Existing array:1,2,3,4,5
Then this would return a "true" value
So u see as long as 1 element from the user's array doens't tally with the existing array ,even 4/5 of them is correct, it would return a "false" value....
pls help me..someone..
i am not gd in c at all....pls
Hello Having A Prob With _x And _y Position
Hello everyone, can anyone shed some light on this problem I'm up against. I've loaded in a movie with 'LoadMovieNum' but when I try to position it using the getproperty _x and _y command it goes terribly pearshaped. It just ignores it.
My script is
on (release) {
loadMovieNum ("movie1.swf", 1);
setProperty ("movie1.swf", _x, 300);
setProperty ("movie1.swf", _y, 300);
}
it just doesn't seem to recognise the script, have I done some stupid? Would anyone be kind enough to help me out?
thank you
Crusty
LoadMovie Prob
in my site in portfolio, i use load movie commands,
BUT
the width and height of movies i load, are bigger as those of the main site,
so the lowest part of the loaded movie will not be visible
how can i load a movie in a new window or something else?
check it, in portfolio
http://users.skynet.be/digizone/
Function Into MC Prob
Hello,
I'm trying to load a movie into a MC. The movie contains function for a dynamic slider. I can get the variables worked out so that everything works but the slider. Is there something I need to addd to the function to make it work in the MC?
This is a study of rotation in Actionscript.
Example....("cyclone" is the MC I am trying to load the movie into.
Movie to be loaded......
Function in frame 1...
function sliderMoving (whichSlider, howMuch) {
if (whichSlider == "_root.cyclone.earthRev") {
_root.cyclone.world.rpm = howMuch/100*50;
_root.cyclone.world.update();
}
if (whichSlider == "_root.cyclone.earthRot") {
_root.cyclone.world.earth.rpm = howMuch/100*50;
_root.cyclone.world.earth.update();
}
}
Ball(earth) actions... (rotates around "sun")
onClipEvent (load) {
rpm = 25;
// HARD WIRED
function update () {
radsPerSecond = (rpm*Math.PI*2)/60;
}
update();
centerY = _root.cyclone.sun._y;
centerX = _root.cyclone.sun._x;
radius = Math.sqrt(Math.pow(Math.abs(_root.cyclone._x-centerX), 2)+Math.pow(Math.abs(_root.cyclone._y-centerY), 2));
}
onClipEvent (enterFrame) {
now = getTimer();
radians = lastRad+(radsPerSecond/(1000/(now-lastTime)));
lastTime = now;
lastRad = radians;
_x = centerX+Math.cos(radians)*radius;
_y = centerY+Math.sin(radians)*radius;
}
The, on the "smartslider" this.....
onClipEvent (mouseMove) {
if (drag == 1) {
_parent.moveSlider();
_root.cyclone.updateAfterEvent();
}
}
Then, "simpleslider" this.......
on (press) {
_root.cyclone.offsetX = _x-_parent._xmouse;
drag = 1;
}
on (release, releaseOutside) {
drag = 0;
}
Everything works with this code when loaded except the sliders. Anyone see something I am missing?
Thx in advance
~GD~
Simple Prob...help?
I have 6 variables
a1 through a6
Holding a number 1 through 6
I want to do this eg:
a1 = 1
a2 = 2
a3 = 3
Right...now I want to add those numbers
so I've a button
on(release) {
total=(a1+a2+a3);
}
of course this concat's the strings....how do I get it to total the numbers?
Something to do with converting a1 from a string to a number or different data type right?
Swish Prob
Hi!
Ich have a problem with my swish flash movie:
When its playing in the editor its works fine! But! when i use the tryout with browers function, the movie loses all colour, and all the text turns into gibberish! Example:
"Clan" turns into "Yxzc" or something completely random everytime! I tried different fonts but that didnt work!
It does the same when i turn it into a flash movie!
Please Msg me per email or ICQ! Or just post here!
Thx for your time!
Not A Prob Just A Question.
Hi and thanx 4 taken the time 2 read this =)
anway the Question is in site like http://www.designinsites.com/flashintroindex.htm
and many other`s i goto how do the Designer`s get there Graph`s so small and Accuret.
Do they use 3party tool`s 4 all there Graph`s B-4 putting them into FLASH.
Or R they created in FLASH ?
thanx again
=)
Resolution ? Prob ?
my resolution is 1024 by 768
if I make a site in this res and look at is in 800 by 600 then
it doesn't look that good
I saw sites and when I looked at them in 1024 by 768 I saw 2 (I think tables) left and right from the axciall page
when I looked at it in 800 by 600 I didn't saw those rands ?
how do I do that ??
that people can view my site perfectly in 800 by 600 and also in 1024 by 768 without making the site 2times ?
Unloading Prob
Hi!
Can anyone help solve a unloading problem.
I have a site with many movie clip and buttons.
On some plug in version or browers the movie clips do not unload so the movie clips overlap.
This is the basic scripting i use on each button
On (Press)
Load Movie ("kid.swf", 4)
Unload Movie (2)
Unload Movie (3)
Unload Movie (5)
Unload Movie (101)
Unload Movie (102)
Unload Movie (103)
Unload Movie (104)
Unload Movie (105)
Unload Movie (106)
Unload Movie (107)
Unload Movie (108)
Unload Movie (109)
Unload Movie (110)
Unload Movie (112)
Unload Movie (113)
Unload Movie (111)
Unload Movie (114)
Unload Movie (115)
Unload Movie (116)
Unload Movie (117)
Unload Movie (118)
Unload Movie (119)
Unload Movie (120)
Unload Movie (121)
Unload Movie (122)
Unload Movie (123)
Unload Movie (124)
Unload Movie (125)
Unload Movie (126)
Unload Movie (127)
Unload Movie (128)
Unload Movie (129)
Unload Movie (130)
Unload Movie (131)
Unload Movie (132)
Unload Movie (133)
Unload Movie (134)
Unload Movie (135)
Unload Movie (136)
Unload Movie (137)
Unload Movie (138)
Unload Movie (139)
Unload Movie (140)
Unload Movie (141)
Unload Movie (142)
Unload Movie (143)
Unload Movie (144)
Unload Movie (145)
Unload Movie (146)
Unload Movie (147)
Unload Movie (148)
Unload Movie (149)
Unload Movie (150)
Unload Movie (201)
Unload Movie (202)
Unload Movie (203)
Unload Movie (204)
Unload Movie (205)
Unload Movie (206)
Unload Movie (207)
Unload Movie (208)
Unload Movie (209)
Unload Movie (210)
Unload Movie (211)
Unload Movie (212)
Unload Movie (213)
Unload Movie (214)
Unload Movie (215)
Unload Movie (216)
Unload Movie (217)
Unload Movie (218)
Unload Movie (219)
Unload Movie (220)
Unload Movie (221)
Unload Movie (222)
Unload Movie (223)
Unload Movie (224)
Unload Movie (225)
Unload Movie (226)
Unload Movie (227)
Unload Movie (301)
Unload Movie (302)
Unload Movie (303)
Unload Movie (304)
Unload Movie (305)
Unload Movie (306)
Unload Movie (307)
Unload Movie (308)
Unload Movie (309)
Unload Movie (310)
Unload Movie (311)
Unload Movie (312)
Unload Movie (313)
Unload Movie (315)
Unload Movie (316)
Unload Movie (317)
Unload Movie (318)
Unload Movie (319)
Unload Movie (320)
Unload Movie (321)
Unload Movie (322)
Unload Movie (323)
End On
Please can any body help?
thanks
wil
Formmail Prob....
Hi,
I'm trying to get my Formmail-mc working, there is only one mayor problem...offline it's working fine... it even sends mail, but when I upload it to my own server it stops working.
I've tried to work from my server with a pure HTML file and a form, that did work. (I thought my script was idle, but it works)
So bottomline is: My MC is working everywhere, but not online?
All the action is here... I've tried two options one with GET and one with POST (POST is working, GET not)
loadVariables ("http://scripts.ladot.com/cgi-bin/formmail/formmail.pl", "", "POST");
What's going wrong here?
TTFN,
Patrick
Roll Over Prob
Right guys here's the problem.
I have 3 button on the stage i have made 1 rollover mc for the 3 buttons and that is place on the stage and not in the button's. So when i rollover the buttons it calls for the mc containing the rollover animation
on (rollOver) {
_root.dis.psp_header.roll_psp.gotoAndPlay("roll_on _psp");
}
easy enough. but here's the prob, because i am using only 1 mc for the rollover state, so i need to set the x y proprety of the rollover mc to wichever button the mouse is over at the time. i thought i had it with this.
on (rollOver) {
setProperty ("_root.dis.psp_header.roll_psp", _x, _this);
setProperty ("_root.dis.psp_header.roll_psp", _y, this);
_root.dis.psp_header.roll_psp.gotoAndPlay("roll_on _psp");
}
It won't set the mc to the same x y of the button
Could someone tell me were i am going wrong.
Cheers
Swf Prob In Dreamweaver
I have 2 frames set up in dreamweaver...both frames have swf files in them...frame 1 is leftFrame...and frame 2 is mainFrame...everything works when I preview in my browser but when I launch the index file, the leftFrame is white (doesn't pick up the swf file) and the mainFrame works. I am stumped!!! I can't figure out why the leftFrame always comes up white...I am very novice in Dreamweaver and I know that is where my problem lies so if someone could please help me it would be GREAT!!!
Thanks,
Aoo....
Onclipevent Prob
when using a movie clip instead of a button, is it possible to create a rollover effect??
Yet Again I Have A Little Prob; Now Using My Php Form
hello guys,
finally I sort out the problem with my domeinname.
However after checking my site i found out that my php form isn't working.
on (release) {
subject = "feedback form from website";
carboncopy = "xxxxxx@hotmail.com";
usernum = "1107331530";
cpv = "1";
loadVariables ("http://pub13.bravenet.com/emailfwd/senddata.php", "0", "POST");
nextFrame ();
}
It works fine when I trie it using the folder on my Hdisk, but onces I put it on the net, it doesn't work anymore. As if there was no connection ?
Any idees ?
Tx you are the best
Array Prob
Hey there everyone! I've got this nasty lil' piece of script I can't seem 2 get 2 work! The answer must be obvious, yet I can't see it!
What im trying to do is:
I want to copy a string variable from an array
Simple eh?
What it is I'm exactly doing:
I load some variables from a text file. Such as:
&user1=name1
That works out just fine. When I copy that single variable I do it like this in actionscript:
tempuser1 = /:user1;
However when I try to copy a desired string of that array, I cannot seem 2 get the right code!
Tried things like:
tempuser = "user" add currentuserno;
(currentuserno=a number, like 1)
doesnt work!
Anyone there able 2 help me with this?
Many thanx!!
_root Prob, Plz Help
I have some buttons in a movieclip, My prob is: I want that if you click a button in that movieclip (which is on the main timeline), that he jumps to frame 42 of THE MAIN TIMELINE, not frame 42 in that movieclip where the buttons are. I heared it has to do something with _root. ...
but i don't know what, can you guyz tell me the script? so it haves to jump to the main timeline, frame 42, not the movieclip where the buttons are, thnx !!!
Wouter
RootControl Prob
greetings:
I have an interface with 5 buttons. Each button controls a MC which sends the user to the appropriate scene after playing an animation covering the current scene like a curtain. I have sent the MC to play successfully using both tellTarget & with.
My problem is that I can't control the main movie from within the MC in order to send it to the correct scene.
I've tried:
_parent.gotoAndPlay("IF01");
My Main Prob
i have 2 pages that i need them to load when 1 jumps to the other the main problem is that they freeze at the begining for 5 seconds i know they need a preloader i dont have a clue how to build one never done a preloder before is there anyone that can help me with a jumpstart here ?
|