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








Auto Scroll For Dynamic Textfield Content Loaded From XML ?


Hi, I´m using this code for typewriter effect of external loaded text into dynamic textfield. http://www.actionscript.org/forums/s....php3?t=105852

I would like to add script with function of auto scrolling when the text reaches bottom of the text field . But how, I am not a programmer and have basic understanding of action script only




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-17-2006, 01:54 PM


View Complete Forum Thread with Replies

Sponsored Links:

Content Auto-Scroll Via Mouse Position
***(I posted this already, but I think it may be more appropriate in this forum)***


I have come across an example of something I'd love to learn to do, but am not sure how to do it.

The example site is North Kingdom. My question is: How did they get the page content to scroll according to the mouse postion? I've seen this done with some photo galleries, but I would LOVE to know how to do it with content.

Can anyone help?

Thanks.

-coldfinger

View Replies !    View Related
Auto Scroll TextField As Text Added?
Here's a routine that creates the effect of text being typed into a TextField...

ActionScript Code:
var textString:String = /* a block of text of any length */
// tField is a dynamic text field already on the stage
var count:uint = 0;
addEventListener(Event.ENTER_FRAME, typeout);
function typeout(e:Event){
    tField.text = textString.substr(-textString.length, count);
    if(count < textString.length) count ++;
    if(count == textString.length) removeEventListener(Event.ENTER_FRAME, typeout);
}

This does the job it's supposed to. My question is, if the text is more lines than the allotted lines in the TextField, I'd like the the TextField to automatically scroll down as each new line is added. I'm assuming it has something to do with bottomScrollV, but I'm stuck on how to implement it. Any suggestions? Many thanks!

View Replies !    View Related
Auto Scroll TextField As Text Added?
Here's a routine that creates the effect of text being typed into a TextField...

ActionScript Code:

var textString:String = /* a block of text of any length */
// tField is a dynamic text field already on the stage
var count:uint = 0;
addEventListener(Event.ENTER_FRAME, typeout);
function typeout(e:Event){
tField.text = textString.substr(-textString.length, count);
if(count < textString.length) count ++;</p>
if(count == textString.length) removeEventListener(Event.ENTER_FRAME, typeout);
}


This does the job it's supposed to. My question is, if the text is more lines than the allotted lines in the TextField, I'd like the the TextField to automatically scroll down as each new line is added. I'm assuming it has something to do with bottomScrollV, but I'm stuck on how to implement it. Any suggestions? Many thanks!

View Replies !    View Related
How To Make A Loaded .swf Auto-resize To Fit Its Content,which Will Change At Runtime
Well, first I don't even know if this is possible, lol, but I think I saw something like this once in a website, and I'd really need it to work.

I have a site which loads an external .swf and puts it inside a scrollpane (or should I say scrollPAIN).

This external swf is initially empty, and generates its content at runtime duplicating some movieclips inside it. But this content can change everytime (this is all for a dynamic image gallery, and the .swf file is the one containing the thumbnails, so it has a different number of them for each different gallery).

The problem is, right now I have to make a separate .swf file for each thumbnail gallery, one by one, making each of them of the corresponding size to contain the number of thumbnails they'll create at runtime.

For example, if every thumb is 50 px in height and a gallery has got 10 of them, I have to make a .swf file which is 50 * 10 = 500 px in height.

But if another gallery has 8 of them, the .swf file has to be 50 * 8 = 400 px tall, so I need to make an identical .swf which is 400 px tall.

What I'd like to be able to do is the .swf to automatically resize itself to fit the content it loads at runtime.

I hope I made myself clear, as this is a bit tricky to understand if you're not seeing it.

Thanks in advance for any replies

View Replies !    View Related
How To Auto-add Scroll Buttons To Loaded Text?
Hi,

Does anyone know where I can find a tutorial on how to automatically add scroll buttons to an MC when the amount of text loaded from an external file exceeds the available space in the dynamic textbox?

The closest I've found was one on http://www.nooflat.nu/ that adds a slider but no buttons but I'm sure I've seen one with buttons before - just can't remember where!

I've tried searching the forums but the dodgy titles people give their posts make it pretty difficult to find what I'm looking for - more descriptive posts please!

Thanks,
Andy

View Replies !    View Related
Auto Sizing Dynamic Scrolling Content
Hi I am using AMFPHP to populate some scrolling content ...

The problem is my textfields and in general the content doesn't autosize to match the scrolling height ...

I've tried using textfield.autoSize = "true" but it didn't work ...

any tips or suggestions how can I do this ???

