ActionScript 2.0 :: Create An Faq Page Using Xml - When You Click Again It Disappears?
Sep 27, 2011
i am trying to create an Faq page using xml.. and actionscript 2.0. the question and answers are laid out in a tree stucture form.on clicking a question answer appears below it when you click again it disappears..how should i go about it..i have very litlle knowledge in xml parsing..
i need to create a progress bar which will increment while the html page is loading in mobile web browser for flashlite 3.0. how can i create a progress bar which increments and disappears when the html page is loaded completely? i also need to add icons like reload , cancel etc in the go to address bar,where user enters URL. is there any source code available?
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void { this.gotoAndPlay(30);} function out(event:MouseEvent):void {[code].....
It is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class senocular .url... but it does not work.[code]
I am doing a video that I need to start playing automatically, but it has to start playing muted.For this part I am using the following code
Code:
vid.playPauseButton = playpauseVid; vid.volume = 0; vid._uiMgr._isMuted = true; vid.muteButton = mute; vid is my video instance name.
This works great so far. But now the client wants to ad a big button over the video that says PLAY WITH SOUND. And that button has to serve the same function as the unmute button but it has to disappear once it is clicked.
I tried to add that disappear code to my already functioning mute button, what is happening is that it is applying the this._visible=false before it unmutes. So the button disappears before it has a chance to unmute the audio Got it working.
I have a movieclip-button with these functions: Code: Select allfunction onRollOverHandler1(myEvent:MouseEvent){ Object(root).service.service_info.gotoAndPlay("earth"); }function onClickHandler1(myEvent:MouseEvent){ Object(root).service.service_info.gotoAndPlay("ninja"); } function onRollOutHandler1(myEvent:MouseEvent){ Object(root).service.service_info.gotoAndPlay("noinfo"); }
The problem is that when I click the button and rollout of the button, the embedded FLV which starts playing when I click disappears immediately. I would imagine its because I have a onRollOut-function who overrides the onClick.
I want to create a button which in a press state shows an image and removes it when its unpressed.Now the problem im facing is whenever i click the button the image appears but it soon dissapears as i lose the click.
Okay, so I have used this many times before but I cannot figure out how to fix this. This is what happened. after i open up any type of document like an actionscript 3.0 document or anything, if i draw with the paint brush as soon as i let go of the mouse button the line disappears. If i go into the timeline and click on the frame it shows up again, but if i draw again it disappears and i have to click on the frame to see it.
It is possible to create a "virtual mouse" which will be click on links on the HTML page loaded into HTMLLoader? I tried to do this using the class [URL] - but it does not work I have something like this:
Take a look at this site. [URL] You notice when you click on a button the current 'site' you are on dissapears befor the next one loads. How is this done? It's like the code tells flash first to 'close' the current page and then load the page you clicked on.
I have a files that is loading and parsing a huge amount of data from a csv file and creating and plotting a graph using the data. All is well if I have the file loaded on the first frame of the movie. But if I pass in the URL by entering the file name in a text input field and clicking a button. The X and Y axis values disappear as do intermittent notes placed above the bar graph. I still see the x and y axis and it's hash marks and the bar graph (shapes) but all of the text is gone.
I created a movieclip animation that only activates when i rollover the movieclip button. I further extended the frames and created another frame animation that i active only when user clicks the button. So i have a roll over/out animation and click animation in the same movieclip in the same layer. Now the problem is that when i click on the button, its supposed to take me to another page, and it does, unfortunately without the click animation. That means after i click on the button its supposed to first finish the click animation and then go to another page. But when i click, it takes me to another page without showing the click animation
SO I tried the If function, but i seem to make a mistake somewhere and i dont know what to do. Now there is no error in script, but onw there is a problem in link, the button finishes the click animation but it does not go to the tarrgeted"about" frame. here's the code
I have a movie clip that loads in the main timeline, when i click on any of my buttons theres a quick flash of the main page. Im loading my movies on level 1 so i guess my question is, how do i get rid of the movie on the main time line?
When I click on a field to edit, the | symbol that allows you to type new text (for example, a timeline folder's name) disappears as quickly as it appears, therefore no way to edit anything.
You've seen those Input Text Fields on web sites that have titles on them, i.e. Name, Email, Message, in the Text field itself.Then, when you click on the the text field to type something in, the "title" disappears and you can type your info in.
I'm trying to create a game where circles appear on the stage and when the user clicks on one it disappears and their score is updated. The circles appear for a short time then dissapear. If they dissapear before the user clicks the user looses points. The game is to last 20 seconds then the user will be shown their score and a little thanks for player message. This is what I have so far:
stop(); addEventListener(Event.ENTER_FRAME, playGame); function playGame(Event):void {
[code]....
Now what I'm having trouble with is all the timing. I need a way to turn the visibility off the circles after a few seconds of being created and I also need to set the duration of the game for 20 seconds.
I know this cant be too difficult, but please entertain me I want to create a button on my web page for zoom in and out (the whole web page).
In IE you can achieve this by doing the following - "Press and hold the contol button and then press the - (minus) button (Ctrl -)." or click on the view option at the top of the browser>>zoom>>zoom out.
I'm trying to edit a Flash file, that get it's data from and XML file.Now when you click on one of the menu items, the page + page title should change, but somehow the page title remains the same. (at least for the first 3 menu items) But when you go to the last menu item and then back to one of the first 3 menu items, the correct page title is shown.I'm no flash / AS expert, so I can't really find out what the problem is, but it seems like it has something to do with this function
I have a particle generator class and I want to create a hitTestObject function on another object to check for any collisions with the particles produced.I bascially have a character already on the stage called character_mc and I want to be able to collect the particles, that means when the character touches a particle, the particle disappears.
You've seen those Input Text Fields on web sites that have titles on them, i.e. Name, Email, Message, in the Text field itself. Then, when you click on the the text field to type something in, the "title" disappears and you can type your info in. Perfect example: [URL] (Under "contact")
If I "Right Mouse Click" on a Flash SWF file embedded in a page and click "Print" it prints just the flash, in perfect colour etc etc..How can I achieve this exact operation, but as a button in Flash? So it prints just as if I did the above operation.
As an extra, if you know how - Is there any way I can default the page to print out "Landscape" too ?
I am trying to create a page transition that will play a movieCLip transition into a page. and then it stops then when another button is pressed, it will play that transition out while loading the appropriate one. In the attached FLA, if you click on the red button first, the blue transition plays,
it works correctly/ Playing out of the blue Transition and into the Red transition. However if I click it again it does the opposite, and just keep alternating.
If I add the
_root.transitionClip2.play("out");
to the first button then, nothing works right. I will eventually have more buttons, and may need to use a variable to control which "out" transitions is played, but how do I get the buttons to do this?I just want it to exit the current movie clip and play the "in" section of the desired clip.
I have a text object, which I've converted to a symbol (specifically a button, as intuition tells me this is what I would want).
Anyway, I want to make it so that when the user clicks on the button, it redirects them to a page on my website.
Now, I understand that I should be using navigateToURL(new URLRequest("sitegoeshere"));
but I can't figure out how to make it conditional so that it DOESNT execute that code until the user clicks on the object in the frame that the code is attached to.
One other problem as well is that as it is, when it gets to the recirect code, I get a popup saying that flash has stopped a potentially unsafe operation. How do I make it so that it doesn't simply deny the running of that code?
My dillema is that on my site when you load a video on one page then click on another page the audio keeps playing. I've had a look around other topics but nothing seems to work for me. I've put in things like videosname.stop() with no success.
The main problem is the page needs to be pushed down when the ad is opened, there needs to be a a code that will push the page down, not cover it up...
i am trying to make a new website where i want to add the map of the earth.My problem is that i want to make each country on the map, a different link. so for example if someone will click USA on the map, he will be redirected to a different page, relevant to USA.
I want to create 2 separate SWF's placed in specific locations on an HTML page. When you click on the one SWF it targets the other SWF to animate. [URL]
How would I create an effect so that when a user clicks a button, the page scrolls off the screen while a new one comes in? Would I create the page at like its width+the page width? would i have to create a whole different page for difference screen resolutions? (because my page takes up the whole width of the screen using the chromeless window script).
I'm aware of the .click() method but the click must be on a prezi loaded (flash) so don't really have a html element to use.
What I have instead are the exactly coordinates of the place I want to simulate click on. Is there any way I can do that?
The click must activate a flash element. (A play button)
Note: There is a similar question around that have an answer witch require swf control. I don't have that so that method is not applicable.
One other quick question... what happens if I simulate a click on an element that has display: none. It click on the elements "under" it? (as a normal click would do; and yes I know this sounds funny but I don't know how to explain it otherwise). If yes I was thinking of making a position absolute div, put it on top of flash and use .click(). The problem is that i have a feeling that the click won't be applied on flash.
This is somehow a combination of javascript simulate mouse click on specific position and mouse click somewhere else on page (not on a specific div).