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




Performance When Scrolling Very Wide Shapes



Hi,

i'm trying to visualize the waveform of mp3 files, which i've already accomplished. The only thing i'm struggling right now is performance.

I'm dealing with quite large soundfiles, so the visualized waveform
needs to be scrollable.

My first approach was loading the audiodata into an array, and only draw
the parts that need to be visible in the viewport.

However, as the waveform needs to scroll through the viewport as the mp3 is playing, this was hitting the cpu real hard cause the visible part of the waveform needs to be rendered every 10-20 ms or so.

That's why i thought i simply draw the whole waveform once, and use the scrollRect property of the Shape object for scrolling, which i implemented like this:


Code:
wave.graphics.clear();
wave.graphics.lineStyle(1,0x000000,1);
wave.cacheAsBitmap = true;
wave.scrollRect = new Rectangle(0,0,this.parent.width, 180);

var x : Number = 0;

while (x < data.length) {

wave.graphics.moveTo(x,middle);
wave.graphics.lineTo(x, middle-(data[x]*middle) );
wave.graphics.moveTo(x, middle);
wave.graphics.lineTo(x, data[x]*middle+middle);
x++;

}
When i scroll through the waveform using this code, the cpu is hitting the 100%.

The width of the shape in my testcase is 9200 pixels.

Is this possibly to big, hence the bad performance ?


thanks for your help !



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 06-12-2008, 01:54 PM


View Complete Forum Thread with Replies

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

Repeat Scrolling WIDE Image -- Too Wide?
Creating this effect -- tangosol.com

Have done the repeated scrolling image numerous times but never with an image so large that its goes off the 'grey workspace'.

So I attempted to do this set up all the images into a MC and put the AS onto it to constanly add 1 to .x. I just will not work completely because the MC goes out of the 'grey workspace' and starts itself over too early.

The link above has to be easily have a wider MC than mine, so how did they get this to work?

Thanks for the help.

.fla link

Performance Problem Rendering 30.000 Shapes
Hi guys,

I'm developing an app which has to show over 30.000 shape objects on screen.
All shapes are like rectangles and the final result seems a huge code bar.

To create all shapes the app takes about 10 seconds. After this creation phase, begins the process of showing that objects on screen. This process is scheduled by a timer which triggers the function responsable of adding childs and update screen via updateAfterEvent. 30.000 shapes are broken into segments of shapes. The number of shapes included in each segment is fixed by "pasoMums" parameter.
Rendering process works fine with first segments of shapes. For example, it renders pasoMums shapes, then the function is trigered again and it adds to the screen another segment of pasoMums shapes, and so on. Each render takes about 0.5 seconds.
The problem is that performance goes lower and lower after a number of iterations. It takes TOO MUCH time to render. Why first shape rendering phases works fast and after some of them, that rendering process works slow ? How can it be solved ?

Her is the code:


Code:
// ...
// Planificación de displaying
// Contadores
var mumInicial:uint = 0;
var mumFinal:uint = totalMums;
var pasoMum:uint = 5;
var mumActual:uint = mumInicial;
var mumFinalParcial:uint = mumActual + pasoMum;

stage.frameRate = 1;

var timer:Timer = new Timer( 50, 0 );
timer.start();
timer.addEventListener( TimerEvent.TIMER, timerListener );

function timerListener( e:TimerEvent ):void {

for( mumActual; mumActual < mumFinalParcial; mumActual++ ) {

canvas.addChild( mums[mumActual].getMumShape() );
}

trace( mumActual );

if( mumActual < mumFinal ) {

mumFinalParcial = mumActual + pasoMum;
if( mumFinalParcial > mumFinal ) {

mumFinalParcial = mumFinal;
}
}
else { // mumActual = mumFinal

// Detener Timer
timer.stop();

// Liberar variables y objetos innecesarios
mumInicial = 0;
mumFinal = 0;
pasoMum = 0;
mumActual = 0;
mumFinalParcial = 0;
}

addChild( canvas );
e.updateAfterEvent();
}
// ...
Thanks by interest !

Performance Problem Rendering 30.000 Shapes
Hi guys,

I'm developing an app which has to show over 30.000 shape objects on screen.
All shapes are like rectangles and the final result seems a huge code bar.

