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




Dynamic Image Rendering



Hello everyone!

First of thank you to whomever will be assisting me on this project!!!

I am having flash pull an image when a button is clicked.

I was wondering if I could have the flash pull the image with out having to click the button. Maybe somewhere on the time line?

Here is my code:


filejpg1 = function(picName)
{
//set the position of picHolder movie clip
picHolder1._x = 5
picHolder1._y = 5
//Load the pictures
picHolder1.loadMovie(picName);
}
//Give correct path here
function call_Img(name)
{
if(name == img1){filejpg1("/img/img1.jpg");}
}
//create a empty movie clip for holding the Jpg pics
createEmptyMovieClip("picHolder1", 1);


Here is the document:
http://creativehart.com/forums/dynam...ender/test.zip

Any suggestions?

Thanks thanks thanks!

matthew4031 @ gmail.com



FlashKit > Flash Help > Flash Newbies
Posted on: 06-02-2008, 04:18 PM


View Complete Forum Thread with Replies

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

Smooth Image Rendering
Hello wise ones,

I am working on a movie in Flash 8. I have imported some photos from photoshop CS2. The problem is ...I can't put a matte background on the photoshop file when I save for web to smooth out the edges cause there are various colours on the background image the photoshop file is being placed over. Does anyone know how I might go about smoothing out the edges on the photoshop image?

Thanks in advance!

Brad

Rendering 'blob' Data Type As An Image
Hi all,
I've been browsing around the internet to find out if flash can render a 'blob' as an image.

I'm working on a project that needs to read data from MySQL and pass the data to flash through PHP. The data type that gonna be retrieve is 'blob'. The "actual" data is an image (*.gif or *.jpg).

I have read the macromedia documentation and they advising to have a field in a table that contain the actual filename, and pass it to flash.

Does anyone have any clue about this issue? Because if flash can render the data as an image, I don't have to ask the database admin to change the database schema. And moreover the 'blob' won't be useless.

Thank you,

Rendering 'blob' Data Type As An Image
Hi all,
I've been browsing around the internet to find out if flash can render a 'blob' as an image.

I'm working on a project that needs to read data from MySQL and pass the data to flash through PHP. The data type that gonna be retrieve is 'blob'. The "actual" data is an image (*.gif or *.jpg).

I have read the macromedia documentation and they advising to have a field in a table that contain the actual filename, and pass it to flash.

Does anyone have any clue about this issue? Because if flash can render the data as an image, I don't have to ask the database admin to change the database schema. And moreover the 'blob' won't be useless.

Thank you,

