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




A " " Linebreak Just Displays As In The String



Hi
i have a text field created at runtime like this :


Code:
function createChapterTitleTextBox(){

_level0.picTextsClip_mc.picButtonsInner.createTextField("picTexts_txt",1,-74,-20,150,0);
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.embedFonts = true;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.text = "";
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.multiline = true;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.wordWrap = true;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.autoSize = "left";
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.textColor = 0x000000;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.border = false;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.borderColor = 0xF7F7F7;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.background = false;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.backgroundColor = 0xF7F7F7;
_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.html = false;

picTextsText_Format = new TextFormat();
picTextsText_Format.rightMargin = 0;
picTextsText_Format.font = "verdana";
picTextsText_Format.size = 12;

_level0.picTextsClip_mc.picButtonsInner.picTexts_txt.setTextFormat(picTextsText_Format);
}


the text strings loaded into this field contain "" to force a line break but it's not working - it just displays the as part of the text string

can anyone tell me what i need to change to make this work ?

thanks



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-06-2005, 04:42 AM


View Complete Forum Thread with Replies

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

Linebreak In String? What Does One Type?
Working on a chat and some dynamic list thingies.

So how do you insert a linebreak in a string? Is it some text.string() function or is it some html like /p thingie?

Hit me.

Long Form Field String: Howto Linebreak?
Hi,

(new to this forum .. ) anyway, what's my problem:

I have an ASP page wich contains form fields (multiline). A user enters some stuff in the form. He submits the form and the form variables are placed in a flash file containing text fields! (please note: the flash file resides in another ASP page )But when the user hits enter, the enter should also be displayed in the flash.

I've figured out how to fix this problem:

But now my _real_ problem
When the user types a long line with text the form field breaks the line and continues. For instance: "Hi, my name is TeeDee and I live in holland." The form field breaks the text up after TeeDee and continues on the next line.

How can I display that break in the flash file? "The form field generated break"

Thanks in advance
[Edited by TeeDee on 02-13-2002 at 07:23 PM]

Flash Ad Banner Displays Fine In Windows But Displays Much Smaller On All Mac Browsers
I just created a functional site demo with a 728x90 leaderboard ad banner that is a Flash file. It displays in the correct size on IE on a PC, but when I view the pages on a Mac (Safari, Netscape, and Firefox -- all in OS X), the ad banner is displaying at 370x75. The object size is correct in the code parameters, and the cell in the table that houses the object is sized correctly as well. Any ideas if there is a way for me to fix this?

Linebreak-mailto
Hi.

My mailtofunction do not work. I want to have linebreak in my text that dissepear in the body.
My code look like this:

on (release) {
getURL("mailto:?subject=titta&body=hello hello this is a very looooong text" +"
"+ "http://www.lisalisa.com");

help!!
thanks

Linebreak In HTML
I have a problem with linebreaks in HTML textfields.
Is there a way that flash does br tags instead of p tags? Even when I press SHIFT + RETURN it always makes p tags. But I really need br tags.

Thx in advance

Linebreak In Dynamic Textfield
Hi, - I have a dynamic text field variable called:
_root.textTogether;

Okay, - then I have some text in frame 1 and I want that to be in my text box. Easy, - _root.textTogether=myText;

in frame 2 I have and other text I want to add to the textTogether var. Easy, - _root.textTogether=_root.textTogether + myText2;

My question is:

How do I make a line break in my text box between myText and myText2 ??

Regards

Godowsky

Not A Usual Linebreak Problem...
Hi,

I have a form built in Flash. There is a multiline input text. And all the contents of the forms are sent as e-mail with JMAil componenet using ASP codes.

When the visitor enters sentences in the multiline input text by pressing the enter key, the mail content only shows the part before the enter key.

I have used the ASP codes to define the
as <br>. But it did not work...
--------
comment = Replace(Request.Form("comment"), "
", "<br>")
---------

When I define the multiline input text as HTML render in Flash MX, I can see the whole messagein the e-mail. But this time I have another problem, the mail format is effected by the multiline input text formt that I defined in Flash.

How can I solve this issue?

Any help is appreciated...

Regards!

Linebreak In A Datagrid Cell
hello,
Can I put a linebreak in a datagrid (mx 2004) cell, is it by using '
'? Or by using and html break ?

[F8] Linebreak In The Middle Of Word
Hello
I got this function that formats text in a dynamic textfield. It makes the size as high as can be for the entire text to be visible in the textfield. My only problem is that it does not care if it has to linebreak in the middle of a long word. Here is an exampel: The text is: "I like Zooooolander, the brilliant movie". The while-loop will exit when the size is down to 36 when the entire text fits inside the textfield. This is what the textfield will look like at that time:
I like
Zoooooland
er, the
brilliant
movie

I want my while-loop to continue to run if any word get chopped off. And if that isnt possible, I would greatly appreciate other thought on solving this.

h=270;
function fitText(field) {

var h = field._height;

var tf = field.getTextFormat();
tf.size = 100;
field.setTextFormat(tf);

while(field.textHeight > h-10) {
tf.size -= 1;
field.setTextFormat(tf);

}
trace(tf.size);
}
tf.wordWrap = true;

tf.text = "I like Zooooolander, the brilliant movie"
fitText(tf);

Linebreak In Dynamic Text
Sorry for such a "beginner question" but thanks for your help.

I am simply trying to add a line break to a dynamtic text box when rolling over a button.

eg...
Happy Birthday
Joan

Have been trying things to the effect of...

On (rollover) {
bdaytext = "Happy Birthday "+/n+"Joan";

...as an expression.

But every variation I'm tried has been a waiste of time. Thanks for reading my post and thank you very much for your help.

How Not To Put A Linebreak Into Textfield After Pressing ENTER
Hi guys,
The point of my question looks quite easy but I can't find an answer for it. I have an input textfield (or textarea) and after pressing ENTER key, the text should be sent. That works without problems, the problem is that with multiline textfield pressing ENTER puts a linebreak, so the cursor jumps to the "2nd line" in the textfield. Does anybody know how to avoid this? The code I am using so far:

ActionScript Code:
var keySend:Object = new Object();function onEnterDown() {    if (Key.isDown(Key.ENTER)) {        chat_so.data.textmessage = message_ta.text+newline;        chat_so.data.username = username;        chat_ta.text += username+": "+message_ta.text+newline;        message_ta.text = "";    }}keySend.onKeyDown = onEnterDown;message_ta.onSetFocus = function(){    Key.addListener(keySend);}message_ta.onKillFocus = function(){    Key.removeListener(keySend);}

Thanks a lot for any advice!

P.

How To Simulate Linebreak ( ) From Txt File Variables?
Hi,
how can I simulate line break (
) from txt file variables ?

Here is a code:

Code:
_root.createTextField("test_txt", 1, 10, 10, 300, 50);

test_txt.selectable = false;
test_txt.wordWrap = true;
test_txt.multiline = true;

// this line works
//test_txt.text = "First line
Second Line";

var lv:LoadVars = new LoadVars();
lv.load("test.txt");
lv.onLoad = function()
{
test_txt.text = this.textVar; //this dosen't :(
}
Text file contain this:
textVar=First line
Second Line

Thanks,

Formatting Variables In Txt File (linebreak/return?)
i've got a roster of players i want to load into flash to be displayed in a list, so i made a txt file like
varBoysRoster="..."; but i want to put returns between each name so each name is on a new line. i've run into something like this before i just can't remember what the symbol is. can someone help me out? thanks a bunch guys.


ps is var="..."; the right format otherwise? thanks again.

How To Have " " Parsed As A Linebreak (xml Data)
Hi,
I am reading xml data into a textfield that I created manually on the stage and I want to have all the "
" translate into a linebreak.
right now it prints it together with the text.

thanks in advance,
Miriam

Problem With Linebreak Character " "
hi every body,
i tried the code to print a string. when i directly declare a string with "
" character and trace the string there is a line break but when i get the same string from XML and trace it i dont see a line break but see"/n" itself . heres the code.
all i want is to change lines using "/n" character where i get the string from XML.please help soon...









Attach Code

// i have a XML file something like this. theres no problem with my XML file.i think so.
var myXML:XML =<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<marker title="a
b"/>


var tempStr:String = "a
b";
trace(tempStr); //output: a
b

tempStr = myXML.attribute("title");
trace(tempStr); //output : a
b

*.txt Displays Different
Hi,
when I'm previewing my site in flash my dynamicly loaded textfile has a different linespace then when I view it online. is this a common problem?

thnx...

Using 'num-=0.2' Reaches 0 And Displays 5.55?
Hi guys
My var num equal say 1
and I have the following code on a button

on (release) {
num-=0.2;
}
<see attached FLA>
All is fine the variable steps down 0.8, 0.6, 0.4....
when it reaches what should be 0 it displays 5.55
Can anyone explain why? and/or have a solution.
Cheers
Ol

Mc Displays Very Smoothly
I like to know how do you make a MC to run very smoothly like this flash link below? Could someone give me an expample because I've been trying to create something similar but never appears this smooth. I'm referring to the clip that will appear after you enter the website.

Thanks,

[F8] Sound Displays
If you have windows media player, look for the "scope" visualization. For those who dont, it's a line that forms and waves to the music.



There


Is there any way to do this in Flash 8?

[F8] MC Moves And 1/2 Displays
I'm definitely newb, and i'm hoping this is a newb issue.

In Firefox - all is good.
In IE 6, upon loading the page, the movie plays correctly. It is centered and has buttons that move and animate; basically like the dock in MAC OS X.

If any of the clickable elements are used to navigate into the site, and then the back button is used to return, the movie has moved far left, AND only the right 1/2 of the movie is visible. This only happens in IE 6; one friend said that in IE 7, the movie worked fine.

I've embedded the movie with good old vanilla embed as well as the UFO embed method. Unfortunately, it is on a test server, and I dont think my company would appreciate me posting the IP. But if you post back and feel like helping a brother out, I'll get you the info so you can see some messed up crap!

Thanks everyone.

Only The Last Image Displays
I'm having a problem where only the last image is being displayed. I assume it's overwriting it, but why? I'm creating a new MC for each image? Any help would be greatly appreciated.

//mouse listener
MouseListener = new Object();
Mouse.addListener(MouseListener);
_root.onEnterFrame = function() {
if(_root._ymouse > 380) {
if(NavBar._y > 380) {
NavBar._y = NavBar._y - 20;
}
if(_root._xmouse < 320) {
var ScrollSpeed = 100 - ((_root._xmouse / 320) * 100);
var NavBarPos = NavBar._x + ScrollSpeed;
if(NavBarPos > 0) {
NavBarPos = NavBarPos - NavBar.width;
}
} else {
var ScrollSpeed = ((_root._xmouse - 320 ) / 320) * 100;
var NavBarPos = NavBar._x - ScrollSpeed;
var NavBarEnd = 0 - NavBar.width;
if(NavBarPos < NavBarEnd) {
NavBarPos = NavBarPos + NavBar.width;
}
}
NavBar._x = NavBarPos;
} else {
if(NavBar._y < 480) {
NavBar._y = NavBar._y + 20;
}
}
}
//navigation bar
_root.createEmptyMovieClip("NavBar",1);
NavBar.height = 100;
NavBar._x = 0;
NavBar._y = 480;
XMLFile = new XML();
XMLFile.ignoreWhite=true;
XMLFile.onLoad = parse;
XMLFile.load("navbar.xml");
function parse(success) {
if (success) {
var XMLTotal = 0;
var XMLChild = this.firstChild;
while(XMLChild != null) {
var ClipName = "Section" + XMLTotal;
NavBar.createEmptyMovieClip(ClipName,1);
NavBar[ClipName]._x = XMLTotal * 128 + 11;
NavBar[ClipName]._y = 10;
var MovieName = XMLChild.attributes.name + "_thumb.jpg";
loadMovie(MovieName, "NavBar."+ClipName);
XMLChild = XMLChild.nextSibling;
XMLTotal++;
}
NavBar.width = XMLTotal * 128;
}
}

Clock That Always Displays GMT
Is it possible to make a Flash Clock that always displays GMT time no matter where the user is in the world. All the other flash clocks I've found (or can make) use the Users PC clock. I want a clock on my site to always show GMT (or London time) no matter where the user is in the world.

Ideally I want several clocks showing London, Paris, New York and local time which are accurate no matter what country you're in.

Hope someone can help.

Preload Bar, Only Displays Like After %56
hey guys.

i'm doing this site, and the preloadbar only shows when it's like already %56 loaded. the screen is blank until then. weird. am i missing something. all my symbols don't start until' the 3rd frame, so i don't see what's the prob. the only thing i can say that's differetnt about this site, from others i've done is, that there's alot of photos in it.

see what i mean www.ellio.org

any immediate advice would help out big time!

XML Only Displays After A Reload?
Hi all,

I don't get this, my menu shows the menuItems after i reload the page, not the first time.

on frame 1 i have

ActionScript Code:
xmlSettings = new XML();xmlSettings.ignoreWhite = true;xmlSettings.onLoad = loadXML;xmlMenuPath = "settings.xml";//xmlSettings.load(xmlMenuPath);function loadXML(success) {    if (success) {        var xmlNode:XMLNode = this.firstChild;        var menuItems = xmlNode.childNodes[0].childNodes;        for (var i = 0; i<menuItems.length; i++) {            menuArray.push(menuItems[i].firstChild.nodeValue.toUpperCase());            gotoArray.push(menuItems[i].attributes["gotoURL"]);        }    } else {        content = "file not loaded!";    }}function ini() {    for(i=0;i<menuArray.length;i++) {        var curr_item:MovieClip;        curr_item = this["menuItem"+i];        curr_item.gotoURL = gotoArray[i];        curr_item.txtMC.menuTxt.text = menuArray[i];        curr_item.onRollOver = over;        curr_item.onRollOut = out;        curr_item.onRelease = goto;        curr_item.onEnterFrame = setBG;    }    line.filters = [myDropShadow];    trace("Menu array: "+menuArray);    trace("goto array: "+gotoArray);}


and on frame 5

ActionScript Code:
ini();stop();


How can i make sure the menuItems are show on first load?

regards

.swf Displays On PCs But Not On MACs - Pls Hlp
I'm sure this is a rookie error and would really appreciate some help:

The 2 .swf anims work fine on the index page to www.sittercafe.com when viewed on a PC (IE, FireFox) but do not show at all when viewed on a MAC with Safari or Firefox.

What can I add or change to to make sure that these display on a MAC?

Here's the embedding code for the first one:


Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH=120 HEIGHT=105>
<PARAM NAME=movie VALUE="https://www.sittercafe.com/images/sc_flash.swf">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=scale VALUE=noscale>
<EMBED src=sc_flash.swf menu=false quality=high wmode=transparent scale=noscale WIDTH=120 HEIGHT=105 TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
Thanks for any help!

Displays Content By Day AS
Hello All,

Does anyone have or know where I can get an AS that automatically displays content whether it be an image or text by the month and day of the year from an XML file?

I seached the forum for a solution, but with no success. Any help would be great!

PNG Displays Distorted?
Hi all.

I've been trying to overcome the transparency issue in Flash, when it is displayed in 16 bit colour. I took somebodys advice and made my GIF into a PNG32. This solved the transparency issue. However, when I test the movie, the image displays very distorted. The quality is unacceptable really.
Does anyone know why this happens, or can anyone help me resolve this issue??

Thanks in advance.

Export Swf Displays Very Small
Hi,

I imported a swf file into swish and made some changes. When I export is back out as a swf the image displays very small on my site. I did not change any html. The only difference is the new swf file.

Can someone help?

Thanks,

Kcash

Cell Phone Displays?
I was checking out the trial for Flash MX 2004 when I seen cellphone templates for certain phones? Do these templates mean that you can use a flash interface on your cellphone? Or is it something like backgrounds or that sort of stuff.

Extremely curious so please let me know. I could have the coolest cellphone in town.

Text Displays Inconsistently
Hey guys --

I'm experiencing a problem that I assume most of you will quickly recognize ('cause I'm a pathetic newb), but I don't really have the hours to spend tracking it down myself.

Here's the thing. I've put some text labels on in my Flash page that are displaying inconsistently... one or two of them show correctly like this:



...however the vast majority are showing up like this:



It's just Arial, size 10 ... I tried embedding the fonts, but that didn't help.

I'm viewing this through a projector if that makes a difference -- I've noticed the projectors display things slightly off from in a browser.

Thanks guys.

Shaun

Text Box Displays .cfm Page
Is there a way to display a coldfusion page (mypage.cfm) in a Flash text box? can I do this without having to tamper with the coldfusion page?

Pop Up Window That Displays A Web Page
Need flash to open a pop up window that displays a web page. Is this possible?

Flash CS3 Displays Wrong In IE
Good day people,

I'm not exactly new to Flash Kit, but this is my first post ever.
A few years ago when attending university I was using Flash MX, a bad version from what people tell me, but it worked none the less.
I have a load of documentation on it and stopped using it for about 4 years. However, about three weeks ago I was able to get my Adobe CS3 Design Premium and it came with Flash CS3.
This was perfect timing, because I was updating my website at the time and decided to integrate some Flash into the site to display my images in the portfolio section.

The site can be viewed here for the meantime.
http://studiogibbous.com/beta

Problem is, on monday I was using a Windows box and IE 7 to view the site and discovered a display issue. My text, frame and mask where not there. They had just disappeared, no idea why.
I was using AS2 with Flash 9 output selected and the code for the preloader I was able to get form here.

This is placed in frame 2, I have three frames setup.
-----
stop();
// declare variables
var total:Number;
var loaded:Number;
var percentage:Number;
// create frame loop
this.onEnterFrame = function():Void {
// get the status of your load
loaded = this.getBytesLoaded();
total = this.getBytesTotal();
// Here you have a safety feature that sets your percentage
// to zero if the calculation returns NaN (Not a Number).
percentage = (!isNaN(loaded/total)) ? Math.ceil((loaded*100)/total) : 0;
// make sure your percentage value never goes higher than 100
if (percentage>100) percentage = 100;
// update your progress indicators
this.loadertext_txt.text = percentage+"%";
// test to see if youre done
if ((loaded == total) && (total>100)) {
// start the application
gotoAndStop("init");
// delete the frame loop
delete this.onEnterFrame;
}
};
-----
I'm not using the precentage, but decided to leave it in there.

So the questions becomes, does anyone know what I'm doing wrong?
Can anyone help me out.?.
I program my sites by hand they are W3C certified and always added proper SEO, but this I'm having sever trouble with.
Any help would be great.

Gibb

LoadClip Image Only Displays Once . . .
The coding, as usual


Code:
//Loading and Formatting Movie Poster
var myMCL:MovieClipLoader = new MovieClipLoader();
var ml:Object = new Object();
ml.onLoadInit = function(target_mc:MovieClip) {
target_mc._height = 152;
target_mc._width = 102;
}
myMCL.addListener(ml);
_root.createEmptyMovieClip("poster_mc",1);
myMCL.loadClip(mimgurl1, poster_mc);

//Turning Movie Poster Back On
poster_mc._visible = true;

stop();
mimgurl1 - mimgurl7 is defined in the opening frame:


Code:
mimgurl1 = myVariables_xml.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
All of the other codes look like that with a few values changed to point to the correct location.

When the swf is first loaded, it correctly display the image defined in mimgurl1. However, it won't display any of the images that I attempt to load in any other scenes and it wont' display the first image once you have left the scene.

There is a small bit of animation that stops on a keyframe where the first bit of code is executed. It is done like this for all of the scenes. Any idea why they won't continue to load?

Iframe Containing Swf Displays On Top Of All Other Swfs
I need my SWF banners to display in an IFRAME, and after a set amount of time, they need to animate and end up behind another SWF on the page.

Currently JPGs and GIFs do this just fine, but when the IFRAME contains a SWF, it displays on top of the other SWF, not behind it.

I've already tried the following:

-setting z-index on the SWF and IFRAME
-setting wmode=transparent

I know the obvious solution here is to use object/embed code in the div, but for reasons beyond my control and too annoying to discuss here, this isn't an option. The SWFs must be placed using an IFRAME. This makes setting WMODE impossible, and when the IFRAME contains a swf, the browser ignores z-index.

any suggestions? thanks!

Flash MX - Can It Displays Unicode?
Hello,

I need to display some Greek, Japanese ... in text field without using fonts. However, Flash MX doesn't display these text well until I set to the suitable (example Times New Roman Greek)

Please see the attachment for more detail. BTW, for the Greek text, when I set the text field as Static text (and font Times New Roman Greek), it displays very well. But when I change ot Dynamic text (and font Times New Roman Greek), it can not display, why?

Could we use any Unicode text without setting font by using Unicode font in Flash MX?

Thanks

Slideshow Rollover Displays
I'm relatively new to Flash and I'm figuring it out as i go, but now I'm stuck. Could someone tell me how, or point me to a web page, to create a document that would do the following:

Have a bunch of thumbnail slide images on the bottom and when the mouse rolls over each individual image, a larger version of that image would display on the same screen above all the thumbnails? im sure it's relatively simple and common, but i have no idea how to do that. Thank you for your help.

Help - Movie Only Displays Partially On A Mac
Wondering if anybody might be able to help.

I have a basic movie that displays slow moving words across a banner (abou 300px wide). It works fine on PCs, but only display some leading periods (" ...") I have in front of each word on Macs. Anybody have any suggestions why? It can be seen in upper right corner of www.breathe-consulting.com.

Also, the fade (Alpha going from 0% to 100%) does not work when playing the movie. but does when scrubbing the timeline (both Mac and PC). Any ideas on why that might happen?

How Do I Adjust The Way The Website Displays?
Hello... I am very new to Flash and need some help. I purchased a pre developed template from Template Monster... however it was designed to be 766 x 790 px... so it is very narrow, small & hard to read.

I adjusted the HTML publish settings to Scale = Default (show all)... and now it is much more readable however there are some things I don't like about it:

1) It aligns to the left... and when I center it... you have to use the scroll bar to see it.

2) You currently have to scroll to see the bottom most text.

Basically, I have noticed that top notch websites like Amazon always take up the entire screen, and seem to be correctly sized.

How do I accomplish the following objectives without simply stretching & distorting the content?

> Take up the entire width of the screen
> No need to scroll down to see the bottom.

If it help, I am providing a link to my site.

http://www.wellness-rd.com/

Thanks!

Preloader That Displays Progress
Hi, I
was able to follow this tutorial succesfully and all works fine.

http://www.kirupa.com/developer/mx/preloader.htm

I just have one question, why do I still get a white blank spot (with the same size of my movie) right before displaying the loading process... any clue?

You can see it here www.janav.com, I am using the preloader in the main page and also in the pictures link..., it shows more on Netscape than IE.

Thanks,
Jana

Dynamic Text Box Displays
Hi all,

I am fairly new to Flash and AS and need to be able achieve something which I would normally do in PHP within about 5 minutes!

I have a mysql database and in a table I can have multiple records which are controlled via a content management system. The table structure is ID, Title and URL (to keep it simple!).

I need to know how to create a flash document that will display all of the Title fields from each record dynamically in a list. The style and positioning of the titles on my movie is irrelevant at this point.

I already have my PHP file which is as follows:


PHP Code:



// my page is called getdata.php  $sqlquery = "SELECT * FROM mytable"; $result = mysql_query($sqlquery); while ($datarow = mysql_fetch_array($result)) {  $id = $datarow['id'];  $title = stripslashes($datarow['title']);  $link = stripslashes($datarow['link']);    echo "&title=$title"; } mysql_free_result($result); 




As you can see (i think this is correct!) that I am retrieveing the data and displying the title one by one.

How do I get flash to dynamically display each title. bearing in mind I never know how many records will be fetched.

Thanks in advance.
Kris

Flash And Plasma Displays
Will Flash or Powerpoint ultilize the screen aspect ratios of a plasma screen?

Ric

Hit Boxes & Score Displays?
Hey all. I'm just now starting to learn Flash, and these two things have me confused at this point.

A: How do you construct a hit box and have the target react accordingly? And (somewhat related) how can you tell it from which character the hit came from?

B: I can't find out how to display any form of relevant information. Scores, life, ammo; anything that has an inconsistant number.

If I could get some help with these things, I would be ever so greatful And if anyone knows a good (and free) tutorial for beginners, that would also rock!

Thanks guys!

Flash That Displays Over The HTML
http://www.yahoo.com/

Yahoo has a Transformers add where two robots seem to pop out of the flash div and into some other HTML element of the page. Does anyone know how they do this? I hope they still have the add up when you go to their page =p

-Nate

XML Text Displays In .swf But Not .html ?
I'm suffering from desperate confusion here.

I've created a sizeable (i.e., too large to post) application in Flash. On start up, it automatically loads and parses about 24 Kb of xml from external files, converts these into text strings, and displays them.

When I publish the movie, I end up with an .swf file that works perfectly, and an .html file that displays correctly in Opera, but NOT in Internet Explorer or Safari. In these browsers, the graphical parts of the movie show up fine, as does the non-externally loaded text, but anything loaded in from the external files simply doesn't appear. Testing indicates that the xml load is failing.

I realize this sounds like some kind of browser-specific security issue, but all the external files are located not only in the same domain as the .swf file, but in the same folder. I tried creating a crossdomain file just on the off-chance, but had no luck with this anyway.

Anyone else encountered this kind of problem? And if so, any ideas how to fix it?

Thanks in advance...

.swf Displays As A White Block In IE6
the movie is blank in IE but it works in mozilla:

http://dhtmlkitchen.com/index.jsp
(you may have to hit reload to see it because 50% of the time an image is sent instead of a swf.)

The movie itsself works, though:
http://dhtmlkitchen.com/img/animtree.swf

I included it like so:

Code:


<a href="/scripts/animtree/" style='cursor: pointer;'
title='DHTML Solutions'
><object id="myFlash"
onclick='if(this.parentNode && this.parentNode.href) location=this.parentNode.href;'
style='cursor: pointer;'
data="/img/animtree.swf"
type="application/x-shockwave-flash"
width="125" height="125">
<param name="quality" value="high" />
<param name="swliveconnect" value="true" />



Any idea why it won't work in IE?

Text Box Displays “level0”
Looking for answer to problem. Cant’ find anything on this.

When I make a “dynamic” or “ input” text field it initializes with “level0” displaying in the text field.

Graphic Equaliser Displays? Any Idea?
hey 'sup!

I look on many flash sites, and notice the ones which have sound loops playing in the background, some of them also have small graphic equaliser displays, that move in time with the beat of the music, (or at least I think they move in time!)

I really want something like this on my site, and am wondering if anyone knows how to go about it...i can't find a decent tutorial on here, so how is it done?

Does anyone know what actionscripts I'll need to use, etc....

or...is it a case of just using an animated gif file and 'faking' the in time with the music bit???

Cheers for any advice!!!

Flash Displays Differently Html Vs. Swf
hi,

the visual area of my flash files are diferent between html and swf. if i drop a gradient bg in it has to be bigger than the stage to display properly in swf.the stage is perfect for html though? what gives? i tinkered with the preferences to no avail. any help would be appreciated. aloha!

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