To create all shapes the app takes about 10 seconds. After this creation phase, begins the process of showing that objects on screen. This process is scheduled by a timer which triggers the function responsable of adding childs and update screen via updateAfterEvent. 30.000 shapes are broken into segments of shapes. The number of shapes included in each segment is fixed by "pasoMums" parameter.
Rendering process works fine with first segments of shapes. For example, it renders pasoMums shapes, then the function is trigered again and it adds to the screen another segment of pasoMums shapes, and so on. Each render takes about 0.5 seconds.
The problem is that performance goes lower and lower after a number of iterations. It takes TOO MUCH time to render. Why first shape rendering phases works fast and after some of them, that rendering process works slow ? How can it be solved ?

Her is the code:


Code:
// ...
// Planificación de displaying
// Contadores
var mumInicial:uint = 0;
var mumFinal:uint = totalMums;
var pasoMum:uint = 5;
var mumActual:uint = mumInicial;
var mumFinalParcial:uint = mumActual + pasoMum;

stage.frameRate = 1;

var timer:Timer = new Timer( 50, 0 );
timer.start();
timer.addEventListener( TimerEvent.TIMER, timerListener );

function timerListener( e:TimerEvent ):void {

for( mumActual; mumActual < mumFinalParcial; mumActual++ ) {

canvas.addChild( mums[mumActual].getMumShape() );
}

trace( mumActual );

if( mumActual < mumFinal ) {

mumFinalParcial = mumActual + pasoMum;
if( mumFinalParcial > mumFinal ) {

mumFinalParcial = mumFinal;
}
}
else { // mumActual = mumFinal

// Detener Timer
timer.stop();

// Liberar variables y objetos innecesarios
mumInicial = 0;
mumFinal = 0;
pasoMum = 0;
mumActual = 0;
mumFinalParcial = 0;
}

addChild( canvas );
e.updateAfterEvent();
}
// ...
Thanks by interest !

Scrolling The Wide Open World
I have been trying for quite some time to learn how to scroll the world. But i cant get the yscroll to work I use _root._x -= _root.hero.speed; But the y scroll is messed up.

So does anyone know of a code to keep the hero in center screen without any lag?

Please dont point me to ponytail or whatever his/her name is TILE Based game it does not help me.

[F8] Scrolling A Really Wide Movie Clip
I am creating a timeline using Flash. I put a bunch of small movie clips side by side in a larger movie clip and then I'm scrolling that under a mask. However, the timeline is covering 75 years and 100 events. The final width of the movie clip to be scrolled is 25672.2 pixels. It looks fine when I'm developing, but when I view the swf output there are random white lines across parts of the movie clip. Anyone know what is causing this and better yet, how to fix it? I'm using Flash 8, AS2.

You can see an example of the file here

Thanks!

Scrolling A Really Wide Picture (timeline)
I am making a timeline. I have made it really long, the scene is in the middle, and I want to be able to scroll the timeline both directions, left and right. I have made to buttons, and have made a code that functions. But I believe I need a test that stops the process whenever the user release (let go of) the button. Now it seems like the process is working even when the button is released. It works fine when the user comes to the end of the timeline, then the process stops. But if the user let go of the button in the middle of the timeline, the process is running anyway.
Here is the code ("frem" means forward, "tilbake" means backwards):

stop();

Frem_btn.onPress = function() {
speed = 3;
_root.Tallinjen_mc.onEnterFrame = function() {
trace ("this._x er: " + this._x);
if (this._x > -2180) {
this._x -= _root.speed;
}
else if (this._x < -2180){
stop();
}
Frem_btn.onRelease = function() {
_root.speed = 0;
}
}
}

Tilbake_btn.onPress = function() {
speed = 3;
_root.Tallinjen_mc.onEnterFrame = function() {
if (this._x > -2180 && this._x < 3499) {
this._x += _root.speed;
Tilbake_btn.onRelease = function() {
_root.speed = 0;
stop();
}
}
else if (this._x > 3500){
stop();
}
Tilbake_btn.onRelease = function() {
_root.speed = 0;
stop();
}
}
}

Very Wide Scrolling Timeline- No Space
Morning Team! We are making this funky timeline that's scrollable similar to this site: http://www.doncesar.com/timeline/Flash/
but we can only build the scene to about 600 left of right and we need much more horizontal space for the scrollable movieclip. Any ideas?

Aw, cummon! No one has any ideas...?

