[FLASH MX 2004] Validar una fecha en AS
Buenos días,
Como puedo validar si una fecha que me han metido en un
formulario hecho en
AS es correcta?
Muchas gracias por la ayuda.
Saludos
Muchas gracias Juan, voy a probarlo.
Saludos
"Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
news:etmga4$m5r$[email protected]..
> Este truco es de www.gamarod.com.ar. Personalizalo, el
código lo dice
todo,
> fíjate en el formato de la fecha y en la fecha de
inicio de validación.:
> //This validates a date inputted by a user to be in the
format dd/mm/yyyy
> //It doesn't use the Date Object but there's no misc or
form input
category!
> function dateVal (input) {
> if (input.length != 10) {
> return false;
> }
> for (j=0; j<input.length; j++) {
> //all figures and spacers in place?
> if ((j == 2) || (j == 5)) {
>
> if (input.charAt(j) != "/") {
> return false;
> }
> } else if ((input.charAt(j)<"0") ||
(input.charAt(j)>"9")) {
>
> return false;
>
> }
> }
> //using right format dd/mm/yyyy and year 2002 or more?
Change this for
diff
> formats...
>
> bits = input.split("/");
> days = Number(bits[0]);
> month = Number(bits[1]);
> year=Number(bits[2]);
> if (days > 31) { return false;}
> else if (month > 12) { return false;}
> else if (year < 2002) { return false;}
>
> return true;
> }
> /*Salu2
> `8¬}
> Juan Muro*/
>
> "Virginia Salgado" <[email protected]> escribió en
el mensaje
> news:etm1ep$35o$[email protected]..
> > Buenos días,
> >
> > Como puedo validar si una fecha que me han metido
en un formulario hecho
> > en
> > AS es correcta?
> >
> > Muchas gracias por la ayuda.
> >
> > Saludos
> >
> >
>
>
Similar Messages
-
New iMac with 10.6.2 - but when tried to install Flash MX 2004 pgm crashes
HI,
First, perhaps there's a list somewhere of pgms that won't run under snow leopard?
We just got a new iMac 21.5" with 10.6.2
Trying to migrate pgms we had on our old G4 - like Flash MX 2004. After a clean install - it keeps crashing. Console log shows:
1/8/10 7:56:40 PM [0x0-0x28028].com.macromedia.flash.7[318] Authentication Service: Started
1/8/10 7:56:41 PM ReportCrash[325] Saved crash report for Flash[324] version ??? (???) to /Users/mahlenius/Library/Logs/DiagnosticReports/Flash_2010-01-08-195640Jude.crash
1/8/10 7:56:41 PM ReportCrash[325] Saved crash report for Flash[326] version ??? (???) to /Users/mahlenius/Library/Logs/DiagnosticReports/Flash_2010-01-08-195641Jude.crash
1/8/10 7:56:41 PM [0x0-0x28028].com.macromedia.flash.7[318] translate: MACHRCV_PORTCHANGED - invalid pointer, rcv buffer not swapped
It would seem that I probably will have to spend a lot more $ just to get pgms to run on this new system.
Any clues on getting this to run?
thanks
'markFlash MX 2004 is quite ancient. Latest shows it's viable for OS X 10.3. For compatibility info, start with http://www.macintouch.com/specialreports/snowleopard/slcompat.html
-
Sizing photo's in Photoshop to use in Macromedia Flash MX 2004
Am trying to create a gallery for webpage using Macromedia Flash MX 2004, have imported photo's into library and got the Flash gallery to publish. But am concerned as the flash .swf file is only 273kb with 20 images in it, the existing gallery file I am wanting to replace is approximaately 2.5mb.
I was advised to downsize each photo to 300x200 pixels which seems to fit the display in the flash file. Thought maybe I am doing something wrong in Photoshop when I am resizing each photo from original 3 or 4 mb photo down to the 300x200 pixel size. Any clues out there?I really know nothing about Macromedia Flash, but since no one has given any responses my thought is that if doing an action you need small pictures so they will load quickly.
If you resize save as new image so the quality images are not destroyed. If you have a lot of pictures to resize check out Bridge/tools/photoshop/image processor. -
Adobe Premiere Pro 2 and Macromedia Flash MX 2004
I'm using Adobe Premiere Pro 2.0 and have recently installed Macromedia Flash MX 2004.
Now when I go to export to Flash I don't get the Adobe Premiere's Flash Export dialog box when I press "Options" from the Export Settings. I get the Flash MX Professional 2004 "Flash Video (FLV) Exporter." It doesn't allow me to change any of the parameters.
I then un-installed Macromedia Flash MX 2004 but still get the same "Flash Video (FLV) Exporter."
Any ideas on how to get the Premiere exporter back?Well there is no answer to my question, but I did finally get the Adobe Media Encoder dialog box to come back again.
After uninstalling Premiere and QuickTime, then shutting down the computer, rebooting and logging on to the Admin account, shutting down again, rebooting again, logging in to the Admin account again ...
I then went in to the registry and removed all the Entries that had either of these in it:
C:\Program Files (x86)\Common Files\Adobe\DVA\COM
C:\Program Files (x86)\Common Files\Adobe\DVA\FLASH
and these as well
C:\Program Files (x86)\QuickTime\QTComponents\FLV.qtx
C?\Program Files (x86)\QuickTime\QTComponents\FLV.qtx
Rebooted the computer, logged back in to Admin.
I then re-installed QuickTime, and rebooted.
I then installed Premiere and the Adobe Media Encoder Flash dialog now shows up.
I'd be careful messy with the registry if you are trying to fix this type of problem. Try uninstalling quicktime and premiere and do the above shutdown, reboot sequence a number of times before doing anything to the registry.
I'm not sure what I'm going to do about that Flash Website I've working on... -
I installed Macromedia Flash MX 2004 yesterday,but I get an
error,unfortunately,it's one of those "Program has encountered a
problem and need to be cosed." errors
All I can get is the error signature
AppName: flash.exe AppVer: 7.0.0.470 ModName: unknown
ModVer: 0.0.0.0 Offset: 646e756f
And I get this tipe of error with Flash 8 as well
As an OS I use XP professional with SP 2
Any ideas are welcome
(ps,I am new here,and I'm clueless if I posted this thread in
the right section)This is not the answer you want, but if you can get yourself
a copy of Flash 8, you'll have almost exactly the same program with
a better interface...and it won't crash on you! (BTW, Flash 8 is
still the standard in most places.) I loved Flash 7, better known
as the 2004 MX versions, but it was buggy and cranky because it was
released too soon. Flash 8 was much better and far more
user-friendly. -
Did macromedia just get crappier with Flash MX 2004?
Did Flash just get cr*ppier? What the h*ll is going on?? Now
that we export our swf, we have to make sure that we f'in mask out
the working area? What genius came up with that bulls**t?? Also,
when we put actions on buttons we have to go thru a lot more sh*t
with typing up all the scripts?? not to mention they are a hell of
lot more bugs!!! c'mon Macromedia, some of us have time constraint
with real deadllnes, so why all the innefficiencies and added
frustrations?? You guys are suppose to make it better with each
version, not f*cking make it sh*ttier..get your head outta your
a$$es. FLASH MX 2004 IS A F'in RIP-OFF!!"just" get crappier is a bit of an outdated statement - MX
2004 is flash version 7 and the currect
version is Flash 8 - MX 2004 came out well over a year ago.
You don't and never have had to "mask" out the work area - I
have no idea what you are referring to
- can you explain in detail what is or is not happening?
Yes they removed normal mode from the AS panel but brought it
back in flash 8 as "Script Assist"
which is even better.
You refer to "Macromedia" which is no longer (again, dating
yourself
) Adobe bought MM so I think
you may have just emrged from the technology cave so to speak
--> Adobe Certified Expert *ACE*
--> www.mudbubble.com
--> www.keyframer.com
dke21 wrote:
> Did Flash just get cr*ppier? What the h*ll is going on??
Now that we export
> our swf, we have to make sure that we f'in mask out the
working area? What
> genius came up with that bulls**t?? Also, when we put
actions on buttons we
> have to go thru a lot more sh*t with typing up all the
scripts?? not to mention
> they are a hell of lot more bugs!!! c'mon Macromedia,
some of us have time
> constraint with real deadllnes, so why all the
innefficiencies and added
> frustrations?? You guys are suppose to make it better
with each version, not
> f*cking make it sh*ttier..get your head outta your
a$$es. FLASH MX 2004 IS A
> F'in RIP-OFF!!
> -
How to restore sound to exported avi? - Flash MX 2004 Pro
Hi,
Over the last couple of days I have been tinkering around with Flash MX 2004 Pro. More specifically, I have been importing avi's to the library and then placing the embedded video into a movieclip so I could have more control over it. While in the library I could preview the video along with the sound. Exporting the video again in avi format it would render the sound. However, all of a sudden it will only preview the video and not the sound in the library and the same goes for when I export a video there is no sound. The strange thing is the sound is still present when I test the movie. I have tried reinstalling the program with no luck. Any ideas?
Many thanks.Well there is no answer to my question, but I did finally get the Adobe Media Encoder dialog box to come back again.
After uninstalling Premiere and QuickTime, then shutting down the computer, rebooting and logging on to the Admin account, shutting down again, rebooting again, logging in to the Admin account again ...
I then went in to the registry and removed all the Entries that had either of these in it:
C:\Program Files (x86)\Common Files\Adobe\DVA\COM
C:\Program Files (x86)\Common Files\Adobe\DVA\FLASH
and these as well
C:\Program Files (x86)\QuickTime\QTComponents\FLV.qtx
C?\Program Files (x86)\QuickTime\QTComponents\FLV.qtx
Rebooted the computer, logged back in to Admin.
I then re-installed QuickTime, and rebooted.
I then installed Premiere and the Adobe Media Encoder Flash dialog now shows up.
I'd be careful messy with the registry if you are trying to fix this type of problem. Try uninstalling quicktime and premiere and do the above shutdown, reboot sequence a number of times before doing anything to the registry.
I'm not sure what I'm going to do about that Flash Website I've working on... -
This is the message I get when I export:
"To export a Captivate movie to Flash, you should have
Macromedia Flash 2004 installed."
I do have Macromedia Flash 2004 installed. In fact I removed
Flash 8 from my machine and restarted just so there would be no
misdirection.
Does anyone have any idea what can fix this?
Frankly, I am ready to give up on Captivate for good. I have
been twisting myself over backwards for two months to get Captivate
to work as a robust e-learning tool. It could be that I am just
asking too much of this program.
Still, it is supposed to export to Flash MX 2004 and it's
not. Any ideas?Hi naimahav
Frankly, I am ready to give up on Captivate for good
I'm not sure what category you fall into here, but it's not
uncommon to see people that are pretty familiar with Flash view
Captivate as some "nifty Flash add in". If this is your category,
it's not surprising you are frustrated. Even though Captivate can
produce .SWF output, it was never intended at any point to compete
with Flash. It has a totally different purpose.
I guess the larger question here is, what are you wanting to
accomplish that you feel Captivate cannot do for you and you feel
the need to resort to bringing it into Flash?
Oh, I suppose while I'm here I should give you a link to a
TechNote regarding the message.
Click here to read the
TechNote
Cheers... Rick -
Problem using CSS in Flash MX 2004
While working through a tutorial using Flash MX 2004 and CSS
StyleSheets, publishing the page produces the error below each time
I attempt to publish the page and I am unable to continue. There
doesn't seem to be a problem with the code, and the TextField.as
file is in the location where this error indicates that it is not.
Can anyone help?
//********************************* Error Message
**Error** C:\Documents and Settings\Administrator\Local
Settings\Application Data\Macromedia\Flash MX
2004\en\Configuration\CLASSES\TextField.as: Line 47: The class
'TextField.StyleSheet' could not be loaded.
var styleSheet:TextField.StyleSheet;
**Error** Scene=Scene 1, layer=a, frame=1:Line 4: The class
'TextField.StyleSheet' could not be loaded.
var cssStyles:TextField.StyleSheet = new
TextField.StyleSheet ();
Total ActionScript Errors: 2 Reported Errors: 2
//********************************* /Error Message
//-------------------------- The code that produces the error
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function (success) {
if (success) {
loadedInfo.styleSheet = cssStyles;
} else {
loadedInfo.text = "There has been an error loading the
requested information. Please contact the Webmaster and report your
error.";
//-------------------------- /The code that produces the
error ----------------------\\
TX!
David Marion
Email: [email protected]I found the problem!!
While exploring the Fireworks MX 2004 folder located under
"C:\Documents and Settings\USER\Application Data\Macromedia\"
folder I discovered that this folder was empty. So, I connected the
old hard drive and investigated the contents of the corresponding
folder on that drive. Discovering the wide assortment of files and
folders in that folder, I simply copied the contents of that folder
to the Fireworks MX 2004 folder and retried running the application
and IT WORKED!
Thanks for all your communications and in depth
troubleshooting steps, I will keep them in may Application
troubleshooting Tool Tips for future reference. I have included the
actions used here which brought about the successful resolution of
this issue so that if you'd like you might include them in any Help
Desk Methods you may have. It was truly a collaborative effort
because I would not have thought to explore the Application Data
folder to resolve this issue without you pointing me in that
direction.
Thanks again! -
Hello,
I need to encrypt a string in Flash MX 2004. Does it provied
such a function ( like php's md5() ) and if not what other way is
there to do thisexactly - the illusion is just that - scaling the objects
larger will provide the illusion you are
zooming - remember the opening sequence of the very 1st star
wars movie (1977)? Those space ships
just after the opening text were stationary - they simply
moved the camera alongside them - when
viewing the film the shaps (in our own minds) appear to move.
Same concept with flash - scale
object(s) on stage - most animators nest entire scenes in
Graphic movie clips and then scale them to
produce camera zooms.
Chris Georgenes / mudbubble.com / keyframer.com / Adobe
Community Expert
C-Rock wrote:
> they are actually zooming in by making the symbol
larger. they probably just have done it in a skilled way to make
you think that is what they did. -
Flash 8 vs. FLash MX 2004
This is a Flash 8 vs. Flash MX 2004 issue...
Anyone else noticing a difference saving files over a network
from Flash 8. I have never had a problem with Flash MX 2004 saving
over a network, but now saving a 14 MB flash file to a Mac OS X
Server is taking up to 2 minutes over AFP!! Server is a Sawtooth G4
running Jaguar Server 10.2.8 - long in the tooth I know!
An odd thing about this is that my first save will take 15
seconds, my second about 2 minutes, the third around 15 seconds,
the fourth around 2 minutes and so on... A "Save as" will take
about 40 seconds consistently.
That is:
0:15 - 1st save
2:00 - 2nd save
0:15 - 3rd save
1:56 - 4th save
Again that is using AFP, but even using SMB I notice this
alternate short/long save time. Using SMB a "Save as" takes 16
seconds on the same 14 MB file. Then the first save will take 3
seconds and the second about 13 seconds, the third save will take 3
seconds the fourth save will take 14 seconds etc...
Now this looks like a good case for using SMB over AFP (but
that is a topic for another forum). However, it is clearly a Flash
8 vs. Flash MX 2004 issue. When I go back to using Flash MX 2004
saves pretty consistently take about 2-3 seconds and "Save As"
takes about 10 seconds. This is using AFP or SMB (SMB is a bit
faster).
I called Macromedia (Adobe) support for help and their only
answer is that "saving over a network is not reccommended or
supported" (neither is this documented, even though some of their
tutorial examples use network workflows). I told them that Flash MX
2004 (and previous) NEVER gave me this problem which has apparently
been introduced with Flash 8 Professional.
Anyone else have this issue?
Thanks
Jflyyou should search this forum the past 2 days - been a few
more posts about working/saving to a
network and losing entire flas - it is never recommended -
with any type of program.
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com
ALabama1959 wrote:
> This is a Flash 8 vs. Flash MX 2004 issue...
>
> Anyone else noticing a difference saving files over a
network from Flash 8. I
> have never had a problem with Flash MX 2004 saving over
a network, but now
> saving a 14 MB flash file to a Mac OS X Server is taking
up to 2 minutes over
> AFP!! Server is a Sawtooth G4 running Jaguar Server
10.2.8 - long in the tooth
> I know!
>
> An odd thing about this is that my first save will take
15 seconds, my second
> about 2 minutes, the third around 15 seconds, the fourth
around 2 minutes and
> so on... A "Save as" will take about 40 seconds
consistently.
>
> That is:
> 0:15 - 1st save
> 2:00 - 2nd save
> 0:15 - 3rd save
> 1:56 - 4th save
>
> Again that is using AFP, but even using SMB I notice
this alternate short/long
> save time. Using SMB a "Save as" takes 16 seconds on the
same 14 MB file. Then
> the first save will take 3 seconds and the second about
13 seconds, the third
> save will take 3 seconds the fourth save will take 14
seconds etc...
>
> Now this looks like a good case for using SMB over AFP
(but that is a topic
> for another forum). However, it is clearly a Flash 8 vs.
Flash MX 2004 issue.
> When I go back to using Flash MX 2004 saves pretty
consistently take about 2-3
> seconds and "Save As" takes about 10 seconds. This is
using AFP or SMB (SMB is
> a bit faster).
>
> I called Macromedia (Adobe) support for help and their
only answer is that
> "saving over a network is not reccommended or supported"
(neither is this
> documented, even though some of their tutorial examples
use network workflows).
> I told them that Flash MX 2004 (and previous) NEVER gave
me this problem which
> has apparently been introduced with Flash 8
Professional.
>
> Anyone else have this issue?
>
> Thanks
>
> Jfly
>
> -
FLASH MX 2004 action script question
Hi!
I need to create an script for a basic function; when mouse goes over a moveclip, that works also link, I want it to trigger an invisible red dot on a nerby map. I have created a movieclip and named it "red", it's a 1 sec clip with nothing in the beginning and a red dot in the end. I want this dot to trigger and show only when mouse goes over this specific link, otherwise it must be invisible.
I know this is pretty basic stuff and I have done this before few years back but I have forgotten how to do it and need help now.
Any help would be very much appreciated :-)
KimI still need help, this problem is little more complicated;
I can manage making the red dot visible and invisible by triggering roll over and roll out on a button.
The problem is, I have a navbar which is line of flags made to a movie clip, with 5 invisible buttons. These buttons are configured to do three different actions; get URL, trigger a light effect and a movement effect.
Now I need this invisible button to trigger my red dot also so that when mouse is over a certain flag a red dot appears on a map on the correct location.
I have the red dot on a new layer. It has instance name "redDot" and on the very first frame of this red button layer, I have action script that says: redDot._visible = false;
This works as it should and the dot is invisible when the movie has loaded.
I need to make this invisible button to trigger the visibility of my red dot, and I have tried to add the code:
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
to this invisible button, but it dosent work, furthermore it affects the other functions of the button/movie clip, which were working fine before.
Here is the code attached to this invisible button so far:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
I have the URL:s on an external text file.
So my question is; where do I add the action script to make it visible when moving the mouse over this invisible button? To my understanding, it should go in the same place as the other code that is working, but I'm doing something wrong...
I tried to do this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2)
redDot._visible = true;
on (rollOut) {
gotoAndPlay("sec")
redDot._visible = false;
But it is wrong, I also tried like this:
on (release) {
getURL(/:url1);
on (rollOver) {
gotoAndPlay(2);
on (rollOut) {
gotoAndPlay("sec");
on (rollOver) {
redDot._visible = true;
on (rollOut) {
redDot._visible = false;
But it makes the other functions that worked to stop working.
I also tried to give the invisible button an instance name and do it like this:
invisible.on (rollOver) {
redDot._visible = true;
invisible.on (rollOut) {
redDot._visible = false;
And put them in the actions layer of button movie clip but nothing works.
Flash is really giving me a headache now...
To conclude, I made a simple test button, put it on the scene somewhere and and attached the rollOver and rollOut codes, targeting the "redDot" and it works fine, the button didn't need a instance name to work. I don't understand why I can't make it to work with the invisible button where it should be.
I hope this clarifies the point and I can get some help with this and sorry for bothering again with this problem.
Oh and I use old Flash MX 2004.
Thanks
Kim -
Flash MX 2004 Patch / updates
Hi Hope this is in the right area.
At the school where I work we use a package system to deploy
software, and after deploying Flash MX 2004, we have found that it
keeps asking us for the product key. From what I have been told and
read this is a bug with in V7.2 and a patch was released to fix the
problem.
Does any one have a copy of the patch or know where I could
locate one to correct this problem, as I have 200+ computers that
will need the key.
I would appreciate any help with this problem.
Thanks
RobHi Walter
Thanks for your reply unfortunately it had no effect on the
problem. I contacted Adobe support and it was their advice to use
the forum, as they could no longer provide support for this version
of flash.
Thanks anyway.
Edit 13th Oct 08 13.09 - Sorry to change the topic a pit but
the company that installed the network CSE have advised that a
network intall of studio mx 2004 might correct the problem. Could
any one provide me with instructions on how to do this?
Rob -
Can't get flash buttons to work...'Cannot find path' Flash MX 2004
I am trying to get the flash buttons for my website to work, but every time I do the getURL thing it keeps saying 'Cannot find (directory)'. The website is offline and I'm using Macromedia Flash MX 2004, I also might be able to use Flash 8 but these are the only two versions I have access to.
The action script for the button is:
on(release){
getURL("..\****\****\(Website directory)\(sub directory)\(Website page).html")
I am making the website in Dreamweaver 8 and this is really holding me back as it's nearly finished but the buttons still don't work.
Thanks in advance.Hi,
Sorry I should have mentioned tha. The structure is as follows:
Website name\
\Animations
\Audio
\Buttons
\Images
\Scripts
\Templates
\Videos
The buttons are contained in the buttons folder and the page I want to link it to is in the templates folder. I have tried putting the button flash file in the website root directory and trying that but it didn't work.
Hope this helps.
Thanks in advance. -
Embedding music; XSPF vs. Flash MX 2004
I'm working on a little personal site that feaatures articles about musicians and short sound clips of some of the their best songs. I've found two good ways to have a little embedded player: XSPF (frree from SourceForge.net) or Flash. Two things I'm worried about: If I use XSPF, it appears the user's browser will download the player and a playlist to the mp3 music file on the server. Pretty much the same way Flash works, I believe, except I think the wav/mp3 is imbedded in a Flash file. Sounds viable. Second thing I'm worried about: I bought Flash MX 2004 from Macromedia before they were bought out by Adobe. It's an old version, but I'm assuming it can do something as simple as create a little player? I didn't really explore it much after I bought it. Any tips appreciated.
1) WMA is not a suitable file type for the web. Use MP3.
2) You don't need to re-invent the wheel.
3) For a better user experience, get a Flash MP3 Player that supports playlists (see link below).
http://www.webdesignbooth.com/10-easy-to-implement-flash-based-mp3-players-for-your-websit e/
For people who don't have Flash capability (iPhone/iPad, etc...), also provide direct links to the MP3 files. Almost everyone has an MP3 capable player like iTunes installed on their system.
Good luck with your site!
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Maybe you are looking for
-
Small office with less than 10 APs
What is best way to handle or setup wireless connection for a small branch office with less than 10 APs? Management doesn't want to spend any money to install a local WLC. Those APs will communicate back to two WLC 5508 in Data Center. Should I use
-
Can see the video but no audio
i was told to go to the quicktime thing to try to get my audio on my ipod for my music video i have on it.. but it has the mpeg 1 muxed and then it said on this website that it wont work? well.. what am i supose to do? not being rude but..i didnt spe
-
Duplicate a text field in LC & get the Text automaticaly in the 2nd
Hi I want to duplicate a text field the problem is that i want something more when i write in the first "Text Field" i would like that the same Text appears automaticaly in the second "Text field" We can do it in Acrobat Pro but i don't know in LC T
-
iTunes 11 64bit is really inconvenient. cant find where to add remove songs to iphone manually. cant add remove files to iphone manaully.
-
Customize the Response Message for Resource Scheduling - Sent by Microsoft Exchange Server 2010
We have a room mailbox and when one books it the organzier gets response with the following and the very botoom: Sent by Microsoft Exchange Server 2010 I want to remove it as I dont want anybody to know what mail server we are running? thankx