How Do You Account For Every Possible Combination?
Hi guys,
I've had a request from the client to fade the text in each section in and out. When the user clicks on a that section(fade in) and when the user clicks on a new section(old text fades out, new text fades in).
Now I've already scripted in fades for all the links, which was incredibly dull as I had to account for every possible combination - as an example, when user is in the "corporate profile" section and then clicks say "design", the button for corporate profile fades back to the up(off) state. I don't need help with the buttons.
It's all working great. BTW thanks alot to the guys who helped me out with this. After I placed the buttons(with the as on there) on the same timeline as everything else, the targeting issues i had were easily solved.
However I don't want to script in every possible combination (again) for the information in each section. I'm pretty sure there's a better, more intelligent way of accounting for any and all combinations, so next time I can use the same code for the buttons. If the info was only fading in, easily done, but fading out when the user clicks to a new section - this is what I need help with. Any suggestions?
Chris
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 11-28-2006, 11:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Paypal Account
Im using Flash 8 to develop an online catalog. Im using the book "flash for dummies" and there is a shopping cart fla tutorial. does anyone know what kind of PAYPAL account to set up for flash... or at least what kind of paypal cart I should set up for the client? ty
FMS Service Log On Account
Hello,
FMS 2.0.3
OS; Windows 2003 Enterprise Edition SP1
I am going to have the applications and content directories located off the local FMS platform and on an NAS. Both the FMS Server platform and the NAS are on an AD domain, so a generic AD account is needed to run the FMS service so FMS can access the NAS shares as needed. The default “Local System account” won’t work for the NAS access.
What are the minimum permission required by the account that runs the FMS service?
Thanks
~John
Do You Take CPU Usage Into Account?
Rules for web development include making your files as small as possible, to require less bandwidth and faster loadtimes, but what about CPU usage?
Flash 8 has a bunch of nice features like blur, shadows, glow etc, that have to be rendered at runtime. This takes up quite a bit of CPU usage. Do you guys take this into account when designing a website/animation?
I ask this because I'm working on my portfolio at the time, where a bunch of thumbnails light up with a glow on rollOver. The glow results in a peak of around 55% CPU usage. When I move my mouse pointer fast over the thumbnails, I easely get peaks that get to 100%. Without the glow, it's about 20% (CPU is about 10% when animations are idle). I'm working on an AMD XP2600+.
Do you guys check your websites on older, slower computers to make sure people with that kind of system are able to see everything as smooth as you do on your monster develoment machine?
Are there tricks to keep the CPU usage as low as possible?
How To Account For Different Resolutions
I have a flash movie that pretty much takes up the entire screen at (970 x 580) . . . This works pretty well in 1025x768 resolution, but I'm not sure how to tackle this when the user has 800x600. I have some javascript that will resize the movie to that proportion, but all the text on the movie becomes blurred. I know almost everyone says to use percentages in the width/height to solve these type issues, but no matter what I try the text blurs horribly. Any suggestions?
Thank you!
Beth
Log-in, Create A User Account
hi everyone! anyone knows here on how to create a log-in or creating a user account system in flash? i know it will used an input text box but how about the code? pls help!
How Do I Serve From FMS To My Justin TV Account?
I created an app, put a flv in there, and created a main.asc to create a netconnection ,then a stream connection and then play the file to Justin servers so I can see it in my account, but nothing happens and there is no connection.
I hacked at this and dont know FMS or the script language
main.asp - supposed to play test.flv to justin servers
application.onAppStart = function() {
var myStream = Stream.get("test");
var nc = new NetConnection();
nc.connect("rtmp://live.justin.tv/app");
var ns = new NetStream(nc);
ns.attach(myStream);
ns.publish(myStream,"live_123456_0c93PrmI");
}
Flash On Limited OS X Account?
Im at school right now, and every time i open flash, i just see the main tool bar, and no blank flash file. Once i create a blank flash file, the tool bar disapears, so i go to windows > panel sets but once i click the Windows bar i get an "internal application error". Everything seems to be fine after that, but whenever i try to add a tween or change the babckground colour, etc. the panel at the bottom with those controls doesnt update! ahh! and whenever i try to open a saved file, (for some reason it asks me to open it twice), it opens a a window, but its all gray and you cant see or do anything with the document.
i am on Mac OS X on a limited account. there are no problems with flash on an admin account.
btw my computer is the only one in the room with this problem
Got A Gmail Account To Give Away
I got one extra Gmail acount, if anyone wants it just P.M.
if anyone has helped me before with newbie help, I will be glad to offer them this first.
>> How To Create An User Account With Login Etc.
Now I want to create an login kind of section on the corner of my website where people will type in there user name and password and then it comes up saying that they are logged in and there name stays at the top all at all times whilst surfing the website untill obvisouly they log out.
No I know that you need some sort of a database whcih holds all the user names and passwords (accouts) I hold all this information a php forum. So in therory i need flash to collect that database and find the user names and password so when someone types in i.e. USER NAME: freddy PASSWORD: bloggy | flash will find that account of the php forum board and then hopefully log in saying on the flash movie that they have just loged in etc.
If this is easier to do in a HTML based website (like dreamweaver) then please say so, but you can explain how to do it or direct me to a clear tutorial whcih shows me how.
Please also state if the above can be done?
Thanks
from Soniccc
HELP Needed For FLASH In User Account
I have XP Professional with an Administrative and two User accounts.
All what I and my wife want - is to be able to use our separate User accounts for ordinary simple tasks like, for example, going to a necessary WEB page.
Sometimes we are lucky to do it, but very often we can NOT, because there is FLASH,
.
Let me give an example. I am interested what a local (Athens, GA) HONDA dealer has to offer, and want to open its WEB site. - O.K. - I open GOOGLE and find the necessary link to Athens, GA HONDA.
I click on this link, but instead of HONDA site there appears a message “You do not have the latest FLASH. Why not to install it now?” No problem, I have nothing against FLASH, but it can NOT be installed in a User account.
No problem. I go to our Administrative account and easily install the latest FLASH version #10. To be sure that everything will work fine I restart the computer.
Joyfully I return to my User account and “woe is me” FLASH still does NOT let me to reach HONDA and gives me instead the same invitation for upgrading as before.
Please help me either to “tame” this FLASH so that it would not mix with my computer steps, or to let it be properly active in my User accounts.
Please, also, keep in mind that I am one of those millions of “dummies” who just know only how to click a mouse and what is a difference between a file and a folder.
Many thanks for attention and help.
Waiting eagerly for responses.
FMS Developer Ed & Local System Account
Is it only possible to run the FMS service as the Local System account in Windows Server 2003? I tried to change the Log On params to a user with privileges to another server's share but the service won't start up afterward. And in the info box in the FMS Admin app there is a little tiny tooltip within the popup message that says something about "License info". I changed the user back to Local System account and the service started up right away. I'm trying to test an app's ability to access a different path that's set in the application.xml <VirtualDirectory><Streams> node.
So, is it a limitation of the FMS Developer edition or is it something on our end? I thought the only limitation was 10 conncections.
Flash Link To Paypal Account
I have an animated flash banner on a small Flash site that I would like to link to the clients Paypal merchant page. What is the best way to go about doing this?
Thanks in advance
Michael
Do Preloaders Take External SWFs Into Account?
I am loading external SWF's into my main movie to act as different "pages" when each button is clicked.
The main movie has a preloader. Will this preloader taking into account the fact that the main movie is calling/loading other movies or will each of the movies being loaded require their own preloader?
Many Thanks.
Data From Flash To E-mail Account
hi
i am just a biginer of PHP and also Flash.....i can make my design well but dont know abt action script that much cos not used to that thing even now.
now here is the problem...if i wanna send data posted from the flash form to my mail account... what i should do???
another thing that it shouldnt be a good process.... so if i wanna send it to a php generated file or to a data base......what i should do???
think i will find some help!!!!
How To Account For Landscape And Portrait Pictures
I have created a slideshow by loading the images in through an XML file. Right now I am forcing the pictures to be W:315 X H:236, the layout starts at x:0, y:0 position.
How would I recognize if the picture was in a portrait layout, Eg.) W:236 X H:315
Thanks
Problems Connecting To GMAIL Account
Hi there,
I've just been following the (as of today) latest tutorial on http://www.gotoandlearn.com about "Binary Sockets" and this all works fine and dandy using "leebrimelow.com, 110" for the socket connection (full code below).
But when I try my own domain "storm-media.co.uk, 110" I get the following error message....
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
at Pop3_fla::MainTimeline/frame1()
....this maybe because the port number is incorrect (I'm checking with my ISP just in case).
But if I try using my own gmail account "gmail.com, 110" (or "googlemail.com, 110") nothing happens? It just sits there and doesn't do anything?
Any ideas?
Thanks in advance!
Kind regards,
M.
Code:
// Socket(host address of the server, which port do we want to connect to)
var s:Socket = new Socket("leebrimelow.com", 110);
// Everytime the server sends us something, SOCKET_DATA is the event that fires
s.addEventListener(ProgressEvent.SOCKET_DATA, sData);
// http://www.pnambic.com/Goodies/POP3Ref.html is a good reference for POP information
function sData(e:ProgressEvent):void
{
// Create a data string, UTFBytes is basically String data
// We connect using Binary but we know the receiving data is plain text format so we use UTFBytes
// bytesAvailable basically reads everything
var d:String = s.readUTFBytes(s.bytesAvailable);
trace(d);
/*
When writing commands, the new line '
' is required for the server
to see that it's a valid command
*/
if(d.indexOf("+OK Hello there") != -1) // if this string exists
{
// Write this command into the buffer
s.writeUTFBytes("USER lee@leebrimelow.com
");
}
if(d.indexOf("+OK Password required") != -1) // if this string exists
{
// Write this command into the buffer
s.writeUTFBytes("PASS mypassword
");
}
if(d.indexOf("+OK logged in") != -1) // if this string exists
{
// Write this command into the buffer
// Use reference URL for different commands
// We can use RETRIEVE to pull in the first email in our inbox
s.writeUTFBytes("RETRIEVE 1
");
}
// Send the command to the server
s.flush();
}
[F8] Creating A User Account On My Site - Where To Get Started?
Hello there,
I am not a complete beginner in Flash, but i am very new to this area i am about to enter.
I want to create a user account section on my site, which will store their recent purchases etc (the shopping section i will create later on, but want to make this bit very compatible) and some information about themselves.
The first question is: Do designers create these custom databases for themselves? Or do they usually use other peoples software and alter it? If so, do you have any recommendations?
And my main question is, how can i get started on this? I'm not sure what coding to use or anything? From googling i think i might need to use php and mysql?? Does anyone remember how they got started on this? where shall i read up on tutorials?
I want to build it up from a very solid foundation so that it can expand and not create problems in the future. Also the ability to be able to read the data of the user and enter it into forms they will fill out is essential.
Thanks for any help here. Really appreciate it!
James
What Approach Should I Take For Implementing User Account Into My Site?
Hello,
I am currently designing a site where the user will select their product (which they have to put in their size etc) then pay for it. I would like to somehow add the feature of creating an account, which remembers their size and previous orders, so they can quickly load in their size etc and just make small alterations.
I would like to know:
Is this possible without huge scripting awareness?
I know about mysql and would like to store the info in there somehow.
What direction would you suggest in achieving this for longrun stability/secuirity
Mysql + PHP + flash?
Does anyone have perhaps some examples/tutorials or help sites which could guide me in the right direction.
I would like this to be able to cater for 10,000 users...
thanks for any help.
regards
jarmanje
Content Not Appearing On Restricted Windows Account
Hi all,
I have a flash file in which certain items are set to Export for AS.
"Export in first frame" is unchecked and those items are placed on the
stage some frames after frame 1 to allow for a small loader bar.
All's fine on a whole lot of machines (Mac, PC and all sorts of
browsers) except for a group of PC's which run on a restricted
useraccount and run only Internet Explorer. On those machines the items
set to "Export for ActionScript" but not in frame one are not shown.
Does anyone have any ideas?
QAD workaround I suppose could be to have it all load in frame 1 and if
needed built a separate preloader but I would prefer to keep it all in
one file...
thanks in advance,
Manno
--
----------
Manno Bult
http://www.aloft.nl
Sending Forms In Flash To Email Account
Sorry if this is a dumb question, very new to building websites in flash. Is there any way to simply send a form to an email account? I have created my form using the text input component and have my submit button, but can't find a tutorial on how to send the data to my email, only php and database stuff
thanks
Flash MX Pro On Limited User Account Won't Load
As the subject says, I need to be able to run Flash MX Pro on an XP guest account, but it won't load.
It was installed in the admin acc and runs fine normally, but once i try to run it in the guest user account it does nothing.
Dreamweaver and Fireworks both run normally in the guest account (as do most progs); I'm guessing that Flash needs to be able to write/access some files on startup that it doesn't have permission for - maybe copy some files from the admin app data folder - I 'dunno'.
Please, a bit of advise, thanks.
Moe: It could have been a real ugly situation, but luckily I managed to shoot him in the spine.
Session Variables For User Account Info?
Hello All,
I have a quick question...
Would I use session variables to keep track of user info for them to edit account info? Users login to edit their specific info (ie. address, hardware used, contact info...), then, on submit, the data will populate a SQL database. Not quite sure what method is best and also most secure. Thank you for your help in advance. Thank you.
Terry
Combination
Look @ the jpg attached and tell me, what did they use to make that? a combination of flash and vb?
Playhead For Movie - Need To Account Fo Rnested Clips - Actionscript 2
I’m trying to create a play-head (not a load bar) with Action Script that shows where my movie is at in its timeline…
A little something like this…
|----------------------------------------------------------|
/
The difficulty is that on my main timeline I have 3 places where the main timeline stops to play a nested movie clip… once the nested clips finish it carries on down the main timeline again.
How can I create this play-head so it moves smoothly while still accounting for the nested clips ?… Can’t seem to wrap my head around it!
Thanks
b
[F8] MovieClip._width Property NOW Takes Into Account The STROKE?
Ok, so in Flash 8 if I have a MovieClip that contains 50px wide square with a 1 px stroke. If I trace(MovieClip._width) it returns "51"....
But in the .fla stage the MovieClip reads as 50px wide in the info panel. Oh, and here is the great part... if I change the stroke's scale property to "none", and scale the MovieClip to 500%, it's _width property will return as if the stroke was 5px (so 255px) but it will draw a 1px line!!! Wooohooo! So the actionscript tells me that I have a movieclip that's 255px wide, but visually it will only be 251 px.... SWEEEET!!!
Why the hell did this change from ActionScript 1.0 and is there a way to make it work like it use to???
Paypal Account Direct Link From Flash Site:
this is the code generated from my paypal account. When i post it in a html editor, it creates the paypal btn. My question is - how do i put this code in to flash so I can skip the go to paypal btn and have flash just take to me the url location of where my paypal shopping cart is located.
Hope you understand the question, please not that the exact html has been edited and is not the correct account info:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="Joun@yahoo.com">
<input type="hidden" name="item_name" value="JOHN's News. new plan">
<input type="hidden" name="item_number" value="Bff33A">
<input type="hidden" name="amount" value="19.75">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
Paypal Account Direct Link From Flash Site:
I created a simple pay now though pay detail using paypal. Instead of using paypal gay button, how do i know the exact link of where the target is for the payment setup so i can link it with my flash proejct?
[MX] Sending Information To A Database / Text File / Email Account
Hi guys,
I'm trying to send some information as described in the thread title using XML, but I'm having trouble as I don't know any server side scripting languages that can parse it and pass the information on. Is there any other way I can send the data? Or maybe a ready made script I can add my parameters into?
The code I have so far is:
Code:
myXML = new XML("<Account><User>user.text</User><Pass>pass.text</Pass></Account>");
myXML.send("www.domain-name-here.com/something.php");
XP Limited Account Users Not Prompted To Upgrade Flash Player
I have developed a web page which requires flash player 8.
I have observed that XP limited account user's with older version of flash player are not prompted to update their version of flash. The annimation continues for them but only displays elements of the movie that work in their version of flash.
With an xp admin account the user IS prompted to upgrade flash player.
Is there anything I can do to support XP limited accounts short of rebuildiong my page for an older version of Flash player.
ps my client is non technical and as far as she is concerned the page doesnt work on her pc so it is not acceptable.
Thanks
Flash Shopping Cart Software/package? With User Account
Hello, i need to add on a shopping cart to pay for a product which is designed by the user from 8 steps on my flash site. I really want to keep it within flash
Does anyone know of a flash program that i can incorporate into my flash page?
I would love to have one which has a user account side to it. So that it can remembered the email, previous orders and their 'size' of the customers once they have relogged in
thanks a lot for any help
regards
J
Function On Key Combination
i had make a listener that on tab(9)key up it execute a function that moove the focus of the blinker in a list of textfield .
What i want to do is to execute an other function when the user have the shift button down and press on the tab so that the focus will go backward ...
is there a way to combine to key in a listener
tableListener = new Object();
tableListener.onKeyDown = function() {
acKey = Key.getCode();
};
tableListener.onKeyUp = function() {
if (acKey eq 9 or acKey eq 13) {
sectionTable.move = "tab";
sectionTable.setInputFocus();
}
};
any help will be apreciate!!
Thanx
Color Combination
hi everyone
did any of u know a web sites about color combination guide...i have a problem with designing a movie, sometimes i couldn't find the right combination for colors, e.g. i want to combine color blue and light blue...i need a fashion suggestion
Array Combination
how to get 4 number of combinations out of 16 combinations without aby repeation of combinations in array
This Combination Check ,,,,
ok,,
1. css load into movie ( done !)
2. html load into movie (done!)
3. apply css to text box containing loaded html (done!)
4. set font that no one else has on their machine to html . HELLLLPPPPPPP!!!!
if i embed the font,,,, i loose the html formating.... how do i do this????
Key/Click Combination
Does antone know if it's possible to move certain mivie clips and do many others things with a combination of a...
if (Key.isDown(49)) {
...and a left mouse click.For example,
if (Key.isDown(49) && onMouseDown) {
do this;
}
Thankyou people.
M
Every Possible Two-card Combination
lets say I had:
ActionScript Code:
deckA = ["1", "2", "3", "4"...]
deckB = ["1", "2", "3", "4"...]
both arrays had the same 52 numbers, corresponding to playing cards in a regular deck, is it possible to loop through the first array, matching each element up with each element of the other array, and trace out every possible two-card combination? with this script I could rule the world.
Script Combination
I wan't to combine two scripts but i can't because im a loser
I want to combine this script:
mc1._x = mc2._x;
mc1._y = mc2._y;
With this one:
/*EASING ************************************************** *******************/
function ease (objet, targetX, speed) {
if(!easingArray) {
trace("creation tableau ease");
easingArray = [[],[]];
trace(easingArray[0].length);
}
var found = false;
for(i=0; i<=easingArray[0].length; i++) {
if(easingArray[0][i] == objet) {
found = true;
if(easingArray[1][i] != objet._easing) {
clearInterval(easingArray[1][i]);
trace("clear old IDease"+easingArray[1][i]);
easingArray[1][i] = objet._easing;
};
if( (Math.ceil(objet._x) < (targetX - 1) ) || (Math.ceil(objet._x) > (targetX + 1) ) ){
objet._x += (targetX - objet._x)/speed;
} else {
objet._x = targetX;
trace("clearease="+objet._easing);
clearInterval(objet._easing);
};
};
};
if (found == false) {
trace("creation objet ease");
var long = easingArray[0].length
easingArray[0][long] = objet;
easingArray[1][long]= objet._easing;
trace("indexease"+long);
trace(easingArray[0][long]);
}
};
Movieclip.prototype.easing = function (targetX, speed) {
clearInterval(this._easing);
this._easing = setInterval(ease, 40, this, targetX, speed);
}
/************************************************** ***************************/
button1.onRelease = function () {
mc1.easing(400,20);
}
button2.onRelease = function () {
mc1.easing(50,50);
}
MOUSE And KEY.DOWN Combination
I need script that rotates an object
but only when I press mouse button AND any key
(mouse button is pressed than any key like q,w,e)
It must be combination of mouse and key
or maybe there's is script that marks pressed object
than I could rotate this object
Who knows how to make that kind of actionscript?
PLEASE HELP
PS. I have script that rotates object but like that:
First I press the key than the mouse button
And It works..
on (press) {
if (Key.isDown(key.LEFT)) {
setProperty ("", _rotation, "0");
} else if (Key.isDown(Key.UP)) {
setProperty ("", _rotation, "90");
} else if (Key.isDown(Key.RIGHT)) {
setProperty ("", _rotation, "180");
} else if (Key.isDown(Key.DOWN)) {
setProperty ("", _rotation, "270");
}
}
to sum up
I have some object, I can move them and I made depth swap
now i want to rotate them
PLEASE SOMEONE HELP ME !!!
Aneta
POLAND
MOUSE And KEY.DOWN Combination
I need script that rotates an object
but only when I press mouse button AND any key
(mouse button is pressed than any key like q,w,e)
It must be combination of mouse and key
or maybe there's is script that marks pressed object
than I could rotate this object
Who knows how to make that kind of actionscript?
PLEASE HELP
PS. I have script that rotates object but like that:
First I press the key than the mouse button
And It works..
on (press) {
if (Key.isDown(key.LEFT)) {
setProperty ("", _rotation, "0");
} else if (Key.isDown(Key.UP)) {
setProperty ("", _rotation, "90");
} else if (Key.isDown(Key.RIGHT)) {
setProperty ("", _rotation, "180");
} else if (Key.isDown(Key.DOWN)) {
setProperty ("", _rotation, "270");
}
}
to sum up
I have some object, I can move them and I made depth swap
now i want to rotate them
PLEASE SOMEONE HELP ME !!!
Aneta
Need Some Seriouse Help With AS And PHP Combination
OK, here's the deal. I've got a mail form, check! Now, i need to make it so that you HAVE TO fill in to of the fields... this is what i got so far on the AS front:
frame 1:
stop();
//let's stop the timeline
System.useCodepage=true;
//and make shure that we can use all sorts of internationall letters
scroll._visible = (input3.maxscroll > 1);
input3.onChanged = function() {
scroll._visible = (this.maxscroll > 1);
}//just to be "kewl", lets hide the scrollbar if it isn't needed.
name = "";
email = "";
input = "";
//then we clear all the txt fields
input1.tabIndex = 1;
input2.tabIndex = 2;
input3.tabIndex = 3;
//lets make shure that we keep the order on that tab btn
error = "forget something?";
//and then we make an error statement
function formcheck() { //here comes the interesting part
if ((name == null) || (name == "")) {
name = error;
action = "";
}//in other words, if the name box is empty... show the error message that we created!
if ((input == null) || (input == "")) {
input = error;
action = "";
}//same thing here, but with the message field
if ((name != "") && (name != error) && (input != "") && (input != error)) {
name = input1.text;
email = input2.text;
webb = input3.text;
this.gotoAndPlay(10);
}
}//now, if everyting is ok, go to that next scene where it says sending... hopefully, thats what we will be doing two.
ALL OF THE ABOVE IS INSIDE A INSTANCE NAMED "form"
frame 10: (_parent to above script, "contactform_mc")
_root.enter.level1.motion.contact_mc.cont_level2_m c.contactform_mc.form.loadVariables("mail.php", "POST");
frame 80: (same mc as above)
this.gotoAndStop(1);
mail.php
<?php
$send = "info@frameset.se";
$subject = "Mail frĺn hemsidan";
$headers = "Frĺn: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "svara: " . $_POST["email"];
$input = $_POST["input"];
$input = strip_tags("$input");
$headers = strip_tags("$headers");
mail($send, $subject, $input, $headers);
?>
OK, problem is, it's not going thrue!?! What have i missed/done wrong here?
Also, i need some help to make it so that when it getts to the loadVariables part, it doesn't continue untill it's realy done with sending the variables.
after a couple of weeks... I GIVE UP! Is there anybody out there who can save me from the sleeples night
ALL IN FMX
Controlling Combination Of Key’s
How can I track combination of key's: Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V ??
I use this AS:
Thanks in advance...
Code:
var listener:Object = new Object();
listener.onKeyDown = function() {
trace(Key.getAscii());
};
Key.addListener(listener);
Which Combination Of Programs
First I'm sorry if this is wrong forum for my question , i'm wondering where do you make your internet pages? I mean , only in FLASH or do you only make movies for your page in flash (pictures in photoshop and so on..) and put it all together in dreamweaver ... or any other combination of programs ..
Checkbox Combination
I have a small problem that probably can be fixed easy. I have this form with many check boxes and when some are checked a text will appear in a movieclip. The code is like this:
Code:
Btn.onRelease = function() {
if (checkb1.selected && checkb2.selected) {
Mclip1.gotoAndStop(0);
Mclip2.gotoAndStop(2);
}
else if (checkb3.selected) {
Mclip1.gotoAndStop(0;
Mclip2.gotoAndStop(3);
}
else if (checkb1.selected && checkb2.selected && checkb3.selected) {
Mclip1.gotoAndStop(0;
Mclip2.gotoAndStop(4);
}
Simple but when I add more combinations it wont work. For example when I have checkb1.selected && checkb3.selected && checkb5.selected it will react as if I checked checkb1 and checkb3.
Need Some Seriouse Help With AS And PHP Combination
OK, here's the deal. I've got a mail form, check! Now, i need to make it so that you HAVE TO fill in to of the fields... this is what i got so far on the AS front:
frame 1:
stop();
//let's stop the timeline
System.useCodepage=true;
//and make shure that we can use all sorts of internationall letters
scroll._visible = (input3.maxscroll > 1);
input3.onChanged = function() {
scroll._visible = (this.maxscroll > 1);
}//just to be "kewl", lets hide the scrollbar if it isn't needed.
name = "";
email = "";
input = "";
//then we clear all the txt fields
input1.tabIndex = 1;
input2.tabIndex = 2;
input3.tabIndex = 3;
//lets make shure that we keep the order on that tab btn
error = "forget something?";
//and then we make an error statement
function formcheck() { //here comes the interesting part
if ((name == null) || (name == "")) {
name = error;
action = "";
}//in other words, if the name box is empty... show the error message that we created!
if ((input == null) || (input == "")) {
input = error;
action = "";
}//same thing here, but with the message field
if ((name != "") && (name != error) && (input != "") && (input != error)) {
name = input1.text;
email = input2.text;
webb = input3.text;
this.gotoAndPlay(10);
}
}//now, if everyting is ok, go to that next scene where it says sending... hopefully, thats what we will be doing two.
ALL OF THE ABOVE IS INSIDE A INSTANCE NAMED "form"
frame 10: (_parent to above script, "contactform_mc")
_root.enter.level1.motion.contact_mc.cont_level2_m c.contactform_mc.form.loadVariables("mail.php", "POST");
frame 80: (same mc as above)
this.gotoAndStop(1);
mail.php
<?php
$send = "info@frameset.se";
$subject = "Mail frĺn hemsidan";
$headers = "Frĺn: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "svara: " . $_POST["email"];
$input = $_POST["input"];
$input = strip_tags("$input");
$headers = strip_tags("$headers");
mail($send, $subject, $input, $headers);
?>
OK, problem is, it's not going thrue!?! What have i missed/done wrong here?
Also, i need some help to make it so that when it getts to the loadVariables part, it doesn't continue untill it's realy done with sending the variables.
after a couple of weeks... I GIVE UP! Is there anybody out there who can save me from the sleeples night
ALL IN FMX
Controlling Combination Of Key’s
How can I track combination of key's: Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V ??
I use this AS:
Thanks in advance...
Code:
var listener:Object = new Object();
listener.onKeyDown = function() {
trace(Key.getAscii());
};
Key.addListener(listener);
Playhead For Movie - Need To Account For Stops & Nested Clips In Main Timeline
I’m trying to create a play-head (not a load bar) with Action Script that shows where my movie is at in its timeline…
A little something like this…
|-----------------------------------------------------|
/
The difficulty is that on my main timeline I have 3 places where the main timeline stops to play a nested movie clip… once the nested clips finish it carries on down the main timeline again.
How can I create this play-head so it moves smoothly while still accounting for the nested clips ?… Can’t seem to wrap my head around it!
Thanks
b
|