[F8] Scrolling Slideshow _x CPU Performance
Hi guys - i have been banging my head on this one. I have a slide show which dynamically loads and resizes images using _xscale/_yscale and then loads them into a "holder" movie clip.

Once the images are loaded, the slide show starts by moving the holder clip using _x coordinates. problem is, seems to use a ton of CPU when running. around 40% on my dual core macbook.

Has anyone run into this? is there something different i should be doing? Is there a better way to resize the images?

really appreciate your help!

Performance Of Scrolling A Large Movieclip
This is my setup. I have a parent swf that is essentially a picture frame. A png with a hole in the middle. The child swf contains in the root a movieclip which I will refer to as the Paralaxer, which contains a movieclip called the container, which in turn contain from 1-4 very large (horizontally) movieclips which are my background clips. The background clips will mostly contain only a single image (usually png, sometimes jpg if they are rectangular), but some contain other moviclips with animation, interaction, etc.

The way my paralaxer class works is (I have attached it), depending on where the mouse is, these background clips will scroll at different speeds showing a panoramic view of the backgrounds. The backgrounds move at different speeds to create the effect of depth (paralaxing).

So what I could use help with, is optimizing the scrolling performance. Right now, I get about 22-25 fps on my windows machine in a browser (2.8 ghz with 2 gb ram), and I get anywhere from 21-30 fps on my mac machine in a browser (2.33 ghz core 2 with 2 gb ram). Its not exactly terrible performance, but sometimes it looks very choppy and overall kind of sloppy. I would love to know a suggestion of a speed I should be running my timer at (the timer handler checks the mouse position and moves my clips accordingly, I am running the movie at 30 fps). I would also love to know any other settings which I might be overlooking that would improve performance. (Cache as bitmap seems to slow everything down).

One thing I have noticed is that on my mac, it performs very well (30 fps) if there is a complex movieclip on the screen that is being scrolled, and poorly if there is no complicated movieclip. That is weird to me, though I have a suspicion it has something to do with slowing the computer down to meet the timer interval or something to that effect.

So that is it. Any help would be GREATLY appreciated. Thank you much!

Jonathan







Attach Code

