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




Publishing In Flash 7 Broke My Preloader HELP



Hey Guys,

I'm a pretty basic flash designer and am learning as I go. I created a whole site in mx 2004 and published for Flash player 6. Recently, I wanted to use the flv streaming cababilities in the Flash 7 player so I switched to publish for that. The problem is that it seemed to break my preloader. As in, it flashes on the screen then goes to my first scene which stays blank because its not loaded. I have a base swf that is very small, then I use loadMovie() to call my main swf which has a simple preloader in a movie clip that uses this code:

onClipEvent (enterFrame) {
total = Math.round(_parent.getBytesTotal());
loading = Math.round(_parent.getBytesLoaded());
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>=99) {
_level1.gotoAndStop(2)
}
}


If I switch back to publish in flash 6 it works again. Thanks for any help!!! It's driving me nuts...

Marc



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-06-2005, 09:55 AM


View Complete Forum Thread with Replies

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

Publishing In Flash 7 Broke My Preloader HELP
Hey Guys,

I'm a pretty basic flash designer and am learning as I go. I created a whole site in mx 2004 and published for Flash player 6. Recently, I wanted to use the flv streaming cababilities in the Flash 7 player so I switched to publish for that. The problem is that it seemed to break my preloader. As in, it flashes on the screen then goes to my first scene which stays blank because its not loaded. I have a base swf that is very small, then I use loadMovie() to call my main swf which has a simple preloader in a movie clip that uses this code:

onClipEvent (enterFrame) {
total = Math.round(_parent.getBytesTotal());
loading = Math.round(_parent.getBytesLoaded());
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>=99) {
_level1.gotoAndStop(2)
}
}


If I switch back to publish in flash 6 it works again. Thanks for any help!!! It's driving me nuts...

Marc

Preloader Broke My Swf
When u click the "consume" button on my website it externally loads the consume.swf I placed a preloader in the consume.swf (for obvious reasons)
however when you click the button it loads the swf fine..If you click it again..the swf loads but automatically freezes after 2 secs. ANyone else have this problem?

I Broke Flash
ok, so I built a website for my company. its been up for a few months and I just added a new company to the portfolio, exactly like I did the other ones (trust me, I checked it at least 5 times and then rebuilt the swf that gets imported) Anyway, when you visit the site (at least in firefox) it works fine until you click on the new portfolio link.

-www.smithworksdesign.com - click on red button at top, then click 3rd box in top row of thumbnails

it looks kind of neat, but its wrong and then when you click on any of the other portfolio buttons, it messes those images up also. instead of showing the animation of the jpg it just blurs into a mess of color. If you click on any of the portfolio buttons before the 3rd button, everything works perfect. the portfolio section

I have no clue. I think I broke flash. any ideas?

Flash MX Broke My File
I created an interactive campus map with the trial version of flash 5. It ran out, but I was finished, and it worked fine (except for a button bleed through problem that I posted here but no one answered...). Well, my employer ponied up the money for studio mx. I opened the .fla file, pressed <ctrl>+<enter>, and I got this:

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 8: Expected a field name after '.' operator.
_root.names.titleText = _root.default;

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 9: Unexpected '}' encountered
}

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 8: Expected a field name after '.' operator.
_root.names.titleText = _root.default;

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 9: Unexpected '}' encountered
}

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 8: Expected a field name after '.' operator.
_root.names.titleText = _root.default;

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 9: Unexpected '}' encountered
}

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 8: Expected a field name after '.' operator.
_root.names.titleText = _root.default;

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 9: Unexpected '}' encountered
}

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 8: Expected a field name after '.' operator.
_root.names.titleText = _root.default;

Symbol=Menu, Layer=Name Buttons, Frame=20: Line 9: Unexpected '}' encountered
}


Now none of the movie works, as it relies on the buttons that no longer work. I don't know what happened, cause it was working great before I opened it in mx. HELP ME!!!

Flash 9.0 Broke Netscape 7.2
Hi everyone. I saw the previous posts about Flash 9.0 but it did not seem to fit my problem. Sometime over the weekend my Netscape 7.2 decided to crash within a few seconds of logging in to my home page. The error shows a problem with npswf.dll When I looked into the error further (and checked other web sites) the problem seems to point at Flash 9.0. If I remove 9.0 and reopen Netscape, the home page (comcast) opens and will run without crashing but it does not show any of the flash pictures and keeps popping up a login (user selection) box. If I re-install Flash 9.0, the home page comes up normally but after a few seconds, something crashes netscape again. While watching the home page load it looks like the error occurs when a flash object starts to load. Any help with this problem would be greatly appreciated. By the way this is an XP SP2 system with all patches and running Norton 2006 Antivirus. All patches and updates are current.

