[MX04] Scrollpane Loads Content But Not Scrolls...
Hello everyone...
My scrollpane loads and external swf file without problems. The thing is, the vertical scroll is not working.
Heres all the code im using:
Plz help
FlashKit > Flash Help > Flash General Help
Posted on: 09-10-2008, 10:27 AM
View Complete Forum Thread with Replies
Sponsored Links:
[MX04] Scrollpane: Controlling Content
Hi there,
I am on a little project and I'm testing some components I'd like to use. One of the me is the scrollpane.
I have managed to display the MovieClip called "mcContent" inside the scrollpane.
What I'd like to do, but didn't work, is to
Controll the mcContent itself (alpha etc.
and to add some additional content within the mcContent
When you look inside my code I'm using the code
Quote:
myScrollPane2.mcContent._alpha = 33;
which does not work at all. Please see attached file.
So how exactly do I have to write to access the methods and properties of a content inside a scrollpane?
Thanks for your help.
View Replies !
View Related
ScrollPane Scrolls Too Far [CS3]
I've installed a ScrollPane on a file with a stage of 550x500. The file loaded into the ScrollPane is 975 x 860. The scrollPane works just fine except that when dragging the scroller, it reaches the end of the document about a quarter of the way down and then shows lots of white space below the loaded document.
I can't imagine why. I don't see any parameters that controll this. Does anyone have an idea how I can constrict scrolling to the heigth of the file loaded?
View Replies !
View Related
Made Dynamic Scrollpane, But Scrolls To Far...any Fix?
Hello, I recently made a scrollpane which inserts all of its data dynamically from an xml file.
However if I have lets say 15 items, it scrolls down farther than I want to, past the items the it instered into the scrollpane. Is there a way in action script to set the scrollbar to scroll properly the amount of data that it inserts?
here is a link,
http://www.jozsefwittek.com/pito/
it would be great if anyone had any suggestions, cause Flash Livedocs didnt help one bit...LIvedocs are awefully poorly written.
Thanks in advance
View Replies !
View Related
One ScrollPane Scrolls Another ScrollPane?
Hi. I have 2 scrollPanes in 1 .swf. The left one loads in an mc with text and links. The right one is the main text content. I want users to be able to click on links in the left pane to vertically scroll the right pane.
Oh. And I need to publish this in Flash 6.
Thanks for any advice.
View Replies !
View Related
Browser Scrollbar Scrolls Content Inside A Flash Doc?
Hi there,
I have just been using a site whereby the actual browser scrollbar was controlled by the flash window (it wasnt a fake scroll bar, it was the actual browser bar)
Anyway, there was a list of flash table data inside a flash doc, that when the scrollbar was dragged, this content was scrolled and the frame work of the site remained in place (like a frameset)
I had a look a the code and found this...... does it inspire anyone as to how they have done this?
//var container=document.getElementById('CONTAINER');
var flashDIV=document.getElementById('ONE');
var SWF=document.getElementById('RWONE');
var scroller=document.getElementById('SCROLLER');
var flashHeight=document.getElementById('FHEIGHT');
var username="steve";
function getUser(){return username;}
scroller.onscroll = scrolled;
// ]]>
Thanks to any help in advance!
View Replies !
View Related
HTML Page Scrolls When Trying To Scroll Flash Content
Hi, I tried searching if there's a thread regarding this however I can't find one.
I'd I did some experiments on flash cs3 regarding scrolling content on a long HTML page with a scrollable flash content inside it, both for AS2 and AS3.
I seem to notice that AS2 swf files(even running under flash player 9) is able to lock the html page scrolling when the mouse pointer is over the swf content. AS3 doesn't however but there seems to be something working about it ..I was wondering where to ask or email regarding this problem, to any adobe staff, cause I seem to question how does a TextField class in AS3 able to lock scrolling of the page when you have a textfield instance in the flash content that is also scrollable(it scrolls first and when there's nothing to scroll, the html page continues to scroll). If anyone can contact or post somewhere regarding this issue? Please notify us here too.. it's really frustrating to not having implement a planned feature. Thanks!
View Replies !
View Related
Scrolling Menu Panel Scrolls Whole Stage Content, How To Restrict EventListener To Mouse.y <90 ?
hei folks,
the snippet attached works great, it scrolls (parallaxed) my menu horizontally left to right, when I move my mouse horizontally over the menu panel.
But if I klick on the menu buttons nested inside this menu panel, they do appear, unfortunatly does the content also scrolls horizontally if I move to the menu to select another Button :(
I am not able to modify this code-snippet from user kglad, that it doesnt scroll the whole stage but the panel itself.
Can someone please give me a hint, on this menu I have spent hours, bloody learn curve.
source of this code: user kglad - thank you very much kglad btw.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid=1324923&highlight_key=y&keyword1=scroll#4807043
Attach Code
root.addEventListener(MouseEvent.MOUSE_MOVE,f);
var t:Timer=new Timer(30,0);
t.addEventListener(TimerEvent.TIMER,moveF);
function f(e:MouseEvent) {
if(root.mouseY<250) {
t.start(); }
else {
t.stop();
} }
var speed:Number = .9;
function moveF(e:TimerEvent) {
front_mc.x =speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
if (Math.abs(front_mc.x- (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1 && Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1) {
front_mc.x = (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = (stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
t.stop();
}
e.updateAfterEvent();
}
View Replies !
View Related
Swapping Scrollpane Content With Button Outside Scrollpane
Hi,
I'm terribly new to flash which is probably why I couldn't solve this with any tutorial out there.
I've got a scrollpane, and outside that I have a few buttons working as a nav bar. I want these buttons to load a different movieclip (which isn't in the stage, it's in the library) to the scrollpane.
Using the tutorial on this site (the one where you add or remove a blue movieclip to the scrollpane) I got as far as adding the movieclip to the scrollpane. Problem is, I need the buttons to unload the current movieclip before loading the new one.
(So for example, if the movieclip called "home" is loaded in the scrollpane and I click on the button "Patterns & Textures" I want that button to unload "home" from the scrollpane and load the movieclip "patterns")
My code so far looks like this:
Code:
scrollPane.setStyle("borderStyle", "none");
var i:Number=0;
var mcMain:MovieClip;
function init() {
scrollPane.contentPath = "home";
mcMain = scrollPane.content;
trace(mcMain);
}
init();
brushes_btn.onRelease = function() {
mcMain.attachMovie("brushes", "brushes"+i, mcMain.getNextHighestDepth(), {_y:50*i+5, _x:5});
i++;
scrollPane.invalidate();
};
Taken from the tutorial.
I'm pretty sure I don't need the + i part because I won't have more than one mc in the scrollpane at once, but I don't know how to remove it without screwing it up.
I'd greatly appreciate any help!
View Replies !
View Related
[F8] SWF Loads Outside ScrollPane Instead Of Inside It
I needed to load X number of instance of an swf file into a scrollpane component. So I created an empty movie clip called pbox that loads the instances of the SWF file. Then pbox is set as the contentPath for the scrollpane.
Here is the code in the first frame of pbox
Code:
// Load board fROOM ROOM 1
_root.createEmptyMovieClip("ROOM1",4);
_root.ROOM1.loadMovie("board_object.swf");
_root.ROOM1._x = 18;
_root.ROOM1._y = 0;
// Load board fROOM ROOM 2
_root.createEmptyMovieClip("ROOM2",3);
_root.ROOM2.loadMovie("board_object.swf");
_root.ROOM2._x = 18;
_root.ROOM2._y = 225;
// Load board fROOM ROOM 3
_root.createEmptyMovieClip("ROOM3",2);
_root.ROOM3.loadMovie("board_object.swf");
_root.ROOM3._x = 18;
_root.ROOM3._y = 450;
// Load board fROOM ROOM 4
_root.createEmptyMovieClip("ROOM4",1);
_root.ROOM4.loadMovie("board_object.swf");
_root.ROOM4._x = 18;
_root.ROOM4._y = 680;
Here is the code in the first frame of the main movie which sets the content path to load the movie clip containing the other clips.
Code:
scrollPane.contentPath = "pbox";
The problem is that the movies load on top of the scrollpane component instead of inside it, even though the clip is set as the contentPath for the scrollpane. How do I get the movies to load inside of the scrollpane component?
View Replies !
View Related
Scrollpane Content Not Limited To Scrollpane
I am using the scrollpane component in flash mx. I have content loaded into the scrollpane via actionscript. The content loads up, but the scrollbars scroll it past the edges of the scrollpane. The content then overlaps the rest of my movie(outside the scrollpane. How can I fix this? shouldn't there be a mask there? thanks for your help, garrett
View Replies !
View Related
Postioning Content In Scrollpane Without Using Scrollpane
Hi guys.
Not sure if this is possible. i had a look through the help files but had no luck I have 2 questions so here goes.
i am using V2 components in particular the scrollbar component.
I am attaching an mc to the scrollbar the mc contains several lines of text.
Is it possible to use a button elsewhere in the movie to set the postion of the mc in the scrollpane. Essentially moving the content up or done without using the scroll pane buttons or track bar?
How on earth do i change the colour of the scrollbar track button?
thanks
Paul
View Replies !
View Related
Mx04: Load Movie Loads Behind My Swf?
hi i'm having a problem with a load movie command,
basically on my mainline i have this code;
stop();
_root.emptyClip.loadMovie("01a kitchens-cont.swf");
The swf is then substituted for different files when different actions are reached (a button sends them to a certain frame which then gives the above command except swapping the '.swf' to another .swf)
I assumed that by loading in a movie and then loading another one in it replaces it as i haven't set any level except some of my swf's are loading in behind some of my other swfs. anychance of some guidence?
I've included the fla!
thanks for any help!
View Replies !
View Related
[MX04] Math.random Randomly Loads Nothing?
Hi there. I have a presentation which I want to play music randomly each time it starts. I have 3 music files. I have put them into the timeline of 3 movieclips (mc0, mc1, mc2) with are loaded using the math.random script (below):
clipNum=Math.floor (Math.random () *4);
_root.attachMovie("mc"+clipNum, "mc",1);
This works okay, but it also loads nothing randomly, leaving me with no sound at all?
I have attached a test movie which I made with shapes in movieclips, which does the same thing; every so often it loads nothing.
Does anyone know what is wrong with the script, or if there is something I need to add so that it loads a mc every time?
Thanks
View Replies !
View Related
LoadMovie --> Movie Loads, No Content?
I've got a movie that loads XML content and produces a scrollable list. It works fine when I run the published html file, but when I attempt to load the swf as a movie within a master flash page it will load the
movie but the list will never appear. What are the possible reasons that this could happen? The clip plays through, but the list is never created.
View Replies !
View Related
Button With An Action That Loads Content
I am as n00b as n00b can be. I know all the basic basic stuff, but hardly know anything about action scripting. Anyone know any good sites for beginning tutorials and stuff? I download some .fla's and some things just don't make sense. Anyways, on to my real question.
If I have a site and someone clicks a button on it (a flash site that is) and I want the content to load at point B, like in the bottom corner. How do I do that? I know how to make a button, I just don't know how to create an action for a button. I know that sounds kinda weird explaining it, because I'm not the best at it. Like, if you click a button and I want a page to load, how do I do that?
View Replies !
View Related
[MX04] How Much Of A Streamed MP3 File Loads Before Play Actually Starts?
I built a streaming MP3 player (XML driven) that also has an equalizer (well.. a random animation of bar mc's the simulate an EQ anyway...) The EQ even scales up/down as you adjust the volume.
Ok.. here's my issue : When you press either the play or pause buttons, it will hide or show the EQ mc. BUT because the tracks are streaming, Flash had to load a certain amount of the file before it actually starts playing in the browser. So it looks funny when the EQ starts cranking away but the track hasn't started playing yet.
So now my question :
How can i make the EQ wait to display until the track is ACTUALLY playing? I can't really just put a generic delay on it, because of obvious reasons (connection speed, file size etc)
Is there a predefined number of bytes/percentage of a file that has to load before the file actually starts playing in Flash?? I've looked all over and haven't found any info anywhere.
If you need to see my code or need more info, let me know. I'll be happy to post.
Thanks for any help/ideas!!
View Replies !
View Related
[MX04] Xml.sendAndLoad Issue... Data Loads But Cant Access Attributes?
Im using xml.sendAndLoad to manipulate an xml file. I have no issues saving to and loading from the file, but for some reason after i appendChild and saveAndLoad I cant access any of the attributes of the new child.
For instance i will get this back as the new child:
<server name="fff" address="fffff" />
but if i do myNode.attributes.name or myNode.attributes.address i get "undefined".
If I close the swf and run it again the values that were showing as "undefined" load fine, all pre-existing nodes load fine as well, its only the nodes added before sendAndLoad that for some reason return "undefined" when trying to access their attributes although as you can see the attributes are right there!
Please help!
View Replies !
View Related
Load Movie Loads Content Slowly Problem
Hi,
I am currently building a site where a main swf acts as a menu to load content swf's - Flash MX 2004 using the load movie behaviour to load the movies. This all works fine when I am viewing the site offline (as you would expect).
However, when I post the site to our web space and use it, there is a considerable delay before the movies begin to load (they vary in size from 8kb to 130kb and all have very simple preloaders attached).
If anyone has any ideas why this may be happenning or possible solutions - I'd love to hear form you!
Thanks in advance!
View Replies !
View Related
External XML Loads But Content Variable Remains Undefined
Ok after searching through most of this forum I couldn't find an answer to my question.
what i have got is an external XML file that loads the news data into flash where it is there parsed and assigned to a dynamic text box and styled with a style sheet. Through trace() if found the xml gets loaded properly but when i upload it to a webserver it does not always load. Many times the variable just reads out undefined. If i refresh it a few times it will eventually load. This is not acceptable of course. It needs to try until it loads. I thought i had the code to make this happen but Im afraid im mistaken.
here is the code, its inside the first frame of a simple swf with only the dynamic text box.
Code:
stop();
trace("1");
content_txt.htmlText = "Loading...";
var xmlData = new XML(this);
xmlData.ignoreWhite = true;
trace("commence loading of XML");
xmlData.onLoad = function(sucess) {
if(sucess) {
for (var n = 0; n<this.firstChild.childNodes.length; n++) {
trace("inside the for loop" + n);
_root.date = this.firstChild.childNodes[n].childNodes[0].firstChild.nodeValue;
_root.venue = this.firstChild.childNodes[n].childNodes[1].firstChild.nodeValue;
_root.city = this.firstChild.childNodes[n].childNodes[2].firstChild.nodeValue;
_root.info = this.firstChild.childNodes[n].childNodes[3].firstChild.nodeValue;
if (n<1) {
trace("im here inside the parser");
contentData = "<p><span class='head'>"+_root.date+"</span><br><span class='venue'>"+_root.venue+" -- "+_root.city+"</span><br><span class='info'><a href='showdate.php?showid="+_root.info+"' target='_blank'>Click Here For More Info</a></span></p><br>";
} else {
contentData += "<p><span class='head'>"+_root.date+"</span><br><span class='venue'>"+_root.venue+" -- "+_root.city+"</span><br><span class='info'><a href='showdate.php?showid="+_root.info+"' target='_blank'>Click Here For More Info</a></span></p><br>";
}
}
} else {
trace("XML no load");
content_txt.text = "Error";
}
};
xmlData.load("shows.xml");
var myCSS = new TextField.StyleSheet();
var cssURL = "shows.css";
myCSS.load(cssURL);
myCSS.onLoad = function(success) {
if (success) {
content_txt.styleSheet = myCSS;
content_txt.htmlText = contentData;
} else {
content_txt.text = "Error";
}
};
trace(contentData);
trace("done");
any thoughts?
View Replies !
View Related
[MX04] ScrollPane Scrollbar
Hi, i was wondering if anyone knew how to change the properties (specifically the colour) of a ScrollPane ScrollBar. I have tried this code...
myscrollpane.setStyle("scrollTrackColor","#0505FE" );
I put this code on the frame of the scrollpane not on the scrollpane itself.
If anyone could help i would really appreciate it
cheers
conani
View Replies !
View Related
Scrollpane Set Content ?
Is there a command to set the content of Scrollpane by Actionscript, and also how to detect when it loads completely. I'm having problems with it spilling out the content over its borders. I saw an idea to load the file in a Loader component wait for it to finish loading then load it into Scrollpane but don't know how to set the content in actionscript.
View Replies !
View Related
ScrollPane Content
Hi i am trying to take data that i recieve from a database and put
that data into a scroll pane. I can recieve the data fine and put it
on the page, but how can i add this to a scrollpane? here is my code
to get the data on the page.
function getShirts_Result(rs){
cant = rs.result.length //how many rows are in our recordset?
for(var i=0; i<cant; i++){
//Dinamyc put base on stage and fetch data to it
attachMovie("base", "base"+i, i, {_x:(300*(i%2))+250,_y:
425+(350*int(i/2))})
this["base"+i].ShirtName_txt.text =
rs.result.getItemAt(i).Name
this["base"+i].ShirtPrice_txt.text =
rs.result.getItemAt(i).Price
this["base"+i].ShirtPicture_ld.loadMovie(rs.result.getItemAt(i).Picture1)
}
}
ok so you can probably tell, but the movie clip base needs to be
loaded into the scrollpane and then the two text blocks and the loader
need to recieve the data from the db .
thanks for any help i have been trying to work this out, but nothing
shows up inside the scrollpane.
View Replies !
View Related
Scrollpane Content
i have a movie clip with a scrollPane name "scrollPane1"
after loading a movie clip "my_mc" into the scrollpane using the method scrollPane1.contentPath="my_mc" i want to add certain onclick and onrollover events to the components of the "my_mc" movie clip it is all being done on the fly and loads from dynamic set of data...can some one tell me some way by which i can access a button name "button1 " which is inside the movie clip "my_mc" which is placed in the scrollPane "scrollPane1"....
Hope this thing has a work around and some one knows it.....Hoping for a reply soon
View Replies !
View Related
Scrollpane Content
i have a movie clip with a scrollPane name "scrollPane1"
after loading a movie clip "my_mc" into the scrollpane using the method scrollPane1.contentPath="my_mc" i want to add certain onclick and onrollover events to the components of the "my_mc" movie clip it is all being done on the fly and loads from dynamic set of data...can some one tell me some way by which i can access a button name "button1 " which is inside the movie clip "my_mc" which is placed in the scrollPane "scrollPane1"....
Hope this thing has a work around and some one knows it.....Hoping for a reply soon
View Replies !
View Related
Scrollpane Content Too Big ~PLEASE HELP
Hi, frist time poster here. I have a limited knowledge of flash so please forgive me. Im doing a photography portfolio and i have a scrollpane which refuses to display the entire content. I created a jpg 480x3000px with all the images side by side. However the scrollpane only displays half of this. The scroll slider moves to the very end, but there is still over half the image left undisplayed. Is there any actionscript that will fix this? Ive spent all day online looking for the answer please, any help would be incredibly useful.
View Replies !
View Related
[MX04] Problem Adding A Second Scrollpane
Hi, I've build a website where I use a scrollpane, now I want to add another scrollpane in another place in the website so I duplicated the first one, changed element names in order I just have to modifie the content....but it does not work properly, even before I modifie content.
Am I trying to do something forbiden? what can I do?
Panchoskywalker.
View Replies !
View Related
[MX04] Customizing Scrollpane W/out Borders?
I'm trying to get rid of the border of my scrollpane. I just want the side arrows. Any ideas? (I've searched the forums and can't seem to find this issue resolved.)
I've also tried using the _global.styles.setStyle but keep getting an error message.
**Error** Scene=Scene 1, layer=component, frame=5:Line 17: Statement must appear within on/onClipEvent handler
_global.style.setStyle("color", 0x336699);
Am i just being an idiot?
View Replies !
View Related
ScrollPane Content Not In The Frame?
I am trying to dynamically create the content inside a Scroll Pane, but when the movie clip inside is has other movie clips attached to it, the content comes out of the frame. The scroll bars still move it up and down, but outside of the content frame, like it is on another layer.
I am refreshing the content of the frame, but it can't seem to handle it when the Movie clip inside of it changes due to attachmovie or duplicateMovieClip?
help!?
View Replies !
View Related
Content Of Scrollpane Component
I have this code i my scrollpane content movieclip:
for (i=1; i<=12; i++) {
attachMovie("linkname", "att"+[i], i);
setProperty("att"+[i], _x, i*80);
loadMovie("picture.jpg", "att"+[i])
}
OBS!! "att"+ is "att"+ [ i ] ...
I want the code to generate 12 movie clips called att1 to 12, all of them containing the 'picture.jpg'
And the scroller it self should only be able to display 5 instenses at a time.
When I do this, - I get NO scrolbars eventhough they are both set to 'auto'
Can anybody help me please??
Regards
Godowsky
View Replies !
View Related
Getting That Content Into The Scrollpane Component
Okay, - I try this question again...
Maybe this time I'm able to make it simple.
I have a contentmovie clip that is 'linked' to the scrollpane component, - in properties of the component Scroll content has the name of my contentmovie clip.
Okay, - If I place 5 movieclip instences in the contentmovie clip I get a perfect scroller, - BUT if I want to place the 5 movieclips dynamically, - it doesn't work.
SO my question is:
Who do I dynamically place content (movieclips) in the contentmovie clip of my scrollpane component.
Thanks
Godowsky
View Replies !
View Related
Scrollpane And LoadScroll Content Too Big?
Can't seem to figure out a problem I have with Scroll pane - basically I'm loading a swf into it. The size of the swf is larger than the Scrollpane. It loads in fine, but it loads in larger than the scrollpane itself - ie outside of it.
It only happens if I load it from a web server ie http:// address. If I load it locally it fits in fine.
I've tried different web servers too. Also tried it with JPGs and the same thing happens.
I've also installed the latest player into MX. Still the same.
I've seen a few people with the same problem but I can't seem to find the solution.
Any ideas?
View Replies !
View Related
Printing Content Of Scrollpane
Hi,
I have not found the relevant info in trying to print the content of a scrollpane. There is a JPEG converted into a clip. I have tried to use the #p on the frame I want to be printed, then I have placed a button on the main timeline targeting the "bmovie". when I print, I get an image of the interface and my scroll pane ..... How do u only print the content of the ScrollPane?
Many thanks,
Luke
View Replies !
View Related
Dynamic Content In A Scrollpane?
Hey all;
Here's what I would like to do, and I want to know the best way to do it:
I'm trying to make a movie that will display jpgs and text. The text describes each jpg. Its sort of a catalog, but without the ability to purchase. Simply shows a jpg of the product, and then some descriptive text next to it. This movie will get loaded into the main swf that contains the rest of the site.
I would like to be able to load these dynamically, and I would like it to be linked/referenced to/from either a txt or xml file, so that I can add new groups of jpgs and text easily.
The area I have to work with to display all this is 320x320px. So I was thinking a scrollpane would work best for displaying it all, but I'm not sure so....thats why I'm asking here.
Also, I'm not real familiar with the inner workings of the scrollpane, so any suggestions are greatly appreciated.
Thanks to all in advance.
View Replies !
View Related
Restricting Scrollpane Content?
I have a scrollpane created by script. Then the content of the scrollpane is created by script, which is a bunch of text fields attached to a mc. Then the content (mc) is assigned to the scrollpane. This works, but the content (rows of text fields)overflows the boundries of the scrollpane. How can I get the content to stay within the area of the scrollpane, and still be scrollable? Please help, I've searched the posts and can't find anything that adresses this.
//1
this.attachMovie("FScrollPaneSymbol", "myScrollPane_sp", 45);
this.myScrollPane_sp._x = 190
this.myScrollPane_sp._y = 125
this.myScrollPane_sp.setSize(594, 320);
this.myScrollPane_sp.setDragContent(false)
this.myScrollPane_sp.setVScroll("auto")
this.myScrollPane_sp.setHScroll(false)
//2
this.createEmptyMovieClip("blank_mc", 50)
var c = 1
var newY = 5
var theHeight = 50
var theName = "textbox_txt" + c
for (x = 0; x < 10; x++ ) {
this.blank_mc. createTextField(theName,100+c,5,newY,575,theHeight
);
//x,y coordinates are relative to reg pt of mc.
this.blank_mc[theName].border = true
this.blank_mc[theName].text = c + ". " + "Hello";
//calc next placement for next text field
newY += (theHeight + 5)
c++
var theName = "textbox_txt" + c
//reassign name
}
//3
this.myScrollPane_sp.setScrollContent(blank_mc);
//leave off quotes to use 'value' of mc
View Replies !
View Related
Changing Scrollpane Content
Hi everyone. I'm sure this is possible in some way but could anyone tell me how please?
I have a scrollpane displaying buttons and mcs inside. What I want to do is to be able to click buttons, which are inside the scrollpane, to change the content of the scrollpane.
1. I don't want to delete the scrollpane but just change the things inside.
2. Button determines the scrollpane content
I was thinking on the lines shown below which basically says when pressing a button go to layer2 but I'm sure this is not enough.
_level0.paneContent["button" + id].onRelease = function () {
gotoAndPlay("layer2");
}
View Replies !
View Related
Pre-loading Scrollpane Content
Hi
I've got a pretty simple movie.
2 scenes
second scene has scrollpane, to load external swf as content.
I have an action layer with this.
eggs_sp.loadScrollContent("eggs000.swf");
Works fine.
The first scene is to be the preloader.
with this script running the show.
if (eggs_sp._framesloaded >= _totalframes) {
gotoAndPlay ("Scene 2", "1");
} else {
total_bytes = eggs_sp._framesloaded.getBytesTotal();
loaded_bytes = eggs_sp._framesloaded.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
}
This is not working.
Help!
Thanks in advance
eggs
View Replies !
View Related
ScrollPane With Dynamic Content
well,
i want to show a movie clip with dynamic content in a scrollpane,
when i see it in my computer , its good , but in the internet
the content does not fit in the scroll pane, and it size is more than scroll pane and it fall outside of scroll pane,
and scroll pane's scrollbar does not appear,
what should i do ?!
thanks
View Replies !
View Related
Scrollpane Content Problems - Please Help
I am a newbie to Flash and am working in MX (not MX 2004). I am trying to use setScrollPosition to control the horizontal position of an SWF that is loaded with loadScrollContent into a scrollPane in the main flash movie. I want to control this scrolling with buttons that are on the main movie level.
Is this possible? I feel I am missing something basic here. I tried applying code like this to a button that I wanted to control the content's position with :
on (release) { contentpane.setScrollPosition(380,0);
}
I was hoping that upon clicking the button the loaded content inside the scrollpane would scroll to the position of (380,0) relative to the position of the scrollpane. But it just didn't work when i tested it. No movement at all. Will someone please tell me what I am doing wrong?
Also, will this cause the content in the scrollPane to jump to the new location or visibly scroll/slide to it? I wish to produce a visible scrolling effect.
thanks very much in advance to anyone who replies
- (a very frustrated) shadedblue
View Replies !
View Related
Scrollpane Content Alignment?
How do I align the content of scrollpanes? When I put sumthing in a movie clip and link the MC to the scrollpane, the MC scrolls but it automatically puts it up against the top left of the pain instead of in the center like i want it.
View Replies !
View Related
Targeting ScrollPane Content
Hey everyone,
I have a scrollPane on the root timeline along with the main movie control buttons.
The scrollPane parameter is set to import a movieclip that has its own buttons and is is basically representing a Web page for training purposes.
Does anyone know how to get the buttons in the scrollPane movieclip to tab in sequence with the main control buttons on the root timeline?
I'm at a total loss, and beginning to think it's not possible.
View Replies !
View Related
<< SCROLLPANE External Content BUG
I have main movie called - 13e.swf
This loads a scrollpane movie - content_main.swf
with contentpath = - pane_menu.swf
into MC - mvmain
All this works fine offline ,
when online it has the MX MAJOR BUG porblem of loading
it too slow for the scrollpane to calculate
so it overlaps the scrollbox size.
(even if extrenal swf is 1k).
I have tried preloader... no good or send me one that
waits till all is loaded then shows up in scrollpane
working online.
(an example of working scrollpane online would
be a novel experience too )
I have read through some similar posts but still im
not able to make it work.
Please show me a fix for this.
are there any other available 3rd party scrollpane
compnents that scroll and load external.swf and works.
I have heard about the scrollpane refresh fix.
but im novis at actionscript and i cant figure it out.
please show an example and where to put it on my movie
and how i can determine when the full content of the
swf has loaded for it to refresh at the righ time.
and not give me a garbled scrollpane result.
macromedia should have a notice saying
SCROLLPANE NOT USALBLE STAY AWAY !!!!
thank you !
windows xp
flash mx 2004
im going to lay down and cry now... !!!
View Replies !
View Related
|