thanks

View Replies !    View Related
Dynamic Textfield - Auto Width Resizing
I am making a little flash trinket for my site (a small swf) that imports my currently playing song (a txt file that winamp exports) and i want the have something detect if the song's title is longer than pane it is supposed to fit in, and if so, to scroll it, like winamp does.

all i need to know is if there is a way to make a dynamic textfield resize it's width to fit the text that is in it. possible?

cheers,
stwelin

View Replies !    View Related
XML>Flash Content, Dynamic Text Auto Size
Hi, I don't know how to auto size dynamic text field for the content. For Example XML Sends "Hi All" dynamic field shows this, but if the content is too long for example "Hi All, I have problem about Action Script... etc" dynamic text can't show all of them cauz dyanamic field's witdh and height is 100*25, So the problem is if the content is too long I want to auto resize dynamic text field's witdh and height. I want to do this cauz I have scrollbar which one is moving according to dynamic text height. How can I do this any idea ?

View Replies !    View Related
Dynamic Flv Player With Auto Resize Based On Content
Hi,

I would like to build a .flv player which can accommodate 7 different video sizes.
This will probably be made using php and xml to dynamically control content.

What I would like to know is if and how it is possible to have a holder.swf (just looks for variables to display the flv) that can automatically resize based on the flv dimensions. I dont want any kind of browserscreen resolution resizing of content, just an swf that will change its size from say 320x240 to 450x253 depending on the dynamically loaded flv.

View Replies !    View Related
Scroll Xml Loaded Content
Hi!

I load let's say 10 post from an xml-page (another time it could be 20 posts), but only 8 fits into the design... how do i scroll them? I load it like this:

for (var i=0; i<attractionItems.length; i++) {
attraction = _root.attachMovie("attraction", "attraction" + i, i);
attraction._x = 625;
attraction._y = (i*50)+(450);
attraction.name.text = unescape(attractionItems[i].attributes.name);
attraction.web = unescape(attractionItems[i].attributes.web);
attraction.onRelease = function() {
getURL("http://" + this.web, "_blank");
}
}

View Replies !    View Related
Auto-scroll Dynamic Text
Hi you all!

Learned lots and lots from so many of you (THANKS!)but still need help with this:

I want to auto-scroll a list of about 600 company names. The text in the variable needs to be up-dated quite often.

