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




Could SWF Choke On "&" Rendering From Php?



Hello there,Would anyone have some insight on my problem here? Your help is appreciated.Back Ground:I have a swf stored on LAMP. The site feeds data to the server which can later be reachieved /rendered back to the site via swf files. In other words when I type text in my site's text editor and hit send, it's store on the db, I log off, I come back to the site and can see the text through an swf file. The Problem:When I type certain characters like "&" (with out the quotations)... so it really looks like... &When I type this symbol it completely blocks the rest of the text from appearing up 'till that point.Also, not sure what it is... but some of the text that does come through is rendered as " ? " and " ".Can this be a incompatibility issue with the swf text fields rendering text as HTML?Removing the HTML voids data integration.. correct? Not sure? :)Thanks again!-Mp



Adobe > Flash Data Integration
Posted on: 12/04/2007 11:34:05 AM


View Complete Forum Thread with Replies

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

Swf Lag/choke In Mac Browser
Hi everyone, currently I am working on a project and I am wondering why my swf play in mac browser choke massively and some others mac doesn't. If it works in window platform, PERFECT!!!

It seems like it don't have much solution on the internet. I hope some advanced flash user can help me out to figure this issues.

At last, I am appreciated that someone could give me a big help.

cheers

My String Is All Knoted Up (maybe I Can CHOKE MYSELF WITH IT?)
I'm going nuts!
Here's what I'm trying to do...and yes, I know it isn't easy and that no one will probably repond to this
I have an inputbox with a monospace font
The inputbox will fit 5 char's wide and 5 char's high and has a variable name of myText
And what I want to do is figure out how many char's are on each line of a multiline inputBox.
Sooooo.... I need to concider wordwrapping and carrige returns
And here's what I have so far, but no matter what I do I get 5 char's for EVERYLINE! grrrrrrrrrr

function backitup() {
// clear the vaiables
pozition = 1;
for (uu=1; uu<=5; uu++) {
set("line"+uu, "");
}
// loop through rows 1 to 5
for (line=1; line<=5; line++) {
// start from the # (pozition) and create a substring
tempLine = mytext.substr(pozition-1, 5);
// look in the substring for a carrige return
for (i=1; i<=5; i++) {
if (tempLine.charat(i) == "
") {
trace("I found a carrige return");
// if there is one the line length should be the value of "i"?
set("line"+line, i);
} else {
// if there is no
then we know the line's length is equal to 5
set("line"+line, 5);
}
// reset the pozition variable
pozition = 1;
// add up the total # or char's for each row that we've looped
// through so far and store the variable in: pozition
for (kk=1; kk pozition = pozition+eval("line"+kk);
}
}
}
trace("line 1 is "+line1+" char's long");
trace("line 2 is "+line2+" char's long");
trace("line 3 is "+line3+" char's long");
trace("line 4 is "+line4+" char's long");
trace("line 5 is "+line5+" char's long");
}



Please help me before I shoot myself in the face!

Frequent-C
http://www.Freq-Fest.com

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...

Text Rendering?
Hello everyone, I'm new to this forum and to flash as well. I started out creating a website in flash (8) and there's a thing I cannot get around: I have some static text and some dynamic text, both rendered with anti-aliasing. The dynamic text is loaded from a html formatted file. The curious thing is that the 2 text render in a totally different way: the static text looks great, the dynamic doesn't: it's smaller, even if the font and fontsize are the same, and doesn't look likes it has the anti-alias. I'm sure I'm probably missing something somewhere. Anyone can help please?
thanks

Papervision 3D 2.0 Rendering
Hey, ive just started with Papervisions branch GreatWhite.

My question is how I shall do to render a new layer over another 3dworld.

The basic world is a simple cube.
The new layer will contain clickable planes.

Thanks.

