ActionScript 2.0 :: GetDate To Dynamically Mark Recent Changes?
Sep 15, 2005
I'm making a blog/journal in flash that I will manually update, and there will be a list of entries in a menu. I would like the newer entries tinted red so they are obviously new at a glance. I would like them to stay red for a week, then automatically remove the tint.
So I'm guessing that when I manually update the entry, I could just plug in the current date into a field in the AS, and it would use the computers clock to find out if a week had passed or not.
I have had a website that has been up and successfully running for about a year now. Admittedly, it's a little buggy here and there, however - I have not had too many issues with it to date. Recently, however, I updated the main / root .swf slightly - just changed some copy, and added a slide or two throughout. When visiting the site, this main .swf dynamically loads any content .swfs required - the html, and these .swfs were not touched.
Upon uploading the new main .swf only - everything works fun, until it loads one of the content .swfs - this always loads in the top left of the browser, rather than the center top of the browser.
t all works fine and the correct days will open on the correct date...or so i thought!Its getting the date from the users computer using getDate in flash 8.but this means if the user has the wrong date set or changes it they will be able to open any door they want in theory!guessing i need to use php but after reading a few posts etc I'm still not sure how i can get just the date into flash.heres what i use at the moment:
var myDate = new Date(); day = myDate.getDate(); mnth = myDate.getMonth();
I am trying to write a Flash program that uses a capability introduced in verson 10 of Flash player, but my Flash Pro only has up to version 9 listed on the publish settings. Is there a way to make Flash Pro recognize version 10? Do I need to update Flash Pro?
I am currently working on a project similar to this link, thehideout.org.uk/refuge and require some help with scripting a button. The button is called "Hide my visit" on the above link. When clicked it takes you to an external link whilst hiding your browser history.
I have a video player (just an out of the box flvplayer) where I pass in the video files using flashvars. I'm using swfobject to load the swf and pass in the video file. All standard code, nothing fancy or custom. This works perfectly in all browsers on both mac and pc... except recent versions of Firefox on the PC. On recent FF/PC machines the player loads but the video doesn't.
Situation: Work on a file, save it, and close it (example file is stored on local drive). Attempt to reload the file using the recent items list from the splash screen: File does not load, and output screen message appears: The following JavaScript error(s) occurred: Cannot find file /Volumes/users/mt/Desktop/Working Files/TMK2079_HI/Flash/TMK2079_HI-SQ.fla. This is the file just saved by Flash... and it cannot locate it. I can browse with File > Open, so it is not a critical work loss or stoppage issue, but it is annoying that it happens. It only seems to affect Flash as InDesign, Illustrator, and Photoshop behave as expected with the recent files. It seems to be able to find files saved to a network location, but not to the local machine (in this case a folder on the desktop). I tried renaming the "Working Files" folder to remove the space, but the issue persists. I tried a search but didn't get any hits that seemed relevant.
There was a recent Flash vulnerability found that allows for the potential of malicious attacks when someone uploads a flash file or a file embedded with flash (for example, a gif overloaded)According to the article, even a simple image can be hijacked.In php, the typical ways of checking a file type are by extension, and by mime-type.Using the simple example of an image, how would php properly vet a file (as is recommended in the article). Mime types can be spoofed, as can extension, and if the file is piggy-backed, what is the workaround?
I googled it and found some old results like bubblemark.com, link text and link text. But is there any recent benchmarks as all the platforms have been updated. I like to measure the speed of silverlight 4 against the modern and faster javascript engines.
When you open flash by default your greeted with the welcome screen, right? Ok. Question is how do I erase the "open recent item" list? I don't want to see anything there. Is there a cache setting I can reset or erase to do this?
I dont know if there was a recent download of flash or something but the number stepper suddenly doesnt work?URL...on external banners page and on the digital copy page, they are both inactive!?
I'm using a .swf to connect to a socket and stream data as fast as possible for 60 seconds to measure connectivity speed.In other words a speed test.In the past say month or two, I've found Macintosh systems 10.5 and higher experience a significant slow down, In testing I see my socket connect and reach about 2.5Mbps - 3.5Mbps and literally stick as though the .swf was throttling the connection.
This 'problem' is random and appears to come and go. I've tested this in Chrome,Firefox and Safari with all the same results.Using the exact same test on any Windows or Linux OS works totally fine.Admittedly I'm an ActionScript novice however the code I'm using is below and has worked for some time up until recently.
ActionScript Code: var s:Socket; var Tbytes:Number = 0; function connectToSocket():void{
I have an array that basically calls out numbers for a gotoAndStop action. We have external swfs that get loaded in. Each slide is its own frame in the external swf and they want the flexibility to remove slides at the last minute so my array looks like this:
There are going to be a lot of sections with a varied number of slides and I am looking for a simple code I can attach to the navigation that basically says:
Code: on (release) { if (you have not reached the end of the array);{ ++i; gotoAndStop(myDocs[i]);} }
Is there a code out there that doesn't require you to put specific number values in? like "if (i<22)"?
On the site we need to implement a mark on the photograph. By type as in facebook. It is desirable but not necessary that the selection of the object was not the rectangle, and polygon. There is a ready-realization? It does not matter what technology to use php, flash, and other, exotic but not necessary:)
ive been trying to get swfaddress working. And everything works fine ( the getValue function shows the right content, setTitle does its job etc ) except for setValue. When i set it to for instance setValue("news"), the url in the browser is updated to index.html?#news
that question mark shouldn't be there i guess... it also reloads my page every time. I have no idea where to start looking as i dont know what's causing it. anyone else had this issue before ?
There are 3 flv movie in my flash page. Is there a way to indicate in my flash page if the flv movie is already viewed on user's browser? I need to put a mark on the movie if one of them is already viewed? Am I to use Shared Object?
See [URL] looking carefully, youll see this code is supose to add two check marks, both of which are in the libary. they are supose to appear at seprate places.
is it possible to mark parameters as private, only accessible/useful for the class that owns the function?
example:
//PRIVATE CLASS (.SWC) public function set AutoBounce(value:Boolean):void { if (value)
[Code].....
rather than redirecting, is there any better way to dealing with this issue? maybe "better way" is a poor choice of words. is there a way to refactor this code without using a forwarding function or having to force the user to include the event parameter.
I am fairly new to flash and are trying to create an imagegallery from an xml file. The galleri menu is coming from xmlList.length. Now i want to mark the menuitem that is currently active (as in the picture is beeing shown) but i really cant accomplish this (Googling intense and trial end error).
i'm doing a multiple choice quiz. i've got a problem in load the mark from other .swf file.
[URL]
1stly i need to run the Game01.fla to loadMovie of quiz.01.swf. thing that ive problem is,the main file(Game01) doesn't detect the the page of quiz01 loaded. ive no idea what to do.hope any pros of flash can give me hand.. when user insert their name,their need to answer all the question. i do by loadMovie of the question in mc_loader01. after they done the quiz, all the mark must pass to main page(Game01), but isn't happen..
I've made a .swf object in flash and I've used dynamic text and embedded all the english characters. However, when the .swf is viewed on a web page, the does not show up.It is there though, because if you select all the text and paste it elsewhere, it is there.
Here's the page I'm referring to: www.chaseproducts.com/news/H1N1_master_ad/
I want to get the � mark showing up in the text on the arrow...
I am using a php mp3 handler script that I use as a parameter,but it seems to mess everything up just because there is a question mark after .php for my get variables. If I remove the question mark (mp3_handler.php?), the player appears, but with the question mark, it shows up as a text box. The first player works fine. The second just appears as a textbox in IE.The second however works in every other browser!!!
UPDATE: IT SEEMS TO BE THE second QUESTION MARK, but I do not see a way around this.. Oddly enough, the first question mark does not make a difference
i build a context menu and i want when user click on contextmenuitem then check mark tick is visible with contextmenuitem and when again user click on the same contextmenu item then check mark tick is visible off
I have built a pre-loader from tutorials that seems to work well except that you can't see it until it hits about 8o% loaded.
this is the code for frame 1 of my movie. (loading is a text box that shows the percentage as it loads)
ActionScript Code: stop(); onEnterFrame = function(){ var percentLoaded = _root.getBytesLoaded()/_root.getBytesTotal();
[Code].....
why the screen stays blank up until until that 8o% mark when it seems like the whole frame(preloader) loads?
It seems like everytime I get comfortable with some aspect of programming, I attempt another one that makes me wonder why I program in the first place! My mac is lucky I can't afford to throw it out the window.
I've got a SWF that calls up external swfs via XML. Users are able to navigate to each external swf using a next button. When a user views the external swf, I need to mark it as 'viewed'. This way, if the user leaves the site prior to seeing all swfs, they can come back and start where they left off and view only the swfs they haven't seen.
What is the best method for setting this up? Array? Somehow parsing the XML file?