package scenes {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import caurina.transitions.Tweener;
import flash.utils.Timer;
//import FPSMeter;

public class Paralaxer extends Sprite {
private var sceneWidth:Number = 900;
private var bg:Array;
private var buffers:Array;
private var frameCount:Number = 0;
private var paralaxFactor:Array = [1,.85,.7,.55,.4]
private var tolerance:Number = 300;
private var movement:Number = 7;
private var easeFactor:Number = .2;
private var moveX:Number;
private var pTimer:Timer;
private var newX:Number;
private var moving:Boolean;
private var foregroundWidth:Number;
//private var fpsMeter:FPSMeter;
private var lastSpeed:Number;
private var lastXs:Array;

public function Paralaxer(){
//fpsMeter = new FPSMeter();
//this.addChild(this.fpsMeter);

//initialize background layers

bg = new Array();
buffers = new Array();
lastXs = new Array();
var index:Number = 1;
while(MovieClip(this.getChildByName("container")).getChildByName("bg"+index)){
bg.push(MovieClip(this.getChildByName("container")).getChildByName("bg"+index));

buffers.push(bg[index-1].x); //keep track of the initial X values for calculating relative positions

if (index > 1) //only cache if its not the first cause the first usually animates
MovieClip(this.getChildByName("container")).getChildByName("bg"+index).cacheAsBitmap = true;
index += 1;
}

lastSpeed = 0;

if (bg[0].bg) //some background clips run over the edges, so they have a child clip called "bg" to keep track of actual boundaries
foregroundWidth = bg[0].bg.width;
else if (bg[0])
foregroundWidth = bg[0].width;
else
foregroundWidth = 0;

//setup the timer for tracking movement
pTimer = new Timer(33.3,0);
pTimer.addEventListener("timer", run);

}
public function disable(){
pTimer.stop();
}
public function enable(){
pTimer.start();
}
public function setMovement(m:Number){
movement = m;
}

//this will paralax to a specific coordinate
public function setToForegroundCoordinate(_x:Number){
disable();

var newX0:Number;

//check to see if its within boundaries, if not set it to the corresponding edge
if (_x - sceneWidth/2 < 0)
newX0 = 0;
else if (_x - sceneWidth/2 > foregroundWidth - sceneWidth)
newX0 = foregroundWidth - sceneWidth;
else
newX0 = _x-sceneWidth/2 + buffers[0];

//tween all backgrounds to proper coordinates
for (var i:Number = 0; i < bg.length; i++){
var msx:Number = this.container.mouseX - tolerance;
var newX:Number = 0-(newX0)*paralaxFactor[i]+buffers[i]*paralaxFactor[i];
Tweener.removeTweens(bg[i]);
Tweener.addTween(bg[i],{x:newX,time:1,transition:"easeInOutSine"});
}
}

private function run(e:Event){
var mousex:Number = this.stage.mouseX - 50;

if ((mousex < tolerance) && (mousex > 0)){ // if the mouse is on the left side
if (bg[0].x+movement < 0){ //still room to move at proper speed
moveX = movement*((tolerance-mousex)/tolerance); //calculates movement based on mouse position

if (moveX != lastSpeed){//if the speed has changed, tween to the new speed
moveX = lastSpeed+(moveX - lastSpeed)*easeFactor;
lastSpeed = moveX;
}
} else //not enough room, move to the edge
moveX = 0-bg[0].x;


if (moveX > 0){ // if there is movement
newX = bg[0].x = Math.ceil(bg[0].x + moveX); //calculate the movement of the bg[0] (the foreground]
for (var i:Number = 1; i < bg.length; i++){ //calculate the movement of each bg based on bg[0]
bg[i].x = buffers[i] + (newX - buffers[0])*paralaxFactor[i];
}
} else { //set movement to 0
moveX = lastSpeed = 0;
}
} else if ((mousex > this.sceneWidth-tolerance) && (mousex < this.sceneWidth)){ // if the mouse is on the right side
if (bg[0].x-movement > 0 - (foregroundWidth-sceneWidth)){
moveX = movement*(((sceneWidth-tolerance)-mousex)/tolerance);
if (moveX != lastSpeed){
moveX = lastSpeed+(moveX - lastSpeed)*easeFactor;
lastSpeed = moveX;
}
} else
moveX = foregroundWidth - sceneWidth + bg[0].x;

//trace("Movex " + moveX);
if (moveX < 0){
newX = bg[0].x = Math.ceil(bg[0].x + moveX);
for (i = 1; i < bg.length; i++){
bg[i].x = buffers[i] + (newX - buffers[0])*paralaxFactor[i];

}
} else {
moveX = lastSpeed = 0;
}
} else if (Math.abs(lastSpeed) > 0){//ease out to stop movement if mouse is in the middle
moveX = lastSpeed+(0-lastSpeed)*easeFactor;
if (Math.abs(moveX) > .05){
lastSpeed = moveX;
newX = bg[0].x = bg[0].x + moveX;
for (i = 1; i < bg.length; i++){
bg[i].x = buffers[i] + (newX - buffers[0])*paralaxFactor[i];
}
} else {
lastSpeed = 0;
}

}

}
}

}

How To: Weak Performance In Large Bitmap Scrolling
Hi everyone,

I'm new to this forum and I hope I post this question in the right place. If not, please forgive

I'm working on a project that incorporates large bitmaps (i.e. externally loaded JPG images) that are scrolled by the use of custom tweening classes. Overall dimensions of scrolled background are circa 7496 x 700 px.

The problem is that the performance is "a bit" weak. There are some "jerks" when the background scrolls. I've launched it on few powerful workstations with the same result. I don't know if it's the problem with my methods, flash player or what.

I've sliced background so that it consists of about 20 separate sprites with JPGs loaded inside but it didn't improve performance much.

Are there any known or less known methods, tricks, workarounds, magic spells, freeware or commercial that could help me achieve smooth JPG background scrolling?

Thank you in advance for any help,

Greetings

Increasing Performance Of Dynamic Text Field Scrolling?
I am using a dynamic text box to receive data and append it to the end of what is already there. I am using the code:

textBox += newText;
textBox.scroll = textBox.maxscroll;

This works but I get an annoying "jump" in the text box as it adds the text and then scrolls to the end. If anyone has with this and can suggest an alternative to minimize the jump or use a different method altogether, I would appreciate your suggestions.

