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




[F8] ScrollPane Is A Pain Been Working On This For 2 Weeks HELP



In a container movie, I have loaded an swf that contains a scrollPane which in turn loads an external swf.

In Firefox, it works like a charm. In IE, the scroll bars do not appear!

Here is the code I am using in the swf that contains the scrollPane:


Code:
var scrollContent:mx.containers.ScrollPane;
scrollContent.contentPath ="http://www.becausecuidamos.com/newsite/swf/clipContent.swf";
scrollContent.setStyle("themeColor","haloBlue");
scrollContent.setSize(248,375);
scrollContent.border_mc._height = 0;
scrollContent.border_mc._width = 0;

scrollContent.hScrollPolicy="auto";
scrollContent.vScrollPolicy="auto";
scrollContent.refreshPane();


The live example is here:
http://www.becausecuidamos.com/newsite/index.htm

Click on Programs then Purple Scarf Project.

On the Internet, I've seen tons of posts about this problem. But no matter where I look, no one posts a solution. Can anyone here help? PLEASE!!!!

Thank you



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-23-2007, 01:51 PM


View Complete Forum Thread with Replies

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

[F8] ScrollPane Is A Pain Been Working On This For 2 Weeks HELP
In a container movie, I have loaded an swf that contains a scrollPane which in turn loads an external swf.

In Firefox, it works like a charm. In IE, the scroll bars do not appear!

Here is the code I am using in the swf that contains the scrollPane:


Code:

var scrollContent:mx.containers.ScrollPane;
scrollContent.contentPath ="ABSOLUTE_LINK_TO_MY.SWF";
scrollContent.setStyle("themeColor","haloBlue");
scrollContent.setSize(248,375);
scrollContent.border_mc._height = 0;
scrollContent.border_mc._width = 0;

scrollContent.hScrollPolicy="auto";
scrollContent.vScrollPolicy="auto";
scrollContent.refreshPane();

The live example is here:
http://www.becausecuidamos.com/newsite/index.htm

Click on Programs then Purple Scarf Project.

On the Internet, I've seen tons of posts about this problem. But no matter where I look, no one posts a solution. Can anyone here help? PLEASE!!!!

Thank you

Help Please - Been Working On This For Weeks & Still Not There
Long story short - passing a variable from a coldfusion document, through the swf (using FlashVars) to a coldfusion document that load the correct images into the swf based upon that variable. I've done tons of homework & gotten lots of help but my movie loads w/o reading the coldfusion document that is supposed to load into it.

Here is where my code is messing up... can someone tell me where Im going wrong? Im so upside down on this I'm guessing it's right in front of my nose.


Code:
//forums
var myVariable:LoadVars = new LoadVars();
myVariable.onLoad = function(success:Boolean){
if(success) {
trace(myVariable)
} else {
trace("Error connecting to server.");
}
sender.id=myVariable;
// send the id value to your cfm page using sendAndLoad, and returned xml will be loaded into the xml object x. -could this be where the prob is?

sender.sendAndLoad("gallery.cfm?id=" + myVariable, x, "GET");
}


//from forum ...
var x:XML=new XML();
x.ignoreWhite=true;x.onLoad=function(done){
if(done){
trace('xml file is now loaded into '+this);
// now that it is loaded, process it the way you want.
};
//see...
var sender:LoadVars=new LoadVars();
}
imageXML.load(x);
_lockroot = true;
My debug says that the variables are undefined. I think this is because I am trying to load x w/o it knowing what is going on. It seems more likely I'd need to load
Code:
sender.sendAndLoad("gallery.cfm?id=" + myVariable, x, "GET");
which I thought I was doing.. but well obviously not. Im in over my head. I've tried paying someone, begging help from experts etc but it seems no one has been able to help me wrap this project up. Anything any of you could do to help would be SO APPRECIATED.

Thanks!