External Flash Navigation Gone Broke
I am having problems with my menu. It works fine on its own but breaks when imported as an external .swf file into the main .swf.

This can only be a file linking problem.

I dont know flash well enough regards scripting to fix it. My animation is fine. I have had a trouble since Flash went actionscript heavy and removed normal feature which would kindly fill in the gaps. So Annoying coz takes ages to relearn flash meaning im not fortunate enough to be solely a flash designer.

Anyways without goin on. Your help would be appreciated.

Please find the relevant files at this address.

Please feel free to use the flash file for your own purposes but no rip offs please.

http://www.gingermonkeys.com/taster/GM/new/

Flash Player Update Broke My Swf :mad:
Hi,

I recently updated my flash player and my movie has stopped working!!

I get the following errors


ActionScript Code:
ReferenceError: Error #1069: Property setRenderStyle not found on fl.controls.List and there is no default value.
    at MethodInfo-738()

I definitely definitely havnt changed any code that might have of caused this.

I installed the update, went to run my movie, and then bang! No working movie.

Could anyone help me figure out what the hell is going on?

[F8] I Think I Broke Flash 8? (Ctrl+Alt+2 Stopped Working)
Oh my goodness what have I done? A while back I was working on something and suddenly the "center horizontally" and "center vertically" options which I use A LOT just stopped working. Not just the shortcuts (ctrl+alt+2 and ctrl+alt+5) but actually choosing it from the modify>align menu doesn't work either. I've closed Flash and reopened it dozens of times, and my computer has been shut down and restarted and it still has this problem. Did I somehow manage to "turn off" the centering feature? Please help if you can!

UPDATE: Nevermind everybody. It's fine. I did a search and found someone else with the same problem a while ago. I'm okay! Can I delete my own posts? I don't see the option anymore. Kill this thread please.

Flash Site Broke After Uploading To Client, HELP
Last edited by CyberGecko : 2004-10-10 at 02:17.
























Hi there. I've been working a site for a client, and I had enough done to upload it to their server before I go on vacation tomorrow. So tonight I uploaded it, but it only seems to load the background, and not my text boxes in the flash movie. It works fine on my server, I don't know whats wrong with it, but its really annoying.

Here it is on my server: www.g3cko.com/concept.html

and on my clients server: www.feswickproductions.ca/flash/

If anyone has an idea of whats wrong with it, I would really appreciate it! Thanks!!!

Flash Cs4- Flash Compiles Fla, But Broke With No Errors?
I'm using Flash CS4 and flash player 10,0,12,36. My fla compiles completely when i "Test Movie" but it loops as if it didn't compile correctly- AND it gives no output or error messages. I have no idea what could've caused this.

If i change the code to intentionally produce an error, it will then display an error message. My app has an external swf file that it imports if that matters. But like i said it all worked fine just 2 days ago, and i don't think my cat jumped on the keyboard -accidentally deleting anything since there are no error messages. Any ideas? Thank you very much! -b

I Broke It.
I was doing some copying of the top navigation using "copy frames" and "paste frames" between all the pages, now the navigation doesnt work.

I checked frame labels, names, scene names. I dont get it. Please take a look b4 i go bald.

Thanks in advance

I Think I Broke My Swf
This has been a weird problem and ive been putting it off for a while my everything has been working fine in my swf regardless of the output window being litrily filled with warnings and errors .

Up until now its been more annoying than anything else but lately ive been noticing some bizzare behavour such as a simple button refusing to trace when its clicked yes its definitly not my code it ran fine in a new swf and other strange goings on like a back button which gets its destination valus from _root.Destanation refusing to work in the project but working fine in another mc.

So i think now is abut time for a spring clean id like to get all the output errors etc out of the way and solve this genuinly weird behaviour honistly sometimes i think this thing is possed.

so im going to post the error log id like your help in diagnosing it

I think the main problem is me reusing the "button" mcs in other icons because they are just transparent overlays i didnt think it would matter i dont know what the hell the errors are refering to

Offtopic huh its friday the 13th....

I Broke My Zoom...EEK
fixed


thread closed

Ny Button Is Broke,
hey,im using flash 5, i have mad an invisible button and want it to play something on release, the something is the label "fire".
this is the script im using