Please HELP - Movie Too Wide
I have a scrolling navigation thing that shows my portfolio its in a 500 wide box but the movie itself it about 3 - 4 times that wide. The very last image (snap shot of a webpage) doesnt display. I've tried new images and nothing seems to work. I've moved over the image to the left of it so that it is half way in the last image space and it appears until it hits a certain point. I displays a grey or white space.... Are there any limits as to how wide your movie can be???? Please help! I have to have this project done in 2 hours for a Show in the area....

Wide Screen
How do you make so the flash fills the sides of screen so it dont are scrollable???

//Fredrik

100% High And Wide?
I'm trying to get my flash movie to be the size of the browser window... but using 100% high and 100% wide in the <embed> tag doesn't work in IE... any help's appreciated!

Thanks

Can't Import A 1 Pixel Wide Gif
I've got a gif, 1px wide, 400px high. If I try and import as a gif, I get an error message : "bitmap has invalid dimensions"

I can Import as a png, but this seems to corrupt the fla somehow and causes it to crash a little while later.

Has anyone encountered this before?

Problem With Wide Screen
hi,

the size of my flash movie is currently 800 X 600. my client wants the movie to played on a plasma tv which i think is a wide screen(i.e. 16:9 aspect ratio).

but i don't know what will be screen resolution in correspondence to 800 X 600 so that i can modify my movie according to that.

whether the same movie will play as it is on a wide screen without losing any of the content area.

please help..

cheers
lamus

Set Wide To MX Flash Scrollbar
Need advice how to edit MX Flash scrollbar at list seting wide and maybe colour

Thank you in advance!

World Wide Wait
Is 7mb too large a movie to load in one hit?

I have 28mb connection and it loads in a couple seconds.

I have had some people say it takes too long to load...

So what is the ideal size at this point in time.??? Is 7mb too big???

Too Wide Image Is Not Shown
I'm making a panorama viewer in Flash where the image is loaded using the Loader-object and placed into a movieclip on the timeline. The problem is the image's width, 7 510 pixels, which is the reason Flash won't display it. I tried to load a 2 000 pixel wide image which worked fine.

Is there a solution to get Flash display wide images or should I cut the image into smaller pieces and join the next one to the end of the previous one when it's about to scroll out of the screen?

Wide Screen Format...HELP
Hi folks,

I have a real problem here. I designed a presentation for a client with the dimensions 800x600. However they have now told me that they want to present it on a wide screen plasma tv which means it needs to be widescreen dimensions. Is any there any easy way to resixe4 without having to redo the whole piece? What would my new dimensions be if i just need to lengthen the width?

Any help would be greatly appreciated!!!!!

Thanks Rach

Wide Angle Lens
Im a total noob in Flash. I have absolutely no expeirence with Actionscript. Im only an animator. Some day i will sit down and learn it, but for now.. i dont.

Anyways, is there some way of using code to stretch or skew the screen making it look like a wide angle lens.

Wide angle lenses are used for music videos, and often make the results skewed, centering around one point.

If you could help a noob, that would be great.

Wide Screen Help? Im Stuck
Hi,

Can anyone offer some advice? I have been working on my animation project in flash to the ratio of 550px over 400px and have only just realized it has to be wide screen format of 1024 px over 768 px and now i don't know what to do? will i have to start all over again and stretch out every key? I have tried to see what it looks like with one key and it looks stretched and wrong?! what is the purpose of using wide screen and do you think it would be better if i just kept it at 550px over 400px? its for a university presentation.

Thankyou for your time,

Lauren

X-tra Wide Horiz Scroll Q
I want a continuous scroll of graphics 35,000 pixels wide. I'm following instructions that advise to duplicate the set and combine as a symbol (now 70k pixels wide). Then place a second instance of the symbol later on, on the timeline.

It doesn’t work as simply with my extra-wide symbol. My attempts either don't move or prematurely restarts. And I don't understand the concept enough to know how to compensate.

Here is a simple (290 pixels wide) example of what I want to do:
http://coronasdomain.net/edu/q/hscroll.htm

Any advice greatly appreciated. - Please let me know if I am unclear.

Thanks,
Corona






























Edited: 04/28/2008 at 11:08:31 AM by GrnSpdr

As Wide And Long As The Page
hey
I've been trying to recreate the effect on this page
http://www.ianwharton.com/flashindex.html
change the height of the page and notice how it's content moves.

