Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrollermc component

Status
Not open for further replies.
Aug 22, 2007
45
CA
I have a scrollermc component.The size is small on the screen. How can I make it so that it is larger and has large letters.
 
Hi kennethkawamoto
I tried what you said again and its working.
I have more questions for you.
I will ask them tommorow.
Thanks
 

Appart from thr message that I write in the scroll component ther is this message.
How can I remove that.
"undefined
 
I am doing this for fun so I am not making money from this.
That is why I can't spend money like crazy to finish this project.

Problem 1
I have just uploade this page.
The video is not streaming

Problem 2
I am still getting that undefined word in the scroll bar.
What do I have to define.


My object is to have a scroll bar and a auto slide show in the bottom of the page and on the top of the page have a video playing.
Thanks
 
Hi kennethkawamoto
Thanks for your help.
I am having dilluculity understanding where to place that code.
The only thing I understandis frame 1 of scrollermc.
If you can place the code and upload it to box.net I would appreciate it.
Thanks again.
 
No need for it :)

The first few lines of scrollerMC frame 1 code:
Code:
[b]stop();[/b]

x=new XML();
x.onLoad=init;
x.load(exemel);
x.ignoreWhite=true;

// scroller variables //
var last=-1; 			//set to -1 bc if set to 0 it skips the first char
var delayFlag=false;	// scroll pause toggle
scroller.text="";		// clear scroller text
scroller.border=true;
function init(success){
	if(success==true){
		root=x.firstChild;
		getView(root);
		getSpeed(root);
		getHotSpot(root);
		formatTextBox(root);
		getText(root);
		[b]gotoAndPlay(2);[/b]
	}else{
		// the fun path :)
		trace("error reading xml["+exemel+"]");
	}
}

Kenneth Kawamoto
 
Hi kennethkawamoto
This is what I did with your code and sorry top say I goofed.



stop();

x=new XML();
x.onLoad=init;
x.load(exemel);
x.ignoreWhite=true;

// scroller variables //
var last=-1; //set to -1 bc if set to 0 it skips the first char
var delayFlag=false; // scroll pause toggle
scroller.text=""; // clear scroller text
scroller.border=true;
function init(success){
if(success==true){
gotoAndPlay(2);
root=x.firstChild;
getView(root);
getSpeed(root);
getHotSpot(root);
formatTextBox(root);
getText(root);
}else{
// the fun path :)
trace("error reading xml["+exemel+"]");
}
}

function getView(dat){
// set the view var
return view=dat.attributes.textsize;
}

function getSpeed(dat){
// set the speed var
return sParam=dat.attributes.speed;
}
function getText(dat){
// load text + buffer(x amount of spaces)
bufferSize=dat.attributes.buffersize;
for(var x=0;x<=bufferSize;x++){
buffer+=" ";
}
first=dat.firstChild;
return theText=first.firstChild.nodeValue add buffer;
}

function getHotSpot(dat){
// load hotspot variables
hsInfo=dat.firstChild.nextSibling;
useHotSpot=hsInfo.attributes.hotSpot;
hsTarget=hsInfo.attributes.hsTarget;
hsUrl=hsInfo.attributes.hsUrl;
// flash gave me issues with this, so i just passed a big string
// and had the hotspot actions rip it apart
return cat=useHotSpot+"~"+hsUrl+"~"+hsTarget;
}

function formatTextBox(dat){
first=dat.firstChild.nextSibling.nextSibling; //jump to txtFormat tags
// set border/background tags
if(first.attributes.border=="true"){scroller.border=true;}else{scroller.border=false;}
if(first.attributes.background=="true"){scroller.background=true;}else{scroller.background=false;}

// set colors
scroller.textColor=("0x"+first.attributes.textColor);
scroller.backgroundColor=("0x"+first.attributes.bgColor);

}

 
Hi kennethkawamoto
I did what you said and still does not work.

stop();


x=new XML();
x.onLoad=init;
x.load(exemel);
x.ignoreWhite=true;

// scroller variables //
var last=-1; //set to -1 bc if set to 0 it skips the first char
var delayFlag=false; // scroll pause toggle
scroller.text=""; // clear scroller text
scroller.border=true;
function init(success){
if(success==true){
root=x.firstChild;
getView(root);
getSpeed(root);
getHotSpot(root);
formatTextBox(root);
getText(root);
gotoAndPlay(2);
}else{
// the fun path :)
trace("error reading xml["+exemel+"]");
}
}

function getView(dat){
// set the view var
return view=dat.attributes.textsize;
}

function getSpeed(dat){
// set the speed var
return sParam=dat.attributes.speed;
}
function getText(dat){
// load text + buffer(x amount of spaces)
bufferSize=dat.attributes.buffersize;
for(var x=0;x<=bufferSize;x++){
buffer+=" ";
}
first=dat.firstChild;
return theText=first.firstChild.nodeValue add buffer;
}

function getHotSpot(dat){
// load hotspot variables
hsInfo=dat.firstChild.nextSibling;
useHotSpot=hsInfo.attributes.hotSpot;
hsTarget=hsInfo.attributes.hsTarget;
hsUrl=hsInfo.attributes.hsUrl;
// flash gave me issues with this, so i just passed a big string
// and had the hotspot actions rip it apart
return cat=useHotSpot+"~"+hsUrl+"~"+hsTarget;
}

function formatTextBox(dat){
first=dat.firstChild.nextSibling.nextSibling; //jump to txtFormat tags
// set border/background tags
if(first.attributes.border=="true"){scroller.border=true;}else{scroller.border=false;}
if(first.attributes.background=="true"){scroller.background=true;}else{scroller.background=false;}

// set colors
scroller.textColor=("0x"+first.attributes.textColor);
scroller.backgroundColor=("0x"+first.attributes.bgColor);

}

 
Hi kennethkawamoto
How are you .
Whenthe films starts the undefined word is not there
But when it ends with how are you today.
The undefied word is there again.
Thanks
 
Hi kennethkawamoto
How are you .
You have to tell me exactly where that goes,because I tried a few places and that didn't work.
Thanks
 
Hi kennethkawamoto
I can't find the right line to place this code.
Why can't you have all the code for frame 1 discplayed here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top