ActionScript 3.0 :: Couple Of Buttons To Take Me To Scene1 And Scene2?
Feb 10, 2011I need a couple of buttons to take me to scene1 and scene2(CSR AS3)?
View 4 RepliesI need a couple of buttons to take me to scene1 and scene2(CSR AS3)?
View 4 RepliesI 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.
View 2 Replies[url]...
Any reason my slider bar would be moving on its own after you scroll over a couple of the hover buttons?
since my main swf file has accettable size is it wirth a loader?
here is what I see with a loader on
Frame # Frame BytesTotal Bytes Scene------- ---------- ----------- ----- 154751 54751 Loader (AS 3.0 Classes Export Frame)2 35699 90450 Scene 1
i want to gor from movieclip to scene 1, where i have set my menu on timeline.
Actually i have main movieclip on main timeline of scene 1, and inside that main movieclip , i'm having number of sub movieclips, so from that any movieclip i want go back return to scene 1.
I'm working on a project with AS3. On timeline I have a movie clip which contains a timer (only one frame). The timer for testing purposes has been set to six seconds. In timeline are two labels (page1 and page2). Timer is on page1. PROBLEM: I would like timer move to page 2 on scene1 when time is zero (0). how to do that. Here is my script:
[Code]...
i have two scenes, one acts as a preloader and is called "preloader" and the other scene, which is called ("Scene1") contains all the rest of my stuff.on the preloader scene i have inserted the following code:
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void[code]....
But i am getting the following errors.'access of undefined property Scene1'When i put the Scene1 in quotations i get 'cannot find scene1 label on the timeline'
I'm having a little trouble but I think the solution is simple. I have a button in a movie trying to start another movie rooted in scene1. I have some code placed in movie 1 to try and play movie 2, both movies are in a scene1 layer.
[Code]...
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
[Code]...
For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;
[Code]...
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.
View 3 RepliesI'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.
Here is the code:
ActionScript Code:
#include "PHPObject.as"
_global.defaultGatewayUrl = "http://localhost/uknowit/phpobject/Gateway.php";
_global.defaultGatewayKey = "secret";
[Code]....
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.
View 3 RepliesOk 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 need to addChild() to a movie, however, I'd like to have a coupld sec delay before it's done..
Sample code:
function breathe_play_video(event:MouseEvent):void {Video_Breathe.load();
this.addChild(Video_Breathe.content);
Video_Breathe.playVideo();addChild(play_pause_breathe_btn);
addChild(close_cross_btn);close_cross_btn.x = 938;
close_cross_btn.y = 5}
I would like to add close_cross_btn after about 2 secs...
I want my code to wait for a couple of seconds before executing. So is there any function similar to sleep in flex?
View 3 Repliesam getting a couple 1084 errors I can't figure out:
THE CODE:
//listener for the ProgressEvent when a download of the new
version is in progress
[code]....
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();
[Code]....
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.
View 14 RepliesI 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.
View 4 Replies1) 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.
View 10 RepliesI'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.
[Code]...
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
View 3 RepliesI 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).
View 2 RepliesI'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.