Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loading Mc In One Scrollpane From Mc In Another Scrollpane



I'm still stuck.

I have one movie clip with a whole bunch of pictures as buttons 'loaded' into a scrollpane and I want each button to load a different mc into a different scrollpane when clicked.

I tried using "attachMovie" but I'm still very confused.

Is this what I use?

If so, do I go

on(release){
attachMovie("mc name", "frame label of loaded mc", "level not in use");

}


Any help is greatly appreciated.
Thanks in advance.



FlashKit > Flash Help > Flash Newbies
Posted on: 01-17-2005, 09:14 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Loading Mc In One Scrollpane From Mc Clip In Another Scrollpane
I'm still stuck.

I have one movie clip with a whole bunch of buttons 'loaded' into scrollpane and I want each button to load a different mc into a different scrollpane when clicked.

I tried using "attachMovie" but I'm still very confused.

Is this what I use?

If so, do I go

on(release){
attachMovie("mc name", "frame label of loaded mc", "level not in use");

}


Any help is greatly appreciated.
Thanks in advance.

Loading Dynamic Info Into Scrollpane -- Then Loading The Scrollpane Please?
hi,

i've been tearing my hair out trying to get this to work:

1:
dynamically load certain images and info by calling an xml file from within flash. this will create a timeline, which you can see works perfectly (i hope) in timeline.fla

2:
load that timeline.swf into a scrollpane (in this case, located in timeline_test.fla) by clicking on the chapter numbers on the bottom.

for the second part, i have gotten as far as loading timeline.swf into the scrollpane, but for some reason it only shows the last image in the timeline. there should be at least 3 more images that come before the one displayed. it also will not show the date and title of the image, which *does* show in timeline.swf. why is everything getting excluded? and how do i fix it?

also, i've tried to figure out how to get the chapter numbers to update the scrollpane, but with no luck. the best i can do is the ripped buttons from cyanBlue's code, which obviously i don't want in the final version.

i would be willing to take the code from timeline.fla and put it right into timeline_test.fla, although as to how i would do this, i have no idea.

i think i've read just about every tutorial and message post on scrollpane and loadMovie, but it's turning out to be a huge headache and nothing works the way i want it to.

please, if you can help me, i would IMMENSELY GRATEFUL.

thank you thank you,
chi_grl

[F8] Button Inside Scrollpane, Cannot Control MC Outside Of Scrollpane?+emptymc
Hi, first look at the example of how it should work :

http://www.surfacingmedia.com/VIDEOPLAYER2.html
notice the Buttons in the scroller on the right tell the MC on the left to GOTO MC frame i want it too (each frame then holds Player for specific video.)
works great right?

Now when I load this into my main site into an empty movieclip i use for all section content it Does not work at all! sure it loads the first video but the buttons are disabled?
(use link below navigate to photo/video and selet video.)
http://www.surfacingmedia.com/

the code is the same just calls to the videoplayer MC and tells it to goto a certain frame.
it doesnt work when loaded into my empty MC. ?
any suggestions?
If kill the scrollpane altogether, buttons work fine then even loaded into emptyMC. seems once buried in scrollpane its too deep for buttons to work? which for me defeats the purpose kinda.
Note-Flash 8 (i am a code lightweight i used the BEHAVIORS commands gotoand stop on frame select the MC.)

Thanks in advance i will answer some posts while i am here that i can now.

ScrollPane Auto Scroll On Frames Within ScrollPane
Hi Guys,

I am using an instance of the scrollPane component to load in scrollable content, some of the items of content are .swfs that have separate navigation within them. I am wondering how I can get the scrollPane to adjust the amount it can scroll based on the content on each frame of the movie that has been loaded into the scrollPane. Ideally the scrollbar would also turn off when the content is small enough for there to be no need for the scrollbar.

Thanks,

-Jim

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!

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

Scale Scrollpane Content Not Scrollpane
Friday arvo, fantastic.

Any way I can scale a externally loaded clip sitting in a scrollpane.

I can scale the scrollpane no probs using a slider but I want the scrollpane to be static and the swf inside the scrollpane to scale.

cheers in advance.

H

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

Scale Scrollpane Content Not Scrollpane
Friday arvo, fantastic.

Any way I can scale a externally loaded clip sitting in a scrollpane.