So - is there a way to either load dynamic text into a mowieclip (really tried to find info on this all over but no success or I'm blind...) 'cause if my text is in a mc I can auto-scroll it...

or - is there another way to make dynamic text auto-scroll?

Would really make my day if you could help me figure this out!

View Replies !    View Related
Dynamic Text - Auto Scroll
Hi,

I want to use a (customised) scroll bar, so that it only appears when there is enough text in a dynamic text box.

Does anyone know how this is done?

cheers

View Replies !    View Related
Auto Scroll In Dynamic Text?
Hi! Everyone

How can I create auto scroll like that ?
click here

it's placed in bottom right.

I try to do this but it very inflexible not soft like that movie
my code:


Code:
var nInum:Number = setInterval(display,100)

functon display ():Void{
txtContent.scroll++;
}
it's very ugly.

Please help me!
Thank you so much
Best regards.

View Replies !    View Related
Mp3 Player > Dynamic Text > Auto Scroll
Hi!

I've created a flash mp3 player with the help of a tutorial..

And everything works really good and nice..

But I have one question..

Im using the following script (from the tut.)


Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
// trace(songname[i]+" "+songfile[i]+" "+songband[i]);
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
function timer(sound_obj) {
time = sound_obj.position/1000;
min = Math.floor(time/60);
min = (min<10) ? "0"+min : min;
sec = Math.floor(time%60);
sec = (sec<10) ? "0"+sec : sec;
timeDisplay_txt.text = min+":"+sec;
}
MovieClip.prototype.songStarter = function(file, name, band) {
if (this.sound_obj) {
this.sound_obj.stop();
delete this.sound_obj;
}
this.sound_obj = new Sound(this);
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text = name+" / "+band;
timeInterval = setInterval(timer, 1000, this.sound_obj);
} else {
this._parent.display_txt.text = "loading...";
}
};
this.sound_obj.onSoundComplete = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text = "00:00";
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
this._parent.volume1.dragger.onPress = function() {
startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
this.onEnterFrame = function() {
var p = (this._x/this._parent.volBG._width)*100;
this._parent._parent.sound_mc.sound_obj.setVolume(p);
};
};
this._parent.volume1.dragger.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};
this._parent.volume1.dragger.onReleaseOutside = function() {
stopDrag();
};
};
btn_play.onRelease = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text = "00:00";
this._parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_stop.onRelease = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text = "00:00";
this._parent.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text = "00:00";
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_rev.onRelease = function() {
clearInterval(timeInterval);
this._parent.timeDisplay_txt.text = "00:00";
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
playlist.load("ntlist.xml");
And I would like to have the dynamic text field with the instancename: display_txt to scroll from left to right ( and right to left ) automatically

How can I do this?


Thanks in advance!

See ya,

Ash

View Replies !    View Related
Text Scroll, External Loaded Content
Hi there,

Can anybody help me out.

I need an scroller for some external loaded text. The trick is, that i have to use it many many times, and it would be very much work if i have toe rescript the scroller everytime. I want to have a scroller that i can scale en place wherever i want on the stage, and the actionscript needs to work always.


Can anyone help me out?

Greets Martin

View Replies !    View Related
Text Scroll, External Loaded Content
Hi there,

Can anybody help me out.

I need an scroller for some external loaded text. The trick is, that i have to use it many many times, and it would be very much work if i have toe rescript the scroller everytime. I want to have a scroller that i can scale en place wherever i want on the stage, and the actionscript needs to work always.


Can anyone help me out?

Greets Martin

View Replies !    View Related
Dynamic XML Image Slider Auto Scroll Question
I Have a question regarding a dynamic XML driven image slide show.

I want the movie to slide continuessly from the left side automatically when it is loaded.
Now it only loads when a mouse movement enters the screen.

The link is:
http://dev.islandtechnologies.net/Fl...sh-test01.html

Here is the code from the main time line, Frame 2 (Frame 1 loads the XML file:

stop();
// Number of items
itemNum = 15;
// Stage Dimentions
stageWidth = 700;
stageHeight = 300;
// Button's width
width = 169;
// Separation between the buttons
separation = 20;
// Distance between the buttoms
space = width + separation;
// Total width of the buttons line
limit = itemNum * space;
// Speed
speed = 5;
for(i=0; i<itemNum; i++) {
_root.attachMovie("mc_button","mc_button"+i,10+i);
ref = _root["mc_button"+i];
// Vertical Positión (_y)
ref._y = stageHeight/5;
// Horizontal Positión (_x) + separation (20px)
ref._x = ( space * i ) + separation;
// Loads the picture description
ref.info.descName=picturesXML.firstChild.childNode s[i].childNodes[0].firstChild.nodeValue
// unloads the marc
ref.marc.unloadMovie()
// Load the picture(.jpg)
ref.marc.loadMovie(picturesXML.firstChild.childNod es[i].childNodes[1].firstChild.nodeValue)
// The link where will go when press
ref.link=picturesXML.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue
}
onMouseMove = function(){
movement = int(((_xmouse - (stageWidth/2))/-(stageWidth/2)) * speed);
}

And here is the code from the movie clip timeline (frame 1):

// picture scale
marc._xscale = marc._yscale = 100
// link
var link:String;
// Moving


onEnterFrame = function() {
// Adjust the position
this._x += _root.movement;
// if is outside the right limit...
if ( this._x > _root.limit - _root.width ){
// ... goes to the left limit
this._x -= _root.limit;
}
// if is outside the left limit...
if( this._x < -_root.width ) {
// ... goes to the right limit
this._x += _root.limit;
}
}
// Getting URL when press
info.onPress=function(){
getURL("http://"+link)
}

Any help would be greatly appreciated.
Thanks,
RJ

View Replies !    View Related
Dynamic Textfield-height And Content
I'm working on a webiste, and I'm creating textboxes with scrollbars. To make the scrollbars, I need to determine the height of the textfield I create. The textfields will load in text from a variable, so how do I now what height to set on the dynamic textfields.

thanks

View Replies !    View Related
Printing Dynamic Textfield Content
There have been some topics with this title but none of them seems to solve the problem of printing the dynamic text content which is by the way also a scrollable text. I manage to print only what is seen but not the whole text.

Is there anyone who could help. I am attaching my fla which is used only for testing purposes.

Thank you in advance

http://www.galahala.com/print2.zip

View Replies !    View Related
Auto Refresh Dynamic Loaded Txt
how can i refresh te dynamic loaded txt inside flash
it works on my pc but not in a browser
my code looks like this for now
code:
refreshText = function () {
ran = math.round(math.random()*1000+1);
content1.multiline = true;
content1.wordWrap = true;
content1.html = true;
story = new XML();
story.ignoreWhite = true;
story.load("live/score.txt?"+ran);
story.onLoad = function() {
content1.htmlText = story;
};
};
setInterval(refreshText, 1000);

could someone please help me

View Replies !    View Related
Flash Player Bug Prevents Dynamically Loaded Content To Scroll...
I tried the moocks solution for flash player bug, which prevents dynamically loaded content to scroll, but I am not able to make it work. The possible problem might be that I already upgraded to flashplayer 6 (I hoped that the bug might be fixed, but it seems not), so - does anybody know whether moocks workaround from his free chat server works under flash player 6? If yes, than I would be extremely grateful for any hint how to make this solution working.
I understand, that the essential part is a separate mc, which resets the textfield with this script like this:

onClipEvent ( enterFrame ) {
if ( _root.documentUpdated ) {
this.text.scroll = this.text.maxscroll - 1;
_root.documentUpdated = false;
}
}
I applied it exactly as moock in his chat server, but without success. Maybe I overlooked something. Does anybody know some downloadable .fla (less complex than this chat server) which I could use as an example?

__________________
Borut

View Replies !    View Related
Auto Scrolling Dynamic Loaded Text
Is there a way to continuously scroll text that is dynamically loaded from a text file?

I have been trying to find a news ticker tutorial but the ones I have seen are not working for me.. I want to be able to resize as necessary.


Any help would be greatly appreciated...

Thanks

View Replies !    View Related
How To Load Content In Text File Into Dynamic Textfield?
I try to use the loadVariable() method to know the data into the dynamic textfield, but I fail. I put the text file in the same directory as the movie. In fact I am not quite sure what the exact format of the data in the text file should be. In my text file I write:

myText.htmlText = "hello <b>world</b>!"

And my code is:

loadVariables("text.txt", "myText.htmlText");

Can anyone tell me what is the correct method of using the loadVariables() method?

Thanks a lot.

View Replies !    View Related
Dynamic Content In A Scroll Bar
can anyone help me figure out how to make dynamic images and dynamic text (coming from a inventory database) pop into a flash mx scrollbar?

http://www.totalsolutioninteractive....s/scrollv2.fla

http://www.totalsolutioninteractive.com/projects/1.swf

i've made the scrollbar and images scroll.

jeff

View Replies !    View Related
Put Scroll In Dynamic Textfield
Hi,

I m new in action script

I have to put scroll in dynamic text field
Please guide me how to do this

View Replies !    View Related
Scroll Pane Dynamic Content
Hi evryone,
I have this little problem, I'd like to use the scrollpane component and as a content I wanna use a MC that works as contenitor for a 10 MCs in column, attached via Actionscript one below the others. What ahppen is that if the MCs are already in the MC contenitor (in the authoring space) there is no problem to have the scrollpane scrollable, but if the MCs are attached via Actionscript, I see them insite the scrollpane, but I cannot scroll the content.

Anyone has any help?

Thanks.

View Replies !    View Related
Dynamic Content In A Scroll Pane?
Hi, I have a fixed size scroll pane. I would like to use control the size of the clip within that pane and have the scrollbars adjust accordingly.

Is the a function I need to call to get them to apear - and dynamically resize when necessary?

Foe example. To make it simple - I would like to have a movie clip in a scrol pane that is growing 10 px every second for ten secoonds. - I would like thescroll bars to extend slowly, so that when the 10 secs are up, you can scroll around to see the whole thing...

M@)

View Replies !    View Related
Help With Dynamic Scroll Content (so Close)
Hi guys

I'm trying to create a scroll area similar to http://www.norwaysays.no ... with text content and thumbnails.

I am having no trouble bringing in the information I want (both text and images), as I am calling the variables I want via PHP from my database...

I can already successfully load new content into a textarea with a scrollbar (component), and change the content by sending new requests to the database, though I obviously can't insert the images into the text area.

However, I can create the thumbnails as per the following code inside my 'for' loop (I have already set piclocation_x and _y variables outside of the loop):



Code:
//thumbnail image loop
//levelhack = a means to ensure loading new image into a unique level

_global.levelhack += 1
_root.thumb_clip._alpha = 99
_root.thumb_clip.duplicateMovieClip("thumb_clip"+i, _global.levelhack);
_root["thumb_clip"+i]._x = piclocation_x
_root["thumb_clip"+i]._y = piclocation_y
_root["thumb_clip"+i].loadMovie(this["image"+i])
piclocation_x += 0
piclocation_y += 70
So, I have my text loaded into a scroll area, and my thumbnails in a vertical line at 70 pixel increments beside the text... (as the text entries are approximately 70 pixels / 3 lines worth each). Obviously though, the text content is scrollable and the images are just sitting on the stage next to the text area.

My problem is, I can't seem to load all this content into a scrollpane component or a masked scroll area because that means I have to imbed the text in order for it to display, and that seems to have the effect of not updating the text content when I send new requests to the database.

So basically, my problem is not loading the text and images how I want, but loading them into a scrollable area, and having that scrollable area refresh it's content when I send new requests to the database.

Any ideas? I am tearing my hair out over this!

I can supply source file if anyone requires it.

Many thanks in advance...

View Replies !    View Related
Scrollpane Won't Scroll Dynamic Content
In my project I have a scrollpane that contains a movie clip that loads a variable number of textfields. However, the scrollpane won't scroll this movie clip. My guess is that it is reading the size of the movie clip before the textfields are actually loaded, so it thinks it just has an empty MC in it. Any ideas on how to fix this or whatever the problem may be? I can get it to scroll if I put a big clear box in one of the clips, but the amount of scroll doesn't adjust to fit the data.

I've made sure my fonts are embedded. You can see that they are cause the masking is working and they look aliased.

I've included some code of what I'm trying to do. Basically on the main stage there is a scrollpane which has 3 nested MC's that generate the content.

Thanks a lot!

PS. This is my first time getting into Actionscript, so sorry if the code looks terrible. Also, I'm using Flash MX.

View Replies !    View Related
Scroll Movieclip With Dynamic Content Help
I have a movicelip that loads in information from an xml file. I have been looking all over the place for a scrollbar component that works with this and nothing works. Ultimatr scroller doesn't and I tried some other ones, none of them seem to work with the dynamic info. So, can anyone lead me in a direction that has worked for them in the past?

View Replies !    View Related
Scroll Pane And Dynamic Content
I've created a menu of thumbnails using a movie clip populated by an xml file, and now I want to use a scroll pane to navigate this menu. I have the scroll pane on my timeline, the content path set to my movie clip (menu), however the problem I'm having is populating the menu movie clip because I need an instance name for my actionscript to work, yet there is no longer an instance of that movie clip on the stage. Is there a way to give it an instance name once it's loaded into the scroll pane? Is there a better way to do this?

View Replies !    View Related
Dynamic Scroll Pane Content
Hi All,

I been working on some code to utilize the scrollpane and fill it with mc defined from an array. For instance if my array has 10 names, I would like to attach a mc 10 times and assign onPress function to each button. Any ideas/sample code/tutes on how to accomplish this. So far I have been able to attach 10 mc to the stage with a for loop.

View Replies !    View Related
Dynamic Elastic Scroll Content
Hi

I am trying to make an easy to adjust scroll area for content - text & images.
so I can have custom button acting as a scroll bar which has that elastic effect (sort of content scroll ease in / out /slow down)
so something like here http://www.advanceflash.com
I've made similar stuff before but it was always way to hard to adjust once I added extra content (extra text or images)... so something that calculates the ration between the scrolling button and the size of the content so it's easy to add & remove extra content. Not sure how would this work with loading in dynamic text that gets changed often ?

thanks

View Replies !    View Related
Dynamic Content MovieClip Scroll
Hi all,
I was wondering if someone could take a look at my fla and see if they can get the scroller to work.
I've tried everything!
It scrolls if there is something already in the content area but if content is loaded dynamically, as it is here, it doesn't work.

http://www.buildrebuild.com/scrollNotWorking.rar

You need the FLA and the XML file.

Thanks for any help and advice.

BRb

View Replies !    View Related
Dynamic Scroll Pane Content
Hi All,

I been working on some code to utilize the scrollpane and fill it with mc defined from an array. For instance if my array has 10 names, I would like to attach a mc 10 times and assign onPress function to each button. Any ideas/sample code/tutes on how to accomplish this. So far I have been able to attach 10 mc to the stage with a for loop.

View Replies !    View Related
Dynamic Content In A Scroll Pane?
Last edited by gameon : 2003-09-01 at 16:20.
























Hi, I have a fixed size scroll pane. I would like to use control the size of the clip within that pane and have the scrollbars adjust accordingly.

Is the a function I need to call to get them to apear - and dynamically resize when necessary?

Foe example. To make it simple - I would like to have a movie clip in a scrol pane that is growing 10 px every second for ten secoonds. - I would like thescroll bars to extend slowly, so that when the 10 secs are up, you can scroll around to see the whole thing...

M@)