Scrollpane Pain :( (MX)
Hi guys once again.

I am trying to use the srollpane to scroll my threads in the Flash forum like here. I did have it working but for some reason the scroll bar dose not appear anymore
all the content within the scrollpane is being loaded and is visible but also visibly needs to be scrolled.
i have the scrollpane verticalscroll set to auto but i have also tried setting it to true. Also should the scrollpane automaticaly scale to fit the contents?

anyone?

Cheers

ScrollPane Pain
Hi all Flashers! Let's see if anyone can help me...

I have a pretty simple scrollpane component situation: I simply have a lengthy menu made up of many buttons, each of which are 10px tall. The scrollpane component is allowing these buttons to scroll in a small confined window.

Basically, I would simply like to modify the scrollpane code so that it isn't so SMOOTH! Instead, I would like the scrollpane to "scroll" 10px at a time incrementally. I know there must be some simple math equation that can do this.

Any help is always immensely appreciated! E-mail me at derekprospero@hotmail.com. Thank you so much everyone!

Best Wishes,
Derek

Scrollpane (pain)
i am having problem with my scrollpane, im using the flash UI component. everything works nice until u hit the 10th movieclip (with scrollbar), then the scroll function locks itself and u cant move the bar...

could this has something to do with _visible ? all pages fades in and out.

Scrollpane Is A Pain. HELP
I'm trying to use the scrollpane component but can't get it to work. It seems simple enough to use. I've followed the directions perfectly. I create a movie clip, set it to export to actionscript and all that...I then set the path in the scrollpane properties to the same name I gave my movie clip in it's linkage properties. But when I test the flash movie nothing appears in the scroll pane. I've been trying this all day long to no avail. Has anybody else had this problem?

Jay

ScrollPane Pain
I am trying to access a button that I have in a scrollPane to change it's state. This happens on a cuepoint in my video. Here is my script..
------
listenerObject = new Object();
listenerObject.cuePoint = function(eventObject) {
if (eventObject.cuePointName == "cp_2") {

_root.TitlesMC.button2_btn._visible = false;

trace("Cuepoint Passed");
}
};
myVideo.addEventListener("cuePoint", listenerObject);
-----

My scrollPane points to a movie clip called "TitlesMC" which contains a button called "button2_btn". I can't seem to access it.

If I put a button out in the main movie and point to it there, it works great - but the button in a movie clip within the scroll pane - can't access it.

Thanks -
Jmac1

Scrollpane Pain
flash cs3

I've noticed that the scrollpane built into flash (dont wanna make my own), once clicked upon, creates a yellow outline. It's very ugly. How do I get rid of it?

I've done the naughty and clicked "export to first frame" and it disappears, but my preloader will start at 80% and then finish from there. (rather than start at 0%)

It's been the most annoying thing for me. I've lived with it, but I hate it. Can anyone help?

Scrollpane. Oh....the Pain
Okay. After combing over the many examples of using the scrollpane, I am needing assistance in something I am working on.

The basic idea;

I am loading jpg thumbnails from an XML document into a scrollpane.

Next, I am taking these thumbnails and giving them on Release functionality.

Finally, I am displaying the large picture after the thumbnail has been clicked.

Everything works as intended. EXCEPT, the problem is loading the thumbnails into the scrollpane. Here's the code I have so far;

----------------------------
_global.picxml = new XML();
picxml.ignoreWhite = true;

picxml.onLoad = function(success)
{
if (success) {
parseXmlDoc(this);
}
else trace('xml screw up!');
};

picxml.load("pics.xml");

function parseXmlDoc(xmlDoc)
{
if (xmlDoc.loaded)
{
var yPos = 60;
xmlLength = xmlDoc.firstChild.childNodes;


for( i=0; i < xmlLength.length; i++ )
{

xmlThumb = xmlDoc.firstChild.childNodes[i];
imagePath = xmlThumb.attributes.thumbURL;

targetClip.duplicateMovieClip(i, i);

loadMovie(imagePath,[i]);
this[i]._y = this[i]._y + (i*yPos);

}
}
this.cmpThumbs.setScrollContent(targetClip);
this.cmpThumbs.refreshPane();
}

------------------------------

I think the problem can be that the duplicate movie clips are being named; 0, 1, 2, 3, 4, 5, etc. I thought that by setting 'targetClip' to the scroll content would send the duplicate movie clips into the pane, but it does not.

On my stage, I have;

1. Empty movie clip. Instance; 'targetClip'.
2. Scrollpane. Instance; 'cmpThumbs'.

When my movie is created, I am having a look at the objects created;

Movie Clip: Frame=1 Target="_level0.targetClip"
Movie Clip: Frame=1 Target="_level0.0"
Shape:
Movie Clip: Frame=1 Target="_level0.1"
Shape:
Movie Clip: Frame=1 Target="_level0.2"
Shape:
Movie Clip: Frame=1 Target="_level0.3"
Shape:
Movie Clip: Frame=1 Target="_level0.4"
Shape:
Movie Clip: Frame=1 Target="_level0.5"
Shape:

(FYI; I created the movies like this for my on Release function to connect to the appropriate child node to get the full size picture)

So, I thought that when you duplicate a movie, that I could pull in 'targetClip' into the scrollpane. But it's not. I can see my
thumbnails, but they float above the scrollpane.

Please...help a fellow flasher out. Any assistance would be appreciated. Thanks.

Whoever can get this for me, I'll give you a cookie.

Scrollpane. Oh....the Pain
Okay. After combing over the many examples of using the scrollpane, I am needing assistance in something I am working on.

The basic idea;

I am loading jpg thumbnails from an XML document into a scrollpane.

Next, I am taking these thumbnails and giving them on Release functionality.

Finally, I am displaying the large picture after the thumbnail has been clicked.

Everything works as intended. EXCEPT, the problem is loading the thumbnails into the scrollpane. Here's the code I have so far;

----------------------------
_global.picxml = new XML();
picxml.ignoreWhite = true;

picxml.onLoad = function(success)
{
if (success) {
parseXmlDoc(this);
}
else trace('xml screw up!');
};

picxml.load("pics.xml");

function parseXmlDoc(xmlDoc)
{
if (xmlDoc.loaded)
{
var yPos = 60;
xmlLength = xmlDoc.firstChild.childNodes;


for( i=0; i < xmlLength.length; i++ )
{

xmlThumb = xmlDoc.firstChild.childNodes[i];
imagePath = xmlThumb.attributes.thumbURL;

targetClip.duplicateMovieClip(i, i);

loadMovie(imagePath,[i]);
this[i]._y = this[i]._y + (i*yPos);

}
}
this.cmpThumbs.setScrollContent(targetClip);
this.cmpThumbs.refreshPane();
}

------------------------------

I think the problem can be that the duplicate movie clips are being named; 0, 1, 2, 3, 4, 5, etc. I thought that by setting 'targetClip' to the scroll content would send the duplicate movie clips into the pane, but it does not.

On my stage, I have;

1. Empty movie clip. Instance; 'targetClip'.
2. Scrollpane. Instance; 'cmpThumbs'.

When my movie is created, I am having a look at the objects created;

Movie Clip: Frame=1 Target="_level0.targetClip"
Movie Clip: Frame=1 Target="_level0.0"
Shape:
Movie Clip: Frame=1 Target="_level0.1"
Shape:
Movie Clip: Frame=1 Target="_level0.2"
Shape:
Movie Clip: Frame=1 Target="_level0.3"
Shape:
Movie Clip: Frame=1 Target="_level0.4"
Shape:
Movie Clip: Frame=1 Target="_level0.5"
Shape:

(FYI; I created the movies like this for my on Release function to connect to the appropriate child node to get the full size picture)

So, I thought that when you duplicate a movie, that I could pull in 'targetClip' into the scrollpane. But it's not. I can see my
thumbnails, but they float above the scrollpane.

Please...help a fellow flasher out. Any assistance would be appreciated. Thanks.

Whoever can get this for me, I'll give you a cookie.

ScrollPane Is Being A Pain
Hello,

I am developing my first AS 3.0 full site and running into scrollpane issues. I was wondering if anyone could give me a hand.

www.bnipayitforward.com is the site and under the FAQ section is where the scroll pane is located. On my local machine everything runs fine. I have tested it on some public machines and have mixed results. On one machine the pane never loads the external swf file. On another machine I see a bunch of flashing white squares and then the browser crashes.

Any ideas.

Phillip
haunter@battlestrata.com

Mx2004 Scrollpane Pain In The ****
Hi guys,
I have started looking into using AS 2
One of the main reasons for moving onto AS 2 is the new scrollBar, well snazzy.

So ok i start off with a section of my site
News blogg:
Load data from database and attachMovie to populate
code:
for (count=0; count<archiveCount; count++) {
// Attach a news MC to the canvas
holder.attachMovie("bloggs", "news"+count, count);
// Set Y positions for t MC
holder["news"+count]._y = nextY;
// Set details
holder["news"+count].newsTitle = this["news"+count+"newsTitle"];
holder["news"+count].newsViews = this["news"+count+"newsViews"];
holder["news"+count].newsID = this["news"+count+"newsID"];
// Set next MC to be put just below this one on canvas
nextY += Math.ceil(holder["news"+count]._height-2);
}
if (count == archiveCount) {
gotoAndStop(10);
}

With the mx scollpane i would have
code:
thePane.setScrollContent(holder);

How do i attach "holder" to the scrollpane 2004

cheers
paul
P.S When i publish the movie the content is loaded into holder but the scrollpane just has na outlined box round the holder
I am publishing player 7 AS 2

ScrollPane A Real Pain
Yesterday I had trouble with the overflow of a scrollpane stopping buttons working. I rebuilt everything with the buttons on the left of the scollpane and now the buttons work, but ... now it refuses to scroll horizontally. I rebuilt yet again shifting everything on the left hand side of the scrollpane to being above the scrollpane, just in case something was stopping it from scrolling, and it still won't scroll horizontally. I really can't work it out and I'm really running out of time.

Any assistance would be greatly appreciated. Here's the code that makes the scollpane and the init function of the whole object:









Attach Code

//This is what happens when an image finishes uploading to the object
private function completed(event:Event):void {
_fla.lights_mc.visible=false;
_fla.lights_mc.stop();
_fla.pre_mc.fill_mc.stop();
_fla.pre_mc.visible=false;
var sprite:Sprite;
sprite=new Sprite();
_fla.addChild(sprite);
sprite.graphics.beginFill(0x666666,0);
sprite.graphics.drawRect(21,412.3,loader.width,loader.height);
sprite.addChild(loader);
loader.x=544;
loader.y=15;
loader.width = 263;
loader.height = 242;
var sprite2:Sprite;
sprite2=new Sprite();
_fla.addChildAt(sprite2, _fla.getChildIndex(_fla.browse_btn));
sprite2.graphics.beginFill(0x666666,0);
sprite2.graphics.drawRect(580,400,holder_sp.width,holder_sp.height);
sprite2.addChild(holder_sp);
holder_sp.x=37;
holder_sp.y=285;
holder_sp.width =772;
holder_sp.height =400;
var image:Bitmap = Bitmap(holder_sp.content);
var imageData:BitmapData=new BitmapData(image.width,image.height,false,0xcccccc);
imageData.draw(image);
}

//This is the init function that puts everything in its place on the stage

private function init():void {
stage.frameRate=31;

var startX:Number;
var startY:Number;

sprite1 = new Sprite;
addChild(sprite1);

sb_microns.restrict = "0-9.";
pixel_length.restrict = "0-9.";

pre_mc.fill_mc.stop();
pre_mc.visible=false;

browse_btn.label='Upload image';
calc_btn.label="Calculate";
clr1_btn.label="Start again";
clr_btn.label="Delete scale bar";
save_btn.label="Save image";

alertBox.visible = false;
alertBox.x=355;
alertBox.y=172.3;

calc_btn.x=431.3;
calc_btn.y=70;

clr1_btn.x=431.3;
clr1_btn.y=110;

clr_btn.x=317.1;
clr_btn.y=145.7;

save_btn.x=317.1;
save_btn.y=183.3;

info_mc.x=710;
info_mc.y=20;

strokeColor_cb.x=180;
strokeColor_cb.y=147;

unitsCB.x=431.3;
unitsCB.y=32;

strokeWidth_ns.x=180;
strokeWidth_ns.y=183.3;

browse_btn.x=660;
browse_btn.y=120;

sb_microns.x=337.1;
sb_microns.y=7.9;
sb_microns.width=65;
sb_microns.height=25;

pixel_length.x=337.1;
pixel_length.y=49.9;
pixel_length.width=65;
pixel_length.height=25;

sb_length.x=337.1;
sb_length.y=93;
sb_length.width=65;
sb_length.height=25;

pixel_tf.x=190;
pixel_tf.y=223;
pixel_tf.width=35;
pixel_tf.height=30;

lights_mc.stop();
lights_mc.visible=false;
lights_mc.x=720;
lights_mc.y=20;

up_load=new Upload(this);

getIntroText();
fadeInInfo();

sprite1.stage.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandler);
sprite1.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
browse_btn.addEventListener(MouseEvent.CLICK,openPCBrowser);
calc_btn.addEventListener(MouseEvent.MOUSE_DOWN,calculation);
clr1_btn.addEventListener(MouseEvent.MOUSE_DOWN, clearFields);
clr_btn.addEventListener(MouseEvent.MOUSE_DOWN, clearPixels);

}

