Mac Vs. PC Rendering Of Dynamic Txt Content
I am working with dynamic txt content in flash MX, but have hit a wall regarding the leading (line spacing) with this txt content. The leading is very different from Mac to PC, which is problematic in planning layouts using dynamic txt (when you don't want to scroll as a workaround)

For example, here are two sites I am working with:

SocialMediaGroup.org
Mac: http://virmalo.net/~FlashTxt01/REN01Mac.jpg
PC: http://virmalo.net/~FlashTxt01/REN01PC.jpg
- The Mac version is how it is supposed to look - note that the text sites nicely on each horizontal line - but in the PC version note how the leading is different - making much of the text fall out of line with the horizontal lines.

Renemarie.com
Mac: http://virmalo.net/~FlashTxt01/REN01Mac.jpg
PC: http://virmalo.net/~FlashTxt01/REN01PC.jpg
- Again, Mac is the proper look. Note the text on the bottom right "Rene Marie Live at the Jazz Standard". In the Pc version, the line spacing has grown enough that all we see is "Rene Marie Live at the Jazz"

Here is a link to a screenshot from flash so you can see all of my dynamic text settings:
PC: http://virmalo.net/~FlashTxt01/TextSettings.jpg

Finally, here is a sample of the text and tags in the txt file, you can note that I am not setting font size here - just color:
nowavailableHD=
<P><FONT COLOR="#666666">Rene</P>
<P>Marie</FONT></P>
<P><FONT COLOR="#333333">Live at</P>
<P>the Jazz</P>
<P>Standard</FONT></P>


- That is it I think - sorry if this is too much info, but I just want to make sure that all angles are covered. Thank you in advance.

b

ps- I have also posted this message in the "Macintosh" forum.

Dynamic Menu Not Always Rendering
Hello, I have made up a menu using actionscripts createTextField & createEmptyMovieClip with rollover buttons etc. etc., works like a charm except sometimes it doesn't render and only the logo which is a .gif added at authoring time shows up on the page.

A push on "refresh" and the whole menu will show.

Is there a cunning way to avoid this, something like an "onData" preloader that registers when the clientside processor has parsed the actionscript or something?

Rendering Dynamic Code
I think this should be easy but I cannot seem to get it - I know I'll kick myself!

I'm using the active search list tutorial but I want to make it load the links from an xml file.

On the active search list fla the links are hardcoded in on the first frame in the following format...

text1 = "CNN";
link1 = "www.cnn.com";
text2 = "MTV";
link2 = "www.mtv.com";
etc.

I'm reading from my xml file and tracing to the output window which is rendering in the output window as follows...

text1 = Adidas
link1 = www.adidas.com/uk/shared/brandselector.asp
text2 = Clarks
link2 = www.clarks.co.uk

which is achieved by doing


ActionScript Code:
trace("text" + j + " = " + theDisplayName);

so, how do I add the quotations and the semi colon?

Dynamic Text Rendering..
Why when a rotate a moviclip the dinamyc textbox is no rendered?
Works just fine when the movie clip has:

ActionScript Code:
mc._rotation = 0;

Rendering Dynamic Text As HTML
I created a text field and set its properties.
Every property worked except for the .html = true one.
The very same text file is used by another flash movie, and it will render as HTML (but was not dynamically created).

here is all the code:

Code:
createTextField("wTextInst", wDep+20, 0, 0, wW, wH);
wTextInst.type = "dynamic";
wTextInst.multiline = true;
wTextInst.wordWrap = true;
wTextInst.selectable = false;
wTextInst.html = true; // < doesnt work?
wTextInst.text = wCont;
thanks in advance

HTML Dynamic Text Not Rendering
Hi There--

Flash is being really cranky with me these days. You know how your parents got selective hearing when they didn't want to hear something you said or conveniently got selective memory when you wanted to ask them why they did something they did?

Flash has selective reading of html tags from a text file.

I was using the following technote from Macromedia (bottom of the page for importing text files using loadVars()......):

http://www.macromedia.com/support/fl...ng_text_mx.htm

Have copied and pasted code. Have hand typed the code. The code lets me know that the variables have loaded successfully.

It will not display text within the <b>, <i>, <u>, or <p> tags.

I thought this was a little odd because these are supposed to be from Flash 5, so they ought to be really solid.

It will display naked text.

Flash partially displayed a five line blockquote (one and a half lines) , but didn't wrap the text at all. I found it by selecting it.

It supported the <br> tags. It displayed text within the <font> tags but didn't change the font. Sometimes it didn't display.

Has anyone else had a problem like this? I'm really tearing my hair out.

Is HTML markup within an xml document more reliable? I've imported a tutorial and my flashplayer reads all of the links and markup. The file doesn't look that complicated, but the code does.

Does anyone have any ideas what's going on?

Thanks,

Lee

Rendering Dynamic Text As HTML
This is probably something stupid I am doing wrong, but...

I am loading a txt file with HTML formatting into a dynamic text field. It loads the text just fine, but it won't render it as HTML even though I have the render text as HTML button pressed down. What gives?

Here is the script to load my text into the field called MainText

MainTextVar=new LoadVars();

Btn_Introduction.onPress = function() //Introduction Button
{
MainTextVar.load("bin/Introduction.txt");
MainTextVar.onLoad = function (success)
{
if (success)
{
MainText.text=MainTextVar.TextString;
ResetScroll();
}
else
{
trace ("text not loaded");
}
}
};

Dynamic Text Box Html Rendering
hi guys, ive searched for a topic on this without any luck:

i am generating some html from a php script:

[HTML]print '<b>Name: </b>' . $name . '<br><b>Email: </b>' . $email . '<br><b>Comments: </b>' . $comments . '<br><i>Date: ' . $time . '</i><br><br>';
$i++;
[/HTML]
and outputting this into a dynamic text box with render as html selected.

now my problem is that it will not render any html. even if i just print straight to the text box:
[HTML]
_parent.read.entries.text = '<b>Loading entries... Please wait...</b>';[/HTML]

...it will display the tags, and not the formatted text.

-i am building it with flash player 6 and actionscript1, the dynamic text field is set within a frame. i can provide more examples/source if anybody could help me with this problem? are there any symbols or specific formatting rules i should be looking at?

HTML Not Rendering In Dynamic Text Box
I have a question:

Rendering HTML in dynamic text boxes does not always seem to work for me. I have a few pages where flash just displays the html tags in the text box. I am loading html from an xml file into them using the .htmlText property of the box, and I have the "render text as html" button pressed. Setting the .html property to true doesn't change anything. When I trace the htmlText property of the box, it shows the html tags escaped out (< and > ). This doesn't happen for all my dynamic text boxes. Is there something I might accidentaly be doing to these particular boxes? Thanks!

Rendering A <br> In A Dynamic Text Field.
Hey guys,

Built myself a small scroller using createTextField and htmlText, however I cant get it to render <br> or any <p></p> formatting!

Any suggestions?

Have included the small project.

THANKS!

Dynamic, HTML Rendering Issue.
Hello, Im currently working on a project which imports text dynamicly from a .txt file.

Now this text will contain html tags, etc... SOME works fine. like my image file under author information. eg. <img src="author.jpg" width="75" height="135">

It shows up fine. My issue is more towards text formatting tags. Like <b>test</b>

If I upload my work using tags such as this. All the text between my tags donnot display.

My dynamic text box in flash has the following AS.

entries.html = true;
entries.wordWrap = true;
entries.multiline = true;
entries._alpha = 100;
entries.border = false;
entries.backgroundColor = 0xDCDBD9;

As recomended by the help file to have those properties set for this type of dynamic loading.

However my problem still exists. WTF is going on here? why does some tags work, and some donnot?

Any sudgestions or ideas?

Dynamic Text -- Rendering As Html
I'm using the LoadVars function to load an external text file and render it as html for easy updates to content. However, flash will not display one section of the text. I have had it formatted with <b></b> tags, <p></p> tags, among others. I've tried it in a new flash file and it works perfectly. Code is as follows:

Action Script

var myTXT:LoadVars = new LoadVars();
myTXT.load("main.txt");

myTXT.onLoad = function(success){
if (success){
main_txt.htmlText = myTXT.body;
}
}

Text File

&body=<p>America's Family transforms the lives of hardworking Americans by working with a network of employer and community partners. We provide loans, community resources, and mentorship opportunities designed to achieve financial stability and enhance personal and social development in order to achieve the American dream.</p>

Dynamic Vs Static Font Rendering
Anyone ever notice that Flash renders the same font totally differently depending on whether its a static or a dynamic textfield? It's really frustrating when you're trying to make everything look consistent, and it looks like you are using two different weights of the same font....

Anyone have any ideas how you could try to fix it? Any help appreciated

Rendering As Html AND Aligning Dynamic Text?
I just cant seem to get flash MX to render dynamic text as html AND have it align. Gone are the days (flash 5) when you set your text variable to html, and coded "div align='right'" or "a align='right'" tags in your html to align, or used "u" tags to underline, etc.

I understand that MX has incorporated MANY style functions for text, but I CANT get html and align working together ...

I have tried all manner of combinations of the textField = new TextFormat(); method, but to no avail, aswell as combinations of html settings, html code, and alignment settings.

I need to have text align right, then with a rollover comand, underline, then back to normal with a roll out (but always aligned right!). I have each working individually, but never together!

please help! please?

jamin.

Dynamic Text Is Rendering Slightly Strange
Flash MX 2004 Pro

Hi

I'm using dynamically loaded text in a scrolling component but sometimes the text box renders the text slightly strange. For example the spaces aren't always the same size. Also sometimes the text in one line looks anti-aliased and in another line it doesnt. Also when I highlight the text it moves about a few pixels in various directions.

Any thoughts?

Many thanks

Michael

Dynamic Text Fileds || Mac - Safari - Not Rendering
I was curious as to see if anyone knew about the problem with prior versions of (Mac) Safari not rendering dynamic text fields. I know that as a developer I should not be responsible for all of a clients, clients. To have updated versions of Safari, but is there any way around this problem.

The only solution that i could think of is to backdate the compiled version of flash (although i have not done this yet).

Dynamic HTML TextField Not Rendering Text
Hi - I've looked through the forums, but can't find anything to help me out.

I'm using Flash MX with PHP to load data into a HTML textField set up as a variable. The text will not render! It's there. I can select all & copy/paste and get the text, but no color. I've tried using textFormat(), but that's not working either. I know I'm not understanding something about the dynamic html textfield. Please help.

Thanks.

Dynamic Text Field Not Rendering HTML
Hi

I have a dynamic textfield which is populated with php and mysql and I am having a hard time figuring out why it won't render the text in HTML. Any ideas?

Thanks

Images Not Rendering In Dynamic Text From External File
Hey everyone,

I've read a lot of posts on this topic and have tried a bunch of different things, but I can't get it to work.

I have a movie with a dynamic text are that pulls from an external text file on the server. The HTML I'm using in the text file works, except for the <img> tag. I can't get it to render. I even tried putting extra blank lines in the text file to "make room" for the image as someone had suggested.

Here's the test page: http://www.sprucenubblefarm.com/ACT/index.html

Here's the text file: http://www.sprucenubblefarm.com/ACT/newsflash.txt

I have been pulling my hair out with this one all day. Oh.. here's the actionscript for the dynamic text. and I'm using MX 2004 Professional ver. 7.2


Code:
myData = new LoadVars();
myData.onLoad = function() {
myText.html = true;
myText_txt.htmlText = this.myVariable;
};
myData.load("newsflash.txt");
Any suggestions would be awesome!

Thanks,
Amy

Having Trouble With Dynamic Text, Rendering Html, And Alpha
Hi all,
I have a dynamic text field that's within a movie clip, set to render HTML, with an embedded font. Initially, I have the alpha of the movie clip set to 0. When I changed the opacity of the movieclip, everything works fine, except the text box doesn't actually render the HTML. Now, if I set it to a default font (_sans), it renders the HTML correctly, however the text is still visible when it's parent movie clip's alpha is set to 0. What am I doing wrong?

Thanks in advance!

Rendering Of Special Characters In Dynamic Text Field
Everything works fine, except, when the text being displayed contains special characters (such as the german umlauts ä, ö, ü) the text is being anti-aliased... anyone a clue?

the text comes from a rss-feed, i tried a local file, utf-8 formatted, but that wouldn't help. here's the code:

//gotoAndStop(50);

var loops = true;
var loopstop = false;
var loopCounter = 0;
var ticker_y = 0;
System.useCodepage=true;

tickerformat = new TextFormat();
tickerformat.underline = true;
//tickerformat.bold = true;

function loadXML(loaded) {
if (loaded) {
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes[i].nodeName == "item") {item = i;break;}}
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes[item].childNodes[i].nodeName == "title") {ti_n = i;break;}}
for (i = 0; i <= 20; i++) {if (this.firstChild.childNodes[0].childNodes[item].childNodes[i].nodeName == "link") {li_n = i;break;}}