View Replies !    View Related
Looking For A Scroll Class For A Dynamic Textfield
Hello!

I was searching for an example of a scrollbar in AS3, but all scroll I have found are solved with a mask.

I don't want a mask. I just want a dinamic textfield in scene, which loads an external txt file. I know the uiscrollbar component can do so, but I'd love to do with my own movieclip for the scrollbar.

Any idea of how achieve it?

Thank you!

View Replies !    View Related
Help W/ Custom Scroll Pane W/ Dynamic Content
Hello,
Im going to try my best to explain what I am trying to accomplish with this custom scroll.
First take a look at this picture of the scroll area: http://www.abeazleydesign.com/ARROW.gif

So in that picture you can see that I have a curved arrow wich will be the up and down buttons with a smooth grip moving along the curved vertical line connecting the two arrows. The green area is where the main scroll pane will reside. Now notice that the green area is smaller at the bottom nd larger at the top. So what i want the website to do is the following:
1: there will be three of my products (in a wire frame format) in the green area at any given time.
2: when the buttons (up or down) are pressed the products will scroll inside that green area accordingly.
3. while the products are scrolling up and down I want them to scale in relation to the boundry of the green area(ie: smaller at the bottom and larger at the top).
4. when a product is at the largest part of the green area and the user pushes the up button I want the product to scale up and move into the red area where the wire frame picture will morph into a color rendered rotating picture.