Also curious how you make a .swf placed onto a html page be as wide as the page, and let the flash file know how wide it is being displayed so the content does not stretch out

Thanks
//VoS

Help With A Movieclip Loading To Wide Please
Hi I have a container_ mc that is 560x320wide. I have a "About Us" button beside it with this code in my actionscript file:

_root.about_btn.onRelease = function()
{
_root.loader_mc._visible = true;
emcl.loadClip("about1.swf",container_mc);

}

The about1.swf is a 560x320 wide swf movie with pictures and images in it. When I preview my main movie and load "about us" page the about1 swf is stretched out much wider than 560px. It is about 700px wide and goes off the page.

Any ideas why my swf file is too wide?

Thanks,

Matt.

Site Wide Music...
I am using an MP3 on my site and I need it not to restart every time someone navigates through the site. I am using a custom control, and would rather not use frames. Is there a way to play music seamlessly site-wide in Flash MX?

Thanks,
CP

New Wide Group...questions About Their Soundtrack
http://64.78.7.239/ie/index_home.htm

first of all great site, but I got some questions.

#1. How do they load so quickly a 50sec. loop with such great quality.

#2. From the home page when u click any button the sound jumps to a more upbeat part of the song, but it does very smoothly, regardless of when you click it, they had the same thing on the old website.

Are they two diffent files overlapped or same song? How do they do it????


thanks

Wide Movie Clips And Images
I have about 8 images lined up side by side in a movie clip, which makes it about 4400 px wide, but when i export it, and pan the mc to the left or right, the images on the extreme ends of the movie clip upon publishing appear as the first vertical columns of pixels repeated over the length of the image. Does anyone know why this is, or how I might be able to fix the problem?

dave

Output Window Is A Mile Wide On Mac
Hi Folks,

When some of my students use the Macintosh version of Flash, they occasionally get into a situation where the output window is a mile long and can't be easily resized.

Does anyone know

A) why this occurs?

B) how to fix it?

- Jim

How To Scroll A Wide MC Using A Scrollbar & Buttons Too
Can anyone point me to a tutorial that can teach me how to place an mc on the stage and be abl eto scroll it using a dragable bar and also buttons if the user chooser they prefer...?

Manythanks...I seem to be able to find tutorials for one or the other, and due to the way each is achieved, its impossible to combine methods...

thanks in advance

Cheska

54,000,000px-wide Vector Import?
Hi folks,

This is screwing me up. I am importing a vector image of a map from Illustrator to the stage and then enclosing it in a movie clip that I can scale using a UI to allow for zoom and pan of the map. When I look at the dimensions of the clip in the property inspector, it is reported as 1155px wide by 721px tall. This is as it should be, and as it visually appears to be.

The problem is when I trace the dimensions of the map in ActionScript to try to see what's going on here, the width and height are said to be

map_mc._width is 54183241.2
map_mc._h is 60923801.55

while visually the thing appears in the preview window at 1155X721. But for some reason Flash is giving these crazy numbers at runtime. Does anyone have any insight into how this could be? There's no AS for me to have screwed up--just the trace statement that gives these wonky dimensions.

So I'm thinking maybe it has something to do with the import, but I've done this sort of thing before, with no problems, and I tried both file>import and just copying and pasting the line art from the clipboard into Flash (which gives different _width and _height props by 10 million px or so -- even though it takes up the same space on the stage and relative to the 1155px-wide BG art).

I also traced the xscale and yscale properties, to make sure there wasn't some weird scaling thing happening, but they both are at 100. So Flash seems to really think that the art is 60 million pixels tall, even though it displays it in the space of 721px. (?!?!?!)

Oh, also, the dimensions are messed up like this whether or not I do enclose it in the clip. If I don't enclose it and just place it in the root timeline, then the movie itself reads at these crazy numbers when I load it into the UI movie--even while the art reads 1155X721 in the property inspector.

Any thoughts would be greatly appreciated. I'm stumped.

Application Wide Embedded Fonts
Hi:

I have just learned how to embed fonts in Flex from a swf (incredibly weird process in something coming from Adobe…)

Now I am wondering if the "Embed" lines must be present in all the classes that use those fonts or if there is a way to import them once to use them everywhere in the final application.

Regards:
Jeremy

Embedded Font Twice As Wide In Runtime Only
Hi there. Here's the swf..