I can scale the scrollpane no probs using a slider but I want the scrollpane to be static and the swf inside the scrollpane to scale.

cheers in advance.

H

Loading Within ScrollPane?
I have a holder movie clip for loading other movies into but i want this to be scrollable so i placed it into a scrollPane component. But now i dont know how to target the holder inorder to tell it to load the next movie.

can anyone help?

Loading A URL Into A ScrollPane
Hello, I always read this board for the help that I need and can usually find what I am loking for by reading through previous topics. This time I couldn't find any help.
What I am trying to do is:

I have a flash site and I have a Excel document that I need to get into my flash site. I would like to load it into a scrollpane if possible. I saved the excel document as an htm file and uploaded it (case_chart.htm). Upon pressing a button, I would like to have that file loaded into a scrollpane in my flash movie. Is this possible or is there an easier way to get socuments as such into a flash movie?

Any help would be greatly appreciated and keep up the good work here!
Thanks,
Chris

Scrollpane Loading
how can i tell pane1 to load movie1.swf when btn1 is released and many other buttons and movies.
on (release)
contentpath("movie1.swf");
//button 2
movie2.swf

sorry for short posting im on my phonee

ScrollPane - Loading Help
Hi Guys,


I am using a scrollpane -
scroller.setScrollContent("movie");

How can I get the bytes total for the scroll pane?

Thanks

Adam

Loading An Swf Into A Scrollpane?
Hi!

I'm trying to load an external swf into a scrollpan, and I can't get nothing to work have tryed loadscrollcontent, setscrollcontent, loadmovie with _root... but no! The loadmovie did work, but of course not inside the pan!
Any easy way to do this any one?, please!! I have been trying for weeks...

Loading Mc Into Scrollpane . . .
Hey all,,
I have at last managed to get a scroll pane to have some content (mc).
Question is, how would I make the contents of that scroll pane change while responding to button clicks.
Would I use the technique of loading the movie into a "content" mc, where "content_mc" would be the initial, blank mc whic is contained in the scroll pane ?
Thanks.
((Searching did not return any results))

Swf Not Loading Into ScrollPane
I am loading a menu consisting of a library of items, based on my XML file into a combo box. I have menu working correctly. When I click on an library item in the combo box, it's supposed to load the items into my scrollPane called "thumbs". Now what is happening is, the appropriate number of items are getting loaded to the scrollPane in the form of a movieClip called appropriately "thumbs_mc", but the actual swf doesn't get loaded. I can't seem to figure out whats going on.

Any help appriciated.

