Fordi det vil være langt nemmere at redigere i tekst.
Min fil hedder text.txt og ser sådan ud: text=You can use this to allow quick text changes in Flash movies...
Meningen er at teksten trækkes på et layer og fungere sammen med scroll scriptet. Det burde virke. Hvis jeg bare vidste hvordan jeg trak teksten ind gennem et MC
Jeg har i root lagt dit script som action på frame i layer 1 Og i mit movieclip lavet et nyt layer med et dynamisk teksfelt med variablen "text" ... Det skal vel ikke ha' noget instancenavn?
Jeg kan lægge hvad som helst andet i endnu et layer (statisk text / billede) og det virker fint med at scrolle det. Så det er altså funktionen med at trække text ind i det MC der er problemer med.
Level #0: Variable _level0.$version = "WIN 6,0,4,0" Variable _level0.changeMC = [function 'changeMC'] Variable _level0.current = "mc" Variable _level0.myLoad = [object #2, class 'LoadVars'] { onLoad:[function 'onLoad'], text:"You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\nI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\nTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!" } Movie Clip: Target="_level0.scrollbar" Variable _level0.scrollbar.current = "mc" Movie Clip: Target="_level0.scrollbar.bg" Variable _level0.scrollbar.bg.calcMCHeight = [function 'calcMCHeight'] Variable _level0.scrollbar.bg.y = 156.85 Variable _level0.scrollbar.bg.x = undefined Variable _level0.scrollbar.bg.intArrowUnit = 300 Movie Clip: Target="_level0.scrollbar.button" Button: Target="_level0.scrollbar.button.instance1" Variable _level0.scrollbar.button.instance1.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.scrollbar.buttonUp" Button: Target="_level0.scrollbar.buttonUp.instance2" Variable _level0.scrollbar.buttonUp.instance2.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.scrollbar.buttonDown" Button: Target="_level0.scrollbar.buttonDown.instance3" Variable _level0.scrollbar.buttonDown.instance3.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.mc" Variable _level0.mc.text = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\nI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\nTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!" Edit Text: Target="_level0.mc.instance4" variable = "text", text = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\rI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\rTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!", htmlText = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\rI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\rTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!", html = false, textWidth = 232, textHeight = 180, maxChars = null, borderColor = 0x000000, backgroundColor = 0xFFFFFF, textColor = 0x000000, border = false, background = false, wordWrap = true, password = false, multiline = true, selectable = false, scroll = 1, hscroll = 0, maxscroll = 3, maxhscroll = 0, bottomScroll = 10, type = "dynamic", embedFonts = false, restrict = null, length = 404, tabIndex = undefined, autoSize = "none", condenseWhite = false
Level #0: Variable _level0.$version = "WIN 6,0,4,0" Variable _level0.changeMC = [function 'changeMC'] Variable _level0.current = "mc" Variable _level0.myLoad = [object #2, class 'LoadVars'] { onLoad:[function 'onLoad'], text:"You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\nI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\nTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!" } Movie Clip: Target="_level0.scrollbar" Variable _level0.scrollbar.current = "mc" Movie Clip: Target="_level0.scrollbar.bg" Variable _level0.scrollbar.bg.calcMCHeight = [function 'calcMCHeight'] Variable _level0.scrollbar.bg.y = 156.85 Variable _level0.scrollbar.bg.x = undefined Variable _level0.scrollbar.bg.intArrowUnit = 300 Movie Clip: Target="_level0.scrollbar.button" Button: Target="_level0.scrollbar.button.instance1" Variable _level0.scrollbar.button.instance1.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.scrollbar.buttonUp" Button: Target="_level0.scrollbar.buttonUp.instance2" Variable _level0.scrollbar.buttonUp.instance2.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.scrollbar.buttonDown" Button: Target="_level0.scrollbar.buttonDown.instance3" Variable _level0.scrollbar.buttonDown.instance3.tabIndex = [getter/setter] undefined Movie Clip: Target="_level0.mc" Variable _level0.mc.text = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\nI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\nTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!" Edit Text: Target="_level0.mc.instance4" variable = "text", text = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\rI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\rTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!", htmlText = "You can use this to allow quick text changes in Flash movies without actually having to open up the Flash file. It is nice for simple changes of paragraphs.\r\rI would not recomment using this if your text is going to need a lot of formatting, like tables and so forth.\r\rTo change the color/size of your text simply double-click your text field in the Flash movie set the color/size and that should do it!", html = false, textWidth = 232, textHeight = 180, maxChars = null, borderColor = 0x000000, backgroundColor = 0xFFFFFF, textColor = 0x000000, border = false, background = false, wordWrap = true, password = false, multiline = true, selectable = false, scroll = 1, hscroll = 0, maxscroll = 3, maxhscroll = 0, bottomScroll = 10, type = "dynamic", embedFonts = false, restrict = null, length = 404, tabIndex = undefined, autoSize = "none", condenseWhite = false
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.