on (release) {
with(gun fire);{
gotoAndPlay ("fire");
}

wen i check the syntex, this messege comes up

Scene=Scene 1, Layer=button, Frame=1: Line 2: ')' expected
with(gun fire);{

can someone help please.

I Broke The Boards
I'm sorry guys, but could an admin undo what I did?
I put all my code in tags, but for some reason...it didn't like it.
Was it the <> brackets?
The thread is "Will getURL open a new window..."

Thank you!

[F8] I Somehow Broke My Movie
Somehow I managed to break my movie, I dont think I deleted anything important, I just seemed to publish it, saved and exited, then when I came back to work on it later, part of the movie which runs on actionscript no longer worked.
Basically it should scroll a long image horizontally depneding on what button is clicked, however the scrolling no longer functions.

I have a attached a stripped down version of the file without all the graphics, and the photo replaced by some vector boxes.

I Broke My Breakpoint?
So I have been coding away in cs3 making use of breakpoints and without changing any options or anything when i ctrl-alt-enter my code no longer stops on the breakpoints. I have tried putting all my code into new files with no success, I have tried just creating a simple hello world app with a break point with no success, I have downloaded all the updates (i did this after it stopped breaking) with no success.

I am at a loss as to what is going on, any ideas of what to try next?

Mx 2004 (mac) Broke
It simply doesn't work (the preloader, that is). None of the scene commands (this.gotoAndPlay(scene, frame), nextScene, etc) work at all. I have a preloader that, when published from my pc in flash mx 2004, works perfectly.

When I try it from the mac, on the other hand, it breaks and doesn't work at all. This has happened multiple times with other files as well. I've never been able to get a reliable preloader to work from this computer (powebook g4).

WTF?

Does anyone have any ideas what might be causing this stupid malfunction or have any experience with it? It's one of the most frustrating things I've ever come across in flash (and I've come across some frustrating things....)

My Timer Is Broke, Please Help :)
Can someone tell me why my pages fade in the first time through, but then doesnt wait when called again?



Code:
function fadePageIn () {

var fadespeed = 5;

function wait() {

_root.pages.onEnterFrame = function() {
if (_root.pages._alpha<100) {
_root.pages._alpha += fadespeed;
}
}

clearInterval(myTimer);
}

myTimer = setInterval(wait, 2000);

};
Thanks!
Rich

I Broke String.indexof(...)
I load an XML file with one big multiline string being the most important part. I try to use one of my string functions but alas, instead of a normal result like with every single other string I've typed in, that particular one results in an infinite loop.

Analyzing the situation I pinpoint the reason. string.indexof(...) doesn't want to work. Amazingly, instead of a integer result, it returns undefined, despite having a string (containing
,
and other special chars) that apparently contains that character!

The code of the function that enters an infinite loop:

PHP Code:



function stringRemoveInstance(original:String, remove:String):String
{
    var firstFound:Number = original.indexOf(remove);
    trace("original = "+original); //traces the original string
    trace("remove = "+remove); // traces the remove character
    trace("firstFound = "+firstFound); // undefined
    while(firstFound!=-1)
    {
        original = stringRemoveSubstring(original, firstFound,remove.length);
        firstFound = original.indexOf(remove);
    } // infinite loop
    
    return original;






The (relevant) code of the main fla file:

PHP Code:



var playfield:XML = new XML();
playfield.ignoreWhite = true;
var temp:String = new String("");
playfield.onLoad = function(success) 
{
    temp = playfield.firstChild.childNodes[0];
    trace(stringRemoveInstance(temp," "));
};

playfield.load("Playfield1.xml"); 





The contents of the XML file:

PHP Code:



<?xml version="1.0" encoding="iso-8859-1"?>
<playfield x="16" y="16">
    1,2,2,2,    3,5,4,4,    2,3,1,2,    4,3,22,4,
    21,22,3,4, 4,1,22,4,    1,1,1,1,    23,1,3,4,
    1,1,1,1,    2,32,11,2,  12,1,2,1,   2,3,1,1,
    4,2,3,3,    1,2,1,1,    1,3,2,1,    4,2,1,3
</playfield>




The code of the stringRemoveSubstring function (it's working!)

PHP Code:



function stringRemoveSubstring(original:String, beginning:Number, toRemove:Number):String
{
    var returned:String = original.slice(0,beginning);
    return( returned.concat(original.slice(beginning+toRemove,original.length)) );





So, as I have written, indexof returns undefined on this particular string, but returns a valid result on every other (hand-typed inside of the flash IDE) string. Is this a fault of indexof or mine? What's broken here?

Actionscript Animation BROKE
I am really new to this actionscript thing, and am learning by taking apart templates etc. How ever, I have one query.

I have an animated menu that when a user hovers over, it moves slightly. The user can click the button (multiple buttons on the menu), and a new page will open in a target frame.

How ever, once I have added in the code that opens an HTML page in a new frame, the animation is no longer working. Here is the working code (that lets me have an animation) without the getURL command:


Code:
onClipEvent (load) {
page = 1;

this.title.gotoAndStop(page);
this.title1.gotoAndStop(page);
this.icon.gotoAndStop(page);
this.icon1.gotoAndStop(page);
}
If I add in these lines:


Code:
on (release) {
getURL("home.html", "main");
}
TO MAKE:


Code:
onClipEvent (load) {
page = 1;

this.title.gotoAndStop(page);
this.title1.gotoAndStop(page);
this.icon.gotoAndStop(page);
this.icon1.gotoAndStop(page);
}
on (release) {
getURL("home.html", "main");
}
The animation no longer works. Does anyone know why?

Cheers,

MWKC.

PS. Anyone suggest any good starting tutorials/books for someone who is very familiar with HTML and VB (ie. I have a good knowledge of other programming languages)? Thanks.

I Broke My Output Window
I'm programming in AS 2.0 and everything works fine... I have a script that does heavy calculations and convertions, while the script runs I get multiple errors that the flash movie is causing the computerizer to run slow, if I want to abort the movie... I say 'no', the script will run for several minutes and at the end it displays what I want it to do...
Because I hadn't a progress bar, I didn't knew how long it was going to take, so I tought of having a _root.progress variable to indicate it... Displaying it on the frame had no use because the frame was displayed after the script...So I put it into a trace() command... The output window showed up everytime I had the error, but no text... Strange...
So I put

ActionScript Code:
trace("Is my trace command broke?!...");
on the first frame, before the script, the output window showed up but no text...
And there's more to it, my flash movie, output window and actionscript editor are all displayed behind my tools, library, etc. So if I maximise my flash movie, I can't see the red cross to close it... Is there any way to reset my interface?!... I tried window>workspace but it didn't work...
Here's the script, it's on the timeline frame 2, and I'm demn pround on it:

ActionScript Code:
////////////////////////////////////////
// Stepmania/milliseconds convertion  //
//  //
//    Script written by CX gamer     //
////////////////////////////////////////

// This is the stepfile, as string, put in a commah in teh beginning and replace the ; on
// the end with another commah, remove all enters and comments insode so you would have
// one continuous line of bits seperated by commas...
stepfile = "..."; // This is a very very long string of 0s, 1s, 2s and 3s, I edited it out as it does nothing about the case
BMP = 200.000;
offset = -0.291;
stopnum = 0;
stoppos = new Array();
stoptim = new Array();

// Counts the number of 'char' that are present within 'string'
function countChar(string, char) {
    count = 0;
    for (i=0; i<=length(string); i++) {
        if (string.charAt(i) == char) {
            count++;
        }
    }
    return count;
}
// Returns the 'num'th position of 'char' in 'string'
function charPos(string, char, num) {
    count = 0;
    for (i=0; i<=length(string); i++) {
        if (string.charAt(i) == char) {
            count++;
        }
        if (count == num) {
            return i;
        }
    }
}
// Returns a slice from 'start' to 'end' in 'string'
function split(string, start, end) {
    output = new String();
    for (i=start; i<=end; i++) {
        output += string.charAt(i);
    }
    return output;
}

array = new String();
type = new String();
// Highly compressed and complicate timing calculator starts here,
// don't even think about figuring it out... :)
// Srsly, you will get a message that will tell you to abort the script because it takes
// so long... Just continue, thrust me...
for (a=1; a<=(countChar(stepfile, ",")-1); a++) {
    trace(Math.round(a/(countChar(stepfile, ",")-1)*100) + "%");
    comp = split(stepfile, charPos(stepfile, ",", a)+1, charPos(stepfile, ",", a+1)-1);
    for (b=0; b<=(length(comp)-4); b += 4) {
        if (comp.charAt(b+0) == 1 || comp.charAt(b+1) == 1 || comp.charAt(b+2) == 1 || comp.charAt(b+3) == 1) {
            prevT = 240/BMP*(a-1)-offset;
            t = 240*b/BMP/length(comp)+prevT;
            for (c=0; c<stopnum; c++) {// C++ heh :)
                if (t>stoppos[c]*60/BMP-offset) {
                    t += stoptim[c];// Yeehaa, king of the hill!
                }
            }
            array += [t]+",";
            if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
                type += "12,";
            } else if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1) {
                type += "11,";
            } else if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+3) == 1) {
                type += "10,";
            } else if (comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
                type += "9,";
            } else if (comp.charAt(b+0) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
                type += "8,";
            } else if ((comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1) || (comp.charAt(b+0) == 1 && comp.charAt(b+2) == 1)) {
                type += "4,";
            } else if ((comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) || (comp.charAt(b+1) == 1 && comp.charAt(b+3) == 1)) {
                type += "7,";
            } else if (comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1) {
                type += "6,";
            } else if (comp.charAt(b+0) == 1 && comp.charAt(b+3) == 1) {
                type += "5,";
            } else if (comp.charAt(b+0) == 1) {
                type += "0,";
            } else if (comp.charAt(b+1) == 1) {
                type += "1,";
            } else if (comp.charAt(b+2) == 1) {
                type += "2,";
            } else if (comp.charAt(b+3) == 1) {
                type += "3,";
            }
        }
    }
}
Please note that this script works as it should, only the trace command is broke...