ActionScript Code:
var myXML:XML = new XML();myXML.ignoreWhite = true;libraryList_ar = new Array();combo_list.dataProvider = libraryList_ar;myXML.onLoad = function(success) { if (success) {  //trace(this);     var libraries = this.firstChild;  var dValue = this.firstChild.attributes.name;  //trace(dValue);  combo_list.textField.label.text = "Library";  var libCount = libraries.childNodes.length;  trace(libCount);  var libItems = libraries.firstChild.childNodes.length;  //trace(libItems);     for (var i = 0; i<libCount; i++) {   //libraryList_ar[i] = libraries.childNodes[i].childNodes[0].firstChild.nodeValue;   libraryList_ar[i] = new Object();   libraryList_ar[i].label = libraries.childNodes[i].attributes.Text;   libraryList_ar[i].data = libraries.childNodes[i];   //save reference here  } }};myXML.load("itemMenu.xml");//loading_txt.autoSize = true;loading_txt.text = "";loading_txt._visible = false;// resize loading images to thumbnail sizevar MAX_WIDTH:Number = 50;var MAX_HEIGHT:Number = 50;//var mcl:MovieClipLoader = new MovieClipLoader();var mclListener:Object = new Object();mclListener.onLoadInit = function(mc:MovieClip) { loading_txt.text = "Loading..."; // set variables to keep the original image dimensions var xw = mc._width; var xh = mc._height; // // where image width is greater than image height if (mc._width>mc._height) {  mc._width = MAX_WIDTH;  mc._height = (mc._height*MAX_WIDTH)/xw;  // center image  mc._y = (75-mc._height)/2; } //where image height is greater than image width if (mc._height>mc._width) {  mc._height = MAX_HEIGHT;  mc._width = (mc._width*MAX_HEIGHT)/xh;  mc._x = (75-mc._width)/2; } // loading_txt._visible = false;};//_global.count = 0;//combo_list.change = function(eventObj) { thumbs.invalidate(); thumbs.refreshPane(); // var selItem:Object = eventObj.target.selectedItem; //trace("Item selected was:  "+selItem.label); var itemXML:XMLNode = selItem.data; //use saved reference to iterate through childNodes for (var idx = 0; idx<itemXML.childNodes.length; idx++) {  trace("Item includes: "+itemXML.childNodes[idx].attributes.Text);  var t_mc:MovieClip;  t_mc = thumbs.content.attachMovie("thumb_mc", "thumb"+idx, idx, this.getNextHighestDepth());  t_mc._x = 5;  t_mc._y = 5+(idx*80);  //this loads the swf into the thumbs scrollPane  _root["mc"+idx] = new MovieClipLoader();  _root["mc"+idx].addListener(mclListener);  _root["mc"+idx].loadClip(itemXML.childNodes[idx].attributes.ItemSWF, t_mc.Container_mc);  //_root["mc"+idx].loadClip("decals/"+ItemSWF+".swf", t_mc.Container_mc);  //  t_mc.idx = idx;  t_mc.piece = itemXML.childNodes[idx].attributes.ItemSWF;  //        t_mc.onRelease = function() {   //trace(this.now)     // this adds the item to the room   var tmp:MovieClip = room.content.createEmptyMovieClip("myLoader"+count, count+100);   count++;   mcl.loadClip("decals/"+this.piece+".swf", tmp);   tmp._x = 100;   tmp._y =100;   room.invalidate();   //trace("tmp= "+tmp);   _global.temp_mc = tmp;  }; }};combo_list.addEventListener("change", combo_list);//  

ScrollPane - Loading Help
Hi Guys,


I am using a scrollpane -
scroller.setScrollContent("movie");

How can I get the bytes total for the scroll pane?

Thanks

Adam

Loading An Swf Into A Scrollpane?
Hi!

I'm trying to load an external swf into a scrollpan, and I can't get nothing to work have tryed loadscrollcontent, setscrollcontent, loadmovie with _root... but no! The loadmovie did work, but of course not inside the pan!
Any easy way to do this any one?, please!! I have been trying for weeks...

Scrollpane Loading Other Components
I am trying to build an online application form, but I want the form to appear in a scrollpane, because it is farily long.

I made a seperate formsClip movie and put all the forms details and components in this movie. I have then loaded the formsClip into the scrollpane on the root of the movie.

It has loaded the content of formsClip but it doesn't display corectly.

I have exported the file here: http://www.allmini.co.uk/laura/scroller.swf

Anybody know what's up? if you click on the input fields it highlights them and then u continue scrolling and it messes it up? also the combo box doesn't display correctly.

Thanks

Loading Scrollpane Problem, Please Help.
FLASH MX

I have a scrollpane that loads/creates a xml tree menu. The swf works perfectly (it scrolls) on its own, but once I load it into another swf's mc it does not scroll. I can see all my text cause there is an embeded font in the main movie(the one I am trying to load it into). The tree expands but the bottom is just masked off by the the scrollpane.

the scrollpane scrolling properties are set to auto.

here is my main movie code for loading the file:

unloadMovie (_root.place);
loadMovie ("folio.swf", _root.place);

"_root.place" is the mc the file is loaded into. 1st I unloaded the movie that occupied it (just proceedure) then I loaded the folio file (which is the swf with the scrollpane xml tree menu). I even tried loadMovieNum ("folio.swf", somelevel) but it still does not work and besides i really dont wanto use loadMovieNum.

I already search all of this forum. any help is appreciated.

Loading Pics From A ScrollPane
I have a scollPane with several thumbnails set up as buttons with actions to load a JPEG into a target movie in the main timeLine. The problem is that the Buttons inside the movie used for the scrollPane don't work in the main timeLine.

Code:
Button inside scrollPane movie:
on (release) {
loadMovie("aspenExt.jpg", "plansHolder");
}

I then have a movie named/instanceName "plansHolder" on the main stage.

If you need to view the movie it should be at www.accutechdesigns.com/help . I appologize for the lack of utilities (loading movies) and the way it's structured I haven't set that up yet.

Any suggestions are greatly appreciated. Thanks.

Loading Multiple Mc Into A Scrollpane?
is it posssible to load multiple mc into a scollpane?

When i put a mc into a scrollpane with
_root.Favoris.setScrollContent("mc1");
or
_root.Favoris.setScrollContent("mc2");

(where Favoris is the scrollpane)

if i try to trace the name of the clips into the scroll pane i got "mc_temp" name for each.

means that my "mc1" is now named "mc_temp", but my "mc2" is named "mc_temp" too!
how can i put names for these instances?

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

Loading ScrollPane Dynamically
I am loading a scrollpane with an empty movie clip(main) loads xml data and dynamically creates movieclips of swf's. Intially, the movie doesn't load into the scrollpane. It does when I add a refreshPane() but the content is not positioned correctly.

you can se what I mean at http://noeink.com/flashproblem

here is the first frame of the empty clip "main":

Code:
clipartXML = new XML();
clipartXML.onLoad = getClipartXML;
clipartXML.load("http://www.ezteestoplease.com/studio/filenameXML.php?categoryID=38&subcategoryID=0");
stop();
here is my function for loading the images:

Code:
function getClipartXML() {

mainTag = new XML();
elementTag = new XML();
dataList = new Array();
elementList = new Array();
mainTag = this.firstChild;
x=0;
clipartImageX = 0;
clipartImageY = 0;
clipartButtonX = 0;
clipartButtonY = 0;
if (clipartXML.loaded) {
trace(mainTag.nodeName);
if (mainTag.nodeName == "FileList") {

dataList = mainTag.childNodes;
for (i=0; i<=dataList.length; i++) {
if (dataList[i].nodeName == "fileName") {
elementList = dataList[i].childNodes;
for (j=0; j<=elementList.length; j++) {
elementTag = elementList[j];
elementType = elementTag.nodeName;
if (elementType == "name") {
name = elementTag.firstChild.nodeValue;

createEmptyMovieClip("clipartImage["+x+"]", 300+x);

path = "http://www.ezteestoplease.com/clipart/";
file = path+name;
loadMovie(file, "clipartImage["+x+"]");
setProperty("clipartImage["+x+"]", _xscale, 10);
setProperty("clipartImage["+x+"]", _yscale, 10);
setProperty("clipartImage["+x+"]", _x, clipartImageX);
setProperty("clipartImage["+x+"]", _y, clipartImageY);
test = getProperty("clipartImage["+x+"]", _x);
trace(test);


}
}
x++;
if ((x%3)==0) {
clipartButtonX = -0;
clipartImageX = -0;
clipartButtonY += 150;
clipartImageY += 150

} else {
clipartButtonX += 100;
clipartImageX += 100;
}
}
}
}
}
}


}
Does anyone have any ideas or other methods for dynamically loading a scrollable set of images?

Thanks

Loading Into Scrollpane With Transition
Hi,

ok I am trying to learn the lovely effect of transitions. meaning a transition between one content to the next.

I first learnt the basic, by reading through the threads and found this thread

loading/switching sections
Which took me in the right direction. Now I have learnt this I am trying to get this exact same effect (which i have got) to load the content into a scrollpane.

The content being an external swf. could someone maybe check out the above thread and using that code assist me in setting the scrollpane content to the emptyMC (mtClip).

Thanks heaps in advance.

Wolfie

Help: Loading External Swf In Scrollpane
Hi everybody,

I'm trying to load an external swf into a scrollpane.

I've the component, and an empty MC here I placed this:

loadMovieNum("img/test.swf", 1);

Everything is ok except the fact that if the external swf has a preloader it doesn't scroll... Can anyone help?

Thanks,
nolas

Loading A Dynamic MC To A Scrollpane
hi evryone, and thanks in advance for any help, which will be greatly appreciated.
i've posted a question about this, but after further reading i got to this:
i'm trying to create an empty MovieClip to which i would like to dynamically load a JPG. later, once finished loading, i would like to assign this MC as a content of a scrollPane.
the problem i have, is that the MC is showing on it's own on my stage, and the scrollpane doesn't recognize it since i don't know how to give a dynamically made MC a linkage identifier, so the scroll pane is searching for a file in that name (and obviously can't find it...).