Edited: 09/11/2007 at 09:39:43 PM by Beatie3

MX2004, Scrollpane... Pain
hi all,

i'm writing up this page in MX2004 Pro, and i ahve this issue regarding my scrollpane component.

it seems 2 our of 10 users see some weird bug, but i can't reproduce it. i ahve attached a screenshot as well.

when the page loads up, there is a chella versus botox comparison. there is a scrollbox there as te content is longer then the area. for some people, it shows up as outside ofh te box... when they click to another section, then come back, it's fixed!

driving me nuts!!

here is the page - http://www.chellaprofessional.com/flash/

here is what it loosk like when it's broke for those who can't see the problem:

Actionscript Scrollpane Is A PAIN
Hey guys having a massive issue with a Scrollpane in Actionscript. Just wondering if someone wouldnt mind having a look for me please. I have been working on this for 5 days now with no luck.

Here is the code:


Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
var menuItem = this.firstChild.childNodes;
thumbScroller.createEmptyMovieClip("thumbContainer",0);
for (var i=0; i<menuItem.length; i++) {

currentThumb = thumbScroller.thumbContainer.attachMovie("thumbClip", "thumbClip" + i, i);


var currentThumb_mc = thumbScroller.createEmptyMovieClip("thumbnail_mc"+i,i);
currentThumb_mc._y = i * 160;
currentThumb_mc._x = 20;

currentThumb_mc.createEmptyMovieClip("thumbClip",0);
currentThumb_mc.thumbClip.loadMovie(menuItem[i].attributes.thumb);

}

}

}
menuXml.load("myContent.xml");
Basically the problem is that the thumbnails i am pulling from my XML file wont sit within the Scrollpane but appear to sit on top of it, overlapping the pane itself.

If anyone can help then i can perhaps forward the XML, jpg's and FLA via private email.

Cheers in advance for your help.

Pete

Access A Button Within A ScrollPane (pain)
I am trying to access a button that I have in a scrollPane to change it's active state. This happens on a cuepoint in my video. Here is my script..
------
listenerObject = new Object();
listenerObject.cuePoint = function(eventObject) {
if (eventObject.cuePointName == "cp_2") {

_root.TitlesMC.button2_btn._visible = false;

trace("Cuepoint Passed");
}
};
myVideo.addEventListener("cuePoint", listenerObject);
-----

My scrollPane points to a movie clip called "TitlesMC" which contains a button called "button2_btn". I can't seem to access it.

If I put a button out in the main movie and point to it there, it works great - but the button in a movie clip within the scroll pane - can't access it.

Thanks -
Jmac1

DynamicallyXML Profiles In A ScrollPane... Pain...
Hi all,

First time posting to these boards...

I have a bit of a problem with my dynamically generating profiles in a scrollpane.

These profiles are in the form of movieclips which contain "TextAreas" which are to be populated by an external XML file.

So far everything is working... I have my Scrollpane, it is linked to a MovieClip, and my Profile Movieclips are dynamically generated inside that movieClip...

The problem is, for some reason my script doesn't seem to want to populate the TextAreas!!!

There are four TextAreas per dynamic Profile.

Here is my code as it stands...
------------------------------------------------------

PHP Code:





var n;
ScrollContent = _root.Scroller.content;
Test_xml = new XML();
Test_xml.ignoreWhite = true;
Test_xml.onLoad = function(success:Boolean) {
     if (success) {
           trace("XML Loaded successfully!");
           trace("");
           _root.Scroller.content._height = 110*Test_xml.firstChild.childNodes.length;
           for (n = 0; n<Test_xml.firstChild.childNodes.length; n++) {
                  //These lines involve the building and positioning of 
                  //the Profile "Box"es, inside the Scrollers content
                  //movie clip, based on the number of records 
                  //available in the XML object... This works perfectly...
                 item = ScrollContent.attachMovie("TextBoxes", "Box"+n, n);
                 item._x = 16.5;
                 item._y = 110*n;
                 //These traces are showing that the data is there 
                 //exactly as it should be...
                 trace(Test_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue);
                 trace(Test_xml.firstChild.childNodes[n].firstChild.nextSibling.firstChild.nodeValue);
                 trace(Test_xml.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.firstChild.nodeValue);
                 trace(Test_xml.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.nextSibling.firstChild.nodeValue);
                 trace("");
                 //But now, when I try and populate the TextAreas 
                 //nothing happens... I should point out that before I 
                 //started trying this with a ScrollPane, and was just using
                 //one Profile box, I was able to use similar to below to 
                 //successfully populate the TextAreas...  ???
                 item.parta.text = Test_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue;
                 item.partb.text = Test_xml.firstChild.childNodes[n].firstChild.nextSibling.firstChild.nodeValue;
                 item.partc.text = Test_xml.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.firstChild.nodeValue;
                 item.partd.text = Test_xml.firstChild.childNodes[n].firstChild.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
          }
          //these traces just let me make sure the code is 
          //looking at the right strata of the XML object, and to 
          //check how many entries there should be.(all present 
          //and correct).
          trace("");
          trace(Test_xml.firstChild.firstChild.nodeName);
          trace(Test_xml.firstChild.childNodes.length);
     } else {
          trace("XML Failed to Load!");
     }
};
Test_xml.load("Test1.xml"); 






-----------------------------------------------------

If anyone has any idea why I am having trouble with the data showing up in my Profile "Box"es, I would appreciate your help...

...Could it have anything to do with this "you must embed fonts" when using a Scrollpane or Mask? I reckon not... but...

any suggestions appreciated...

-Paul.

Ok, I Have Tried For Three Weeks:::::help
I have been messing around with mono*crafts menu or actually a replica of. I think I have torn it down enough that I understand how it works with one exception, I can not figure out how to get individual links to work on the menu. The only way I have been able to get it to work is to assign a link to the blank button (which is duplicated X number of times using Set Variable: "num_ops" = 20, The only thing this does is set the URL on each button as exaclty the same. I have figured out that I have to use Set Variable, but then my brain just quits! I am not new to flash, so this is really messing with my self esteem. My Macromedia OS is Flash 4. Can anyone shed some light on this for me before I go completely recluse and become a hermit?

Trying For 3 Weeks To Get Help . . .
I have an html page with a transparent flash movie layer.

I cannot close the layer. I would like it to close after playing or if the user clicks the close button, without closing the html page.

I know I need some kind of java.close script, but don't have a clue what it is.

I really appreciate any help or suggestions you may have.

Thanks

Weeks On The Same Problem Can Anyone Help Please?
Hi all,
I am having real problems with showing movie clips when the mouse goes over a button. Could anyone be kind enough to show me how to do this on the first button with the .fla I am working on? The .fla is uploaded at the following address http://www.thomasgreg.com/introred.zip Thank you very much for your help/advice this is making me go crazy

[F8] No One Can Fix This, Ive Wait 3 Weeks.
Hi, heres my problem try to help please

I have a movieclip which is randomly duplicated along the x axis of my stage the only thing is I can't get the randomly duplicated movieclips to hitTest with a Hit area.



What I have is the block being randomly generated along the top of the stage on the x axis between the egdes of the stage then it randomly selects an animal, then it slowly drops to the bottom of the stage. Inside the block are different animals in different frames they are randomly selected using the basic gotoAndStop(random(6)). Now I have the boats at the bottom of the stage and I want the boat_hit to collide with the any of the animals using there insistances names. (e.g. bear, bunny, kitten, lion, sheep, puppy,)

The Way I am targeting the MC's is from the boat_hit bear in mine, the code goes like this


Code:
onClipEvent(enterFrame){
if(this.hitTest(_root.block.block2.bear)){
this._parent.one.gotoAndStop(2);
}
}

Need A Programmor For 2 Weeks
Send me a private message if you live in Montreal Quebec Canada and you want to get 2 weeks contract in AS3 programming

Memory Leaks Over Weeks
hi,
a very rare question i'm sure.
i've made a flash movie that runs on a display. this movie may run without being turned off for up to 6 months.
as it runs the memory it takes up increases. about 1mb a day.

how can i clear the memory?

Recovering Two-weeks Old Messages From This NG
on 6/3/07 I posted a question with the subject "adding a text field to a
number of FLA files" and received useful advices. Unfortunately I did not
save them to my local disk and now for some reason this subject does not
show up in my Outlook Express which I use to read NGs. Neither helps search.
Older subjects are still here.
What is the problem and how can I recover these messages?

ScrollPane Not Working In IE
hello evryone.
i've seen several posts with the same problem, all left unsolved. i thought i might try my luck - and thanks in advance for any help.
i have a scrollpane loading an external JPG directly, using contentPath.
on firefox all works great, on IE the content is spilling out of the frame and no sliders show.
i've tried adding these lines to the component itself:

on(Complete){
this.redraw(true)
this.invalidate();
}

as advised in some posts i've seen, but it didn't do the trick. i use MX2004 and tried it also in MX2004 pro, no luck. any ideas?

Scrollpane On The Fly Not Working.
Hi dear guys:
I am dealing with a scrollpane that I create on the fly into an mc with a function called creaScrollSuma() wich works fine, this is the function.


Code:
function creaScrollSuma(){
scrollaSuma = _root.cuadroSumador.attachMovie("scrollPane", "scrollaSuma", 100);
scrollaSuma.setSize(200, 130);
scrollaSuma.createChild("Empty", "spContentHolder", initObject);
scrollaSuma.setStyle("hScrollPolicy","none");
scrollaSuma.setStyle("borderStyle","none");
Empty = scrollaSuma.spContentHolder;
contentsChildSuma = Empty.createEmptyMovieClip("content_mc", 100);
}
But when I attach mcs into the scrollpane one behind the other the scrollpane does not activate (I dont see the scroll when the duplicated mc´s are bigger that the setSize(200, 130) of the scroll). This is the function that loads the mc into the scrollpane dinamicly.


Code:
_global.Pedir = function(pedido){
var contenidoPedido:Array = Array();
contenidoPedido = pedido.split("|");
_nombre = "<B>"+contenidoPedido[0]+"</B>";
_desc = contenidoPedido[1];
_unidades = contenidoPedido[2];
_precio = "<B>"+contenidoPedido[3]+"</B>";;
_foto = contenidoPedido[4];
_id = contenidoPedido[5];
idFila = contentsChildSuma.attachMovie("filaSubtotal", "idFila"+_id, k, {_x:4, _y:altoDeFila });
idFila.nombre.htmlText = _nombre;
idFila.costo.htmlText = _precio;
k = k +1;
altoContent = contentsChildSuma._height;
trace(altoContent);
altoDeFila =+ altoContent +5;
}
If its necesary I can upload the sample file in order to try it. please let me know.

Thanks very much in advance guys.

Scrollpane Not Working In IE
Hi, I'm using the scrollpane component that comes with flash on a project and when i preview it in IE the MC that is supposed to load, loads but it exceeds the boundaries of the scrollpane, and the scroller is not visible... It works perfectly in firefox.

Any help would be greatly appreciated.

Working With ScrollPane
Hi There,

I have the following items on the stage in the first keyframe ::
1) ScrollPane with instance name: "sp"
2) input text with instance name: "addClass_txt"
2) button with instance name: "add_btn" with label "additem"

I have 2 movie clips in the library: "rowParent" , "empty"

Im trying to attach "rowParent" MC to SP dynamically when click a button "addItem"

I have the following code in the first key frame ::
stop();
sp.contentPath = "empty";
var layer = 1;
var rowCont = 1;
var classMCArr:Array = new Array();
add_btn.onRelease = function() {
addClass("test1234");
};
function addClass(cls:String) {
var mc = sp.content.attachMovie("rowParent", "rowParent"+rowCont++, layer++);
classMCArr.push(mc);
mc.class_txt.text = cls;
if (rowCont == 2) {
mc._y = 0;
} else if (rowCont>2) {
mc._y = (mc._height*(rowCont-2));
}
}


// Im able to attach "rowParent" MCs when I click on the "additem" button .
// now the problem is the ScrollPane is not showing up the scrollbar when im trying to add more than 5 "rowParent" MCs

can any one help me in fixing it

Thanks a tonnnnnnnnn!!!

Hima

ScrollPane Is Not Working
HI

I attached movieclip into scrollpane.Its working fine.But the scrollpane vertical scrollbar is not displaying.Following code is i am using.


function init() {
_root.mcMain = _root.sp.content;//Here i am giving mcMain as scrollpane content.


}
init();
function createPages() {
for (i=0; i<templateArray.length; i++) {
if (templateArray[i] == "") {
templateArray.splice(i, 1);
}
}
//////////////// create pages ////////////
for (i=0; i<templateArray.length+1; i++) {
_root.pagesArray[i] = _root.mcMain.attachMovie("page","page"+i, mcMain.getNextHighestDepth());//Here I attach movieclip into scrollpane
_root.tn.tnholder.attachMovie("page","page"+i, this.getNextHighestDepth());

_root.pagesArray[i].imgCtr = 0;
_root.pagesArray[i].txtCtr = 0;s
_root.pagesArray[i].calloutCtr = 0;
//pagesArray[i].orgXPos = pagesArray[i]._x;
//pagesArray[i].orgYPos = pagesArray[i]._y;
_root.pagesArray[i]._x = xPos;
_root.pagesArray[i]._y = yPos;
_root.pagesArray[i]._width = 100;
_root.pagesArray[i]._height = 100;
_root.yPos = pagesArray[i]._y+pagesArray[i]._height+20;
_root.loadTemplates(i);
_root.pagesArray[i].ind = i;
_root.arrImage.push(i);

_root.pagesArray[i].onPress = function() {
startDrag(this);
_root.xPos = this._x;
_root.yPos = this._y;
this.swapDepths(500);
};

_root.pagesArray[i].onReleaseOutside = function() {
stopDrag();
trace("sdfsdfs")
_root.pagesArray[i]._x = xPos;
_root.pagesArray[i]._y = yPos;
};

_root.pagesArray[i].onRelease = function() {
stopDrag();
boolHit = false;
for (var i = 0; i<_root.pagesArray.length-1; i++) {
trace(_root.pagesArray.length);
if (this.ind != _root.pagesArray[i].ind) {
if (this.hitTest(_root.pagesArray[i])) {
boolHit = true;
_root.xPos = 10;
_root.yPos = 10;
var tempIns = _root.arrImage.splice(this.ind, 1);
_root.arrImage.splice(_root.pagesArray[i].ind, 0, tempIns);
break;
}
}
}
if (_root.boolHit == false) {
_root.pagesArray[i]._x = _root.xPos;
_root.pagesArray[i]._y = _root.yPos;
} else {
for (var i = 0; i<_root.arrImage.length; i++) {
_root.pagesArray[_root.arrImage[i]].ind = i;
_root.pagesArray[_root.arrImage[i]]._x = _root.xPos;
_root.pagesArray[_root.arrImage[i]]._y = _root.yPos;
_root.yPos = _root.pagesArray[_root.arrImage[i]]._y+_root.pagesArray[_root.arrImage[i]]._height+20;

}
trace("-------");
}
};
}
_root.pages = true;
}


Please help he

Ugh ScrollPane Not Working - Help
I've never experienced this before with scrollPanes. I have two "live" sites right now that both clients came back to me and said that the scroll areas are missing their scroll bars and that the scrolling text extends way past the bottom hieght of the scrollPane. They were working fine until recently and I've never had issues with scrollPanes in the years that I've used them.

Has anyone experienced this, and/or can help with solving?

Thanks!

Display Weeks Numbers On DateChooser
Hi I am newish to actionscript.

I am building a online booking service for one our clients. It will calculate when is the best time for an appointment depending on certain information - this I have all working fine.

I need to display the week number a long side the date choose, I have something that will do this - But the trouble is the "loose" days at the start/end of a month and syncing those to the week numbers.

Any ideas?

Also I have displayed ranges working fine, but I could do with differentiating some more dates with in the displayed range. Example displayed range from jan 1st to jan 21st - need to have 16th - 18th highlighted.

Thanks for any response

Jon-e-orange

Countdown Dyas Months Weeks?
Hi Anyone know any really simple countdown clocks with days months and weeks?
I just want to enter in a specific date in the future using simple english inside the code and have the display show days weeks and months when running.

is there anything like that around people?
thanks
shafattack

[MX04] Php Contact Form For 3 Weeks
I have been trying to make a contact form in flash with php for three weeks. I am sure i had it working at some point but then managed to mess it up. I am pretty sure the php file is ok because i tried a html page with it and it was fine. The contact form is a movie clip in the root called fillo. The submit and reset buttons are within that movie clip but they are movie clips themselves and the actual buttons are within them. When i click the submit button there is a message on the output that says error finding file chromatise.php which means that it looks for the the file but when i check my email it doesnt come. I suspect there is some mistake with the path of the var. Can anyone help??

the script within the submit button is :
on (release) {
if ( _parent.name eq "" or _parent.email eq "" or _parent.message eq "") {
_parent.gotoAndStop("3");

} else {
loadVariablesNum("chromatise.php", 0, "POST");
_parent.gotoAndStop("5");
}
}
p.s can anyone tell me what the 0 is in this sentence??
"loadVariablesNum("chromatise.php", 0, "POST");"

the source is located at http://test3.cy-designs.com/formcontact.fla

Watch Me Crash And Burn In Two Weeks
Well as it turns out, I got the job of my dreams, (Yay for me) I applied, got in, and only being 14 at that, (10th grade in highschool) this ain't no job for starbucks, this is "Price Waterhouse Coopers" if you've ever heard of them, they're global and huge, well as it turns out I need to learn Flash MX 2004 overnight, well actually within two weeks, I'd like to know what you would recommend, a friend said head here for tuts and such, but any books that you think I should pick up? I'm not a complete noob, I do photoshop and such, but I guess Flash is kinda new to me. Thanks alot anyone who replys.

Taylor

Display Weeks Numbers On DateChooser
Hi I am newish to actionscript.

I am building a online booking service for one our clients. It will calculate when is the best time for an appointment depending on certain information - this I have all working fine.

I need to display the week number a long side the date choose, I have something that will do this - But the trouble is the "loose" days at the start/end of a month and syncing those to the week numbers.

Any ideas?

Also I have displayed ranges working fine, but I could do with differentiating some more dates with in the displayed range. Example displayed range from jan 1st to jan 21st - need to have 16th - 18th highlighted.

Thanks for any response

Jon-e-orange

Watch Me Crash And Burn In Two Weeks
Well as it turns out, I got the job of my dreams, (Yay for me) I applied, got in, and only being 14 at that, (10th grade in highschool) this ain't no job for starbucks, this is "Price Waterhouse Coopers" if you've ever heard of them, they're global and huge, well as it turns out I need to learn Flash MX 2004 overnight, well actually within two weeks, I'd like to know what you would recommend, a friend said head here for tuts and such, but any books that you think I should pick up? I'm not a complete noob, I do photoshop and such, but I guess Flash is kinda new to me. Thanks alot anyone who replys.

Taylor

Display Weeks Numbers On DateChooser
Hi I am newish to actionscript.

I am building a online booking service for one our clients. It will calculate when is the best time for an appointment depending on certain information - this I have all working fine.