Thanks in advance...

CX

Quiz Randomization Broke
I have created a quiz in Flash using the Quiz Template. It has 10 HotSpot questions and 2 Drag/Drops. When I choose to randomize the quiz, whenever a drag drop question appears, the drag objects stay in the screen for the rest of the quiz. Normally the drag/drop questions are the last 2 (if I do not select to randomize the questions). In that case it's no problem and the drag elements disappear after I have answered the question? I figure it's probably not anything with the way I programmed the drag elements since they go away in that case? Hope this makes sense and that someone can help. I've searched everywhere and am at a loss. Thanks!

I Broke My Gallery. Yargh.
Heeeey. I have a site with a couple of xml gallerys in. They worked absolutely wonderously (yes, wonderously) when they were part of an externally loaded swf jobby. But nothing else did. Now the entire site is in one file with no swfs loaded externally, one of them has broken a bit. The thumbnails wont load/show, but the rest is fine. Take a look. http://www.dovecoteweddingcars.co.uk/ under gallery. Now look in vehicles, and you'll see one working. Hours, actually weeks I've been strugglin with this. As far as I can see, they're the same. Anyone that ventures into this joke of an fla and complete disaster of a site gets serious brownie points from me for enriching the farce that is my life. Thanks in advance.

http://www.jamescorcoran.net/dovecote/main.fla