http://www.kyklos.org/donor_flash.html

The text that is displayed in the center (dynamic) is in Lithos Light. It looks normal whenever I'm editing the fla, but as soon as I author it, the text looks like this! It's twice as wide as it is tall. (or as it should be). Why oh why would this be happening? I've embedded the font correctly...here's the only code in the entire program.


Code:
myTextFormat = new TextFormat();
myTextFormat.align = "center";
myTextFormat.font = "lithos light";
myTextFormat.size = 17;
myTextFormat.color = 000000;

inscription.inscription.setTextFormat(myTextFormat);
inscription.inscription.embedFonts = true;

change=function(myObj){
wait
inscription.inscription.htmlText=myObj.getSelectedItem().data;
};
nameBox.setChangeHandler("change");
The linkage for "lithos light" is set to export for actionscript...

Can anyone specualate?

Radio Button Labels Not Wide Enough
I am using True and False and Multiple Choice Components to make a quiz, but I can't make the labels long enough to fit my text that I want to appear. Any suggestions???

Flash And Wide-gamut Monitors
hello, I'm French, sorry if I write bad English.
there is a big problem flash when displayed on a monitors "wide gamut".
for example, a photo gallery directed with flash in Adobe Lightroom, colors are saturated, especially red.
the problem appears in Internet Explorer, this is normal, but also in Firefox with enabled the management of color profiles.

it seems that the Adobe Flash player is unable to display exactly colors on monitors types wide-gamut, despite the calibration of the display and management profiles. ccc in Firefox.

Excuse me for my bad English ;)

What Does Everyone Think About The Wide Variety Of 3rd Party Extensions Available For
If you visit http://www.macromedia.com/software/flash/extensions/ you can see a list of the latest extensions.

expensive? worth it? what does everyone think?

Xml Photo Gallery + Thumbs... Wide Different
Hi, I used http://www.kirupa.com/developer/mx2004/thumbnails.htm
but, how for used thumbs with wide different?..

thanks in advance!

How To Giv URL To A 232x300px Wide Movie Clip?
I made a movie clip consisting of many other clips. Its 232px wide & 300px high. Actually its an ad. Somebody plz guide me how can make the whole movie a link?
Urgent, plz help...

Need To Make A Movieclip 6000px Wide...
Hello,

I am currently working on my Graduating project, I am making a timeline for history education. Now I need to make a movieclip 6000px in width (it spans a time period from -3000 untill 2008 with symbols that represent things that happend in history)... And that's not possible.

Any suggestions on how to fix that problem?

- Wahnsinn

What Does Everyone Think About The Wide Variety Of 3rd Party Extensions Available For
If you visit http://www.macromedia.com/software/flash/extensions/ you can see a list of the latest extensions.

expensive? worth it? what does everyone think?

FlashMX Won't Let Me Import A 1px Wide Image
I have been trying to import a .png that has dimensions 1/24 pixels. The import seems to work but then clicking the item in the library crashes flash.

Anyone else experienced this?

Any solutions?

Cheers, James.

How To Implement An Application-wide Timeout Script?
I've been looking everywhere for information on this...

How can I create a timeout script for an application where if the user doesn't interact in any way for "x" amount of time, it starts over from the beginning?

If anyone can point me in the right direction here, it'd be great.

Dust

Wide Movie Clip On Stage And Overlaps
I have a world map graphic (double in-line) which runs over a sphere to give the impression of a rotating globe. This all works great. This is converted to a movie clip. When the clip is dropped on a bigger stage so that globe forms only part of the whole movie, the long horizontal map now appears on the stage instead of just in the bounds of the movie clip. This can be masked by blanking with slaps of the main stage background but this seems very crude. Short of multi-slicing the world map graphic, how else can the globe wrap-around be achieved? All contributions greatly received. TIA guys.

Help: Moving Wide Movie Clips Across The Stage
Hi, Flash MX user here:

