ActionScript 2.0 :: CS3 - Scrolling Content From A Different Frame
Jul 28, 2009
The scenario is: An HTML frameset with 2 frames. I need to create a button in Actionscript 3 (and put it in the top frame) in order to scroll down the content of the main frame. I thought of Javascript. I end up writing a script that works but when I call the Javascript function in Actionscript nothing happens. Maybe a silly mistake maybe not...
If you want to test it, download my files here.
My source code is:
The Javascript in the html of the top frame:
Code:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
function pageScrollDn()
An HTML frameset with 2 frames. I need to create a button in Actionscript 3 (and put it in the top frame) in order to scroll down the content of the main frame. I thought of Javascript. I end up writing a script that works but when I call the Javascript function in Actionscript nothing happens. Maybe a silly mistake maybe not...
An HTML frameset with 2 frames. I need to create a button in Actionscript 3 (and put it in the top frame) in order to scroll down the content of the main frame. I thought of Javascript. I end up writing a script that works but when I call the Javascript function in Actionscript nothing happens. Maybe a silly mistake maybe not...
The scenario is: An HTML frameset with 2 frames. I need to create a button in Actionscript 3 (and put it in the top frame) in order to scroll down the content of the main frame. I thought of Javascript. I end up writing a script that works but when I call the Javascript function in Actionscript nothing happens. Maybe a silly mistake maybe not. If you want to test it, download files: [URL]
My source code is: The Javascript in the html of the top frame: Code: <Script Language="JavaScript" Type="Text/JavaScript"> <!-- function pageScrollDn() { top.mainFrame.scrollBy(0,15); [Code] .....
I have a Flash website and would like to add content that resides within a scrolling pane and I'm unsure of the best way to proceed.Content is single Excel doc comprised of several tables listing machine equipment parts in a table format.There are no active/formula cells.These are simply multi-column / multi-row tables with simple data already entered.I want to display these tables within the confines of an existing Flash website and need some help, firstly, with identifying the simplest way to proceed.
I am running into an issue with the Flash ScrollPane component. I have a series of graphics that I load into the scrollpane using contentpath. One of the bigger more complicated graphics seems to be shutting down the scrollpane. Once it is loaded the scrollbars on the sides are very small and when you try to scroll all the content disappears. The arrows seem to work, but that kind of negates the point of the scrollpane. The scrollpane works fine with all of the other graphics I load into it.
how to get the scrollpane to take on the more complicated graphic? It is a series of drawing shapes and about 70 graphic instances.
I'm looking for tutorials that show how to create scrolling content in flash, but instead of an auto scroll, I would like to click and drag the content.Similar to the link below.
I'm working on a banner advertisement but I've hit a bit of a snag. First, here's what I'm trying to do.
1 - Eight MovieClips are added to the timeline. They are based on a MovieClip in the library which contains 1 dynamic text field.
2 - Content is to scroll on screen(from right-to-left), then off in a cyclic pattern. Once an item is scrolled off-screen, it's position is reset it's original position (slightly off-screen on the right side) effectively preparing them for more scrolling.
3 - The same MovieClip can't scroll in if it was the last one to be on-screen.
That's it really. When the clips are created, the dynamic text field for each is set to a counter value which basically gives each a number from 1 to 9, letting me differentiate each clip from the one other. As it is right now, it 'sort of' works which well, just doesn't cut it which is why I'm here. Content merrily scrolls maybe 3 or 4 times on average, then nothing happens. I'm sure my logic is wrong somehow (obviously) but I'm going cross-eyed trying to figure it out.
Here's a link to the source .FLA. I'm using CS4 but I saved it as CS3 to cater to the largest group possible.
Source .FLA
Oh, and I'm using the caurina Tweener package for the scrolling of MovieClips. use any tweening package, native or otherwise..
I have a project for my website and I would like to add scrollbar to the 3 pages. I have different layers for each page (with animation on each of them) and some layers start at different frames for example layer 1 goes from frame 1 to 20 layer 2 from frame 5 to 20 layer 3 from frame 10 to 20 how can you do this? do you select everything on frame 20 and convert it into a MC? Where do place the mask?
I have seen the tutorial that explains how to scroll a movie clip but there was only 1 frame and I do not know how to adapt it to multiple layers
But this is only for 1 movieclip. And I need the entire stage and everything of whats in it (except for the layer with the background image) to be moved this way. But how?Also want the scroll to be restricted to a max y-position of 860px even if the entire stage goes as far as a height of 1508px.
I have a movieclip linked to a scrollPane.It loads into it fine. The problem is that the scrollPane won't scroll the full size of the movieclip. The movieclip is about 1000 high. If I set the scrollpane size to 500 by 500, it'll scroll down about 600y of the movieclip, but no further.How do you tell a scrollPane to allow scrolling the full size of it's content?And on a similar thread, is there a way to tell a whole swf to scroll? So if you have a swf that's 1000x 500y, and it's dynamic content becomes 1000x 800y, can you make the whole swf scroll like an html page, or do you have to encase all the content in a scrollpane?
What is the best way to create buttons to give content a scrolling function.The functionality is provided by ScrollPane, where content, images etc. can be used and scrolled but aesthetically buttons are preferred.There is actionscript for creating scrollable text fields with buttons, but it requires constant clicking and only applies to text. Just mentioning this if there is something similar to attain the functionality of ScrollPane for content.
I would like to scroll content in a Movie Clip (size: 10000 x 8000 px) with Flash Scrollpane component (AS3). However, I want to make the content scroll in both X & Y axis instead of along of the scrollbar axis. How can I achieve this?
i've got a fair bit of text i'm trying to keep on an internal page by just making each section a scrolling content box. So there are 3 buttons at the top, each 'scrolls' onto a new section and I would like the ability for it to scroll back too, hence using the tween class to do this. I've managed to set it up and each button goes to each 'page' fine in reading order, so to speak (1, 2, 3), but if I got to 1, 2 then back to 1 it will start from 0 on the x axis.
Basically what i'm wanting to do is set the tween from the current _x value. So if I go 1, 2, then back to one, it will take the current _x value from 2, and scroll the opposite direction back to one. I am using the following code on the buttons:
when I leave a window with flash content, in this case, a scrolling movie clip with buttons inside set to hyperlink popups (only 1 hyperlink is set so far): [URL] the flash content will disappear. So if I go back to the window, I have to reload the page to get the flash to appear again. Same thing happens if I minimize the window, when I bring it back up, no flash, and I have to reload the page. The menubar with the boxes at the top is flash as well (different swf) and that doesn't have this problem.
The first problem I have is I have created a scrolling text box - it's a list of items - and I want the user to be able to click on an item and then a specific frame load that relates to that item.
I'm sure this is possible but at the moment I can only work out how to add a normal html link inside the external text file so when clicking on the link it loads an actual webpage.
I have a dynamic text filed scrolling with a drag button on a track or the mousewheel. What I am trying to do now is have the scroll button and track not visible if the content is smaller than the text field.
ActionScript Code: //this if statement not working as should. button and track are always invisible. //txt is text field name if (txt.textHeight < txt.height){[code]......
Noob question, I hope. I need to create scrolling text areas with rich text format content. I know I can use the textArea component and set the htmlText property but converting all of my RTF to HTML is gonna be a major pain in the @$$. I keep getting into trouble thinking what's mindlessly easy in Director/Lingo is gonna be reasonably simple in Flash/AS3, I hoping this is just my inexperience with Flash getting in the way. Is there an easier way? I thought of embedding a PDF document but apparently that's not an option in Flash either (note: I know how to link a PDF doc, I need this text to display and scroll within the application, not just pop a new window on top).
I am tweening text slowly like a marquee style, and I cant seem to get it smooth (it's stuttering and jerky). I am embedding the font, converting it to a bitmap, turning smoothing on, then using GTween for tweening it. If I use a very high frame rate I can see it gets smoother (I am using 24fps) but it should already be better than it is at 24. However, I would like to apply a higher framerate to this movieclip, how do I do that with AS3?I found this method, but updateAfterEvent() is outdated (only for onMouseMove, etc..) :
function timelineFaster() { nextFrame(); updateAfterEvent();[code]....
In general I would like to learn more dynamic control of individual movieclips, this could be a powerful weapon to have Whats the best technique? (prefer in scripting...)
I'm busy building a website in Flash AS3. I tried to create the same effect as [URL] (click on enter site) But my file is scrolling too far. So far that there's white. You also can drag it with your mouse to get the white background. And that's not what I want. Maybe I have to set a limit for scrolling or a stop() somewhere in a frame.. I only don't know where and how, and how to search google for tutorials.. This is a link to my file: [URL] And this is my AS3 Code:
I made a scrollbar class that works pretty well. I'm trying to come up with an idea for how to set to the height of the scrollbar vs the height of the scrolling content. This is a standard thing that happen in the OS. Seems there should be a minimum number and the maximum value should be reached as the size of the content approaches the size of the visible area.
when i click the aboutUs_btn , gotoAndStop moves me into frame 3.. trance confirms frame 3, but content in 3 does not apear on sceen. no errors reported.
here is the code
var myStage:Stage=this.stage; myStage.scaleMode=StageScaleMode.NO_SCALE; myStage.align=StageAlign.TOP_LEFT;
So the first frame will be password protected if someone know the password he can go to next frame. I want that passwords was in .txt file (so every password have his own .txt file). And if someone type correct password and go to next frame the .txt file of this password will be deleted (so you can use password only once). I want to put this game to my website so the txt files will be in online folder.
I have a project where I am using frames as pages for my website. I have a frame with a movie clip that has some AS that imports some things but the problem is that when I navigate to a new page/frame part of the movie appears on top of the other frame/page's content. How do make this stop when exiting that frame?Here is the code from the movie
ActionScript Code: // Copyright flashmo.com // Developed by Min Thu
I have a preloader.swf that loads the main "content" swf of my website. All is working alright, except once the preloader is done, the content swf doesn't start at frame one. Basically in the content swf I have some images and text that scroll onto the screen at frame one before the 'home' screen, but when preloader finishes it skips the animation and goes straight to the home screen. This isn't a big deal, but obviously it would be nice it people could see the animations at the start...
The script for the preloader is: var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent .PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLET E, done); l.load(new URLRequest("content.swf")); function loop(e:ProgressEvent):void{ var perc:Number = e.bytesLoaded / e.bytesTotal; [Code] .....
I've been able to connect with a DB, use a server side ASP script to check a user name and password in the SQL Server DB and get back a score number.
login_bttn.addEventListener(MouseEvent.CLICK,sendData,false,0,true); function sendData(event:MouseEvent):void{ var userName:String = username_txt.text;
I have been searching on how to do this but I haven't found anything that I can use yet. I have a flash template that has about 6 different flash files. There is a menu on the right side that allows you to call the other files like this.