3d Rendering Problems
I am trying to make a program to render three dimensional objects so they can be viewed in flash. I derived the equations myself, so at first I was not sure they were correct, but I checked later and found that they were. I have two problems that I know of. The first is that when I rotate a point around the y axis, the program acts as though the y-axis were at infinity rather than zero, causing the point to move in a sort of hyperbola, and when I rotate around the x or z axes, a similar problem takes place. The second is that, when a 'column' of circles is drawn using the equations I derived and checked with the observer set to be at (0, 0), rather than the circles closest to the observer seeming to be farther away from the point, as would be expected, they appear to be farther away, mostly. The problem seems to be primarily related to the y-axis. The code below outlines a class I am using to represent a point in three dimensional space and the code below that illustrates the first problems when placed on the main timeline, and the code below that illustrates the second. I would be absolutely certain I had mis-derived the equations if I had not checked them.


ActionScript Code:
class Point{
    var x //x coordinate in 3d space
    var y //y coordinate in 3d space
    var z //z coordinate in 3d space
    var xrend //x coordinate in 2d space
    var yrend //y coordinate in 2d space
    function Point(a:Number, b:Number, c:Number){
        x = a
        y = b
        z = c
    }
    function shiftX(n:Number):Void{
        x += n
    }
    function shiftY(n:Number):Void{
        y += n
    }
    function shiftZ(n:Number):Void{
        z += n
    }
    function rotate(anglex:Number, angley:Number, anglez:Number):Void{ //rotates the point around the axes
        var xi = x
        var yi = y
        var zi = z
        x = Math.cos(angley) * (Math.sin(anglez) * yi + Math.cos(anglez) * xi) - Math.sin(angley) * zi
        y = Math.sin(anglex) * (Math.cos(angley) * zi + Math.sin(angley) * (Math.sin(anglez) + Math.cos(anglez) * xi)) + Math.cos(anglex) * (Math.cos(anglez) * yi - Math.sin(anglez) * xi)
        z = Math.cos(anglex) * (Math.cos(angley) * zi + Math.sin(angley) * (Math.sin(anglez) + Math.cos(anglez) * xi)) - Math.sin(anglez) * (Math.cos(anglez) * yi - Math.sin(anglez) * xi)
        offsetRect() //corrects for small amounts of error in the position
    }
    function offsetRect():Void{
        if(x - Math.floor(x) < .001){
            x = Math.floor(x)
        }
        if(y - Math.floor(y) < .001){
            y = Math.floor(y)
        }
        if(z - Math.floor(z) < .001){
            z = Math.floor(z)
        }
        if(Math.ceil(x) - x < .001){
            x = Math.ceil(x)
        }
        if(Math.ceil(y) - y < .001){
            y = Math.ceil(y)
        }
        if(Math.ceil(z) - z < .001){
            z = Math.ceil(z)
        }
    }
    function render2d(viewx:Number /*viewer's x coordinate relative to the coordinate axes*/, viewy:Number /*viewer's y coordinate*/, viewz:Number):Void{ //renders the 3d point as a 2d point
        xrend = (x - viewx) * (viewz / z)
        yrend = (y - viewy) * (viewz / z)
    }
}


ActionScript Code:
MovieClip.prototype.DrawCircle = function (x,y,r) {
    var c1=r*(Math.SQRT2-1);
    var c2=r*Math.SQRT2/2;
    this.lineStyle(1, 0x000000, 100)
    this.moveTo(x+r,y);
    if(r == 20){
        this.beginFill(0x000000, 100)
    } else{
        this.beginFill(0x000000, 50)
    }
    this.curveTo(x+r,y+c1,x+c2,y+c2);
    this.curveTo(x+c1,y+r,x,y+r);
    this.curveTo(x-c1,y+r,x-c2,y+c2);
    this.curveTo(x-r,y+c1,x-r,y);
    this.curveTo(x-r,y-c1,x-c2,y-c2);
    this.curveTo(x-c1,y-r,x,y-r);
    this.curveTo(x+c1,y-r,x+c2,y-c2);
    this.curveTo(x+r,y-c1,x+r,y);
    this.endFill()
}

var P:Point = new Point(100, 100, 100)
P.render2d(0, 0, 100)

