ActionScript 2.0 :: Rotating The Quote Display?

Aug 19, 2004

I am build a rotating quote display for a website I'm working on -- the quotes come from a MySQL database and are displayed with PHP. A new (randomly selected) quote needs to fade in and then out every few seconds.I am mildly accustomed to Flash and know PHP and MySQL very well, so I was able to get the database interaction and whatnot going. You can see my progress here: [URL]I am willing to post the .fla file;

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Choosing Quote To Display - List In Text File?

Aug 10, 2011

I am using this random code below to choose a quote to display and I want to move the quotes list to a text file.

Code:
quotes = [Fish are the last to recognize water.","I am my brains publisher.", "Every tool carries with it the spirit by which it has been created.","Curiosity is the mother of intelligence.","Thinking is drawing in your head.","A person without imagination is like a teabag without water.","Realism is a corruption of reality.","Its always better to be looked over than to be overlooked.","The hardest thing to see is what is in front of your eyes.","The soul has no secrets that conduct does not reveal.","Creativity is the defeat of habit by originality.","Those who cannot remember the past are condemned to repeat it.","If you want to get lucky... it pays to get ready" ,"Realism is the corruption of reality","I'd give my right arm to be ambidextrous.","Music is noise submitted to order by wisdom.","God...invented the giraffe,the elephant,the cat.He has no real style.He just goes on inventing things.","The person you love is 72.8% water."]

qNum = Math.floor(riddles.length*Math.random());
partThree = quotes[qNum];
mainTxt = """+partThree+""";

View 1 Replies

ActionScript 2.0 :: Choose A Quote To Display And Move The Quotes List To A Text File?

Sep 14, 2006

I am using this random code below to choose a quote to display and I want to move the quotes list to a text file, can point me in the right direction I cant seem to get it to work.

Code:

quotes = [Fish are the last to recognize water.","I am my brains publisher.", "Every tool carries with it the spirit by which it has been created.","Curiosity is the mother of intelligence.","Thinking is drawing in your head.","A person without imagination is like a teabag without water.","Realism is a corruption of reality.","Its always better to be looked over than to be noverlooked.","The hardest thing to see is what is in front of your eyes.","The soul has no secrets that conduct does not reveal.","Creativity is the defeat of habit by originality.","Those who cannot remember the past are condemned to repeat it.","If you want to get lucky... it pays to get ready" ,"Realism is the corruption of reality","I'd give my right arm to be ambidextrous.","Music is noise submitted to order by wisdom.","God...invented the giraffe,the elephant,the cat.He has no real style.He just goes on inventing things.","The person you love is 72.8% water."]

qNum = Math.floor(riddles.length*Math.random());
partThree = quotes[qNum];
mainTxt = """+partThree+""";

View 5 Replies

IDE :: Adding Quote Of The Day To Website?

Jul 16, 2009

How to or have run across a tutorial where you can add quote of the day to website?

View 4 Replies

IDE :: Creating A Dynamic Quote Box?

Feb 5, 2010

Create a flash application which will be displayed on a web page which will read from a list of text inside an XML file and display them randomly with fade-in fade-out effects and also at random positions.My current approach to the problem is using a Dynamic Text Area which will read from the xml file, however I only got to the stage where the swf will read the xml file. Trying to get the fade effect and the positioning effect is proving very difficult for me.The sample XML I am working with:

<tag>
<tagline>Global Jobs Pact</tagline>
<tagline>Green Jobs</tagline>
<tagline>Decent Work</tagline>[code]......

View 1 Replies

ActionScript 2.0 :: PHP LoadVars And Single Quote

Jan 22, 2009

I have a flash front end that displays information and is capable of building MySQL queries and handing them off to PHP via loadVars. PHP handles the dirty work of connecting to the database, executing the queries, and returning any results. So my problem is with single quotes. In flash I can build the query string with single quotes easy enough, but for some reason php keeps doubling them up and messing up the query.

Here is an example of the flash code:
ActionScript Code:
var send_lv:LoadVars = new LoadVars();
var load_lv:LoadVars = new LoadVars();
load_lv.onLoad = function(bSuccess){
if(bSuccess){
trace(this.output);
[Code] .....

The problem is that the sql statement that php is trying to execute looks like this:
insert into mytable (field1, field2) values (''value1'', ''value2'')
Where each single quote has been turned into two single quotes for some reason.

View 3 Replies

ActionScript 2.0 :: Use Double Quote In XML/Flash?

Dec 4, 2009

How do I escape double quote " in XML when I load it in Flash? I use createTextField and I have created a Font in the Library. I use TextFormat to embed the font. When just use " in my XML file, it will show " in my flashmovie, why is that?

I tried " and " ... doesn't work?

Code:
<gerecht>
<nummer>82</nummer>
<naam>Gerecht "Naam" </naam>

[Code]....

View 1 Replies

ActionScript 2.0 :: Quote Randomizer Not Very Random?

Nov 15, 2005

I'm using the quote randomizer from kirupa, but the same couple lines out text seems to arise far too frequently. any ideas? I was thinking that i could remove the random part of the script, and just make it go from 1-100 in order,

current AS:
/****************************************
**Random Quotes Script*******************

[code]....

View 2 Replies

ActionScript 2.0 :: Quote To Appear In The Dynamic Text Box

Apr 26, 2006

i want a quote to appear in the dynamic text box but obviously you cant just write it as it thinks its text data, but im thinking its " but how do impliment it, i want a quote before and after +username_ti.text+ _parent.user_mc.user_ti.text = "Welcome you are currently logged in as " + username_ti.text +"

View 3 Replies

ActionScript 3.0 :: Handling Quote Characters From XML

Jul 24, 2009

What's the best way to handle the " symbol, dynamically written to XML output from a PHP upon request, and then pulled into Flash, parsed, and assigned to a String?Should the entire node's data be wrapped as CDATA in the XML document? But when when it gets assigned as a String in Flash, will Flash freak out because there's a " in it?Should PHP write escape characters into the node's text to escape quotes, ampersands, gt/lt, and apostrophes (and then will Flash handle these ok?)? Or should PHP convert all unsafe characters into their HTML equivalent?What about the British pound symbol? We're using UTF-8, so is there a safe way to handle this?

View 2 Replies

ActionScript 3.0 :: XML Random Quote Rotators In Row?

Mar 12, 2011

I've been messing around with this XML random quote rotators from this site but I'm unable to make it so it doesn't repeat the same quote twice. It has a tendency to show the same quote 3x in a row.

PHP Code:
//importing tween classesimport fl.transitions.Tween;
import fl.transitions.easing.*;
//we create a variable to store the loaded XMLvar xml:XML;
//the path to the xml filevar xmlPath:String = "data/quotes.xml";
[Code] .....

View 1 Replies

ActionScript 2.0 :: Rotating Menu With Non-Rotating Labels?

Nov 1, 2005

I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image. Anyone know of an action script that would keep the labels upright?

View 8 Replies

Professional :: Want To Get A Quote On Animating A Flash 'movie'

Feb 11, 2010

I don't need a website designed, just a flash 'movie'-style animation (2 min. approx. duration)I've created static content in Ai CS4 that I just need to be animated, and I could supply people with a storyboard. Similar look to the animation on this site: URL.. but with more complex animations and graphics.[code]

View 5 Replies

ActionScript 2.0 :: Quote Marks In Flash 6 XML Driven?

Feb 10, 2006

I have an XML driven Flash site and can't get quote marks to work in Flash 6. They show up fine in version 7 and 8 of the flash player. Here's what I'm doing:

My XML file: (added line breaks just for this example)

[Code]...

how to get this working in Flash 6? We really want to use REAL quote marks.

View 4 Replies

ActionScript 2.0 :: One Frame Random Quote Field

Aug 20, 2003

I'm trying to produce a one frame random quote field. I have a dynamic text field "quotebox" with the var of "quotefield"
rn=random(10);
loadText=new loadVars();
loadText.load("quotes.txt");
quotern=["quote"+rn];
loadText.onLoad=function() {
quotefield.text=quotern;
};

That's what I have for code. On the qoutes.txt file I have quote1-quote10 listed. I can get the quotern to display in the text field but can't get the quotes in the text field unless I do this
loadText.onLoad=function() {
quotefield.text=quote10;
Add the quote# to the code which then displays the quote.

View 8 Replies

ActionScript 3.0 :: Populate A Flash Quote System With XML?

Jul 31, 2010

I'm trying to populate a Flash quote system with XML but as try as I may I'm unable to get the subsuboption (like Jewelcase --> Insert --> Glossy finish) to work.

Basically this quoting system has been dumped on my desk and I have till Monday to update it (I'm a graphic designer not a flash developer and I don't have a clue as to what I'm doing!).

The AS Code is:

Code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
var xmlData:XML = new XML();

[Code].....

Now I can get it to compile, but when it goes to pull the data it will work upto the Suboptions and then any code further on fails to load (so I suspect there is something wrong with either the XML or the AS tying to the XML).

View 1 Replies

ActionScript 3.0 :: @ Input Text Fields Becoming Quote On UK Keyboard?

Apr 15, 2011

When changing wmode to transparent or opaue, or just by default, some browers change the @ to a " ... so you have to use the opposite button, ie shift-2.The only fix I know is to run a listener and switch double quotes for @ symbols...

View 1 Replies

ActionScript 2.0 :: Variation On The Random Quote Tutorial - Stuck

Apr 18, 2006

I followed the Random Quote Tutorial, pretty self explanatory really as all the tutorials are. is simple to have a whole bunch of words, load them randomly into a text box and then animate that text box randomly on the stage. So for example I'd have 'BLAH' loaded into a random area on the stage (or a specific set of coords if needs be) and then 'BLAH' would scale up from zero to fade out into _alpha=0 and a massive scale.

The problem I'm having is that whilst I can follow the random quote tutorial that relies on pressing a button to trigger the quote being loaded, thats my first problem. How to load the random word into this text box to then be displayed on the screen, do something with that text box (the animation) then loop back round once its finished. I'm assuming I get this by....if textbox._alpha = 0 then go back to the beginning type thing?!

[Code]...

View 5 Replies

ActionScript 2.0 :: Randomly Load A Simple Quote From An Xml File

Feb 14, 2008

I am trying to randomly load a simple quote from an xml file. Here is my AS:

[Code]...

I can't figure this out. Probably because I really don't know what I am doing.

View 2 Replies

ActionScript 2.0 :: Create A Small Flash Movie That Will Load A Random Quote?

May 15, 2003

As part of my brief, I have to create a small flash movie that will load a random quote (which is actually a jpeg image), fade it in to view, display it for a length of time (probably only 3-5 seconds), fade it out and then load another random quote. Is this possible to do, purely using actionscript? I can randomly load an image - I used the "Random Background Image" tutorial on this site - but getting the fading/pausing/fading then moving to another quote has got me stumped.

The images are imported into their own swf file that is loaded into a placeholder movie on the html page. I tried adding in a for loop to the individual swf and the placeholder movie, to loop through alpha property of the image (just to fade up for the moment, till I get it working) - but this didn't work at all. I could use tweens for the fading, but this could end up a mess and more work than it needs to be as there could be quite a lot of quotes added over time.

View 2 Replies

ActionScript 3.0 :: Edit PostDelete PostReport This PostReply With Quote Refresh Loaded Swf From New SWF

Aug 13, 2009

[URL]..Here is my fla files and I want when click on any menu, it should refresh the background image.

View 1 Replies

ActionScript 3.0 :: Loading Subclassed Display Objects With Flash.display.Loader?

Oct 8, 2009

When using Loader class to load display objects (bitmaps, SWFs...) from remote URLs, is there any way for them to be instantiated (referenced as we know, by Loader::content property) as some user specified valid subclass? For example if I had a class that extended a Bitmap, is there any way for the loaded object to be of this class?

View 9 Replies

ActionScript 2.0 :: Display Data From MySQL And Display In A Dropdown Box,text-field?

Oct 21, 2009

I am a complete rookie in ActionScript2.0/Flash.I just started learning regarding a project. My problem is I want to display data from MySQL in a DropDown Menu in Flash. the SendAndRecieve functionality only aids us to receive any responses,right?(Please correct me If I am Wrong.

View 2 Replies

ActionScript 3.0 :: TypeError: Error #2007: Parameter Child Must Be Non-null. At Flash.display::Display

Feb 5, 2011

I have tried to fix this error but I just cant get it to work.

View 2 Replies

Flash :: Display Objects Which Are Outside The Display Area When Is Embeded In HTML?

Nov 22, 2010

Is there any way to display flash objects which are outside the display area when flash is embeded in HTML
The reason i ask is my current project has a rotating + enlarging effect which is largely dynamic so sometimes an object may clip the edge of the stage areathis looks messy but i dont want to increase the stage area to cover  the largest possible area any object could enter because most of the time the objects are at the center and small so i would end up with a lot of white space

View 8 Replies

Flash - Sorting Display Objects By Their Display List Depth

Aug 5, 2011

I have a list containing display objects from throughout the application (insertion order). I want to process the list either top-down (parent, child) or bottom up (child, parent). The only requirement is that either a parent is processed before any child or vice versa a child before its parent. What is a good approach? This question is not about sorting a list. It's about retrieving the depth of a particular display object.

Example
Display list:
A (root)
B1
C1
C2
D1
B2
......

My list:
list = [E1, F4, A, B2, B1, C3, ..., N9, N8]

Bottom-up:
N9, N8, F4, E1, C3, B2, B1, A

Top-down:
A, B2, B1, C3, E1, F4, N9, N8
Does not matter if N9 before N8 or N8 before N9. Important is that any N is before M (first run) or any M before its children N* (second run).

View 2 Replies

ActionScript 3.0 :: Test If A Display Object Has Been Added To Display List

Mar 6, 2008

Is there any way to test if a display object has been added to the display list?

View 9 Replies

ActionScript 3.0 :: Do Not Resize Display Objects In A Display Object Container

Jan 22, 2012

can I resize a display object (container) without its contents (children) are resized?

For example, in the following code when I resize the green square, red is also resized. I wanted to resize only the green.

ActionScript Code:
import flash.display.Sprite;
var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0xff0000);

[Code].....

View 3 Replies

Actionscript 3 :: Test If A Display Object Is On The Display List Or Not?

Mar 4, 2011

What's a simple way to detect if a display object is currently on the display list?

View 1 Replies

Flex :: Identify All The Display Objects In The Display List?

Jun 28, 2011

How do I identify all the display objects in the display list in ActionScript, bellow the one that I have clicked? All the other objects are shadowed by the first one. What if other objects have visible parameter as hidden?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved