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.
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-28-2006, 08:04 PM
View Complete Forum Thread with Replies
Sponsored Links:
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?
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
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!!!
View Replies !
View Related
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?
View Replies !
View Related
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.
View Replies !
View Related
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
}
}
View Replies !
View Related
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
}
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
[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
View Replies !
View Related
ScrollPane - External Links Not Working
Hello,
HELP! I have been searching for two days now and cannot find a resolution to this problem. It's probably something simple and I'm just searching for the wrong thing.
I'm using Flash CS3, ActionScript 2.0.
I have a ScrollPane on my main stage and I've linked to the content okay, everything works there, I can see it, it shows - but the links, text and button, in my content path movie clip do not work! The movie clip works fine when you look at it by itself, but not when you're viewing it in the main movie that's calling it.
I'm kind of new at Flash and I just wanted to build a simple site - this is first thing I have not be able to resolve by finding the answer through Google and forum searching.
any guidance would be so appreciated!
thank you!
Edited: 11/08/2008 at 04:59:20 PM by mgavaldon
View Replies !
View Related
[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
View Replies !
View Related
Scrollpane Loading Movie Isnt Working
Hey, i'm loading an external .swf into a scrollpane. The scroll pane is called (photoscroll) and is inside a MC called photo. the code i'm using right now is
OnClipEvent(load){
loadMovie("test1.swf, _level0.photo.photoscroll)
}
It loads and displays fine, the problem is it loads "on top" of the scrollpane instead of inside it. So instead of being able to scroll this movie, it just shows up in the general area of the scroll pane and exceeds the perimiter of the scroll pane as well. I'm thinking it's something in my coding, I thought, maybe i should define the target before i give the load movie comand, but that didnt work either. Can someone help me? I'll upload my file if anyone needs me to.
Thanks!
View Replies !
View Related
Buttons Inside Scrollpane Not Working In Main Movie It Is Loaded Into
Caio rigazzi,
I have a scrollpane with a movie that contains a movie clip in it. That movieclip contains buttons which are capable of bringing up a pop-up menu and should display a sample image when "rolled over". The problem is when I use :
on (rollOver) {
_root.rollover.gotoAndPlay ("1FLUX");
}
on (rollOut) {
_root.rollover.gotoAndPlay ("1BACK");
}
The "roll over" function does not work in the main movie this scroll pane is loaded into.
Basically, the scroll bar in a swf named VIDEO, is loaded into a DESIGNWORK1.fla, which is loaded into a main video: INDEX12
(courtesy of the Transitions between External SWFs( 1, 2)
How can I get this scroll bar to work?
aswg
View Replies !
View Related
[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.
View Replies !
View Related
ScrollPane In Flash8 Not Working Quite Right 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?
View Replies !
View Related
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
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
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
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.
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
ScrollPane To ScrollPane Communication
I have a scene with two ScrollPanes. One ScrollPane contains a movieclip of thumbnails (used as buttons), the other ScrollPane contains larger pictures. Similar to a photo album. When each thumbnail is clicked, it is supposed to go to a specific frame label of another movie clip within the second ScrollPane.
This is the code I am using for the thumbnail buttons:
on (release) {
_level0.Ads-Scroll-Large.tmp_mc.gotoAndPlay("AD2");
}
I know it has to be something stupid...
Any help would be greatly appreciated!
Many Thanks,
Todd
View Replies !
View Related
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.
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
Calling From ScrollPane To ScrollPane
I am still pretty new to actionscripting...so please bare with me.
Here is what I have...
I have 2 scroll panes
Both of the following scroll panes are on the main stage (frame 1).
One scroll pane has an instance name of "scrollComponent". It is loading the movie "componentList_MC".
In the "componentList_MC" movie is a battery button with an instance name of "batteryBut_btn".
The second scroll pane has an instance name of "viewsScroll". It is loading the movie "viewsPanel_MC".
In the "viewsPanel_MC" I have a frame label of "full" and another label of "230-6368_Battery".
The inital state of the "viewsPanel_MC" is set so that it is on the frame label "full".
I am trying to get it to where when you click on "batteryBut_btn" that it will go to "viewsPanel_MC" and go to the frame label "230-6368_Battery".
Here is the code I have on frame 1 on the actions layer. This is what I have described above and is not working. Any thoughts or suggestions that someone could help me out with?
//12V Battery (230-6368_Battery)
batteryBut_btn.onRelease = function() {
_root.viewsScroll.viewsPanel_MC.gotoAndStop("230-6368_Battery");
};
View Replies !
View Related
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
View Replies !
View Related
Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?
im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.
arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");
for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}
my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?
many thanks, in advance
clive
View Replies !
View Related
Site Working Perfectly In A Server, Not Working In Other
Hi
I have a strange problem with a site I've done recently. It works perfectly in one server, but the same files don't work properly in some other server(both servers are Linux). The site loads correctly and all, and it runs fine for a while, but after you have clicked the buttons of the menu for 5 o 6 times the buttons doesn't load anything anymore. The rest of the movie runs fine, it's only the buttons that are supposed to load the sections (external swfs) that just do nothing.
See it for yourself:
Here the site works as it should:
http://www.avanzasoluciones.es/celeste
Here the buttons stop working after a while:
http://www.limpiezasceleste.com
I'll be glad to answer any question you may have regarding the coding of the site or anything that may lead to a solution.
Thanks for your time
View Replies !
View Related
Contact Form Not Working In IE But Working In Mozilla
got a problem that I just can't figure out.
I have a feedback that was working fine. Key word "was".
I added a frame in the form MC to include a Thank You screen. But then it stopped sending in IE, but works in Mozilla.
I tried taking the extra frame out but still doesn't work in IE anymore.
any suggestions?
button
Code:
on (release) {
form.loadVariables("email.php", "POST");
}
script on the php page
Code:
<?php
$sendTo = "alvin@diggy.com.au";
$subject = "Gisler contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = "Phone:" . $_POST["phone"] ."
Country: " . $_POST["country"] ."
Message: ".$_POST["message"]." ";
mail($sendTo, $subject, $message, $headers);
?>
View Replies !
View Related
Fading Text Only Half-working (so It's Not Working At All)
Here's one for ya...I'm making some fading text. I made a movie clip of the text and did the alpha tweening and all that, and when I play the clip on-stage, it works perfectily. However, when I run a movie test, the text does not fade in but rather just suddenly appears. This is also the condition when the graphic is loaded onto a webpage. Has anyone else seen this happen before and can tell me why this is happening? Thanks.
View Replies !
View Related
Full Screen Tiling Working, But Not Working Right?
am using bitmapdata to make me a nice lil' background image, and it works great...until it's resized. Whats happening is it's creating a new bgHolder clip on the resize, NOT resizing the current empty clip "bgHolder"
Here's the code(taken from various posts)
import flash.display.BitmapData;
#include "mc_tween2.as"
Stage.align = "TL";
Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {
createBG();
};
Stage.addListener(myListener);
var bgHolder:MovieClip = _root.createEmptyMovieClip("bgHolder", _root.getNextHighestDepth());
var BG_LINKAGE:String = "bg";
function createBG():Void {
var tile:BitmapData = BitmapData.loadBitmap(BG_LINKAGE);
with (bgHolder) {
beginBitmapFill(tile);
moveTo(0,0);
lineTo(Stage.width,0);
lineTo(Stage.width,Stage.height);
lineTo(0,Stage.height);
lineTo(0,0);
endFill();
}
}
createBG();
View Replies !
View Related
Working Locally - Not Working Online
Having a nightmare with this.
On my project I have made use of both named anchors and frame labels for the navigation - both of which work fine when testing locally, in all browsers.
Problem is, soon as I upload, the frame labels stop working in FireFox, and they only working on 2nd load in IE. Im publishing Player 6, using AS2. The named anchors work great, across the board.
Any ideas?
View Replies !
View Related
AS 2 Button Not Working Not Working Properly
I've got a problem with a button dynamically attached to an mc within an as 2 class script. This is the button code:
ActionScript Code:
this.mc.butt.onRelease = function(){
current=true;
this._parent.checkFocus();
}
this code is inside the class constructor while current is declared at the start of the class and set to false previously in the constructor. The mc is the movieclip attached to the class and butt is the button attached to that. checkFocus is called ok but i'm confused how cos the "this._parent" should reference the "mc" movieclip but this has not got a checkFocus method on it. If i use "this._parent._parent" however, which should be correct, it does not work. I don't know what's up there. Anyway, checkFocus is here:
ActionScript Code:
public function checkFocus(){
for(var mcname:String in _root){
if(_root[mcname] instanceof Layer){
if(_root[mcname].focus==true){
//_root[mcname].gainFocus(20);
_root[mcname].loseFocus(20);
} else {
if(_root[mcname].current==true){
trace("waaahhhhh");
_root[mcname].gainFocus(20);
}
}
}
}
}
the aim of this code is to unfocus the Layer object (this is the name of the class) currently in focus, denoted by its focus attribute being true, and focus the new Layer object that has been clicked on - denoted by its current attribute being true. The currently focused layer is unfocused ok, but the new layer is not focused because, it seems, the change in the current attribute has not happened - there is no waaaaaahhhh coming up! I think this is because i am not reference it properly from within the button event. How can i reference properly from within the button? I've tried using _target and targetPath() but i'm not getting anywhere. I'm pretty sure this is the problem cos things work fine when i declare button events from outside the class, inside the fla. But i'd much rather do things dynamically within the calss if possible. Anyone got any ideas? I've been staring tooooo long at this.
View Replies !
View Related
Rollover Working But Rollout Not Working?
i have attached my small fla...
basically i have 5 buttons, each with a rollover and a rollout statement.
when the buttons are rolled over, they tween in scale.
when the buttons are rolled out they are supposed to tween return to normal scale - but for some reason they do not tween, they just pop straigh back into normal size....
any ideas???
View Replies !
View Related
AttachMovie Working, CreateEmptyMovieClip Not Working
Anyone have an idea just by quickly looking at this? I know it's taken out of context but I just can't see why it shouldn't work!
ActionScript Code:
// this line aperantly does not create the clips I need within a for loopvar photo:MovieClip = container.photoContainer.slide.createEmptyMovieClip("photo"+i, i+200);// while this line does, any idea why?var photo:MovieClip = container.photoContainer.slide.attachMovie("placeholder", "photo"+i, i+200);
View Replies !
View Related
Why Is My Php Email Form Not Working Here, But Working Elsewhere?
Hey everyone,
I wonder if you might be able to answer what is potentially a stupid question..
On this site I created a php email contact form and it's working fine: http://japanese-acupuncture.110mb.com/main.html
The contact form is in the clinic info tab on the side bar.
I've just set up a new site, and I copied the movie clip I used for the above site straight into the new one before adjusting how it looks to fit the layout of the new site. I'm going to use it in two places, and I know that I'll need to duplicate the movie clip for that. The site it's up on doesn't support sendmail, but I'm not worried about that yet.
What I can't figure out is why my text fields no longer let me input text, even though the movieclip is exactly the same as on the above site. The new site address is here: http://www.users.on.net/~davidgardner/
The contact form on the new site is on the 'register for a course now' tab, and on the 'contact us' page.
The only thing I can think of, is that the problem is caused by the contact form being buried in a series of movieclips.
If anyone has any idea what the problem is I'd be very appreciative!
Thanks,
David
View Replies !
View Related
Scrollpane
I'm trying to load a swf file in to a flash mx srollpane component I have been using the LoadMovie("filename.swf", level"). The movie loads but it dosen't load in to the scrollpane it loads over my other movie. what am I doing wrong. and I don't exactly understand what is needed in the level part of the code. I would appreciate any help some one could give.
View Replies !
View Related
Scrollpane
Problems with scrollpane...
Here's what happens :
I have a MC with text in and some rectangles to make some text more important. Nothing else in. The text is static cause I need to be able to make some centered, and some bold etc.
This MC is "in" a scrollpane.
When I play the movie, I can scroll the MC but it shows outside the scrollpane as if there wasn't a mask. What can I do ?
Also, I want the scrollpane to slide sidewards when the movie starts playing like it's entering the screen from the right. I applied a motion tween to it and stuff but when I play the movie the scrollpane doesn't move. Any idea ?
Cheers
View Replies !
View Related
|