Filtering In E4X XML In Actionscript 3 Is Broke?
Hi Everyone,

Can anyone explain why this works:

ActionScript Code:
xml..event.(eventID == 1) //No Errors  


But this doesn't?:

ActionScript Code:
xml..event.(event_location == "Rome") //ReferenceError: Error #1065: Variable event_location is not defined.  


Uhm, hello Actionscript, event_location isn't a variable! Therefore I shouldn't have to define it. Its an xml element. Also I quadruple checked that those elements DO exist. I am an otherwise AS3 XML expert, so I thought.

So just for testing purposes, to prove that both eventID and event_location are actual XML elements:

ActionScript Code:
trace(xml..event[0].eventID) //traces 1  


ActionScript Code:
trace(xml..event[0].event_location) //traces Brisbane  


Also here is what one of the many event XML elements looks like:

ActionScript Code:
<event>     <event_location>Brisbane</event_location>     <level>International</level>     <prize>$220,000</prize>     <surface_type>HO</surface_type>     <draw_size>          <MD>32</MD>          <QF>32</QF>     </draw_size>     <QF_start_date>Jan 2</QF_start_date>     <MD_start_date>Jan 4</MD_start_date>     <MD_end_date>Jan 10</MD_end_date>     <eventName></eventName>     <region>Asia/Oceana</region>     <acclimation>Heat/Humidity, Jetlag</acclimation>     <prior_year_cutoff></prior_year_cutoff></event>


PLZ HELP!!!

[F8] TextArea Scrollbar Broke In Tables
I am so frustrated.

The scrollbar of the TextArea control doesn't show when I put the movie inside a table in html.

But, when I put it outside of the table where there is no html, it works fine.

What is the html table doing to the Flash movie/TextArea??

?

The Straw The Broke The Camel's Back
Hey all,

I'm making a little dynamic odometer type thing in flash. Now all the parameters for this thing will be passed to my swf via the URL. Because of the fact that I am using an odometer type thing a lot of the variables are going to be degrees. And since I sometimes start different things from different degrees on the odometer I sometimes need to add a number to one of my settings.

So, The problem comes in here, it was all working well until I started pulling in values from the URL. Then only some of the degrees would work, but not the ones that I was adding values to once I had pulled their values from the URL.

here is the code so you can see what I mean:


Code:
var testURL:String = 'http://www.url.com/?vars_130_60_160_120_0x97BAE4_0xFF0000_70_120_45_"£0"_"Typical: £1,000"_"You: £2,000"_"High: £4,400"_"£10,000"';

var my_array:Array = testURL.split("_");
for (var i = 0; i<my_array.length; i++) {
trace(my_array[7]);
//trace(my_array.length);
}

// PASSING VARIABLES THIS WAY DOES NOT WORK
var innerArcStart:Number = my_array[1];
var innerArc:Number = my_array[2];
var outerArcStart:Number = my_array[3];
var outerArc:Number = my_array[4];
var firstWdgClr:Number = my_array[5];
var secondWdgClr:Number = my_array[6];
var yourRentDegree:Number = my_array[7];
var highRentDegree:Number = my_array[8];
var typicalDegree:Number = my_array[9];
var startRent:String = my_array[10];
var typicalRent:String = my_array[11];
var yourRent:String = my_array[12];
var highRent:String = my_array[13];
var endRent:String = my_array[14];

/* // PASSING VARIABLES THIS WAY(BELOW) WORKS
// wedge dynamic values
var innerArcStart:Number = 130;
var innerArc:Number = 60;
var outerArcStart:Number = 160;
var outerArc:Number = 120;
var firstWdgClr:Number = 0x97BAE4;
var secondWdgClr:Number = 0xFF0000;
var yourRentDegree:Number = 70;
var highRentDegree:Number = 120;
var typicalDegree:Number = 45;
var startRent:String = "£0";
var typicalRent:String = "Typical: £1,000";
var yourRent:String = "You: £2,000";
var highRent:String = "High: £4,400";
var endRent:String = "£10,000";
*/
Here are two different bits of code that work with the values. The first example works still(ie even when using the url) the second no longer does. presumably because I am adding a number to it.

Code:
var t = new Fuse(
[
{target:pointer, rotation:function(){return String (yourRentDegree)}, ease:"easeOutElastic", seconds: 3, delay:1},
{target:typical, rotation:function(){return String (typicalDegree)}, ease:"easeOutQuad", seconds: 3, delay:1}
]
);
t.start();

// THIS DOESNT WORK
positionText((yourRentDegree+180),yourRent,secondWdgClr);
Anyone know how I can overcome this?

Code Broke Auto Formatting
you will notice if you place this code into your flash as panel and click the auto format button it outputs an error I have went ahead and formatted it as close as I believe but also leaving the end unformatted for testing purposes. Why is it doing this?


ActionScript Code:
video.theVideo._width = video.theVideo.width;
// ------- [  ] ------ //
onEnterFrame = function () {
    if (video.theVideo.width>0) {
        scaleVideo();
    }
    if (Stage["displayState"] == "normal") {
        if (setOnce) {;
            movieControls.buttons.gotoAndStop(1);
            movieControls.buttons.fullscreen.gotoAndStop(1);
            Corners.setTint(255, 255, 255, 100);
            movieControls.buttons.fullscreen.pressed = false;
            setOnce = false;
        }
    }
    if (playStatus) {
        movieControls.toggleButton.pauseButton._visible = true;
        movieControls.toggleButton.pauseTicks._visible = true;
        movieControls.toggleButton.playButton._visible = false;
        if ((preview._visible) && (scrubPressed == false)) {;
            preview.play();
        }
        largePlay._visible = true;
        largePlay._alpha = 0;
        if (_global.badStream){;
            playStatus=false;
            badStream._visible=true;
            preview._visible=true;
            preview.gotoAndStop(15);
            movieControls.elapsed._visible=false;
        }
    } else {
        movieControls.toggleButton.pauseButton._visible = false;
        movieControls.toggleButton.pauseTicks._visible = false;
        movieControls.toggleButton.playButton._visible = true;
    }
    if (volDown) {
    perc = (movieControls.vol.volumeMC.slider._y-22)/3.8;
    setVol = Math.floor(perc*(-10));
    so.setVolume(setVol);
    }
    movieControls.vol.volumeMC.gotoAndStop(setVol);
    if (preload){;
    scaleVideo();
    }
};