i attach a link to a zip file containing a simple example of what i'm trying to do:

zip file

but just in case, my code is this: (besides this code there is only the scrollPane, which is named "myScrollPane", and an exrternal JPG called "recom0.jpg":

_root.createEmptyMovieClip ("container",0);

var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadComplete = function(container) {
_level0.myScrollPane.contentPath = "container";
}
my_mcl.addListener(myListener);


my_mcl.loadClip("recom0.jpg", "_level0.container");

Loading A MC From Library To A ScrollPane
Hi all!

I'm having a problem with loading a MC that is in the library to a ScrollPane that is on stage. I used this code:

Code:
_root.Scroll.setScrollContent("menu");
which I already used before in my previous projects and it worked, but now... I have no idea why it doesn't work now!

Please help me! Thanks!!!

Loading MC Into ScrollPane Issue
Can someone have a look at this please and explain why the text is loading into the dynamic text field inside the MC but is not loading into the scroll pane. I am using Flash 8.

Thanks,
Mike.

[F8] Scrollpane Loading Movieclip
I am loading a movieclip as a scrollpane's content at runtime. This movieclip has a linkage identifier which is set as the content path for the scrollpane. It also has several movieclips inside it which I want to define onRelease and onRollOver events for. How can I do this without adding code on the movie clip itself? That is, I want to be able to define the onRelease or onRollover functions for each of these movieclips on the main timeline. Right now doing "scrollpane.movieclip.submovieclip.onRelease = function()" doesn't seem to work and I suspect it's because the scroll panes content ('movieclip') is being loaded at runtime. Please help.

How Can You Tell If ScrollPane Is Finished Loading?
Still having problems with my scrollPane not showing the scroll bars when I load my MovieClip into it. The MovieClip is loaded with other dynamic movieclips.
Since the movieclips could still be loading, how can I have the scrollPane check to see if it's finished before getting added to the stage?

Dynamically Loading MC Into ScrollPane
Hello,

I'm hoping someone can help me with a ScrollPane issue. I'm trying to dynamically load buttons in a scroll pane, but the buttons load past the scrollpane's area and the scroll bar doesn't show up. Any ideas? Exact code would be helpful. I don't have that much experience with actionscript. I'm using Flash 8 Professional. (The actionscript is in a external .as file)


Here is the code I'm using (file attached):

import mx.utils.Delegate;

class Initialize
{
var NavSchema:XML;
var NavSchemaArray:Array;
var NavSchemaFile:String;
var QueryXML:XMLQuery;
var summ:Array;

function Initialize()
{
NavSchemaArray = new Array();
NavSchemaFile = "navSchema.xml";
QueryXML = new XMLQuery();
LoadNavSchema();
_root.sub_bar.breadcrumbs_txt.text="";
_root.green_block._visible=false;
}

function LoadNavSchema() {
trace("-----------> Loading Navigation Schema");
NavSchema = new XML();
NavSchema.ignoreWhite=true;
NavSchema.onLoad = Delegate.create(this,NavSchemaLoaded);
NavSchema.load(NavSchemaFile);
}

function NavSchemaLoaded() {
NavSchemaArray = QueryXML.GetNodeList(NavSchema.firstChild,"/module/topic");
_global.topicHolder = NavSchemaArray;
_global.navHolder = NavSchema;
_global.fullArray = QueryXML.GetNodeList(NavSchema.firstChild,"/module");
_root.top_bar.txt_moduleTitle.text=_global.fullArr ay[0].attributes.title;
summ = new Array();
var copytext:Array = new Array();
copytext = QueryXML.GetNodeList(NavSchema.firstChild,"/module/settings/section

[@id='copyright']/body");
trace(copytext);
summ = QueryXML.GetNodeList(NavSchema.firstChild,"/module/settings/section

[@id='summary']/body");
_root.summary_mc.txt_summary.htmlText=summ[0].firstChild.nodeValue;
_global.copyText=copytext[0].firstChild.nodeValue;


_root.ScrollPane.createEmptyMovieClip("topic_block ", 5);
for (var i = 0; i <NavSchemaArray.length; i++) {
_root.ScrollPane.topic_block.attachMovie("topic_bu tton", "topic"+i,

_root.ScrollPane.topic_block.getNextHighestDepth() , {_y28*i), id:i});
}

}

function SetSummary(){
_root.diagram_clip.removeMovieClip();
for (var i = 0; i <_global.sectionHolder.length; i++) {
_root.sectionButtons_mc["section"+i].removeMovieClip();
}
for (var i = 0; i <_global.topicHolder.length; i++) {
_root.topic_block["topic"+i].bkg_block.gotoAndStop("off");
_root.topic_block["topic"+i].onRollOut = function() {
this.bkg_block.gotoAndStop("off");
};
}
var prop:String;
for (prop in _root.mgb) {
if (_root.mgb[prop] instanceof TextField) {
_root.mgb[prop].removeTextField();
}
if(_root.mgb[prop] instanceof MovieClip){
_root.mgb[prop].removeMovieClip();
}

}
_root.attachMovie("summary_mc", "summary_mc", 1200, {_x:400, _y:230});
_root.summary_mc.txt_summary.htmlText=summ[0].firstChild.nodeValue;
}
}






Thanks.

Kind Regards,
Mediacre8tor

Loading External SWF's Into ScrollPane's
Hi Could anyone tell me how to or link me to a tutorial which tells me how to load swf's into a scrollpane within my main movie. Thanks

Loading Via MovieClipLoader To ScrollPane
I want to use the movieClipLoader class to load a JPG into the scrollPane component...
I can get the picture to load via the movieClipLoader class and I can even get it to load on top of the scrollPane but not into the scroll pane any suggestions...

here is the code...
Code:
var viewImageListner:Object = new Object();
viewImageListner["owner"] = this;
var viewImage:MovieClipLoader = new MovieClipLoader();
viewImage["owner"] = this;
viewImageListner.onLoadError = function() {
//throwError("Problem locating plug-in. Check location or path. "+loc, "Plug-In Error");
};
viewImageListner.onLoadInit = function() {
trace("Pic has been initalized.");
};
viewImageListner.onLoadStart = function() {
trace("Started.");
};
viewImageListner.onLoadProgress = function(target, loaded, total) {
trace(loaded+" "+total);
};
viewImageListner.onLoadComplete = function() {
trace("Pic has been loaded.");
trace("The name of this is: "+this.owner._name);
};
viewImage.addListener(viewImageListner);

function loadImage(s:String):Void {
//s is a path to the location of the JPG
//imagePreview.contentPath = "container";
//var c = imagePreview.content;
// Function to actually attach the clip to scrollpane
viewImage.loadClip(s, imagePreview.content);
}
My main end goal is to do a progress bar while it loads the JPG to the component so if you know of a better way of achieving the same affect i am all ears!

Loading Ext. SWF Into ScrollPane W/ Combo Box
Was wondering if someone could help me with this, I have set up a combo box in which each item in the box controls which external .swf is loaded into a scrollpane. Any ideas?

Loading An External Swf With Scrollpane
Hi.
I'm using a scrollpane component in an externally loaded swf, but when you scroll the content it spills out of the pane and overlaps the parent clip.

My deadline is tomorrow and I've been trying to sort it for a few days...Any help would be really appreciated,
Will

Dynamically Loading Mcs Into A Scrollpane
I am trying to create a simple RSS news feed that loads XML items into a scrollpane in Flash 8. Everything is working fine with the loading until I try to load my dynamically generated MC (which contain dynamic text fields that reference the XML) into a scrollpane.

What I have done:
I created an empty container (it has a box inside to test loading) with a Linkage ID and I have set the scrollpane's content path to the container's name. I then use createEmptyMovieClip (I have seen examples using attachMovie instead, but it will not work with my XML setup) to create a mc inside the empty container. I use 2 instances in my example: one without the scrollpane which works fine, and the one with the scrollpane that only loads the contents of the empty container (no xml data).

I have scoured the forums for about 10 hours and have found people with the same problem but yet no solution. I have included a simplified example of the situation if anyone could possibility take the time to look at it for me. Your help is greatly appreciated!! Thank you!

ScrollPane Component Loading
I'm currently loading images into a ScrollPane Component via a List Component that is propagated by an external XML file. Does any know weather I need to unload the image before loading the next image or is there a built in system in the ScrollPane component that removes the previous image?

Loading External SWF's Into ScrollPane's
Hi Could anyone tell me how to or link me to a tutorial which tells me how to load swf's into a scrollpane within my main movie. Thanks

Loading Via MovieClipLoader To ScrollPane
I want to use the movieClipLoader class to load a JPG into the scrollPane component...
I can get the picture to load via the movieClipLoader class and I can even get it to load on top of the scrollPane but not into the scroll pane any suggestions...

here is the code...
Code:
var viewImageListner:Object = new Object();
viewImageListner["owner"] = this;
var viewImage:MovieClipLoader = new MovieClipLoader();
viewImage["owner"] = this;
viewImageListner.onLoadError = function() {
//throwError("Problem locating plug-in. Check location or path. "+loc, "Plug-In Error");
};
viewImageListner.onLoadInit = function() {
trace("Pic has been initalized.");
};
viewImageListner.onLoadStart = function() {
trace("Started.");
};
viewImageListner.onLoadProgress = function(target, loaded, total) {
trace(loaded+" "+total);
};
viewImageListner.onLoadComplete = function() {
trace("Pic has been loaded.");
trace("The name of this is: "+this.owner._name);
};
viewImage.addListener(viewImageListner);

function loadImage(s:String):Void {
//s is a path to the location of the JPG
//imagePreview.contentPath = "container";
//var c = imagePreview.content;
// Function to actually attach the clip to scrollpane
viewImage.loadClip(s, imagePreview.content);
}
My main end goal is to do a progress bar while it loads the JPG to the component so if you know of a better way of achieving the same affect i am all ears!

Loading Images From XML Into A Scrollpane
I'm trying to load a group of images into a scrollpane component with XML. So far, I can get them all to load in a movieclip outside the scrollpane, but how do I put that movieclip inside the scrollpane??
------------------------------------------------

galleryXML = new XML();
galleryXML.onLoad = init;
galleryXML.load("stencils.xml");
galleryXML.ignoreWhite = true;

var xPos:Number = 0;
var yPos:Number = 0;
var my_mcl:MovieClipLoader = new MovieClipLoader();

function init(success) {
    if (success == true) {
        imgDesc = "";
        rootNode = galleryXML.firstChild;
        nbrImages = rootNode.childNodes.length;
        image = rootNode.firstChild;
        for (i=0; i<nbrImages; i++) {
            mcName = "mc_"+i;
            loadImage(image.attributes.swfURL, mcName, image.firstChild.nodeValue, i+1);
            image = image.nextSibling;
        }
    }
}

function loadImage(imgSrc, clipName, desc, ctr) {
    //Creates a parent movie clip to hold the container
    this.createEmptyMovieClip("parent", this.getNextHighestDepth());
    newClip = parent.createEmptyMovieClip(clipName, this.getNextHighestDepth());
    //this is the movie clip the image will replace
    newClip.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
    //use moviecliploader to load the image
    my_mcl.loadClip(imgSrc, newClip.container_mc);
    newClip._y = yPos;
    newClip._x = xPos;
    
    if (ctr%10 == 0) {
        xPos = 0;
        yPos += 30;
    } else {
        xPos += 30;
    }    
    
    newClip.onRollOver = function () { imgDesc = desc;};

}


Loading A Scrollpane From A MM_tree_menu
Hi

I have a .html page created in flash with a banner, a MM_tree_menu and a scrollpane. I can load the scrollpane with a .swf on startup however when I click an option on the MM_tree_menu I want to change the .swf in the scrollpane.
 At the moment when I click an option a new browser page opens with the new .swf

Any help would be appreciated.

Regards
gcarolan

Loading Swfs Into The Scrollpane Component
OK,
I know I am being an idiot but I cant work out how to load an external swf into the bloody scrollpane component.
I did it before on my PC at work, on the trial version of MX.
But I just got MX for my Mac at home and I cant seem to do it again.
I am dragging the scrollpane onto the stage, then in the content bit putting object.swf ( the swf I want to load into it). but its having none of it

There is obviously something I am forgetting to do, but I cant for the life of me figure it out.

Please relieve me of my stupid phase in flash development, because its driving me mad!!

Scrollpane And Loading Data Dynamically
I am using three components with a database feeding the backend.

1) The list box loads as a Menu.
2) The combo loads based on what they select from list box.
3) I am trying to create multiple results fed through the database into a scrollpane.