_root.onEnterFrame = function(){
        if(Key.isDown(Key.SPACE)){
        P.rotate(0, Math.PI/10, 0) //illustrates the problem for the y-axis. problem with the x-and z- axes can be illustrated by switching the Math.PI/10 from the second to the first or third input respectively.
        P.render2d(0, 0, 100)
    }
    _root.clear()
    _root.DrawCircle(0, 0, 2) //to show position of origin
    _root.DrawCircle(P.xrend, P.yrend, 20)
}


ActionScript Code:
MovieClip.prototype.DrawCircle = function (x,y,r) {
    var c1=r*(Math.SQRT2-1);
    var c2=r*Math.SQRT2/2;
    this.lineStyle(1, 0x000000, 100)
    this.moveTo(x+r,y);
    if(r == 20){
        this.beginFill(0x000000, 100)
    } else{
        this.beginFill(0x000000, 50)
    }
    this.curveTo(x+r,y+c1,x+c2,y+c2);
    this.curveTo(x+c1,y+r,x,y+r);
    this.curveTo(x-c1,y+r,x-c2,y+c2);
    this.curveTo(x-r,y+c1,x-r,y);
    this.curveTo(x-r,y-c1,x-c2,y-c2);
    this.curveTo(x-c1,y-r,x,y-r);
    this.curveTo(x+c1,y-r,x+c2,y-c2);
    this.curveTo(x+r,y-c1,x+r,y);
    this.endFill()
}
var P:Point = new Point(100, 100, 100)
P.render2d(0, 0, 100)
var Q:Point = new Point(100, 100, 500)
Q.render2d(0, 0, 100)
var R:Point = new Point(100, 100, 10)
R.render2d(0, 0, 100)

_root.onEnterFrame = function(){
    if(Key.isDown(Key.SPACE)){
        P.rotate(0, 0, Math.PI/10)
        P.render2d(0, 0, 100)
        Q.rotate(0, 0, Math.PI/10)
        Q.render2d(0, 0, 100)
        R.rotate(0, 0, Math.PI/10)
        R.render2d(0, 0, 100)
    }
    _root.clear()
    _root.DrawCircle(0, 0, 2)
    _root.DrawCircle(P.xrend, P.yrend, 20)
    _root.DrawCircle(Q.xrend, Q.yrend, 15)
    _root.DrawCircle(R.xrend, R.yrend, 10)
}

Looking For A Good 3d Rendering Tut
Does anyone of a good tutorial or lesson on the math and concepts behind 3d rendering in a 2d engine. It doesn't have to be about flash because I only want the math behind it, not how to code it. If possible I would like one that gets right down to the core because I don't have the time to pick useful information out of a huge lesson.

Animation Not Rendering To Swf
I have a movieclip with nested movieclips that has a class attached to it that allow the user to drag, throw, and rotate the movieclip. As long as the class is attached to the movieclip any animation I set up with the movieclip will not render when exported to a .swf. If anyone knows why or wants to take a look I have attached the .fla as well as the attached .as files. Thanks for any help anyone can provide.

*UPDATE*
After trial and error I discovered that the problem has to do with a dropShadowFilter I have in the base class. Whenever the filter is applied to the movieclip through actionscript it will no longer animate the movieclip. I have not figured out the solution to this problem yet. My workaround is to apply the dropShadow to the movieclip on the stage and not through actionscript.

Problem Rendering XML In AS 3.0
In the below XML...

<![CDATA[

<table><tbody><tr><td noWrap><span

style='color:black'><span

style='color:black'><span style='mso-tab-count:1'></span>10 (1 + </td><td noWrap><span

style='color:black'><sub><img width=25 height=23

src="image002.gif" /></sub></td><td noWrap><span

style='color:black'>) metres<span style='mso-tab-count:4'></span></span></td></tr></tbody></table>



]]>

How to set inline style sheet to htmltext of textfield component as mentioned in the xml CDATA. At present , i am using textfield.htmlText propert , but i am not able to get the fontfamily as mentioned in the xml CDATA. The text is also not getting displayed in the correct format. The image is not coming in between the 2 question strings and its getting displayed at the bottom of the question while the 2 question strings("q text info", "with images also") are displayed as a single string. How to reformat the xml so that the image comes in between.