So with all that said I am tryint to figure out the best way to accomplish this. Is this something that can be totally done with action scripts or is it better to just set up each frame with motion tweens between them? I made the butons and set up a typical vertical gallery witht eh scroll buttons, but Im having a hard time figuring out the scaling of the pane content.
Any help would be appreciated.
Adam

View Replies !    View Related
Loading Dynamic Content Into A Scrollpane - No Scroll Bars Though?
I'm using a scrollpane and then i'm generating a dynamic menu within it.... the only problem is that there are no scroll bars because the component registers it as being an empty clip.

Is there any way around this?

View Replies !    View Related
URL :s In Dynamic Textfield Loaded From XML
Hi!

Is it possible to have urls in dynamic textfields?
The text is loaded from XML.
I want to build a srolling window with a long list of URL:s.

Greatful for help


Zenkert

View Replies !    View Related
How To Get The Properties Of Loaded Dynamic Content?
Hi everyone!

I got a serious question which could be answered very simple I think,
just don't know how...!

I'm making a website which loads dynamic data into a mc. This mc is the "page" which can be scrolled in the bounds of a masking mc on top of it. So after loading all the text/images/movies etc. into this mc "page" I need to know how big it's _height has become.
This is nessesary to the scroll the page properly.
[b]Example of my site:[B/]