I am using the setScrollContent function to change to the movie that I linking to which works fine.

In that movie I have script to complete the results through the database.

Listing multiple images and records.

When I select from the combo which changes the scroll pane content loading the linked movie I see nothing...

It's like the movie that's loaded isn't running..

Please help anyone...

Put A Loading In A ScrollPane, And Using The ProgressBar Component
Hi guys, I need you're help.

I made a scrollpane here: http://www.microscience.com.pe/hb/cu...l/overview.htm

I don't have any problem to made it. But the problem is that this swf have a weight of 117kb, so I need to use a loading bar or something to show before the swf load.

But I can do it, I mean I use many examples to create a loading in movie clips, but i can't make it in a scrollpane. PLEASE HELP ME.

Other thing, does anybody have a tutorial to use the ProgressBar component of the FLASH MX.

THANKS............................

Loading Movie Clips Into A Scrollpane
Hi Everyone,

On the stage i have a scrollpane and a movie clip containing 6 buttons which each load a movie clip into the scrollpane. The action that im using on the buttons are:

on (release){
_root.window.setScrollContent("accommodation");
}

This works fine and loads the movie clip into the scrollpane when i click test movie, so i export it as a swf. The problem is that when i load this swf into my other movie that i'm building, nothing happens when i click the buttons to load the movie clip into the scrollpane, it doesn't affect it in any way.