nx = this.firstChild.childNodes[0].lastChild.childNodes[0].firstChild.nodeValue;
for (i = 0; i <= 100; i++) {
ni = this.firstChild.childNodes[0].childNodes[i].childNodes[0].firstChild.nodeValue;
if (ni == nx) {numOfNodes = i-item;lastNode = i;break;}
}
ticker_y = 2-30*numOfNodes;

for (i = 0; i <= numOfNodes; i++) {
n = "news"+i;
l = "link"+i;
_root[l] = this.firstChild.childNodes[0].childNodes[item+i].childNodes[li_n].firstChild.nodeValue;
ticker.txtbox.attachMovie("newsmaster", n, i);
ticker.txtbox[n].txt.text = this.firstChild.childNodes[0].childNodes[item+i].childNodes[ti_n].firstChild.nodeValue;
ticker.txtbox[n].txt.setTextFormat(tickerformat);
ticker.txtbox[n]._x = 30;
ticker.txtbox[n]._y = 30 + i * 30;
}
} else {trace("file not loaded!");}
}


ticker.txtbox.setMask(ticker.tickermask);

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.1asport.de/enid/rss/1aSport.rss");

Thank you!


Peter

Rendering Eastern European Characters Dynamic Text
Hi.

I'm using Flash 8.