Code:
_root_mc
|
|
+-masking_mc //covering page_mc
+-page_mc //Need it's _height for my scrollbar
|
|
+-image1_mc //Created with page_mc.createEmptyMoveClip();
| |
| +-bal.jpg //Attached to image1_mc with .loadMovie();
|
+-image2_mc //Same as image1_mc
| |
| +-boat.jpg
|
+-textField
I hear you all say: "try the page_mc._height you dummy!", but it seems Flash can't take the _width and _height properties of the loaded images and movies in the first place.

I need to trace the size of the loaded images/movies in there own mc's. So...

Can some tell me how to retrieve the:

_width
_height
.getBytesLoaded
.getBytesTotal

of the loaded images/movies??? You'd be the best!

Thanks already!

Dieter Struik

View Replies !    View Related
Image Not Getting Loaded In Dynamic Textfield
Hi,

I am creating a dynamic textfield(s) on to the stage..and loading image(s) inside each text field. But its not getting loaded/displayed inside a dynamic textfield.

Perhaps if i keep a dynamic textfield rather than creating it using createTextField method image is getting displayed perfectly. Here is the code i have tested with a sample file:

//----------- code begins here ------------------

this.createTextField("myImage", 1, 11, 18, 250, 200);
myImage.html = true;
myImage.selectable = false;
myImage.multiline = true;
myImage.border = true;

onLoad = function(){

//here image.jpg is not displayed/loaded
myImage.htmlText = "<img src='image.jpg'/>";


//here image.jpg is getting displayed/loaded
test.htmlText = "<img src='image.jpg'/>";

};

//-------------code ends here ----------

Has anyone faced this problem...please help me out..this is really weired

-------------
aShIsH

View Replies !    View Related
Image Not Getting Loaded In Dynamic Textfield
Hi,