Now that its a external swf in another movie, is my targetting wrong?

I'm kinda new to actionscript so any help would be great!

Thanks in advance,

James

Loading Movie Into ScrollPane Problem
I have a scrollpane on the root timeline that is pulling the scroll content from a movie clip (test_mc). All the movie clip test_mc contains is actionscript that creates a new textfield, say:
this.createTextField("activeTitle", cDepth++, 0, 0, 120, 20);
activeTitle.text = "My text here";

When I preview the movie, the text doesn?t show up and the pane is without scrollbars. But if I add a rectangle to the stage of test_mc, the text will appear and the pane will scroll. That is okay if it has to be that way, but the pane will only scroll left and right according to how big that rectangle is. So now I need to resize the rectangle so that it will match the amount of dynamic content that needs to be added. I?ve tried making the rectangle a movie clip and assigning an instance name to it on the stage and trying to change its size in AS by using:
this.rect_inst._height = 1000;
but that didn?t work, and I have tried loading the rectangle with AS by using:
this.attachMovie ("rect_mc", "rect", cDepth++);
this.rect._x = 0;
this.rect._y = 0;
but it doesn?t show up when I preview the movie (again no content and no scrollbars on the pane). I have also tried creating a rectangle in AS using createEmptyMovieClip, beginFill, and moveTo and lineTo, but that doesn?t work either-still doesn?t show anything on preview.