A client asked me to translate a site I made in English, into Czech. The font is a shared library asset that works perfectly in the English site. They sent over the Czech content of the site, and it renders great in the MS XML reader, MS Word, Dreamweaver (when editing the xml document) and even the text field that I'm using to enter this message. I update the xml documents that are used to deliver the content to the Flash but when I view it in Flash, a lot of the characters are either not rendering at all, or not rendering the dots and squiggles that should be above some of the characters.

Do I need another version of the font to Embed in the translation version of the site? I am using an original version of Helvetica from the Adobia Fontfolio.

Here's an example of the content:
Představa
Abychom docílili těch nejlepších výsledků, je třeba začít u skvělého nápadu. Proto neustále hledáme nové materiály, struktury, vzory či provedení a vymýšlíme způsoby, jak docílit důmyslného sladění s grafikou či logem. Podle našeho názoru, klíčem k dobře provedené technice je navrhovat v souladu s ní.

Animated Masking A Dynamic Image Is Causing Dynamic Image To Disappear Intermedently.
You can find the file here of what I am trying to do:
http://www.yourfilelink.com/get.php?fid=462218

Please tell me if you are having problems downloading it.

This has always irritated me and I can't seem to find a way around it.

I dynamically load an image to a movie instance and the movie instance is masked. The masking is animation on it, so that it looks like the image is animated via masking. It works if the masking animation is one long shape motion tween, but if I make the masking animation frame by frame, the image being masked disappears and reappears only when it is a long shape tween of the mask.

Please refer to the downloadable sample to understand what I mean. Is there a way around this?

I have seen page flip samples that is able to do what I am trying to do, but they used really advanced actionscripting to do this. I am using timeline.

Text Rendering Bugs W/dynamic/css Text - Overlaps, Spacing, Etc.
Hi There:

This is a problem I've been having for years but which came up again today. I've got a fairly complex quiz engine which builds question and answer screens from xml & stylesheets using embedded fonts. I've wrangled most of the basic issues with formatting - bold & italics, special characters, etc.

Unfortunately, I still have regular problems with Flash's rendering of the text - usually when using an inline style with italics. At small font sizes italic text will overlap the text that precedes it - and I know that it's a rendering bug, because if I zoom in to 200 or 400%, the letter spacing is correct. I end up adding non-breaking spaces to the file, which is bad form, but it works.

Today I have a problem with underline tags adding too much space between words - even when there are no spaces. Again, it displays correctly when zoomed in. Unfortunately, I can't fix this one by adding NBSPs. I've tried playing with the letterspacing with no success.

Does anybody have any insights or advice? I'm attaching an image that shows examples of what I'm talking about. I've experienced this problem for YEARS with dozens of different fonts, and I've tried every variation of kerning/letterspacing/font embedding etc. that I can think of.

Thanks in advance!
Patrick

