ActionScript 2.0 :: FlipBook - KeyListener Not Going Away
Apr 12, 2011
I have a flipbook that I'm making and I'm having some problems getting rid of a certain keyListener... Here's the dealio.. This is the trouble-maker script that's on frame 3:
stop();
Key.removeListener(keyListener_n)
keyListener_np = new Object();
var repeatTest;
keyListener_np.onKeyDown = function(){
[Code] .....
I have a SWF with a keyListener that I am using to toggle the visibility of a movie clip.This works great when I play the SWF in the FlashPlayer.exe.When the SWF is placed into a PDF, the mouse events all work great, but the keyListener no longer works
i m just making a game for multiple questions, now i want to give some short key to select objective questions like a for 1st object nd b of 2nd object nd enter for submit . Here the sample of code which i used:-
Now when i use a,b,c,d keys in normal window of browser that time it's work properly but when i used fullscreen window of browser that time it's not working.
I got a little problem on a simple code: There are 5 Mcs on stage named Key1 to Key5. I got a listener on keyboard that put the mc alpha to 40 if you press the key of the mc (1 - 5), and turn the alpha to 100 if key isn't pressed
Code: var keyListener:Object = new Object(); keyListener.onKeyDown = function() { if (Key.isDown(49))key1._alpha=40;
[Code]....
The problem is that it works perfectly if you press a key at time, but it don't work if you press the 5 keys simultaneously , (make strange things :'1' to '4' pressed works, but '3' to '5' make the 5th mc as un-pressed) Is there a fine way to test if the 3 simultaneous keys (char '3' to '5') are pressed ?
I want to add a key listener to my stage, but from an object 2 depths below the stage. How would I do this? I thought about adding the listener from my doc class, but the listener function is in the object that is two depths below the stage, which would mean I would have to pass the key values to the next movie clip, then when that one is loaded, pass it to the one with the listener function. It seems very complicated, is there an easier way which keeps with the principle of OOP?
In a "container" movie I have an imported swf flipbook from indesign that needs some buttons to move through pages. I can control it with a simple nextFrame() and prevFrame() but this is done without the page curling/turning effect. Does anybody know which as3 command(s) or function(s) calls the turning effect like when clicked at corner of pages?
I am creating a flipbook application for a magazine. I am using Flash CS4(AS3) to build a navigation interface which contains a UILoader that loads magazine pages in SWF format created by InDesign CS5.Initially I was loading one large SWF file for the magazine pages. Internal links on the table of contents worked great but the load time was ridiculous. Now I am loading individual SWF files for each spread (adjacent pages) and the load time is great, however the links on the table of contents no longer work, which I expected.
The links still appear to be on the page however they don't appear to do anything. I have managed to interrogate the display list objects within the SWF file and the links appear to be of SimpleButton type. Some are even recognized as having HTML significance, they are given an instance name of "Hlnk#" instead of just "Instance#".I think my problem is that I can't/don't know how to get to the event that is triggered by the link/SimpleButton object. If I could see what page it is referencing I could load it.
I have recently purchased Pageflip 3.6 (http://pageflip.hu/) for a project at work and what I am planning on doing is implementing a guest book which i have created in flash.The guest book I created consists of a file upload (for images) a comment entry and a signature section (where the user has a choice between a bunch of fonts and writes there name) which are located on the left page of the flip book and then on the right page it displays the post (using XML).
Now the guest book on its own works like a charm, but when it is called into Pageflip the buttons for the upload/submit stop working and nothing happens.The way Pageflip pulls in the swf/png/jpg to fill its content is through an XML file.Pageflip does have hot spots and controls to switch pages directly within the book but I have disabled them so that you can only switch pages through the control bar, as I thought the hot spots were conflicting with the input for the guest book but it didn't do anything it still will not allow me to use the controls for the guest book.
I know this might be kind of confusing I hope i described my problem clearly enough and any help or input at all would be fantastic. I'm fairly green with actionscript but i'm the only one at my agency that knows how to use it so its tough on me to do these advanced things without anyone to bounce ideas off of
I'm interested in coming up with a flipbook which turn to another page, with a "turn page" animation. Exacly like what they did for Fullerton, at this URL...I got a great reply from JCS (thanx again dude!), who passed me a fla where they came out with a flip book, but you'll have to manually drag the page frm one page to another. Technically this flip book is more superior, as the user can flip the book manually, and it looks very very cool, but the thing is, there doens't seem to be a way to flip all the way to the last page withouth going through all the pages in between, and that sucks, as imagine that the document has like 50 pages!. BTW, the file in JCS sent can be downloaded here.URL...So basically, I want to modify the script to enable the the page to turn automatically when clicked, instead of having to drag the page.
You know those paper flipbooks you would have as a kid where you would flip the pages and it would like like a moving image? How cartoons are made? I need to make that on the computer. I have a series of jpeg that I want to cycle one after another every second or so.
I want to create Flipbook in flex/Flash. Normally its created via XML and XML has some image or swf list it is loading as page in flipbook. But I want to create this functionality directly from the PDF file. Just developer need to give only PDF file name/path flip book will generate automatically.
I've created a flipbook in Flash. It pretty much looks the way I want it to except for one thing. On the 3rd and 4th page I've created a spread where it has have a movieclip playing inside the pages. It plays fine but everytime you're about to flip to the next or previous page it keeps playing the animation inside the page. Obviously I only want it to play once. Even though I put a 'stop' function inside the movieclip it still loops the animation. It looks like I have to set a function at the top level so it disables the movieclip after the first page-flip. Is this possible? Or is there another way that I can make the animation stop looping when about to flip pages? I could only attach the actionscript in word doc as the fla and swf where too big to attach. If you're happy to look into it I can email it to you.