So I have concluded that I have to have some sort of background on the stage inside the loaded movie clip in order for the dynamic content to show up in the scrollpane. If there is a way to get away from that, I would appreciate it. If not, can anyone tell me then what I am doing wrong in trying to resize the background piece?

Thanks in advance

Loading Dynamic Text In Scrollpane
i haven't been using flash for real long and suprisingly have run into a problem, although, i have no idea why it isn't working. here's the dilemma: (using MX)

i have an instance of a scroll pane component called scrollPane located in the main movie, it automatically loads a file called news.txt. The goal is to have a new txt file load as the user clicks a button, however, this isn't happening. i've tried a million things, but this is the code i was told to use.

on (release) {
scrollPane.loadURL("bio.txt");
}

any ideas? i can send the fla file if anyone needs clarification.
thanks a bunch.

Loading Multiple Jpgs Into Scrollpane
hi...
I need to load an unknown amount of jpgs into a scrollpane component. I'm using loadScrollContent() inside a loop that gathers the image names from an xml file.


Code:
for (var i = 0; i<my_xml.imgElements.length; i++) {
myScrollPane.loadScrollContent(my_xml.imgElements[i].attributes.name + '.jpg');
}
as a result just the image gotten from the last loop appears. I figure I need to reposition each of the loaded images so they don't sit on top of each other, but I don't know how to access the loaded images and their _x property - I tried getScrollContent, to no avail...

other posts mention loading external content into an mc first, and then loading this mc into the scrollpane... but to do that I'd need to know the amount of images in the first place, right?

any ideas?

thanks in advance,
3rdw0rld3r

Copyright © 2005-08 www.BigResource.com, All rights reserved