Text Rendering Bugs W/dynamic/css Text - Overlaps, Spacing, Etc.
Hi There:

This is a problem I've been having for years but which came up again today. I've got a fairly complex quiz engine which builds question and answer screens from xml & stylesheets using embedded fonts. I've wrangled most of the basic issues with formatting - bold & italics, special characters, etc.

Unfortunately, I still have regular problems with Flash's rendering of the text - usually when using an inline style with italics. At small font sizes italic text will overlap the text that precedes it - and I know that it's a rendering bug, because if I zoom in to 200 or 400%, the letter spacing is correct. I end up adding non-breaking spaces to the file, which is bad form, but it works.

Today I have a problem with underline tags adding too much space between words - even when there are no spaces. Again, it displays correctly when zoomed in. Unfortunately, I can't fix this one by adding NBSPs. I've tried playing with the letterspacing with no success.

Does anybody have any insights or advice? Here's an image that shows examples of what I'm talking about. I've experienced this problem for YEARS with dozens of different fonts, and I've tried every variation of kerning/letterspacing/font embedding etc. that I can think of.

Thanks in advance!
Patrick

Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?

Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?

Rendering Dynamic Text As Display Text?
Anyone know how to render dynamic text loading from a .txt as nice vector display type? Is that even possible? I'm looking at hothotheat.com at their news, and I would think that text would be loaded externally.

Thanks,

C

Image Streching For Unknown Reason In Dynamic Image Gallery
Hi everyone, this is my first time using flash.

I followed a tutorial at http://www.lukamaras.com/tutorials/a...e-gallery.html and everything is working okay, except when I view the big images they are 4x wider than they should be, stretching to the right. I think its a problem with action script maybe because I'm using cs3, and saving the file as flash 8? I'm not sure. I've included the file and the xml/photos it references in case anyone is nice enough to check out my problem.

http://www.mediafire.com/?euw1wywgnvg

Thanks! -mike

Dynamic JPGS, Dynamic Images, Load Image
Just a little not for those who have problems using dynamic loaded jpgs.
If you want to dynamically load some jpgs here is some code I picked up off the forum


Code:
//Step1
createEmptyMovieClip("img",0);
img._visible=false;
//Step2
img.loadMovie("test.jpg");
//Step3
this.onEnterFrame=function(){
BLoaded=img.getBytesLoaded();
BTotal=img.getBytesTotal();
percent=BLoaded/BTotal*100;
//Step4
if(BLoaded == BTotal && BLoaded>0){
img._width=726;
img._height=641;
img._visible=true;
delete this.onEnterFrame;
img._x=0;
img._y=0;
}
}
When you save your JPG in photoshop it gives you a few options for saving your jpg.
1) BASELINE (STANDARD)
2)BASELINE (OPTIMIZED)
3)PROGRESSIVE

It has to be a baseline image, for whatever reason. No clue!

How To Load Dynamic Text According To Dynamic Image?
Hello all,

I want to make this artist portfolio (ie: a slide show) and I have found a tutorial that showed me how to dynamically load images in an empty movie clip.

Now, I'd like to attach a description for each images and I'd like to keep it dynamic. So, I imagine a folder with one text per image, having a name can can be incremented or decremented (description1.txt, description2.txt, and so on)

and I guess it's a matter of having a recognition of which image we're on in order to load the corresponding text...

Also, I was wondering, can I add html tag in the txt file in order to have some sort of formatting to the output text?

Where do I start?

Thanks

p.

Dynamic Text And Dynamic Image
hi all,

i am trying to make an animation wherein i have a sequence of dynamic text and dynamic images move in and dissappear with the same effect.

what i actually want is, i have an image with a related text.this particular image and text move in with some effect and dissappear.i have many more images with related text and want them to move with the same effect as the first one without drawing them individually in the timeline.

i am seeking for a way in which i can avoid redundancy of making the same effects.i just want to replace the image and text followed with the same effects.

So does anyone know any websites or think they can help me with this problem? any help or advice would be appreciated.

thanx.

Dynamic Image ...but No Dynamic Text.
Hey everyone! I, like many others, have used kirupa's photo gallery tutorial to help me with my portfolio. I've done a slideshow for a mini-portfolio once before, for school purposes, using a slightly different script.. and it worked out fine (images and text showed up properly, etc)... but for my portfolio website I wanted to be able to add the thumbnail script for better navigation, so I decided to start from scratch using kirupa's script so that the thumbnails could be added and have a better chance of working properly.

The thing is... even with just the gallery script, my portfolio is only half-working, lol! For reasons beyond me, only the images decide to show up, and none of my dynamic text..! >:0 I've tried changing the instance names, changing the xml, applying the old actionscript from my first slideshow (but to no avail! somehow, a script that works fine in one swf doesn't work at all when I apply it to this one--the images don't even show at ALL, lol!!)... so I'm kind of at a loss.