I am creating a dynamic textfield(s) on to the stage..and loading image(s) inside each text field. But its not getting loaded/displayed inside a dynamic textfield.

Perhaps if i keep a dynamic textfield rather than creating it using createTextField method image is getting displayed perfectly. Here is the code i have tested with a sample file:

//----------- code begins here ------------------

this.createTextField("myImage", 1, 11, 18, 250, 200);
myImage.html = true;
myImage.selectable = false;
myImage.multiline = true;
myImage.border = true;

onLoad = function(){

//here image.jpg is not displayed/loaded
myImage.htmlText = "<img src='image.jpg'/>";


//here image.jpg is getting displayed/loaded
test.htmlText = "<img src='image.jpg'/>";

};

//-------------code ends here ----------

Has anyone faced this problem...please help me out..this is really weired

-------------
aShIsH

View Replies !    View Related
Scrollbar With Dynamic Textfield Loaded From XML
Hi again!

Ive created a dynamic textfield that loads textlines from a XML-file (very basic - just text), according to this turorial:
http://www.flashcircle.com/display.php?storyid=51

Then I tried to add a scroll-bar to the dynamic textfield according to this tutorial (just the simple drag-and-drop scrollbar):
http://www.kirupa.com/developer/mx/textscroller.asp

But I cant get it to work. All I get is a scrollbar with no scrollingfunction. Do I have to add some sort of actions to the scroll (was under the impression that it was done automatically)?

Thanks.

View Replies !    View Related
Work Area Too Small For Dynamic Txt Content In A Custom Scroll Pane
I'm have alot of dynamic text (60 pages in MS Word!)that I want to cram in to a scroll pane. The code that I've used has worked fine for smaller jobs. It uses a mask for "content" that extends beyond the stage. My problem is that I've extended my text box so for I've run out of workspace! Is that a limitation of Flash or is it possible to have limitless workspace to put offstage content in?

View Replies !    View Related
How To Trace The Properties Of Dynamic Loaded Content
Hi everyone!

I got a serious question which could be answered very simple I think,
just don't know how...!

I'm making a website which loads dynamic data into a mc. This mc is the "page" which can be scrolled in the bounds of a masking mc on top of it. So after loading all the text/images/movies etc. into this mc "page" I need to know how big it's _height has become.
This is nessesary to the scroll the page properly.
[b]Example of my site:[B/]

Code:
_root_mc
|
|
+-masking_mc //covering page_mc
+-page_mc //Need it's _height for my scrollbar
|
|
+-image1_mc //Created with page_mc.createEmptyMoveClip();
| |
| +-bal.jpg //Attached to image1_mc with .loadMovie();
|
+-image2_mc //Same as image1_mc
| |
| +-boat.jpg
|
+-textField

I hear you all say: "try the page_mc._height you dummy!", but it seems Flash can't take the _width and _height properties of the loaded images and movies in the first place.

I need to trace the size of the loaded images/movies in there own mc's. So...

Can some tell me how to retrieve the:

_width
_height
.getBytesLoaded
.getBytesTotal

of the loaded images/movies??? You'd be the best!

Thanks already!

Dieter Struik

View Replies !    View Related
How To Trace The Properties Of Dynamic Loaded Content?
Hi everyone!

I got a serious question which could be answered very simple I think,
just don't know how...!

I'm making a website which loads dynamic data into a mc. This mc is the "page" which can be scrolled in the bounds of a masking mc on top of it. So after loading all the text/images/movies etc. into this mc "page" I need to know how big it's _height has become.
This is nessesary to the scroll the page properly.
Example of my site:

Code:
_root_mc
|
|
+-masking_mc //covering page_mc
+-page_mc //Need it's _height for my scrollbar
|
|
+-image1_mc //Created with page_mc.createEmptyMoveClip();
| |
| +-bal.jpg //Attached to image1_mc with .loadMovie();
|
+-image2_mc //Same as image1_mc
| |
| +-boat.jpg
|
+-textField
I hear you all say: "try the page_mc._height you dummy!", but it seems Flash can't take the _width and _height properties of the loaded images and movies in the first place.

I need to trace the size of the loaded images/movies in there own mc's. So...

Can some tell me how to retrieve the:

_width
_height
.getBytesLoaded
.getBytesTotal

of the loaded images/movies??? You'd be the best!

Thanks already!

Dieter Struik

View Replies !    View Related
Loaded MC Not Displaying Dynamic Content In Main.swf
Hello,
I am trying to debug a flash project that utilizes loaded movieclips. I am loading several different swf files into 1 Main swf, but the dynamic content within the loaded swf's are not displaying. I can trace the content from the main swf, but the loaded swfs dynamic texts are not displaying within the main swf.