I need to display the week number a long side the date choose, I have something that will do this - But the trouble is the "loose" days at the start/end of a month and syncing those to the week numbers.

Any ideas?

Also I have displayed ranges working fine, but I could do with differentiating some more dates with in the displayed range. Example displayed range from jan 1st to jan 21st - need to have 16th - 18th highlighted.

Thanks for any response

Jon-e-orange

Scrollpane Working Slow
hi everyone....

when i customize a scrollpane anad put it on the stage, it scrolls slowly... i mean like there is a lag...

why is that happens?... i see lots of scroolpanes working in great speed on internet

thanks for the replies

Scrollpane Not Working Properly
Hi,

I am having major problems with the scrollpane component in Flash MX Professional 2004. If the content in my movie clip that the scrollpane is scrolling is too large, it just shows part of the content and then scrolls white space after that. Also movie clips that have less content scroll the entire content and then keep scrolling white space after that.

Is it a loading issue with my movie clip?

Any help would be greatly appreciated.

Thanks in advance for your time!!!

ScrollPane Not Working Right For Some Flash8
http://www.karaedwardsvo.com

When you click on either "about" or "clients" it takes you down the timeline to a ScollPane that is set to load an external swf (with a tranparent background if that makes a difference). This works fine for me 100% of the time on my Mac but have had a couple, including the client, who say the in IE on a PC the scroll bar doesn't appear and the swf shows up low on the screen. Anyone have any thoughts on this?

Working With Scrollpane Component
Hello Everybody,
I want to scroll the content without loading externel text in scrollPane component. I'd attached the zip file for getting the clear idea, please open the zip file in that you will get swf file. I'm arising one problem is that at the bottom of the conent in last rectangle "SPECIFICATION SUBJECT ...." I'd draw one red line you can see that but I need to see the whole rectangle, you will not able to see the bottom border of the rectangle.
I mean to say that I want to see the whole content in scrollpane without lossing any line or content.

Regards,
Jitendra Jadav.

Scrollpane And External Swf Not Working
http://www.thewaterfronthotel.info/0...tent_flash.zip

can someone please tell me why the scrollpane stays empty? Thanks!

Scrollpane Not Working When Loaded Into Another Swf
Hi guys,
Got an annoying one. I have a nice scrollpane with easing that works fine until it is loaded into another swf - when i do the scroll action stops working.
I have tried the _lockroot action but this stops it working on its own and when loaded.

Been really pulling my hair on this one so any help is appreciated.

This is the code: (i have tried changing the _root references to 'this' but no joy.


txt.setMask(mask);
scrollbar.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar.onMouseUp = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {

var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}

}

ScrollPane Update() Not Working?
Can anyone tell me why this won't work? I want the scrollPane to reset when I dump another clip into it. Thanks.


Code:
myButton.addEventListener(MouseEvent.CLICK, completeHandle);
function completeHandle(event:MouseEvent):void {
testScroll.update();
testScroll.refreshPane(); // don't think i need this
}

Working With Scrollpane Component
Hello Everybody,
I want to scroll the content without loading externel text in scrollPane component. I'd attached the zip file for getting the clear idea, please open the zip file in that you will get swf file. I'm arising one problem is that at the bottom of the conent in last rectangle "SPECIFICATION SUBJECT ...." I'd draw one red line you can see that but I need to see the whole rectangle, you will not able to see the bottom border of the rectangle.
I mean to say that I want to see the whole content in scrollpane without lossing any line or content.

Regards,
Jitendra Jadav.

ScrollPane Component Not Working In IE
Hi Everyone,

The scrollpane component is not working in IE when the files are placed in solaris server. It works in all other browsers except in IE.

Can anyone help me out what could be the problem?

My code is just
MyScrollPane.contentPath = "content/page1.swf";

Thanks and regards,
Madhava ram upadrasta.

Dynamic Jpgs Not Working In Scrollpane
ok- i have an MC that contains both a dynamically loaded textfield and an empty MC into which i am loading a jpeg. now, it works fine until i link it to a scrollpane, then just the text shows up in the scrollpane and not the jpg. any help???
thx

ScrollPane Component Not Working... But Does In New Movie
Hi all,

I'm a fairly experienced flash developer and have recently gotten back into it with MX 2004. I'm trying to use the ScrollPane component in an application I've been building, but when I set it up as per Macromedia's directions, the movie clip that should show up in the scroller does not, and there are no scrollbars, just an outline.

When I open a new document and create a graphic MC and put it into a ScrollPane component, it works exactly as expected. Does anyone know if there's something in my work-in-progress that could be causing the ScrollPane component to fail? This is my first time trying to implement a component.

Thanks for your help

What Da? - Components Inside ScrollPane Not Working
Hi guys,

I am making some forms in and one of my biggest problems is if my forms are taller than the display (800x600) it's often too confusing to scroll all the elements of that form.

Therefore i decided to put them forms in a separate swf so that i can just load them into the scrollpane compontent and the scrollpane component will just automatically generate the scroll bar and its parameters...

All was well untill i encountered a problem with some components loaded inside that scrollPAne. all components which seems to have "pop-up" mechanisms doesnt seem to work if they are loaded inside a scroll pane.. these compnents ared the dropdown boxes, the date field, etc..

is there anyway around this problem?

God i hope so.. im almost finished with my project.

Tea

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