I'm working on a stage that is 700 X 400. I have a movie clip that exceeds the stage's width (it's 3000 pixels in width). I want to make my movie clip draggable, so that the entire clip is viewed on stage while moving horizontally from left to right.

I want to begin moving right when my mouse's X position is at 0 and I want it to move back left once it reaches -3000 on the stage.

This is the code I came up with so far, which I'm sure it has some mistakes. Any help would be more than appreciated.


PHP Code:



onClipEvent (enterFrame) {
  if (_root.movieClip._x < 0) {
    _root.movieClip._x = _x - 1;
  }
  if (_root.movieClip._x > -3000) {
    _root.movieClip._x = _x + 1;
  }
}

Site-wide Flash Sound Mute
Hi,

I'm using frames and calling pages into the main-frame. Each summoned page has it's own embedded Flash audio file. I would like to use a Flash (or other) controller in the left-frame menu to either mute or restore sound for all the files that are called up in the main frame.

Tried setting a PHP cookie but GET and POST methods no good. Is there a way to use filename.setVolume(0);? Should I be using Local_Connection to ask each sound file to check on status in Controller movie? Would they be calling a function in the controller movie that, in turn, calls the mute function in the sound movie?

Hours into this already and deadline looms. Any help appreciated.

Nigel

How To Create Vocal Sounds Like Wide Group Did ?
Hi!

I need to know how can we create vocal sounds like Wide Group did in their Intro ?? Any special software to use or any special effects which boost our recorded sound to that level ??


Any Idea, Any Suggestions ???



Thanks.

Can I Scroll A 80000px Wide Png In Flash? Plus A CHALLENGE For You (or Me, Lol)...
I don't think this is possible, I guess I'm looking for confirmation of that as much as anything. I think I'm realizing that I can't even create a PNG this wide within Fireworks (awaiting for clairification of that also...?...).


My client wants a list of their distrubutors addresses to be scrollable accross the screen. But there are so many, that I figured out the image (and therefore my future MC) would be about 80000 pixels wide!

I guess I am going to have to find an alternative.Of course the project was due yesterday.

Unfortunately I dont know how to write actionscript, but I would imagine it might be possible to do something like the follwoing:

Create 3 placeholder mc's that are always alligned immediately next to one another. So the far right of the left mc is next to the far left of the middle mc, and the far right mc's left is right next to the middle mc's far right.This should always stay this way and happen dynamically according to whatever the loaded mc's lengths are.

I feel like such a dimwit for having to explain it all in such poor terms but to continue...

I would have already broken down my original large PNG into sections by state (where so far the state with most distributors would create a png 6000 pixels wide).

With actionscript, I could dynamically load the correct PNG into the far left and far right mc placeholders (so that they flow in order of united states alphabetically).

Which mc's to be loaded and when would be determined by whatever the middle mc is (affecting a variable?) and where the farthest right point of the far right mc placeholder (which would have content by this time obviously) is or the farthest left point of the left mc placeholder is......

But what about th emiddle mc? Hmmm...That has to change too....my brain is mush.

Does this sound like logical thinking or that of a delusional nutcase????

Unfortunately my AS skills leave so much to be desired that this seems like a fun project for me to tackle if I didnt have a million other deadlines especially for this client.Plus it would probably take me a couple of months (no lie).

Is anyone able to help me out here to:

a) confirm that I can't scroll an 80000pixel wide image
b) confirm that the above alternative solution is a doable and realistic workaround
c) Offer a waaay better alternative pleeease

Any help with either of those 3 thingg woul dbe greatly appreciated,

thanks in advance

Cheska

(ps) I know that in an ideal world I would have a database and know arrays and variables and components, that would enable me to solve this problem much more easily, but alas i don't n:

Maximum Resolution For Flash Is 2880px Wide?
Hi all,

is there anyway I can expand this?

[CS3] Why Does My Font Formatting Keep CHANGING Site-wide?
Hello.

I'm new to flash. I purchased a flash-site template to get me started. This template has a LOT of static text fields on 9 different pages, that primarily use the "Tahoma" font with "Use Device Fonts" as the factory default setting.

SOMEHOW the font formatting keeps CHANGING from "Use Device Fonts" to "Anti-alias for animation" SITE-WIDE! This makes my font clarity much harder to read. I understand that I COULD elect to set my fonts to "Anti-Alias for readability" as well, but I'm wanting to leave them set at "Use Device Fonts" and the selected font as "Tahoma". I have tahoma installed on my computer, so I don't understand why this setting keeps resetting to "Anti-Alias for animation". I also don't even understand HOW it can make this change on a bunch of seperate static text fields, site-wide, or HOW I can switch it back site-wide without having to individually edit each individual block of text.

Please help.

Thanks!
Jeff

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