I am using loadMovie to load the swfs. Everything works fine other than displaying the content within the loaded swfs.

Any suggestions.

Content: InstanceName, no var Name.

View Replies !    View Related
Problem With Dynamic Loaded Content And DuplicateMovieClip()
Hi everyone,

I'm currently working on an photo gallery which is driven by Flash/XML.
You navigate through the gallery with the mouse, basic slider navigation, I think the concept is known by everybody. The images and thumbnails are loaded via XML so the user can easily update the gallery.

My problem is now when I try to duplicate the movieclip with the thumbnails I only get an empty movieclip. What I'm doing wrong? I've also tried to create the movieclip with actionscript (createEmptyMovieClip) but this didn't worked either

Here's an preview:
http://www.wlkp.de/temp/xmlMenu.html

And here's the code:

ActionScript Code:
bilder=new XML();
bilder.ignoreWhite=true;
bilder.load("xml/bilder.xml");
bilder.onLoad = function(status) {
    if(status) {
        bilderGeladen = bilder.firstChild.childNodes;
        delete bilder;
        anzahl=bilderGeladen.length;
        initNavi();
    }
}

function initNavi() {
    var j=0;
    for(var i=0;i<anzahl;i++) {
        tbName = "tb"+j;
        _root.slider.tbHolder.attachMovie("tb_holder",tbName,j++);
        if(bilderGeladen[i]!=undefined) {
            _root.slider.tbHolder[tbName]._x = -92 + _root.slider.tbHolder[tbName]._width * j;
            _root.slider.tbHolder[tbName]._y = 0;
            _root.slider.tbHolder[tbName].thumb.loadMovie(bilderGeladen[i].attributes.tb);
           
        }
    }
    _root.slider.tbHolder.duplicateMovieClip("tbHolder1");
    _root.slider.tbHolder1._x=_root.slider._width;
}


_root.onEnterFrame = function () {
    xSlide=_root.slider._x;
    wSlide=_root.slider._width;
    if (_xmouse < 350) slider._x += (375-_xmouse)*0.05;
    if (_xmouse > 400) slider._x += (375-_xmouse)*0.05;
   
}

Thanks for any held in advance!

View Replies !    View Related
Accessing A Dynamic Textfield That's Inside A Loaded Swf
so I loaded a swf onto my stage using the Loader Class.

so when I trace this:

trace(stage.getChildByName('_loader'));

it returns [object Loader].

Ok so far.

But suppose I want to access a dynamic textfield that's inside the swf I just loaded. How would I access it?

This throws an error:

code: stage.getChildByName('_loader').data_txt.text = 'test';

so does this:
code: stage.getChildByName('_loader').getChildByName('da ta_txt').text= 'test';

Any help would be greatly appreciated.

View Replies !    View Related
Adding Linebreaks To Dynamic Text Fields W/ XML Loaded Content
I'm having a problem inserting line breaks in my XML formatted text, and I was wondering if anyone could help me.

Here's a basic sample of my code

This is my XML

Quote:




//<infoContent>
//<sections>
//<content item="Experience" words="This is where I'm going to put my work experience... where there is a slash, I'd like to insert a linebreak or 'newline' / Adobe Photoshop: 8 years / Adobe Illustrator: 8 years / Adobe InDesign:3 years / Macromedia Flash: 6 years / Macromedia Dreamweaver: 5 years / Quark X-Press: 7 years "/>
//<content item="Other Stuff" words="This is where I'm going to put other stuff..."/>
//</sections>
//<resume>
//<work item="my_Resume.pdf" myLoc="information/my_Resume.pdf"/>
//</resume>
//</infoContent>




and this is my AS

Code:
_global.myContent=new Object();
//
parseXML = function () {
myContent.myTitle = info_xml.firstChild.childNodes[0].childNodes
myContent.myWords = info_xml.firstChild.childNodes[0].childNodes
myContent.myResume = info_xml.firstChild.childNodes[1].childNodes[0].attributes.myLoc
};
I'm putting the content into an Object, and then when I need it to display in my text, I call it up.


Code:
this.myExperience_txt.text = myContent.myWords.childNodes[0].attributes.words
This works to get my content where I need it, but I'd like to break apart different sections of my XML content...

Is there a way to parse the content, find the character and replace it with "newline" or "/n"? do I do this while I'm parsing my XML or once I access the information into the textField?

Any help would be greatly appreciated

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved