Actionscript 2.0 :: Add A Couple Of Options To Lee Brimelows Xml Slidesh
May 17, 2009
On page [URL] .Lee Brimelow does an article on Flash and Xml describing how to a build a Flash slideshow using xml. I already have slideshows on my Granddaughters website but what I did not like was I had no option to have a text description or not. It was all or nothing with "defined" appearing if no text was added. What is does have however are a dynamic text box that gives the number of photos available and tells you also the number you are on. Also after clicking on the first button you can then use you keyboard to work the buttons. [URL] I have tried everything I can think of to get these two options working on Lee's but I am stumped. I just want my grandaughters pages to be the best they can be.I am using Flash 8 Pro
code
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
Im building a program that queries a database for options and displays the options in a number of comboBoxes. The comboBoxes are dynamically built and loaded via code and added to the stage. I would like to build the comboBoxes into a single movie clip (maybe not the correct wording) so I can use options like tweening and such to make it look better. The code is below.
How I can create a timer that will start from 00:00 and will stop at 3:25 or 2:53 and etc and stuck in that position? And I want it to be in a format of 59:59 (60 minutes and 60 seconds) and NOT in 99:99.
I'm trying to output some text inside a dynamic textfield that is a child of 3 MCs, but nothing happends. When the textfield is placed in the root timeline it works just fine.
I'm using PHPObject, and as I said it works fine in the root timeline, but not in the MC called "fade".
The textfield is called mini and is placed inside minifeed -> slide -> fade My question is how i output text to mini inside all those MCs. minifeed.slide.fade.mini.text = result does not seem to work.
I am trying to create a timer to fade in a dynamic textbox that is a dfferent size depending on the button. This is kind of complicated so if you got lost I am going to say it again a bit simplerly.I have three buttons, and when you click each a box moves to the correct size.I am trying to get a textbox that will fade in once the box has moved, proably about 3 seconds, and have the textbox a different size depending on the button.When another button is clicked, it should fade out, and then the box should move.You should understand what I'm trying to do when you look at the FLA. By the way, the textbox is going to have dynamic content from either a mysql or xml database.
Ok so I'm working on a project at my job and things are going very well. The Flash application is 100% dynamic from text to text field colors, to panel colors, etc..The back end runs off of ASP in case you're curious.
Now we are up to the part where we have to load images into a panel. The images are uploaded by the user and the names are stored in a database. The panel should load 6 images at a time, 3 rows 2 columns.
Our ASP programmers aren't 100% sure on how they should be sending me the images. I started toying around with some code, assuming I have an image count which they will provide.
[Code]...
So as of now I have 6 panels going across my movie, which is fine, but now I need to columnize them into 3 rows 2 columns. So that's my concern as of now. Later on I will need to figure out how to say "if there are 6+ images have next and previous buttons to load the next ones". So if anyone has any good links on that it would be cool.
I was wondering if there was an easy way to change the FPS in a looping animation with a couple buttons. Don't need anything fancy. Just 20 FPS and 35FPS buttons.
I'm rather new to AS3 and have been tasked with a project, the project requires reading in values from an XML file created by PHP, this works fine if the XML file is available, and is just being updated by PHP, however, when flash calls the PHP page that creates the XML file for the first time, it doesn't give PHP enough time to make the XML file.
I am trying to play a couple of movie clips one after the other one. In other words, I would like movie clip A to run and execute the AS attached, then I would like movie clip B to run and execute the AS attached to it.
1) I created a movieclip animation and set the speed at a higher rate of fps than the site i later added the animation too - so the other animations I have are at the correct speed - i had forgotten to change the default from 12fps when I did those. Is there an easy way to change the speed besides changing the document fps - I don't want my animated sequence to speed up or slow down as I've just got it to the way I want it. I'm hoping that isn't too a stupid question
2) I thought that when you published the flash site it would 'crop' itself to the document size you set? I've tried uploading the published site and I have a white space around the top & bottom which looks terrible! I tried changing the size in dreamweaver but it's so hit & miss, sometimes it changed (but resized the whole flash site) or just didn't change anything. there must be something I'm doing wrong or an easier way to do this.
I've uploaded (for testing to see what it looked like - it's still very much in it's infancy and it's slow to load as I need to change an animation size - didn't prepare the raster images for web in one of the animations - trying to sort that now) on the end of my other website so that you can see what I mean: [URL](oh, and the background blue has a low opacity so I created a gif image to add to the html background but it's looks a completely different colour (it's the same hex colour code?!?!?!))
I am searching for a super basic example of loading xml into a couple of textfields. Everything I find is way more complex, looping through huge lists and adding children etc. I have 2 named textfields on stage headline_txt and body_txt. I want to set up an xml file that has 2 items, 1 for each textfield and AS3 to load and display them.
I'm having issues with a dynamic text box not displaying the any text. I've tested this on the main timeline, and everything works. When I move the textbox back a couple of MC's, nothing displays.
_root.bullets_mc.flip_mc.points_display.text = "You have a total of "+formatNumber(totalEntries) + "Hits";
Im working on something it coming right a long, but i think i did something wrong. I have a script see buttom, but is stops working after 3 or 4 clicks, the thing is that the bar is supposed to slide if you click on it end if ther is a bar in the way its going to take that with him.
I have a datagrid that loads content from a database. Once the data has been loaded I have a function that has selectedIndex=0; Right after that I call another function that tries to display the selected item across a couple of labels. The problem is nothing loads in the labels unless I run the functions twice. I'm guessing its some sort of data race problem where the item hasn't been selected by the time the function that displays the items in labels runs. How can I get the item to be selected before the next function runs.
I try to convert a game made in another language in AS 3. So far things went good but...I am having a problem on how to implement some things. For example I want to make an animation of a planet spinning ( from some couple og images )actionscript ( I would prefer to set speed of frames from code at one point )? An example would be nice or some ideas. But if it cant
I am trying to make a couple of Movieclips hide on the holding down of a key such as Page down ive used this:
[Code]...
it hides the MC but doesnt return visible on release of PGDN. Ive had a go at trying to fix this but i cant find the right command in the actionscript dictionary. Also is it possible for the MC to hide only on the holding down of multiple keys.
I want to do a small delay for just a couple of frame between each duplicating in the script below. how to do this? Is there any easier way than using setinterval? I have tried using setinterval but I don't understand how to do it.show me another way to create timing with actionscript...
function makeItems() { button._visible = 0; for (var i = 0; i<item.length; i++) {[code]....
i'm trying to write a function but with no luck. seems my brain capacity's limited the function will take two parameters: a term to search for, and a string to be searched. what i want the function to return is a new string containing the term (the parameter) along with a couple of words before and after it (as found in the search string).
I'm making a website with a couple of loadMovie bits of script in. I'm loading these into empty movie clips in the .fla file, to load a photo gallery and a portfolio.
The problem I'm having is they're not keeping the individual paramaters (if thats the right term) of each .swf file (the movie it's loading)
For example, my gallery.swf requires the scroller to be at x. 29 for it to work. Dunno why, but i worked around it. However when it's loaded into the website.fla file, it's using the x and y co-ordinates of the website, as opposed to the original movie. So, if I place the empty movie clip where i want the movie to load, the scroller doesnt work. However if I place it a 0,0 it does.
With my portfolio.swf the files are not located in the root folder. But my website .fla is. It's not possible to have the files in the root folder because of the way it works. When loading the portfolio.swf on it's own the files work fine and are linked okay. But when the .swf is inside the empty movie clip on the .fla file, it's not going to the correct source, it's seaching for the files from my root folder as opposed to the portfolio folder where the .xml and sub folders are located. Changing the path it looks for doesnt help either. I tried to make it search for "portfolio/gallery.xml" (as opposed to "gallery.xml") and that made the rest of the code try to look inside a portfolio folder (so instead of "gallery/design/image1.jpg" it was looking inside "portfolio/gallery/design etc." whilst already being inside the folder).
What I want to know is, is there a piece of actionscript that will tell the loadMovie function to use the original paramters of the movie it's loading, and not intigrate them with the .fla you're working on.
I'm using netstream to show a video in .flv.Over this video I need to show a couple of short animations, and when they play, I need to paus the long video so it doesn't plays in advance in the background.I've got this script to pause the movie:
Code: btnPlay.onRelease = function () { ns.pause(); }
But how do I apply it so that when the timeline hits a certain frame, it calls it. I mean, the user can't really know when to stop to see the animations, so it has to be done at a specific time.
i have a movieclip within a movieclip within a movieclip... i want to simply tell flash to play that movieclip once i click on it.. however, i get an error saying "1120: Access of undefined property tl_character" when i try to publish the file..[code]i know there might be a solution by using a custom class for "police1" but i'd like to know how i could play that movieclip using a function thats written on the main timeline..
I have wrtitten some code that draws a couple of lines with changing alpha and width whenever the mouse is moved. I need to convert this code to AS3 so that I can use it in conjunction with some video tracking.
Code:
var speed:Number = 100; var myNumber:Number; var myMax:Number = 50;[code]...
Sometimes while typing in a textarea in Flex many characters will be rendered at one height then at some point on that same text line the rest of the characters are rendered a couple pixels lower than the rest. Here is an example, look at the last 'I' character, its low:
Sometimes changing the font size will fix this but its not consistent and its not something I can detect (and fix even if I could). Anybody got an idea why this happens? It happens for embedded and non-embedded fonts.
I need to have a series of four numbers appear randomly with fade in and out and stay on screen for a couple of seconds each. These are then linked through to separate movie instances that display relevant information regarding that number and then go back to the random numbers. There are options to randomly display text from an external file, but not library objects within the same movie. I have a cobbled together version using scenes and timeline animation, but it's repetitive. It needs to be more random and effective as a visual element.
I've got a horizontal bar on the screen following the mouse vertical motion. I would like for it to be transparent until the mouse moves, and then fade in to be 100% on mouse movement. When the mouse stops moving, I would like it to fade back to be 0% transparent after a couple of seconds. This what I have for the mouse follow on the bar MC...