I Just Broke My Head From Repeated Wall Banging... Please Help
I'm trying to set up a dynamic News area for the upcoming version of my site and am testing it out using a dummy Flash movie with just the news display area. However, it's just not working right.

I wanted to set up a series of arrays inside Flash, one for each field: Title, Date, URL, and Content. The way I outputted was:

"fieldname=row1,row2,row3" etc.

You can see the actual output here:
http://www.wickedpenguin.com/codetest/Loadnews.cfm

When I run it LOCALLY using a text file copied directly from the URL above, the display works fine and displays both of the current news items.

HOWEVER, when I upload and run it live on my site, I get this result:
http://www.wickedpenguin.com/codetest/site.cfm

The original strings (prior to splitting) show up in the upper left corner. As you can see, there are TWO titles ( "BandCode..." and "Tribute..." ) but only ONE shows up in the main body of the page.

Any ideas why the movie would be producing two different outputs from identical data? I've been at this for eight hours and I'd really appreciate any help!

Many thanks!

External Loader Broke My Alpha Masks
First off thanks guys for all the help on the forums lately, it's been appreciated. I hope to return the favor on the forums.

I decided it would be an awesome idea to create a small external loader to load my main flash file. Lots of good reasons to do this. All is fine and good, except that it broke all my alpha masks. I use em for some gradient masks and various things. I tried setting cacheAsBitmap=true to the mc my main file is loaded into, but that didn't do the trick. Works fine when my main file isnt loaded in from an external loader.

Any ideas?

Publishing Science - Please Clear The Muddy Waters Of Publishing Best Practise
Having been working with Flash now for a few years there is still something that I find unfathomable & hopefully a clear concise reply to this will help me & maybe others.

Question.

What is the best way to publish Flash?

I have always used the percent setting (100%) & made sure that any jpegs I used would be of a quality that will scale up well. I say scale up I use a pretty big monitor I imagine (hope) that if they have to be scaled down they will not look too c**p.

To me there seems to be this elite science among some of the more experienced developers as to how they publish movies. I know the methods of the stage object can come into play such as _width etc., but how the hell do you accommodate all the components of a movie to work out there size & where they should then sit in a browser window? I have checked out other forums posts & articles on this but there seems to a lot of conflicting information.

I have successfully used & understood the swfObject & also have a good handle on HTML having started off programming with that. My best bet is that a movie is published within an HTML frame/table set & the setting of both are tweaked some how. I'm I on the right track & if so what is the current size of browser that I should be looking to publish to?

Publishing Multiple Pngs Or Publishing Movie So It Can Be Imported To Movie Maker.
So I want to enter the Neovision Altador Cup III Contest: "Ready for Fun". I have my animation done in flash, but need to be able to get it into one of the acceptable formats.

.mov, .qt, .mpeg2, .mpeg4, .mpeg, .avi, .wmv, .3gp, and .3gpp

I thought the easiest way would to some how import it into windows movie maker. There I could add sound and compress it into one of the acceptable file formats. Does anyone know how to change swfs or publish movies in a way that could be imported into windows movie maker or to one of the acceptable submission formats.

I have also found that I can publish pngs and import them into windows movie maker. But I can only do one frame in the time line at a time. Seeing as I have probably 800+ frames, is there a faster way to do this?

Thank you for any help

Flash Publishing.
Could anyone please give me details of the disadvatages and advatages of publishing in the following formats. SWF,exe, and quick time. Thank you for any help in advance.

Publishing Flash
This might be a dumb question but i have only had flash for 25 minutes. How do you insert flash into frontpage?

++++PUBLISHING IN FLASH++++
Hi, I'm not sure if this is in the right forum but anyway, everytime I publish my site I get a border around the movie on the html page. I've published it before with out this border but I can't seem to remember what I had all the settings at. Can anyone help me out?

Thanks,
G

Publishing Flash
Hi Pee-0-pole!

Okay, so i've made a flash document, and now i want to put it into a html page i've already made.

I go to publish, sort out the settings and get an .SWF.

How do i put it into Dreamweaver 3.0? where is the accompanying HTML code sent and where do i put it?

