ActionScript 2.0 :: Loading Gallery After Button Press
Apr 22, 2005I can only seem to be able to have my gallery work on the main timeline but when i want to make my gallery appear after button press it seems to freeze and stop work
View 14 RepliesI can only seem to be able to have my gallery work on the main timeline but when i want to make my gallery appear after button press it seems to freeze and stop work
View 14 RepliesI have a image gallery but when I put the whole thing into its own new movieclip and THEN insert it on the main timeline it doesn't work. It only works when its scripted on the main timeline but I don't want it on the main timeline because I want my gallery to appear after I press my button.
View 9 RepliesI am attempting to make a small gallery of pictures that slide in from the right when i press the relevent button - which functions perfectly as it stands, here's the code structure on the main timelines 'actions' layer, but1, but2 etc are actual buttons and not MC's:
[Code]...
i need code for dynamic loading of swf file frm xml on button press in as2
View 8 RepliesI used this AS to load external text (load on its own).
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
loadTexts.onLoad = function() {
textBox.text = this.speaknote;
};
How can I modify this AS so that it will load when I press a button. I try to change it to this
loadTexts = new loadVars();
loadTexts.load("speaknote.txt");
buttonToLoad.onPress = function() {
textBox.text = this.speaknote;
};
myData = new LoadVars();
myData.load("myText1.txt");
myData.onLoad = function() {
[Code].....
I thought i would be able to load the files from the press of a button.
this doesnt work i can load the external files from the btns,
Problem this is not working.I cant understnd the reason why. when the above code works fine. Problem is i do need to load the external varaibles with a button press.
//loading external file 2
myData = new LoadVars();
myData.load("myText1.txt");
[Code].....
i need code for dynamic loading of swf file on button press event .it should load swf frm xml on button press in moveclip
View 1 RepliesHow can i make it so a when you press a button it starts a countdown but every other press dosent reset it?
View 14 RepliesI want the press button to detect the last button pressed and if the shapes match, make them do something...obviously. I think I'm going at it the wrong way. I need to stick a "triange" id into the button/mc then if compares that and then if there is a match works then... right?
[Code]...
i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... when i'll press on the button the stars will be flying from the button and the sound will play?
View 3 RepliesI'm loading in 5 jpegs from an external file using "loadMovie" and i have 5 corresponding buttons (1-5) to load them with.
I want to change the jpeg the button loads in depending whether a separate navigation button has been pressed -
i.e.
navigation buttons:
-motorbike pics
-car pics
-lorry pics
If a user clicked on "car pics" then the loading buttons 1 to 5 would load "car1.jpg", "car2.jpg" and so on...
similarly if the user clicked on "lorry pics", the same loading buttons 1 to 5 would load "lorry1.jpg" and "lorry2.jpg"
here is my code,
[Code]....
This is running on Enterframe but I want to ratate 180 degree and on button press and hold button
i have a set of buttons cranked out from and XML file. how can i emulate, in code, a press on one of those buttons? i'd like to 'press' one of them for an initial state so that the list it controls will load first off instead of waiting for the person to click it manually and THEN show the list it's connected to. thing is, the first loaded list is going to be random, so i need to 'press' what on another day/load would be a button that the user would press themselves.
in other words, i have 3 buttons. on random, i have to 'press', say button 2, to start. users can press 1 or 3 and then 2 again if they like. another time, it's button 1 that gets 'pressed' on load, etc. make sense? i have a sneaking suspicion it might be easy... or stupidly convoluted.
I have 6 button call m1-m6...ok my problem is how to disabled button when one of the button being press...and also stt.text will display crrently selected button...coz currently when I press the button it never stated and also 'stt.text ' also show nothing.
[Code]...
I have a button which on press will go to next frame. I want to disable this button by on press another button.[code]
View 2 RepliesWhat I am trying to do is to force MC�s to press each other down after loading content.I have MC1, MC2, MC3� Each MC has dynamic text box with function �content_txt.autoSize = true;� and each one is loading text content from XML files.Is there any way to force MC2 to go down, under MC1, depending of the size of loaded text in MC1? Something like: MC2._y = MC1.height + someNumberOfPixels
View 5 RepliesHow would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 RepliesI know how to make a button and all.. but what do I do to make it go to the next scene?
scene 1: Startsidan
scene 2: Sidan
I made a frontpage and when I click on the picture I want it to go to scene 2, where it enters the inside.
the button is called PortalenKnappen, I want to be able to just press on it and it will go to the "sidan(scene 2)" that's empty at the moment.
what would I have to write? I've tried "portalenKnappen.onPress nextScene("sidan", 1"); but it doesn't work.
I know theres a way to do this.how to press a button with AS[code]...
View 7 RepliesOK, say I have a button that does something, like go to the next frame, is there anyway to have it play a simple sound located in the library without looping?
View 8 RepliesHow can i do that when you press on a button you will go to another frame of the layer?I am using Macrome6dia Flash Professional 8!
View 1 Repliesi want the main page to drop off after button press
View 2 Replieswhen i press on Button and hold down i want to increment.[code]
View 6 RepliesI'm still struggling with a move from AS2 to AS3 so please be gentle with me I have this code for a submit button used with a log in form and I'd like to allow users to press the enter key as well as clicking the button.
[Code]...
I have a TextArea with undo/redo which is performed via ctrl+z, ctrl+y. My app is a mobile app with no cntrl on the soft keyboard so I want to make an undo and a redo button which simulates the keypresses. How do you simulate keys in Flex?
View 1 Replieshow can i run a php script when i press a button in flash? i have a php script that save data to database.. and i want to control this script by a button in the flash.. so the data saved only if i press the button in flash.. what function i must use in AS3?
View 1 RepliesI am developing a application which loads different swf's on press of a button. I am using flash.display.Loader class. This works fine in normal scenario. When the network is slow, and the user clicks on the button several times, it tries to load many swf's. This results in ambiguous results such as showing up a different swf. How do I make sure only one swf is loaded at a time?I found a method Loader.close() which closes the connection, the problem I face with that is how do I know if the load is happening. There is a property connected in URLStream, which I cannot use here since i am using display.Loader.
View 1 RepliesI'm using a movie clip as a button, and I want actionscript to 'press' this when the site loads. I've searched the forums and have only come across using onPress to do so, but it doesn't work.
Code:
_root.Interface.Sculpture.Button01.onPress();
stop()
[code].....
I was wondering if anyone could take a look at my movie, and tell me why this code is not firing:
Code:
this.selectRoute.presenter_btn.onRelease = function() {
trace("pressing");
[code].....
how come this isn't working?
Code:
on(release){
_root.terrain.clear = true;
}
"terrain" is the line that is drawn by the mouse and i want to make a button with AS to delete the lines when pressed.