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


Similar Posts:


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 2.0 :: Creating Dynamic Text Fields Within Dynamic Mc?

Dec 16, 2005

Im using this xml "data.xml":

HTML Code:
<XML>
<salesreps>[code]...

I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep.So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.

View 3 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

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 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 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

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 :: 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 :: 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 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

ActionScript 3.0 :: Creating A Dynamic URL?

Apr 6, 2009

I am having trouble using the name of given button to determine my loader URL.  If my button is called yerBasicButton_bt ... I would like it to utilize a reuseable function to dynamically determine and load a URL named yerBasicButton.swf.  In this manner yerBasicButton2_bt would then load a movie named yerBasicButton2.swf, and so on.  So the function looks at the instance name of the calling button to determine it's URL.

stop();
unit133bd3ba_bt.addEventListener(MouseEvent.CLICK, getUnitSWF);
function getUnitSWF (e:MouseEvent):void {    var swfLoader:Loader = new Loader();    swfLoader.x = 25;    swfLoader.y = 368;    var swfURL:String = e.currentTarget-"_bt"+".swf"    var swfURLReq:URLRequest = new URLRequest(swfURL);    swfLoader.load(swfURLReq);    this.addChildAt(swfLoader, 0);}

View 11 Replies

ActionScript 3.0 :: Creating Dynamic Instance Name?

Jan 13, 2010

I have the following code:
 
var page1:Branch = new Branch();
page1.y = 124;
addChild(page1);
 
I want to have the value "page1" to be dynamic, along with "Branch".  Since there's a number of templates (up to 20), Branch is one of the templates.  So it would be nice to use one instance creator.  Also, I'm not sure how to get "page1" to be a dynamic value.
 
The closest to this that I've been able to find is:
 
star1sp.addChild(this["star"+star1Num]);
 
except that it doesn't fully address what I want to do.  I tried adding in a bunch of "this[load_page]" and "this["page"+curpage]" to my code but had no success.  I'm still on the prowl for the answer but wanted to put this out there.  It's something I've tried to figure out for some time.

View 11 Replies

Professional :: Creating A Dynamic Grid

Mar 24, 2011

I would like to create a simple 2D interactive grid.  The user should be able to increase and decrease the number of axis (both X and Y simultaneously) that compose the grid, and also the scale of the grid itself (Zoom in and Out).
 
If this goes well enough, I would like to be able to plot graphical content on the grid that visually changes as the grid itself changes.  They should, in some way, be linked to one another and correspondingly affected by the same two parameters. This, however, would be a second step.  I am more concerned with the base grid model at this point.

View 1 Replies

ActionScript 3.0 :: Creating A Dynamic Grid?

Mar 26, 2011

I would like to create a simple 2D interactive grid.  The user should be able to increase and decrease the number of axis (both X and Y simultaneously) that compose the grid, and also the scale of the grid itself (Zoom in and Out).
 
If this goes well enough, I would like to be able to plot graphical content on the grid that visually changes as the grid itself changes.  They should, in some way, be linked to one another and correspondingly affected by the same two parameters.  This, however, would be a second step.  I am more concerned with the base grid model at this point.

View 1 Replies

ActionScript 3.0 :: Creating A Dynamic Menu?

Jan 8, 2010

I got the first part to work. The only problem is when I click any buttons it produces errorTypeError: Error #1009: Cannot access a property or method of a null object reference.at resume_fla::MainTimeline/frame1()not sure what I have to do. All it's supposed to do is when you click a button the target movie clip plays frames 2 - 10 and the previous movie clip plays frame 11 - 20. Not sure what's the problem here.

ActionScript Code:
//variables
var curMC;

[code]......

View 1 Replies

ActionScript 3.0 :: Creating Dynamic MC With Different Content?

Jul 22, 2010

I know the Post Title is not much explicative but I didn't know how to summarize my problem. Here it is in full version: I'm making a card game, and I have all the vectorial graphics for the cards. I have a class named Deck and one named Card. When I create a new Deck I have this constructor

[Code]...

View 9 Replies

ActionScript 3.0 :: Creating A Dynamic ItemRenderer?

Aug 16, 2010

find the attached files which populatea datagrid dynamically in FLEX 3ename the txt file to mxml

View 1 Replies

ActionScript 3.0 :: Creating Dynamic MovieClips?

May 30, 2011

After a click event I want to dynamically create 2 movieclips with the sequential number in their name, e.g. mc_001 & mv_001 so that I can 'link' them together later on.How can I create a movieclip with a dynamic name?I am trying to use this at the moment:Code:var movieclip["name"+dynamicNumber]:MovieClip = new MovieClip();I can't use an array unless someone can tell me how to access it across multiple classes...

View 6 Replies

ActionScript 2.0 :: Creating Dynamic Objects?

Apr 3, 2004

this is a wierd problem I am facing in flash I need to create a dynamic global variable where the variable's name is stored in another variable. say I need to create a global variable , _global.fam , but "fam" is stored in a variable temp="fam";

now how can I declare the global variable 'fam' using the variable temp.

But the loophole here is that after creating the global variable I should be able to access the variable as

View 1 Replies







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