IDE :: Adding Quote Of The Day To Website?
Jul 16, 2009How to or have run across a tutorial where you can add quote of the day to website?
View 4 RepliesHow to or have run across a tutorial where you can add quote of the day to website?
View 4 RepliesIs it possible at all to create a feature on a website where you allow a user to select a portion of the web page, and that selected area is rendered as an image? Its similar to the "Cropper" desktop program but needs to be embedded on the web page It sounds near impossible using JS, flash, silverlight or any web based tools but I just wanted to get a 2nd opinion.
View 2 RepliesI'm trying to add the flashmo 3D curve gallery to website website. I changed all the images, but when I added it to Dreamweaver and test the file all I see is the background. Here's the link to the download [URL].
View 2 RepliesI have created a preloader which works fine when I test it.How do I go about adding it to the start of a website/animation?
View 1 RepliesI need load this external code:
<object width="305" height="115"> <param name="movie" value=" ram name="flashvars" value="h=cdn.myxertones.com&i=1739974&d=6337337507 26809361&a=www.myxer.com&v=2&s=http://s3%2Eamazonaws%2Ecom/Skins%2EMyxer/527b52aa-3f69-4e6c-
[code].....
I have made a Flash banner for my website using CS3 but I wanted to add a hyperlink to it so that when someone clicks on my banner it will bring them to a different page on my site, kinda like the way ad banners work on most websites on the net. I have the official Adobe CS3 Flash manual as well as another one on Flash CS3 just as thick but I can't seem to find anything in either that explains how I can do this.
View 6 RepliesI was given the task of adding a preloader to an already existing flash website. The website is completely in flash. Each "page" is on a layer and are made of animated movie clips. It is a portfolio website, so some pages take a while to load up. That's where the preloader comes in. I want to put a preloader at the very beginning of the page that will play as the entire site is being loaded, so when the user clicks through, each page shows up quickly and seamlessly.
I have created a preloader in a separate flash file, but can not get it to work with the website. How do I combine these two files to work?
i was curious on what i would need to incorparate flash to my business website rather than the service we are using currently. We have noticed that the flash images on our website are having issues loading and getting stuck currectly.My website address is http:[url]... there is flash type images at the top of the page as well as the middle.
View 1 RepliesI am having trouble adding a flash banner to my website and I am running php5. I want to use it to help my site sell the new iPad 2. Which product do I need to use to create the flash banner and display photos that I am selling on my auction?
View 1 Replieshow to add a animated intro to my website.I have a pre loader setup already. Would I have to have another pe loader for the animation?,I would additionally like to provide a skip option for impatient viewers.
View 1 RepliesI`m having a bit off a problem controlling animations already createt and registet as movie clips.
Ive createt a label based webpage but each time i want to cange page i want this animation to go on.
im not getting it done yet
Ive attached to photos one of the principal stage and one of the movieclip that is in one of the page layers
Youll see a wall that aniamtes in and out and the effect i want is that when tha page loads on the home site (with the wall closed) and u change a page with the red buttons on the right the Move out animatepart starts and if u change a site again the wall closes and at the opening it reveals the new page selectet.
It all works but i dont know how to control the movie clip while changing sites
i tried to just put inside the buttons functions
btn_products.addEventListener(MouseEvent.CLICK, gotoProducts);
function gotoProducts (e: MouseEvent):void
{
gotoAndPlay("WallOut")//////////////////////////but dosent work
[Code]....
My favorite error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.at flash.display:isplayObjectContainer/removeChild()
What I am trying to do is basically get my navigation working correctly. I had it working by altering the alphas of movieClips, but they just end up overlapping each other even if they are invisible so that's not working out. I have 5 navigation pages. And thus, 5 nav buttons, and 5 movieClips (content for each page -- Home, Location, Tenants, Design, Contact). I want to simply show the home movieclip when on the home page and remove the movieclips from the stage for the other 4 pages.
Then, logically, I want to click the Tenants page, which removes the home page, location, design, and contact movieclips. Very straightforward show only one and remove the rest from the stage, but every combination of add/removeChild and parent and stage etc. is giving me that error above. What's confusing me the most is that the add and removeChild works for the location page, but none of the others. The location movieClip is no different than the others, and I made the code the same but it's the only one that works.
//START Initial page load settings
homestuff.alpha = 0;
TweenLite.to(homestuff, 1, {alpha:1});
removeChild(locationstuff);
//removeChild(tenantsstuff);
[Code] .....
I just started working with AS3 and want to make my personal website with images in background. Now, I'm having one image... but I want to have more images in random order. I know I should use Math.random, but no progress
Access of undefined property _id.
Access of undefined property _id.
Access of undefined property listLoader.
Access of undefined property stImage.
Here is my code:
XML.ignoreComments = false;
XML.ignoreProcessingInstructions = false;
var _xml:XML;
var _xmlLdr:URLLoader = new URLLoader( new URLRequest("dat/xml/bg.xml") );
listLoader.addEventListener(Event.COMPLETE, gotList);
[Code] .....
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]......
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.
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]....
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]....
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 RepliesWhat'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 RepliesI'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] .....
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 RepliesI 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 RepliesI 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.
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.
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).
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 RepliesI 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]...
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.
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+""";
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.