Sorry to bring up the photo gallery again, and perhaps a redundant question in this forum..! I've tried to look for threads here and in other forums that address this specific problem, but I've mostly found that people are having problems when they modify the script to add extras... rather than little ol' me, who can't even get the base script to work fully. >_>;;

Anyway, here's my actionscript:

Code:
function loadXML (loaded ){
if (loaded ){
xmlNode =this .firstChild ;
image =[] ;
notes =[] ;
completed =[] ;
caption =[] ;
total =xmlNode .childNodes .length ;
for (i=0;i<total ;i++) {
image [i]=xmlNode .childNodes [i].childNodes [2].firstChild .nodeValue ;
notes [i]=xmlNode .childNodes [i].childNodes [3].firstChild .nodeValue ;
completed[i]=xmlNode .childNodes [i].childNodes [1].firstChild .nodeValue ;
caption[i]=xmlNode .childNodes [i].childNodes [0].firstChild .nodeValue ;
}
firstImage () ;
}else {
content ="file not loaded!" ;
}
}
xmlData =new XML () ;
xmlData .ignoreWhite =true ;
xmlData .onLoad =loadXML ;
xmlData .load ("print.xml" );
/////////////////////////////////////
listen =new Object () ;
listen .onKeyDown =function () {
if (Key .getCode () == Key .LEFT ){
prevImage () ;
}else if (Key .getCode () == Key .RIGHT ){
nextImage () ;
}
};
Key .addListener (listen );
previous_btn .onRelease =function () {
prevImage () ;
};
next_btn .onRelease =function () {
nextImage () ;
};
/////////////////////////////////////
p=0;
this .onEnterFrame =function () {
filesize =picture .getBytesTotal () ;
loaded =picture .getBytesLoaded () ;
preloader ._visible =true ;
if (loaded != filesize ){
preloader .preload_bar ._xscale =100 *loaded /filesize ;
}else {
preloader ._visible =false ;
if (picture._alpha <100 ){
picture._alpha += 30 ;
}
}
};
function nextImage () {
if (p<( total -1)) {
p = p + 1 ;
if (loaded == filesize ){
picture._alpha =0;
picture.loadMovie (image [p],1);
ptitle_txt.text = caption [p];
pdate_txt.text = completed [p];
pnotes_txt.text = notes [p];
}
}
}
function prevImage () {
if (p>0){
p = p - 1 ;
picture._alpha =0;
picture.loadMovie (image [p],1);
ptitle_txt.text = caption [p];
pdate_txt.text = completed [p];
pnotes_txt.text = notes [p];
}
}
function firstImage () {
if (loaded == filesize ){
picture ._alpha =0;
picture .loadMovie (image [0],1);
ptitle_txt.text = caption [p];
pdate_txt.text = completed [p];
pnotes_txt.text = notes [p];
}
}

function picture_num () {
current_pos = p + 1;
ppos_txt.text = current_pos +" of " +total ;
}
And here's my xml, which I think has no errors.. but I could be wrong:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<print>
<pic>
<caption>Eclectic Typography Spreads</caption>
<completed>Completed in April, 2006.</completed>
<image>images/print-3-03.jpg</image>
<notes>First page of one of 3 magazine spreads designed to be in a fictional magazine, for YSDN's Editorial Design course. Currently in progress.</notes>
<thumb>images/print-3-03_th.jpg</thumb>
</pic>
<pic>
<caption>Nip-Hop Park 2006</caption>
<completed>Completed in March, 2006.</completed>
<image>images/print-2006-01.jpg</image>
<notes>This is the first version of a promotional poster that I completed for the premiere Hip-Hop dance party event at Toronto's Annual Anime North convention.</notes>
<thumb>images/print-2006-01_th.jpg</thumb>
</pic>
<pic>
<caption>Engrish Unicase Promo Poster</caption>
<completed>Completed in November, 2005.</completed>
<image>images/print-3-02.jpg</image>
<notes>A promotional poster for the Unicase Typeface that I designed for the Typography 4 course in the YSDN program. Actual size is 24" x 30", and the theme of the poster is Japanese-inspired.</notes>
<thumb>images/print-3-02_th.jpg</thumb>
</pic>
<pic>
<caption>Series of Four Postage Stamps</caption>
<completed>Completed in October, 2005.</completed>
<image>images/print-3-01.jpg</image>
<notes>Communication Design 2 project, done with the idea that the series of stamps would be proposed to Canada Post. Stamp illustrations created by myself in Procreate Painter Classic program.</notes>
<thumb>images/print-3-01_th.jpg</thumb>
</pic>
<pic>
<caption>Dadaist Manifesto</caption>
<completed>Completed in April, 2005.</completed>
<image>images/print-2-05.jpg</image>
<notes>The Dadaist Manifesto, laid out to use an accordion fold, for Typography 3 in the YSDN Program.</notes>
<thumb>images/print-2-05_th.jpg</thumb>
</pic>
<pic>
<caption>Futurist Manifesto</caption>
<completed>Completed in April, 2005.</completed>
<image>images/print-2-04.jpg</image>
<notes>Composition of the Futurist Manifesto, for Typography 3 in the YSDN Program.</notes>
<thumb>images/print-2-04_th.jpg</thumb>
</pic>
<pic>
<caption>Futura Book</caption>
<completed>Completed in January/February, 2005.</completed>
<image>images/print-2-03.jpg</image>
<notes>A booklet created for the Typography 3 course in the YSDN Program, overviewing the Futura Book typeface. Used one spot colour used for the front cover and the two-page spread.</notes>
<thumb>images/print-2-03_th.jpg</thumb>
</pic>
<pic>
<caption>Your Health Down The Toilet</caption>
<completed>Completed in October, 2004.</completed>
<image>images/print-2-02.jpg</image>
<notes>Composition to promote awareness for eating disorders. Took place in Communication Design 1 in the YSDN Program.</notes>
<thumb>images/print-2-02_th.jpg</thumb>
</pic>
<pic>
<caption>Paul Renner Booklet</caption>
<completed>Completed in October, 2003.</completed>
<image>images/print-2-01.jpg</image>
<notes>Black and white information booklet on Type Designer Paul Renner, for Typography 2 course in the YSDN Program.</notes>
<thumb>images/print-2-01_th.jpg</thumb>
</pic>
</print>
(note: this xml has a node for the thumbnails, which I haven't tried to introduce yet).

A few other things I tried to change in order to make my dynamic text show up is the font, since I read in another forum that Verdana doesn't always show up.. but that also made no difference. I assume that something must be right, since the images show up... and I also used a trace on the script, and the proper text showed up in the output window, so think everything should be pointing to the correct nodes too.. but please let me know if you see any mistakes that I can't! T_T;; *so frustrated*

Thanks in advance! (And sorry for the loooonnnggg post...!)

Mouseover To Enlarge The Dynamic Image,how To Set The Image Enlarge From Center?
Hi there,

I would like to do the tween effect when mouseover to enlarge the image which load from xml file, I have an empty movie clip to contain the images which is call "th", and a button call "fadeit", I can have the image enlarge when mouseover however, it enlarge from top left corner, how can I enlarge the image from center?

The code as below:

Code:
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
function thtween() {
var xsizetween:Tween = new Tween(th, "_xscale", Strong.easeOut, 30, 50, 1, true);
var ysizetween:Tween = new Tween(th, "_yscale", Strong.easeOut, 30, 50, 1, true);
}
function thtweenout() {
var xsizetween:Tween = new Tween(th, "_xscale", Strong.easeOut, 50, 30, 1, true);
var ysizetween:Tween = new Tween(th, "_yscale", Strong.easeOut, 50, 30, 1, true);
}
th._xscale = 30;
th._yscale = 30;
fadeit.onRollOver = function() {
thtween();
};
fadeit.onRollOut = function() {
thtweenout();
};

Rendering To FLV
Hi,

I searched the forum but couldn't find anything on how to turn a complex rendering into an FLV file. Can someone point me in the correct direction?

Thanks in advance, Nate

Rendering Html
oh, how i want to cry...i just have to be doing something stupid (or perhaps not doing something), but whatever it is i can't figure out what's wrong...i have a scrollpane with a scrollcontent mc. song titles are pulled froma database and attached to the scrollcontent mc. the mc that i attach contains a textfield, which is 100% definitely set to render html. i've checked dozens of times to make sure that i wasn't mistaken.

my code attaches the title mc to the content mc, and then sets the title textbox to the title from the database. this works successfully without any html:


Code:
for (i = 0; i < result.getLength(); i++) {
NewSong=ContentWindow_mc.ContentSongList_mc.attachMovie("SongTitle","SongTitle"+i+"_mc",i);
NewSong.SongTitle_txt.text=result.items[i].SongTitle;
NewSong.SongTitle_txt.autoSize = "left";


but essentially what i want to do is have the SongTitle_txt actually be an asfunction link that will point to a function to display the song details. but i tried to directly copy the asfunction example that flashmx has, and it didn't work (i was getting the html code displayed), so then i just tried messing with simple html. I replaced


Code:
NewSong.SongTitle_txt.text=result..etc.
with:


Code:
NewSong.SongTitle_txt.text="b foo /b"


where the b and /b are actual tags, not incomplete.

but it still displays the b tags. i tried all kinds of variations - i tried giving the textfield a variable name and referencing it that way instead (SongTitleText="b foo /b"), i tried different ways of quoting, i tried removing the .text, i think i've tried everything i can think of. i would bet my life and the lives of every man, woman, child, and small animal in this city that the textbox is set to render html...so i assume it must be the way i'm passing it the html, but i just can't figure out what it is...can someone pleeeease mention if i've overlooked something, or just give me some ideas or something? i'm going crazy!

thanks in advance!

ps - i thought momentarily that it might have to do with the scrollpane. but then i tried the same thing in text that was not in the scrollpane, and i had the same problem...it's just gotta be something i'm not seeing, but what??

MAC NS And Rendering Of SWF Files
Hi,

We are facing a peculiar problem on Netscape 4.7 and 6.0 on Mac while rendering Flash file.

The size of flash movie is 800*600.

When it is viewed on Mac 9.0 OS at a screen resolution of 800*600 in a Netscape 4.7/6.0 browser, a horizontal and vertical scroll bar appears. However these scroll bars do not function and we are unable to view the entire screen. There is some dynamic text present on the screen. Also, on moving the scroll bar, the text on the screen breaks.

The flash file however works fine on all other configurations i.e. IE on Mac, and IE/NS on windows at 800*600 resolution.

Please let us know what the issue might be and what is the solution for the same.

Hoing for ur quick reply.

Regards,
Suhas

Rendering Variables
I have 6 buttons ( web1, web2... web6) and I want to have the code for their "on" actions to be written dynamicly. so here is my code for onRollOver.

It assigns the function to each button, that much works. My problem is that the function assigned to each button is referencing the latest set of variables everytime you mouse over them. Is there a way to have flash, in this instance, make the code: section+itemNumber end up as "web4" in the function for every time the button "web4" is rolled over while having it be "web2" everytime the "web2" button is rolled over?

as it is all my buttons' functions end up looking at "web6" since the last value of "itemNumber" is 6.


code:

for (pp = 1; pp < 7; pp++) {
section = "web";
itemNumber = new Number();
itemNumber = pp;

menuSystem[section + itemNumber].onRollOver = function (){
_root.n = _root.n + 1;
trace(section + itemNumber);
_root.menuDisplay = section + itemNumber;
duplicateMovieClip("_root." + section + "info" , section + "info" + itemNumber , _root.n);
_root[section + "info" + itemNumber].gotoAndPlay("in");
}
}


any help is much appriciated

Rendering Time... Exe Or .swf?
Hey,

I've made two animations that will be shown on a 3 by 4 meters screen (I run it fullscreen and a beamer projects it on the screen) tomorrow, now my question is, what is faster? .swf or .exe?

Because it runs in fullscreen some tweens go a bit sloppy, is there any difference between .swf and .exe regarding rendering time?

Font Rendering
Hello,

Does anyone know why there is such a big difference between embedded fonts in a text field and in a component. the same font in a component looks so much better and less fuzzy.
i know, pixel fonts, but is there some way you can optimize how regular fonts display?

thanks for your help guys

3D Rendering (equations)
hi guys ...

i need to create something like http://www.houseof3d.com/pete/applets/graph/graph.html ...


where do i start...

thx

Rendering Html
I am trying to render html .Here is what I am doing

I made the text box dynamic. and gave the instance name canada. now i wrote this code on the action script

bill = new LoadVars()
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "my font";
bill.onLoad=function(){
canada.embedFonts=true
canada.html=true
canada.htmlText = bill.text
canada.setTextFormat(my_fmt)
}
bill.load("intro.txt")

so basically the text is written from a .txt file. The problem I am facing is that its not recognising some of the most common tags. like <b> <a> etc... but its recognising <li> for example . Kindly help

Problem With Rendering
I have a flash file that someone else created but he never sent me the fonts so when I open it to edit the links on my machine, it says "fonts missing" and replaces with the default. It looks great in my flash 8 but when i export to movie it comes out pixelated and the animation is clunky.

What do I need to do? Thanks in advance for any help.

[F8] Pre-rendering An Animation W/ AS
Hi,

I'm working on a game that does some basic 3D, drawing objects with the AS line/fill commands. Because my game heavily constrains the player's perspective, I noticed there are some things that could be drawn in advance - for example, the camera can only move straight ahead and consequently there are some objects that vary only in their Z-value, never X Y or rotation, so it would not be unreasonable to draw them at many different Z values and then use those images instead of having to spend time projecting the points and making draw calls during the game. Still, I would like to draw these things with actionscript, not by hand, so that if I decide I want to change the game's perspective or the screen size a little it will be easy.

Now, I read online that there's no way in AS to draw to multiple different frames (too bad, that would have worked nicely--maybe in AS3, anybody know?). So I was wondering if anybody had any clever ideas on how I might be able to do this. If I have to, I'll do it by hand, but it looks like a lot of work and I'm afraid of having to toss it out if I decide the game field needs more room

thanks,
max

Fonts Not Rendering Right
I have created my website http://www.firdoshtangri.com but for some reason on some computers the fonts seemed to be squeezed in. I have attached images one with a goodrender and one with a bad rendering of the font.

thanks
cheers
firdosh

Help With Text Rendering
Hi,
When I try to draw a dynamic textfield into a bitmapdata using the draw method, the text is drawn without antialiasing.

you can see an example here:here

I've tried all the blending options in the draw method, but none works. I've tried to use a big intermediate bitmapdata and then downsample it using draw (smooth=true). But it doesn't work...

I'm getting mad...

edit: of course, the bitmapdata 's have alpha channels...

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