Regards,
Excel

Shape Rendering
Hello to everyone,

I'm rendering numerous polylines and polygons onto DisplayObject. Average time to render one geometry is 0.1 ms. So 5000 geometries is rendered ~0.5 sec. It seems pretty quickly, but after 5000 geometries are drawn the whole UI becomes very slowly:

1)Draw this DisplayObject takes ~5 sec!
2)Resizing and dragging are slow and soon become nonrespondable.
3)Movig mouse takes 100% CPU!

I suppose, the problem is that player tries to calculate if mouse is over this DisplayObject (though it's not interactive) and does some re-rendering routines (though no redraw is needed).

I used flash.display.Shape with cacheAsBitmap = true.

Could anyone please give tip how to improve performance while drawing the DisplayObject to BitmapData and reduce CPU load while interacting UI?

Thanks a lot

Bizarro Rendering For 3D On Mac
Here's a link to the widget:
http://www.calacademy.org/newacademy

on a mac, when you go to another window (blur away from your current window) the flash starts spinning eratically (no, I can't spell).

Are the devs working on this problem? Anybody else having it? Any workarounds?

Cell Rendering
Howdy,

With Cell Rendering, I have got it working, is there anyway to get it to apply to specific cells on a datagrid, or is it column based....

Thanks,

Nathan

Consistant Rendering Of <br>
I ran into a curiosity today. I have a project where fonts are embedded and dynamic HTML text is used (loaded from an external file). All text seems to render pretty consistently across platforms/browsers with exception to <br> tags.

The PC treats them as expected. The Mac gives a <br> tag what looks like the space of a paragraph tag.

First, does anyone know why this occurring? Is Flash using the rendering rules of the browser it's running in to display HTML?

Second, does anyone have a solutions to force consistent rendering?

Problem Rendering XML In AS 3.0
In the below XML...

<![CDATA[

<table><tbody><tr><td noWrap><span

style='color:black'><span

style='color:black'><span style='mso-tab-count:1'></span>10 (1 + </td><td noWrap><span

style='color:black'><sub><img width=25 height=23

src="image002.gif" /></sub></td><td noWrap><span

style='color:black'>) metres<span style='mso-tab-count:4'></span></span></td></tr></tbody></table>



]]>

How to set inline style sheet to htmltext of textfield component as mentioned in the xml CDATA. At present , i am using textfield.htmlText propert , but i am not able to get the fontfamily as mentioned in the xml CDATA. The text is also not getting displayed in the correct format. The image is not coming in between the 2 question strings and its getting displayed at the bottom of the question while the 2 question strings("q text info", "with images also") are displayed as a single string. How to reformat the xml so that the image comes in between.

Regards,
Excel

3d Flip Rendering
Hi all,

I have created a slideshow which flips between each slide change, so I have one image in the front and I load the other image behind it and change its rotation by 180 degrees after this I tween the container to rotate. But when I change the size of the fla file I get this message:

Warning: 3D DisplayObject will not render. Its dimensions (3527, 5080) are too large to be drawn.

Can anyone tell me what causes this?

Thanks in advance :)

Bitmap Rendering Is Not Always Better
I'm still exploring 3d rendering in flash, and I've discovered that bitmap rendering is not always better. I was hoping using triangles to render textures would be faster than using the drawing API, but at least in the following example, it is almost twice as slow, and has more glitches.

Perhaps someone can point out an error I've made in the methods. Attached is an example, and here is the code used to render it, sorry for the hard coded values, they are mostly multiples of the Stage width/height :
PHP Code:



MovieClip.prototype.createTerrain = function(){
  prevTimer = getTimer(); // for rendering rates

  // clear the previous rendering
  fieldMap.fillRect(new flashGeomRect(0, 0, Stage.width, Stage.height), 0x00000000);
  field.clear();

  ty = ca * _3dData.yoffset - sa * (_3dData.startz + _3dData.stepAmount); // adjust camera view angle
  tz = sa * _3dData.yoffset + ca * (_3dData.startz + _3dData.stepAmount); // adjust camera view angle
  scaleRatioB = _3dData.focalLength / (_3dData.focalLength + tz); // set initial scale ratio for perspective rendering

  for(z = _3dData.startz; z>=_3dData.startz - 650; z -= _3dData.stepAmount){  // loop through the rows, back to front rendering

    ty = ca * _3dData.yoffset - sa * z;  // adjust camera view angle
    tz = sa * _3dData.yoffset + ca * z;  // adjust camera view angle
    scaleRatioA = _3dData.focalLength / (_3dData.focalLength + tz); // set the new scale ratio for perspective rendering

    if(z == _3dData.startz){  // only need to grab these values at the very begining, subsequent segments can use previous values (point1)
      displace = -(parseInt(displaceMap.getPixel((750 - _3dData.stepAmount + _3dData.xoffset) / 8, (z + _3dData.zoffset) / 8), 16))*_3dData.hoffset;
      if(displace == undefined){ displace = 0; } 
      pixelArray[0].x = origin.x + (-250) * scaleRatioA;
      pixelArray[0].y = origin.y + (ty + displace) * scaleRatioA;
    }
    startx = pixelArray[0].x; // store for use on next row
    starty = pixelArray[0].y; // store for use on next row

    // grab these values at the begining of each row, subsequent segments can use previous values (point4)
    displace = -(parseInt(displaceMap.getPixel((750 - _3dData.stepAmount + _3dData.xoffset) / 8, (z + _3dData.zoffset + _3dData.stepAmount) / 8), 16))*_3dData.hoffset;
    if(displace==undefined){ displace = 0; } 
    BX = origin.x + (-250) * scaleRatioB;
    BY = origin.y + (ty + displace) * scaleRatioB;

    pixelCount = 0;

    for(x = -400; x<=400; x += _3dData.stepAmount){

      if(z == _3dData.startz){ // only need to grab these values on the first row, subsequent rows can use previous values (point2)
        displace = -(parseInt(displaceMap.getPixel((x + 1000 + _3dData.stepAmount + _3dData.xoffset) / 8, (z + _3dData.zoffset) / 8), 16))*_3dData.hoffset;
        if(displace==undefined){ displace = 0; } 
        pixelArray[pixelCount + _3dData.stepAmount].x = origin.x + (x + _3dData.stepAmount) * scaleRatioA;
        pixelArray[pixelCount + _3dData.stepAmount].y = origin.y + (ty + displace) * scaleRatioA;
      }
      nextX = pixelArray[pixelCount + _3dData.stepAmount].x; // store for use on next row
      nextY = pixelArray[pixelCount + _3dData.stepAmount].y; // store for use on next row

      // this is the only point that needs to be calculated for each segment every time (point3)
      displace = -(parseInt(displaceMap.getPixel((x + 1000 + _3dData.stepAmount + _3dData.xoffset) / 8, (z + _3dData.zoffset + _3dData.stepAmount) / 8), 16))*_3dData.hoffset;
      if(displace==undefined){ displace = 0; } 
      nextBx = origin.x + (x + _3dData.stepAmount) * scaleRatioB;
      nextBy = origin.y + (ty + displace) * scaleRatioB;

// triangle transform: theMatrix = new flashGeomMatrix( (pointB._x - pointA._x) / 100 , (pointB._y - pointA._y) / 100 , (pointC._x - pointA._x) / 100 , (pointC._y - pointA._y) / 100 , pointA._x , pointA._y );

      if(z < _3dData.startz){ // my first row is currently not using proper values, not sure why so I'll skip it till I figure it out
    if(useBitmaps){
          // grab the texture map color value, currently it's the same perlinNoise map as the displacemap, only green channel
          gcolor = greenMap.getPixel((x + 1000 + _3dData.xoffset + _3dData.stepAmount / 2) / 8, (z + _3dData.zoffset + _3dData.stepAmount / 2) / 8) >> 8 & 0xff;

          // draw the two triangles to make the segment
          theMatrix = new flashGeomMatrix( (nextX - startx) / 100 , (nextY - starty) / 100 , (BX - startx) / 100 , (BY - starty) / 100 , startx , starty );
          fieldMap.draw(triangles[gcolor], theMatrix);

          theMatrix = new flashGeomMatrix( (nextX - nextBx) / 100 , (nextY - nextBy) / 100 , (BX - nextBx) / 100 , (BY - nextBy) / 100 , nextBx , nextBy );
          fieldMap.draw(triangles[gcolor], theMatrix);
    }else{
      // use the drawing API to render the quad (same number of points as the two triangles above)
      with(field){
            gcolor = greenMap.getPixel((x + 1000 + _3dData.xoffset + _3dData.stepAmount / 2) / 8, (z + _3dData.zoffset + _3dData.stepAmount / 2) / 8);
        lineStyle(1, 0x000000, 0);
        beginFill(gcolor);
        moveTo(startx, starty);
        lineTo(nextX, nextY);
        lineTo(nextBx, nextBy);
        lineTo(BX, BY);
        lineTo(startx, starty);
        endFill();
      }
    }
      }

      // store/transfer point data for next segment
      startx = nextX;
      starty = nextY;
      pixelArray[pixelCount].x = BX;
      BX = nextBx;
      pixelArray[pixelCount].y = BY;
      BY = nextBy;
      pixelCount += _3dData.stepAmount;

    } // end x loop

    // store remaining data for next row
    pixelArray[pixelCount].x = nextBx;
    pixelArray[pixelCount].y = nextBy;
    scaleRatioB = scaleRatioA;
  } // end z loop

  // position cutout indicator on top down view
  viewMap.mapBox._x = (750 + _3dData.xoffset) / 8;
  viewMap.mapBox._y = (z + _3dData.zoffset) / 8;

  renderRate.text = 'Rendered in ' + (getTimer() - prevTimer) + ' milliseconds';
  updateAfterEvent();

}; // end rendering function 




Attached is an example that that lets you move a viewing box around the color map by holding the mouse over the arrows, or by clicking on the map. I'm curious to see the rendering rates different systems get for each method, please post your results.

Note to Adobe -- Please give us a copyPixel routine using polygon shapes rather than rectangles!!!

Flash 9 Rendering BUG
Hi,

I'be been pulling my hair out because of a very peculiar problem :

Flash seems to randomly NOT render spaces in a dyn textfield when using bold text next to normal text using css . I load the text from htmlpages. The strange things is when you zoom in ( rightclick -> Zoom In ) Flash renders the text and spaces correctly ... Is this a bug or what ? I've tried all possible ways known by mankind in both the IDE & AS3 but the only solutiuon I could get to work, is using non breaking spaces between each nonbold and bold part of text. Problem is that the text must be edited by the client and that solution is not a very elegant one. Also, if I disable anti-aliasing, the problem disappears.

You can see an example at http://www.skerm.be/pimpz/ , the first item "Opel meets Bué", the spaces are there but sometimes they are not rendered and bold & nonbold text stick together. Then zoom in on the textfield and by magic the spaces are rendered as it should !

Any ideas ?

Grz from Belgium

Rendering Issue
I have a rendering issue.

I have a carousel with lots of images spinning around.

The images flicker and buldge a bit.

As memory serves if I have the carousel items, as separate swfs, its better.

Any ideas? I've tried applying smooth and cacheAsBitmap. to no avail

thanks

Rendering HTML
I have been trying to render some text as html inside my flash file.
I have a dynamic text box, and I checked the render as html button. The variable that goes inside the text box has the following test html in it:

Code:
<p><a href="http://www.buddybuddha.net">Buddy Buddha</a></p> <p><a href="http://www.yahoo.com">Yahoo</a></p> <p><a href="http://www.google.com">Google</a></p> <p><a href="http://www.ebay.com">Ebay</a></p>
But it still shows up with all the coding. What gives? Any ideas?

Font Rendering
Hello there

I´m setting up my very first dynamic site with flash, the problem I have is this: the page has a "news" (noticias) section, when you use opera, netscape, mozilla or any other browser fonts are correctly displayed, but not with IE6, the fonts just won´t appear at all. you can see this from your end by entering:

myPage and getting into the "noticias" section.

Why everything works but not with IE?

Any help is always a great help

HTML Font Rendering
How can I insure that the font I use in the HTML tag of a text field gets rendered with the proper FONT even if the font is not installed on the client machine?

Rendering Html In Flash
guys,

can flash support the css? ( that i wrote in the htm )

thanks


selamat ramadhan


ahmadzombie

Box Corners Not Rendering Completely...
Howdy.

I create streaming media modules for various clients using Flash (version doesn't really matter, but I am usually using v5). I create a .fla and then I drop the tuned .swf files into RealPlayer as backgrounds creating an "environment" for the presentation. Frequently I use a box as an outline for the video region, slide region, or whatever region happens to be needed. I have a client complaining that the corners of the boxes are missing the connecting pixel. The boxes use a 1pixel line, and the lines are connected. When I zoom in on the box corner in the .fla file, all is good, but when I publish it out to a .swf, it loses the corner pixel...only at the BOTTOM of the box. Odd eh? Anyone have a way to fix this? My client is driving me nuts about it.

On a related note, how do I make the corners of the box a right angle and not a smooth, rounded corner? Am I missing something? Like my brain. Seems like it should be an easy fix. Thanks a lot. I appreciate any input at all. I am desperate.

Flash With 3d Rendering Software
hi guys 'n girls,

Yesterday I was looking at some flashsites and I stumbled upon these 2
http://www.whoswe.com and http://www.tetsoo.com
The've created some fine 3D animations in there websites and I was wondering which software they used for that ? I was thinking of 3D studio max but I thought you couldn't import that in a flash movie.
I've created some websites in flash and now I think I've learned it all I wanne start learning to work in 3d flash.
So if anybody knows, can he tell me what software I need for this and maybe where to find some nice tutorials ?

greetz and thx,
ava

PS: merry xmas

Rendering Text As HTML?
I'm trying to import text from a text file (actually an xml file, but...) and want the text to appear in a dynamic textfield be rendered as html. It doesn't work...but does when I hardcode the html code in flash in say frame 1. What's up?

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.

HtmlText Not Rendering B Text, Etc.
Ok, I've turned my html property of my dynamic text field to "true" (aka "render as HTML") but the problem is stuff enclosed in tags, like <b>and</b> for instance, just doesn't display at all.

Example: I'm telling it htmlText= "<b>blah</b> blah2"; and all it displays is " blah2".

MX 2004.

Swift 3d V3 Rendering Prob
When I did a 150 frame swift animation, I made a room with the camera moving around in first person navigating the 3d room. When I made it, my preview of the movie had the right camera angles that I made but after 20 hours of rendering, the camera angle is off in a nost of it. If you want to see it go to JoeWeitzel.com and tell me if you thinkif it too off or not. It looks like the camera is running into the stairs.

Thanks!!!!

Problems Rendering Text Through Swf's
Am putting together a folio in site created in mx 2004 pro but published in mx using action script 1.

The way the folio site works is that you have a holder movie that divides into 3 sections, about, work and contact, each one of these sections is a seperate swf which is loaded by the 'loadMovie(relevant.swf,1);'

The work swf loads via buttons 20 seperate images that are split into seperate swf's using exactly the same method as above.

The explanation text is loaded into relevant dynamic text fields using 'loadVarialesNum(folioimages/work.text, 0);'.

The problem I have is that all works fine in the actual Work Movie, ie when you render the work.swf all images and text load exactly as they should.

However, when I then load the work.swf into the top root folio.swf via the loadMovie command, the work movie pulls in all the relevant imaage swf's but does not render the text in the dynamic text fields.

Any ideas

HTML Not Rendering Correctly...?
Hi there,

I've run into a problem or glitch concerning the rendering of html in a dynamic textfield.
I've used html before. However, now the html just fails to render at all. The text is loaded in, in a loadVars() object and written to a dynamic textfields that is set to render html.
The html is written to the textfield as plain text; all tags are written as text.
Including 'useCodePage' or setting the html-property of the textfields by AS doesn't help either.

Has anyone run into this and found the problem?

Thanks for any clues!

cYa,
Ivo

Problems Rendering Fonts
Hi,

Having a wierd problem I never experienced before with flash. When I publish it doesnt seem to be embedding the fonts into the swf, so when someone comes to view it who doesnt have any of the fonts used to create the flash installed on their OS it just renders the text in some nasty looking default font

here's how it looks:

http://www.stealthoverblitz.co.uk/shadow.swf

and attached is a screenshot of how it should be.

Can anyone help? real pain in the ass :/

Text Rendering In Safari
Hey there Everyone,

Got a problem, and I do know that it's a Mac thing, but I need it confirmed..?
Is there a problem with Macs/Safari rendering text/fonts?

I am embedded all fonts but apparrently (according to my boss) they're no good

Any suggestions?

PS: I have NEVER had these problems on my PC even without embedding fonts

I am sure my site looks fine www.lmcdizain.co.nz

Text Rendering Issues
Does any one know any tricks for getting better results when publishing small text in flash. I am using flash 8 wich does a nice job but need to publish in 6 wich makes small text break apart. Any one know the best way to avoid this??

Rendering MC Innards To A Movie
I've been using Flash for years and have just recently been experimenting exporting FLAs out to movie forms.

The only problem is that Flash only renders items on the timeline and doesn't even bother processing the innards of movie clips, making some instances of animation that look great as an SWF absolutely impossible as a movie. (Meaning that if I have an elaborate logo sequence inside an MC, when rendered to an AVI or otherwise, it only renders the first blank frame of the MC.) When I grabbed the Flash 8 trial, the first thing I did was test to see if this was even possible and they still haven't fixed it. This is incredibly important.

Is there any way around this? A patch even?

Line VS. Fill Rendering
Hi, I have a (currently) processor intense animation to render, and one version has to be an .swf. If I convert all of my lines to fills, will the swf run smoother?

Thanks

Rendering ChildMC's Animation
Wondering, how to output a *.mov or *.avi file, what i get is only the things which are straight forward animation on the main timeline. I don't the get the few animations which are within a movie clip. I know rendering everything as a video is not possible.

Any suggestions?

XML Data Rendering Problem
Okay guys, basically i am attaching a movie dynamically with the attachmovie method like so:




Code:
for(var y = 0; y < rowSize; y++) {
for(var x = 0; x < colSize; x++) {
attachMovie("box", "box" + count, count);
var path = _root["box" + count];
count++;
path.id = count;
path.img = photos[count-1];
path.con.scaleTo(30,0,"linear");





okay thats my for loop, pretty nifty and powerful script for a beginner like myself, now for each attachmovie they have a Event handler, rollover,rollout, but, on the release event holder I want it to load in some XML like so:



Code:
path.onRelease = path.onReleaseOutside = function(){

//alot of my nifty code that will be skipped for elongated post purposes

//but here is where im getting a error

this.attachMovie("info","info"+this.count,12);
_global.work = this["info"+this.count];
this.box.alphaTo(0,0);
work._x = 600;
work._y = 40;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("info.xml");
function loadXML(loaded) {
if (loaded) {
for(var j = 0; j<xmlData.childNodes.length; j++){
var typ = (xmlData.childNodes[j].attributes.typ);
var prog = (xmlData.childNodes[j].attributes.program);
var desc = (xmlData.childNodes[j].attributes.desc);
work.type_txt.text = typ;
work.program_txt.text = prog;
work.desc_txt.text = desc;
trace("file is loaded");



I thought at first having the XML declared in the loop does make it just loop through 15 times ( length of my nodes) and just display the last XML item, but when i declare it before it, it does NOTHING !!!!!!!!!! it doesnt even display a damn thing, soon as i put it within my loop it displayed atleast something, can anyone help me please ?

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

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