ActionScript 2.0 :: National Debt Ticker For Flash
Aug 11, 2009
Im trying to make an ad that has a national debt moving up. You have seen them right, 11 trillion and counting. Im trying to do something similar, it would be great to import a flash ticker, but the prob is that they usually have a link to their site, and that is something I don't want. Another way is just to mimic the ticker, but is there a .fla or actionscript, with that I can start a dynamic number at 11 trillion, and just have it count UP?
I've been scouring the net trying to find a code that I can use to create a "Ticker" feature for my site. Think of the US national debt ticker. Basically I'm looking to create a counter that will start at 0 and increase a certain number every second. This will represent a monetary figure so it would need to add "," in the necessary space as the number increases. I'll have a number of different variables that will make certain pages increase in value more quickly then others...
I'm working on my own buttons. It uses a dynamic TextField, and there's an issue that I can't figure out.
Used font is Lucida Sans Unicode, I exported this to the library, checking "Export for Actionscript..." in dialog window when exporting. Unfortunately, this exported font doesn't display my national chars - I'm from Poland and need letters like "Å‚" or "Å›". They are in this font, but became unavailable after export.
Button photo (prepared "manually" before, looks the same, but text is without "Å‚"):
My code:
protected function prepareShape():void { isActive = false; bgMatrix = new Matrix();
I have been charged with creating a rotating billboard for our new company website and I am in the conceptual phase of design.Everyone in the office likes the functionality of the National Geographic home billboard... with its automatic rotating images, pause functionality, and content launching frames.So far I have correctly mirrored the functionality of the National Geographic billboard by physically embedding images into a flash movie and creating mouse click events for buttons and the images themselves.
Design Question:Can Flash emulate the National Geographic presentation? Their images are called upon request, rather than being embedded into a large single movie file like mine. This would allow a non programmer to design a new image billboard and update the website remotely...
I created a News Ticker in Flash CS3 from a tutorial on your site URL...But it just flashes "undefined" I know I must be messing something up with the location of the XML file or where it's defined in the action script. I don't think I understand the "cache" part of the tutorial or why the file can't be local? I have gone to the suggested links in the tutorial, and being a total novice, I must be missing some main point.
I have to build a ticker the shows the FTSE 100 uk like the one built here: http:[url]......but without the huge map above.I know the file is nothing more than a news ticker, but I don't have idea where to take the data from. Also it needs to automatically update itself every 2/3 minutes.
I was wondering if you guys can help me creating a daily countdown ticker? Like 100 days, 99 days, etc. without me having to go in and change the dates everyday.
My text animation scrolls from left to right, which is OK. I want to keep it simple but change it up little. How do I get the text to go right to left?
AS3 Example
mask = customMask; var my_str:String = " Ad hoc ad loc and quid pro quo "; function addUm():void { my_str = my_str.charAt(my_str.length - 1) + my_str.slice(0, my_str.length - 1);
I am making a countdown ticker that would get the current server date & time and then calculate the remaining time from a target date.
I am using a PHP file to output the current server date & time. Then I use the Flash's loadvars function to get the result and format it as a Date field. However, when I trace for remaining days using targetDate-serverDate, I get NaN as the result.
Below is the code for my flash script as well as the php script.
Flash Code:
Code: onClipEvent (load) { myVars = new LoadVars(); // call the load method to load my php page
I using the news ticker example to create a flash sig for my blog of highlighted posts. The question is there anyway of creating an automatic xml updater? So that all I would have to do is place some sort of "highlighter" tag in a post, then the xml file would be updated, thus a new link appear in the news ticker? I guess if I some how had rss for a tag, that then the xml was read into the flash file.
I'm trying to embed a handful of European language characters into a little flash news ticker (Swedish, Norwegian and some others). I'm embedding my swf file in the html and passing a FlashVars variable This is the text that the ticker displays. For some reason the swf doesn't render the character when I put a foreign character such as in the HTML. I have embedded all these fonts in the dynamic text box in my .fla
Attached is the .fla and .html file where you can input the text for the swf to display. Please have a look for me! (attached zip at bottom of post)
I've created an horizontal sliding stock ticker that uses a xml feeder provided from another site.The ticker is now working fine if preview it doing ctrl + enter or if I see the swf with the flash player. The Problem comes when I want to preview it with F12 the browser shows me a warning that says something like this (the original text is in spanish)"adobe flash player has stopped this opration bc it may be not secure ...."I also can not see the swf file when online Here it is the code I'm using
I just want a horizontal news ticker that loops a bunch of news headlines that are housed in an xml file. the headlines will link to pages will the full news story.
How can I make such a News-Ticker as on URL...(The nice box, which has 4 advertisements is ment)I´m making a website for a friend and want to add something like this. Unfortunately its the first time I´m using Flash.
I have a web page generated with PHP which has a lot of divs with rollover effects. It represents a table with more than 200 cells, but is made of divs instead of a table because I've read they are more efficient (specially in IE8 which has turn out my nightmare in this project!) In the same page I want to put a ticker for user messages with horizontal text scrolling. I have tried to implement the ticker in different ways: pure Javascript or with jquery pluggins: [URL] Well, the thing is that the ticker works great when the page loads, but as soon as the user starts to move the cursor over the table (rollover effects are triggered) the ticker becomes very jerky in IE8 (Firefox works almost perfect)
After a lot of work tunning my PHP/HTML code I gave up and decided to embed a flash object for the ticker in order to relieve the browser part of the scripting and delegate it to flash. My surprise was that it had the same defect. I am not an expert in how the browser deals with flash objects but I really though it would be a solution. I've found a example which illustrate the problem. [URL] This a page with a commercial flash object. It's really much more than what I need, but if you try (with IE8) to move the cursor around the right section of the page, over the elements with rollover effects, you'll notice that the ticker becomes less smooth. Imagine that within a page with 200 divs!
I am action script handicapped so bare with me. I know very basic action script functions like go to frame stop, play ect So complicated flash code does not really work for me unless it is explain easy and clear step by step. I know the animation portion of flash which helps me get by. I need to know how to pause a scrolling text as simple as possible when I click mouse over it.
I created a button (which is really displayed as text so that I can link to a website url) (SEE IMAGE)
The text is animated from frame 1 off screen to frame 400 top off canvas off screen. I did this the animation way instead of the coding way. So it should scroll from bottom to top (which I animated with frames), link to a new site (which I figured out), and pause on mouse over and play on mouse off.
Anyone know of a good news ticker component? (Or a straightforward way of coding one in AS3?) We need to incorporate a horizontal ticker at the bottom of a site. It doesn't need to feed RSS. It'll just be populated with little factoids the client will provide. I initially purchased and integrated this one[url]...
Worked pretty well. Unfortunately, the developer who is building out the site just informed us that we need one that works in a .net environment and this component parses the XML through PHP. I'm a noob at all this so I don't even know exactly what I'm talking about!
I've been trying to figure this out myself for 2 weeks and just can't get it. I have done this the non-actionscript way by making each movieclip move across stage with motion tweening, but I know it would be much more efficient and easier to modify if it was all actionscript.(To see example, look at bottom of my company's Web pagehave cobbled some code and think I know how to create the MCs and animate them across the screen: (note eventually this will include 50 logos, but to figure this out I'm starting with just three--logo1, logo2, logo3)
I have it all working sound wise (except you cannot skip through the track) but the main problem is making a scrolling title. the title is loaded from an xml file but i cannot seep to add a ticker/marquee movement.this is the script i have made and it doesn't work at all,
Actionscript Code:[code]......
there is more code after this for playing the track, i will post if needed.
I am looking to add a horizontal text ticker onto a dreamweaver cs4 page. This is to highlight areas within the site so will not be linked to any news association, simply used for the benefit of the site and probably changed daily.I am looking for something simple that can be pasted in and will run even with me changing it!
I'm trying to make a ticker that should show my message as a "typewriter". But it behaves very strange... see attached swf. I have never worked with Flash/actionscript before, so it might be something very simple
This is my code: var n:Number=0; var txt:String = "testing ticker"; var len:Number = txt.length; function tick(){ if(n<len){ txt_bussgods.appendText(txt.charAt(n)); n++; setTimeout(tick, 1000); }else{ stop(); }}tick();