Thanks for your help

SF

Flash Publishing
Here is question about publishing a Flash animation on the web. What is the most common player/plugin that almost everyone will have? I put a Flash animation up on the web as a shockwave for my client to preview but they couldn't see it because they didn't have a Shockwave player for the newest version of Flash MX/Flash 6. Should I publish it as an older version, if so which one? Maybe I should have published as a Quicktime movie. Which is perferable? I want to make sure I reach as many viewers as possible.

Also after my client downloaded the newest version of Shockwave when they viewed my animation, it had expanded beyond the set size to the size of the screen and the background beyond the stage was filled with the same background color I assigned the original Flash file.The actual Flash file I had set to 520 x 420 pixels. I had imported the Shockwave centered in a table on a white html page in Dreamweaver.

Thanks in advance for your help.

Publishing Flash To Web
How to you make a flash file viewable on the net. I saved my file then uploaded it to my server but it was only a flash file. How do I make it viewable.

Publishing Flash.....please Help
can you make a flash movie expand to the size of an html table. This is so it can adjust to differant monitors.

thanx in advance

spog

Flash Publishing
Somebody help me
I designed a site in flash5,& i want it to be displayed without html,
just fullscreen like a screensaver.First there is a html homepage,with the "enter site" link.On clicking this link the flash
movie should load fullscreen without html.
do i have the user download any plug-in for this
help me

Flash 5 Or 6 When Publishing?
Can someone please tell me the difference between publishing a movie in Flash 5 and Flash 6 formats? I think I should use Flash 5 as more people will be able to view this, but maybe there are advantages of 6 that I am unaware of.

Publishing A Flash
Hello,
It has been some time since I posted here. Been working
on a new Flash with Flash4. I want to put it on a website
so my son who is overseas can see it. I am not quite finished
so I thought I would ask ahead of time. I use Frontpage 2000.
How do I put it on my website? Do I just copy the html that Flash
makes or is there another way? If I put the html on the website,
will it start automatically when he visits it? I was reading
about using "Display Menu" as a option, but I have never done
this before. Can anyone help with this?
Thanks,
Bill

Flash Publishing
Hi again,
I have had a couple of calls on my Flash movie site.
The only problem is that when you open the site on some people computers they see the html outline around the MC but not the content. Is this something to do with publishing? Has anyone else seem to have this issue also.
www.tsigold.com

Flash Publishing Help?
Hi, I am new to the boards and I wanted to ask a question regarding a constant problem that occurs with Flash versions mx and 8. I am workin on a site with Flash and everytime I test certain pages the actionscript does not seem to work, so if there is an action script telling it to go to and stop at frame 3 it will ignore this and continue going to the last frame on the page....This will occur at random times on multiple pages and have checked the actionscript to see if everything is correct and it appears that it is. In fact sometimes I'll restart the program open the same file and the problem will have fixed itself. From my viewpoint it seems to be some kind of glitch, but I would like to know if this is a common problem and if there is anyway to fix this and or avoid this problem...I must also mention that this problem occurs within Flash and its not smthing that occurs on the web or server the site is loaded onto unless I load the newly published file onto it...Any help would be great! Thanks!!!

New Flash Publishing
Hello,
Theremis a new way to publish in flash to eliminate the Active X box around the movie. I java file and a publish setting. Please point me to these files.

Thank you,
ODC

Publishing With Flash Cs4
In cs3 there was the swf file html file and ac javascript file when I published... There is no longer the ac javascript when I publish?? What do I do?

Publishing Flash
I have a flash file that when I test the movie within flash, everything looks great. Then when I publish the file and view it through a browser, things look distorted (on the x axis) and not as crisp.

I'm running Flash 8 (Actionscript 2.0) on a Mac viewing with Safari.

I have the publish settings as:

Dimensions: Percent
Width = 100
Height = 100
Quality = High
Window Mode = Window
HTML Alignment = Default
Scale = noScale

I can include the .fla file if necessary.

Any suggestions?

Publishing To Flash 4
hi all,
i posted on the MX forum, but perhaps this is the better place to ask. I'm working in MX, but I need to publish to Flash 4. My problem is that I need a dynamic text field. I read that in Flash 4 a dynamic text field is just a static text field with the "disable editing" box turned off. However, i can't seem to do this in MX. That box is not on the properties window, which is apparently where it is in Flash 4.

So does anybody know how I can create a dynamic text field in MX that will publish in Flash 4?

thanks
em

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