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








Convert Flash4 FLA To FLASH8. AS Error


Hey I downloaded a FLA source file (FLASH4) and I want to publish it as FLASH8 so I can take advantage of Flash8's improved text rendering function. The problem is when I go to Publish it to Flash8 I get Action Script errors. Im not too versed on AS and was hoping one of you out there could tweak it and return the FLA attached without the AS errors. I would be really grateful as its been wrecking my head for weeks.

All The Best

http://www.howlettdesigns.com/Active_Search.fla

Here is the errors im getting

**Error** Scene=Scene 1, layer=scripts, frame=3:Line 3: ')' or ',' expected
while (length (eval("link" add n))>1) {

**Error** Symbol=allbuttons, layer=String Case, frame=1:Line 5: Syntax error.
dup = "button" add q;

**Error** Symbol=allbuttons, layer=String Case, frame=1:Line 9: ')' or ',' expected
set(dup add ":linkname", eval("/:text" add q));

**Error** Symbol=allbuttons, layer=String Case, frame=1:Line 10: ')' or ',' expected
set(dup add ":link", eval("/:link" add q));

**Error** Symbol=button, layer=button, frame=1:Line 6: ')' or ',' expected
setProperty("../button" add n, _visible, false);

**Error** Symbol=button, layer=button, frame=1:Line 7: ')' or ',' expected
location = eval("link" add n);

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 29: ')' or ',' expected
text = eval("/:text" add n);

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 39: Syntax error.
dup = "button" add p;

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 43: ')' or ',' expected
set(dup add ":linkname", eval("/:text" add n));

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 44: ')' or ',' expected
set(dup add ":link", eval("/:link" add n));

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 45: ')' or ',' expected
setProperty(dup add "/over", _visible, false);

**Error** Symbol=allbuttons, layer=String Case, frame=2:Line 50: Unexpected '}' encountered
}

**Error** Symbol=allbuttons, layer=String Case, frame=3:Line 6: ')' or ',' expected
removeMovieClip("button" add q);

**Error** Symbol=allbuttons, layer=String Case, frame=3:Line 10: Unexpected '}' encountered
} else {

**Error** Symbol=allbuttons, layer=String Case, frame=5:Line 10: Syntax error.
output = output add character;

Total ActionScript Errors: 15 Reported Errors: 15




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-26-2006, 11:55 AM


View Complete Forum Thread with Replies

Sponsored Links:

Assigning Values To Flash8 Variables Using Flash4 Script
hi to all!! i really need ur help asap!

i've created a flash movie using v8 in which i have a script (using loadMovie) importing an external swf movie which is a v4. my problem is i can't seem to assign values to a global variable declared in my v8 movie using a script from v4....



//the following is from my v8 movie; the _global variable is "student_name"


Code:
info_picframe.info_picframe_formal.loadMovie("images/" + student_name + ".jpg");
info_picframe.info_picframe_creative.loadMovie("images/" + student_name + "_b.jpg");
var msgs_field:LoadVars = new LoadVars();
msgs_field.onLoad = onText;
msgs_field.load("text/" + student_name + ".txt");
function onText(success:Boolean) {
if (success) {
info_wri.text = msgs_field.wri;
info_nam.text = msgs_field.nam;
info_nic.text = msgs_field.nic;
info_org.text = msgs_field.org;
info_org2.text = msgs_field.org2;
}
else {
info_wri.text = "unable to load text file.";
}
}

//this is the script from v4. what i want is to assign the value of "xlocation" from this movie to the global variable "student_name" of the main movie.


Code:
on (release) {
setProperty("../button" add n, _visible, false);
xlocation = eval("link" add n);
///:student_name = xlocation;
frame_name = "info";
_root.gotoAndPlay(frame_name);
}
thanks in advance...

View Replies !    View Related
Urgent Help : Convert Flash4 AS To AS2
Hi guys,

I need some help converting some actionscript to actionscript 2.0. It's really urgent, I'm on a deadline, and time's really running out. If anyone can help, please get back to me asap, or type your answer here, but please hurry!!
This is from a flash 4 online tutorial...I want to change it so it'll work in flash mx 2004....please help..

the code is for a rotating menu.

1.
//This will be used later to determine where the mouse is, to change the size and rotation of the menu.

Start Drag ("drag", lockcenter)
Stop

2.
//this is a rotate clip. The first line determines where the mouse is. The second changes that number so that it is smaller. Line 3 determines the rotation of the menu ('nav') and adds xPos/20 to it.
//this is on the first frame of the clip

Set Variable: "xPos" = GetProperty("../drag", _y)
Set Variable: "xPos" = xPos-150
Set Property ("../nav", Rotation) = GetProperty ( "../nav", _rotation )-(xPos/20)

//this is on the second frame
Go to and Play (_currentframe-1)
//this is for the loop


3.
//a "scale" movie clip.
//Line 1 determines the position of the mouse. The second line checks to see if the mouse is in the closer half of the movie to the menu (the movie width is 400). If this is true, lines 3 - 16 are carried out. Line three reduces x so that the change in the menu's size is not too drastic. The fourth line checks to see if the new variable is a negative number and if it is then it changes it to positive in line 5. The next 2 lines change the width and length of the menu. The rest of the lines check to see if the menu's width and height are less than 30 or more than 100.

Set Variable: "x" = GetProperty ("../drag", _x)
If (x> 200)
Set Variable: "midX" = x - 200
If (midX <0 )
Set Variable: "midX" = - midX
End If
Set Property ("../nav", X Scale) = midX
Set Property ("../nav", Y Scale) = midX
If (GetProperty ("../nav", _xscale) <30)
Set Property ("../nav", X Scale) = "30"
Set Property ("../nav", Y Scale) = "30"
End If
If (GetProperty ("../nav", _xscale)> 100)
Set Property ("../nav", X Scale) = "100"
Set Property ("../nav", Y Scale) = "100"
End If
End If

//on the second frame of it ... same loop thing


Please help me.

Thanks in advance,
Andy

View Replies !    View Related
Urgent Help : Convert Flash4 AS To AS2
Hi guys,

I need some help converting some actionscript to actionscript 2.0. It's really urgent, I'm on a deadline, and time's really running out. If anyone can help, please get back to me asap, or type your answer here, but please hurry!!
This is from a flash 4 online tutorial...I want to change it so it'll work in flash mx 2004....please help..

the code is for a rotating menu.

1.
//This will be used later to determine where the mouse is, to change the size and rotation of the menu.

Start Drag ("drag", lockcenter)
Stop

2.
//this is a rotate clip. The first line determines where the mouse is. The second changes that number so that it is smaller. Line 3 determines the rotation of the menu ('nav') and adds xPos/20 to it.
//this is on the first frame of the clip

Set Variable: "xPos" = GetProperty("../drag", _y)
Set Variable: "xPos" = xPos-150
Set Property ("../nav", Rotation) = GetProperty ( "../nav", _rotation )-(xPos/20)

//this is on the second frame
Go to and Play (_currentframe-1)
//this is for the loop


3.
//a "scale" movie clip.
//Line 1 determines the position of the mouse. The second line checks to see if the mouse is in the closer half of the movie to the menu (the movie width is 400). If this is true, lines 3 - 16 are carried out. Line three reduces x so that the change in the menu's size is not too drastic. The fourth line checks to see if the new variable is a negative number and if it is then it changes it to positive in line 5. The next 2 lines change the width and length of the menu. The rest of the lines check to see if the menu's width and height are less than 30 or more than 100.

Set Variable: "x" = GetProperty ("../drag", _x)
If (x> 200)
Set Variable: "midX" = x - 200
If (midX <0 )
Set Variable: "midX" = - midX
End If
Set Property ("../nav", X Scale) = midX
Set Property ("../nav", Y Scale) = midX
If (GetProperty ("../nav", _xscale) <30)
Set Property ("../nav", X Scale) = "30"
Set Property ("../nav", Y Scale) = "30"
End If
If (GetProperty ("../nav", _xscale)> 100)
Set Property ("../nav", X Scale) = "100"
Set Property ("../nav", Y Scale) = "100"
End If
End If

//on the second frame of it ... same loop thing


Please help me.

Thanks in advance,
Andy

View Replies !    View Related
Convert A Few Lines From Flash4/flash 5?
i dug this up from an old .fla and I cant say I know how to convert it to something a little more modern.....


ActionScript Code:
if (Number(_x)>Number((250+Number(reset)))) {
    _x -= _width/2; // I got this line converted ok!
} else if (Number(_x)<Number((250-reset))) {
    setProperty("", _x, Number(_x)+Number((_width/2)));
}


thanks!

View Replies !    View Related
Please Help Me Convert A 5 Code To Flash8
For the last couple of days I've been trying to achieve this duplication effect without calling an MC. I found this open source movie by FlashGuru that looks like it could be the answer - the only problem is that when converted to Flash 8 it doesn't work anymore. Could someone please help me update it so it works in new flash players? Note; I'm a newbie at AS.

This is the file:

http://www.flashkit.com/movies/Scrip...1257/index.php

I think it might have something to do with this code:


Code:
on (press) {
if (i<10) {
i++;
top++;
duplicateMovieClip("window", "window"+i, i);
setProperty("window" + i, _x, Random(510)+20);
setProperty("window" + i, _y, Random(360)+20);
}
}

View Replies !    View Related
Convert <as1/flash6> To <as2/flash8>
Hi Guys!
Here is a great tutorial
but when I set the publish mode into Flash 8, the movie goes crazy

Does anybody know how to overwrite this code so it works in Flash8 ???

heres the code:

Code:
this._visible = false;
var numrotos = 10;
for (n = 0; n < numrotos; n++){
newroto = "roto" + String(n);
this.attachMovie("roto", newroto, n + 1);
this[newroto].theta = n * 360 / numrotos;
this[newroto].panel = 31;
this[newroto].radius = 300;
this[newroto].contents.gotoAndStop(n + 1);
} // end of for
this.title.swapDepths(100);
_____________________________________________

if (_root._ymouse < 120 || _root._ymouse > 280) {
speed = speed * 0.950000;
} else {
speed = -_xmouse / 100;
}

this._visible = true;


gotoAndPlay(_currentframe - 1);
______________________________________________

if (pressv != 0)
{
this.panel = this.panel + pressv;
pressv = pressv * 0.875000;
if (pressv < 0.200000 && pressv > -0.200000)
{
pressv = 0;
} // end if
} // end if
theta = theta + _parent.speed;
xbit = Math.sin(0.017453 * theta);
ybit = Math.cos(0.017453 * theta);
this._xscale = ybit * this.panel;
this._x = xbit * this.radius;
this._alpha = 30 + (ybit + 1) * 50;
this._yscale = this.panel - 3 + (ybit + 1) * 3;
stack = Math.round((ybit + 1) * radius * 2);
if (stack == 100)
{
stack = 101;
} // end if
this.swapDepths(stack);

What is Flash8 having problems with?

View Replies !    View Related
[F8] How To Convert Flash 6 File To Flash8
i have a file written and designed in flash 6 and i want to convert those in flash 8.
Can somebody help me out with that.
Thanks in advance

View Replies !    View Related
Convert Flash5 Script To Flash8
Hi, can anyone tell me how I can identify the modifications that have been made to the ActionScript syntax from version 5 to version 8.
I have a script that was playing fine on a version 5 player but now I have upgraded to 8 how do I identify what has changed to make the script non functional.

Thanks

View Replies !    View Related
[Flash8]how To Convert From A String To Hexadecimal Value?
HI!

I want to ues XML to make various things dynamic in a site, including different background colors. XML values are always as strings and I cannot seem to find how to convert from the string to hexadecimal number that is needed to ues the setRGB function.


trace(this.bg_color)//1a2221
var colornumber = "0x"+this.bg_color
trace(colornumber)//0x1a2221
colornumber = Number(colornumber)
trace(colornumber)//1712673
backgr.setRGB(colornumber)// nothing happens


Please Help!

View Replies !    View Related
[Flash8] Convert A Read-only Property To A Number
Hi,

I know I am missing something very basic, but I don't know what it is so perhaps this forum can put me on course...

I have an FLV player that provides a read-only property called myPlayer.timecode and it displays the time in seconds as a String (xx.xxx). I am trying to assign that value to a variable so I can convert it to a number to use in some calculations, comparisons, etc.

I can assign this property to a dynamic text box and display it on the screen, but I cannot assign it to a variable and have the variable value show correctly on the screen. What do I need to do?

Ex: myPlayer.timecode value is 10.000 and shows as 10.000 in the dynamic text box called myTime1. (I entered the property into the Var: input box).
Created a String variable called timePlayed, and assigned it to a dynamic text box called myTime2. However, I cannot find a way to assign the property myPlayer.timecode to this variable. I can only display a value of "undefined" or "NaN" in the text box myTime2.

Arrrgh! Help, please.

View Replies !    View Related
Flash. Need To Convert Flash6 Code To Flash8
Hi,
Can someone help me how to convert flash6 code to flash 8?
Basically I have this following code posted by someone in Flash6( actionScript 1). I really need to know how to change this code to flash8.

stop();
cards = 6;
for (i=1; i<=cards; i++) {
distance = 60;
_root.attachMovie("neutral", "neutral"+i, i);
// PLACING NEUTRAL CARDS
_root["neutral"+i]._x = 20+i*distance;
_root["neutral"+i]._y = 20;
// RESULT
_root["neutral"+i].onPress = function() {
pos = Math.round(Math.random())+2;
this.gotoAndStop(pos);
if (pos == 2) {
_root.good++;
} else {
_root.bad++;
}
_root["neutral"+i].onPress = undefined;
};
}
// COUNTER
_root.createEmptyMovieClip("counter", 100);
_root.counter.onEnterFrame = function() {
_root.goodbox.text = "GOOD: "+_root.good;
_root.badbox.text = "BAD: "+_root.bad;
if (_root.good+_root.bad == 4) {
for (i=1; i<=cards; i++) {
removeMovieClip(_root["neutral"+i]);
}
if (_root.good>_root.bad) {
_root.gotoAndStop("won");
} else if (_root.good<_root.bad) {
_root.gotoAndStop("lost");
} else {
_root.gotoAndStop("draw");
}
}
};

I really appriciate your help!
Please please help me

View Replies !    View Related
Flash8:closeVideoPlayer Error...
Hi,
I have created my personal skin for my flv player... I have created three
buttons (play, stop,
quit) and one mediaDisplay component (the name of instance is
'my_flvplayer').
This is my script...

script (frame):

Code:

stop();
_root.play_btn._visible = false;
_root.quit_btn._visible = false;
_root.stop_btn._visible = false;
my_flvplayer.activeVideoPlayerIndex = 1;
my_flvplayer.visibleVideoPlayerIndex = 1;
my_flvplayer.autoPlay = false;


.. script 'play_btn' (button):

Code:

on (release) {
my_flvplayer.play();
}


.. script "stop_btn" (button):

Code:

on (release) {
my_flvplayer.stop();
}



..script 'quit_btn' (button):

Code:

on (release) {
my_flvplayer.closeVideoPlayer(1);
_root.play_btn._visible = false;
_root.quit_btn._visible = false;
_root.stop_btn._visible = false;
}

..I can't close my_flvplayer! ...why?.
thanks and sorry for my bad english...bye.

--
Messaggio inviato da 213.140.22.72 via MMKit
http://www.mmkit.com/newsgroups.php

View Replies !    View Related
[Flash8] Undefined Error
Hi, I get a "undefined" for the var "_root["star" + i].adjustPosX" on the last line, how could that be?

Thanks in advance,
Joost Pastoor


Code:
/* S T A R S */

_root.starArr = new Array();
for(i=0; i < _root.gb.cStars; i++)
{
starSize = Math.random()*40+10;

_root.attachMovie("Star", "star" + i, 1000+1);
_root["star" + i]._alpha = Math.random()*40+20;
_root["star" + i]._xscale = _root.gb.starSize;
_root["star" + i]._yscale = _root.gb.starSize;
_root["star" + i].xPos = Math.random()*_root.gb.square;
_root["star" + i].yPos = Math.random()*_root.gb.square;
_root["star" + i].adjustPosX = 0;
_root["star" + i].adjustPosY = 0;
_root["star" + i].defAlpha = _root["star" + i]._alpha;

_root.starArr[i] = _root["star" + i];

_root["star" + i].onEnterFrame = function() {
trace("enterframe" + _root["star" + i].adjustPosX);

View Replies !    View Related
[Flash8] Error - ':' Expected, But There's Already A :
Hello Kirupa! I'm hoping this is an easy fix, and that I just don't understand the syntax quite yet.

I'm trying to get an an eye (mcEyeAnim) to blink every 15 seconds.

The following code is giving me the following error.

Code:
var eyeInterval = 15;
while (eyeInterval = 15) ( {
countDown = function():Void {
eyeInterval--;
if (eyeInterval == 0) {
clearInterval(eyetimer);
trace("blink");
mcEyeAnim.play();
eyeInterval = 15;}
});
var eyetimer = setInterval(countDown, 1000)
**Error** Scene=Scene 1, layer=actions, frame=1:Line 4: ':' expected
countDown = function():Void {

I'd be very thankful for a bit of guidance. Thanks for looking.

View Replies !    View Related
Error Loading Flash6 Swf Into Flash8
We have developed a system whereby we have a one flash component load other previously created flash files. The loaded flash files have been generated over the past 7 years using flash5 and flash6. (we have about 30,000 files created)

We have just added functionality to allow FLVs to be loaded, and therefore upgraded the primary component to flash8. Some PCs have a problem loading the older flash5/6 components under some conditions:
WORKS - Running from web server
DOESNT - Running locally using HTML
DOESNT - Running from Projector exe
WORKS - Running from a browser without HTML
I see no pattern to which machines have problems. (Operating system, other software loaded/installed, CPU, etc.) Identical machines may or may not work. Most machines have no problems (testing about 20 PCs, 2 have the problem).

In testing, the clip into which the component is loaded ceases to exist as a recognizable entity.

Rebuilding the older components to flash8 fixes the problem, but we have such a large quantity of older files and many are not under our control, that this becomes untenable (as well as the fact that many components need to still work with older flash6 primary components).

Anyone have thought to were to start looking.

View Replies !    View Related
1034 Cannot Convert Error
I have an application with several modules. The first time I am in module 1, I make a call to the service and receive an array collection of objects and can display them. Then, I go to another page, list something. Then I hit a menu button to go back to module 1, when I do so, I get a 1034 error indicating that I cant convert object com.xxx.StockVO@ec30a61 to com.xxx.StockVO. This worked the first time into the page, however the second time it does not. I have tried obtaining the item returned as an Object an re-casting, but nothing I try seems to get around this problem.

Thanks in advance for your assistance

Here is the code....

positions = ArrayCollection(event.result);

for (var i:Number = 0;i < positions.length;i++)
{
var obj:Object = positions.getItemAt(i);
var stock:StockVO = obj.stock as StockVO; // THIS CAUSES THE ERROR

// Check to see if it has already been added to the list
found = false;
for each (var item:StockVO in equities)
{
if (item.symbol == stock.symbol)
{
found = true;
}
}
if (!found)
{
equities.addItem(stock);
}
}

View Replies !    View Related
Event Error: Cannot Convert ShowRoomBrandEvent@166bb3f9 To PressEvent
Hello,

My structure is like this:

MasterPage.asShowRoom.asShowRoomSlider.asShowRoomSliderImage.asIn MasterPage.as I have the following code (among other :P):


ActionScript Code:
_page.addEventListener(ShowRoomBrandEvent.ON_CLICK, onBrandImageClick);
_page.addEventListener(PressEvent.ONCLICK, onPressReleaseClick);

In ShowRoomSliderImage.as I dispatch an event like this:

ActionScript Code:
private function goToBrand(e:TextEvent):void
{
    this.dispatchEvent(new ShowRoomBrandEvent(ShowRoomBrandEvent.ON_CLICK, true, false, -1));
}

In MasterPage.as I have the following listeners:


ActionScript Code:
_page.addEventListener(ShowRoomBrandEvent.ON_CLICK, onBrandImageClick);

_page.addEventListener(PressEvent.ONCLICK, onPressReleaseClick);

If I only set one of the listeners in MasterPage.as my code works fine but if I use both I get this error:

"TypeError: Error #1034: Type Coercion failed: cannot convert ShowRoomBrandEvent@10ef2fc9 to PressEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ShowRoomSliderImage/goToBrand()"

Does anyone have any ideas why?

View Replies !    View Related
Error #1034: Type Coercion Failed: Cannot Convert
I have done a test code to create plattform to move down and then go back to the top.
It works, but when i copy the code and paste it for the game then I get this error.


Code:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@3633941 to plattform.
I have localized who cause the problem but I don't know how to fix it.
Here is the problem
Code:
var tempPlatt:plattform = plattform(this.getChildAt(j));
The rest of the code

Code:
//Create plattform
for(var i:int=0;i<6;i++) {
var myPlatt:plattform = new plattform();

myPlatt.x = Math.random() *330+10;

myPlatt.y = -650+i*100;
myPlatt.name = "minPlatt" +i;
addChild(myPlatt);
}



this.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);

function onEnterFrameHandler(evt:Event):void {
for(var j:int=0;j<this.numChildren;j++) {
var tempPlatt:plattform = plattform(this.getChildAt(j));

//Change Speed
tempPlatt.y +=1.5;

if(tempPlatt.y >550){
tempPlatt.x = Math.random() *330+10;
tempPlatt.y =-50;
trace(tempPlatt.x);
trace(tempPlatt.name);
}
}
}

View Replies !    View Related
TypeError: Error #1034: Type Coercion Failed: Cannot Convert []@2ab1b69 To ATIscripts
I am getting so frustrated..

i was getting a different error.. now i am getting this error and i didn't even change anything.. what does this error mean? how do i read these things?

erik

TypeError: Error #1034: Type Coercion failed: cannot convert []@2ab1b69 to ATIscripts.printMovie.
at printTest_fla::MainTimeline/frame1()


my as file
ActionScript Code:
package ATIscripts {
    import flash.printing.PrintJob;
    import flash.printing.PrintJobOrientation;
    import flash.display.Stage;
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.geom.Rectangle;

    public class printMovie extends MovieClip {
        public function printMovie(slides:Array) {

            var my_pj:PrintJob = new PrintJob();
            if (my_pj.start()) {
                    var i:Number;
                    for(i=0;i<slides.length;i++){
                    trace(slides[i][0]);
                    trace(slides[i][1]);
                    trace("------------");
                    }
                   
            }
        }
    }
}

my fla script

ActionScript Code:
import ATIscripts.printMovie
var slides:Array = new Array(["mov","1"],
                             ["mov2","34"]
                             )
printMovie(slides);

View Replies !    View Related
TypeError: Error #1034: Type Coercion Failed: Cannot Convert []@15238eb1 To Flash.dis
Ok so iv been trying to make a bar that holds links using XML. my code reads in the XML and then adds a movie clip to the stage that has the title of the link and goes to the link on clicked but whenever i export it i get this error: TypeError: Error #1034: Type Coercion failed: cannot convert []@15238eb1 to flash.display.DisplayObject. here is my code:

Code:
var loaderLink:URLLoader = new URLLoader();
loaderLink.addEventListener(Event.COMPLETE, xmlLinkLoaded);
loaderLink.load(new URLRequest("link.xml"));

var xmlLink:XML;
var linkArrayTitle:Array = new Array();
var linkArrayUrl:Array = new Array();
var holderArray:Array = new Array();

function xmlLinkLoaded(e:Event):void
{
var linkSpacer:Number = 0;
xmlLink = XML(e.target.data);
for(var i:uint=0; i<xmlLink.links.length(); i++)
{
var linkHolds:linkHolder = new linkHolder;
linkArrayTitle.push(xmlLink.links[i].titles);
linkArrayUrl.push(xmlLink.links[i].urls);
linkBar.linkHide.addChild(holderArray);
holderArray[i].addChild(linkHolds);
holderArray[i].addEventListener(MouseEvent.MOUSE_UP, gotoUrl)
holderArray[i].name = linkArrayUrl[i];
linkHolds.linkText.text = linkArrayTitle[i];
linkHolds.x = 0;
linkHolds.y = linkSpacer;
linkSpacer += 28;
}
}

function gotoUrl (e:MouseEvent):void
{
var url:String = e.currentTarget.name;
var requester:URLRequest = new URLRequest(url);
navigateToURL(requester, '_self')
}
now after playing around with commenting and uncomment iv narrowed the error down to these 3 lines of code:


Code:
linkBar.linkHide.addChild(holderArray);
holderArray[i].addChild(linkHolds);
holderArray[i].addEventListener(MouseEvent.MOUSE_UP, gotoUrl)
holderArray[i].name = linkArrayUrl[i];

View Replies !    View Related
TypeError: Error #1034: Type Coercion Failed: Cannot Convert Flash.display::AVM1Movie
I've been fruitlessly trying to get AS 3.0 to do what I want for the past 3 business days and I am now at wits end. I am wondering if someone has some insight as to what I am doing wrong or the best way to achieve what I am going for here.

Basically what I am trying to achieve is a series of external SWF's that load into a container movie. What I want to happen ideally is for module1.swf to load fully and start playing, when module1.swf is fully loaded, module2.swf should start loading and when it finishes, module3.swf should load as well. Module 2 and 3 should not play until the prior movies have already loaded in full.


Code:
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;

import flash.events.Event;
import flash.events.ProgressEvent;
import flash.text.TextField;


// Array of external clips to use. Variable index refers to next clip to be displayed.
var clips:Array = ["module1.swf", "module2.swf", "module3.swf"];

var index:int = 0;

// Stuff for loading files
var thisLoader:Loader = new Loader();

thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

var thisMC:MovieClip = new MovieClip();

stage.addChild(thisMC); // Add empty MC initially so the nextClip function works even on first call

// Gets the next MC, waiting for INITialization before adding it to the stage
function nextClip():void {
thisLoader.load( new URLRequest(clips[index]) );
}

// Remove old clip, tell AS that the loaded file is the new one, add it to the stage, and play.
function doneLoading(e:Event):void {
stage.removeChild(thisMC);
thisMC = MovieClip(thisLoader.content);
thisLoader.unload();
thisMC.addEventListener(Event.ENTER_FRAME, runOnce);
stage.addChild(thisMC);
thisMC.gotoAndPlay(1);
}

// When thisMC has finished, play the next clip.
function runOnce(e:Event):void {
if (thisMC.currentFrame == thisMC.totalFrames) {
thisMC.removeEventListener(Event.ENTER_FRAME, runOnce);
index = (index + 1)%(clips.length);
nextClip();
}
}

// Call the nextClip function initially to get the ball rolling
nextClip();
Sorry for my complete lack of knowledge here, this is as close I have came to getting it to work thus far. Any help would be greatly appreciated. Thanks.

View Replies !    View Related
ScrollPane In Flash8 Not Working Quite Right Flash8
http://www.karaedwardsvo.com

When you click on either "about" or "clients" it takes you down the timeline to a ScollPane that is set to load an external swf (with a tranparent background if that makes a difference). This works fine for me 100% of the time on my Mac but have had a couple, including the client, who say the in IE on a PC the scroll bar doesn't appear and the swf shows up low on the screen. Anyone have any thoughts on this?

View Replies !    View Related
I R MAD AT FLASH4
WTF is up with this i download a movie from the movie thing run the bastage throu winzip 7.0 and when i open it into FLash it say's Unexpected File format. Thi is )%($!^ plz help thx ^_^.

View Replies !    View Related
Get Url-flash4
Dear all,
Does anyone know how to use "get url" in flash 4. I'm trying to put this in a button's action, so that when clicked that will open up a new page linked to it.
I was advised to use:

on (release) {
getURL ("http://www.asiatravel.com. ", "_blank");
}
but it was in flash 5. In Flash 4 I tried:

on (release) {
getURL ("http://www.asiatravel.com.")
and then chose "_blank" from the "Window" and "Don't send" from "Variables".
Am doing it wrong? Please help.
Thanks!!

View Replies !    View Related
Using Swf In Flash4
I am a very newbie with all of this web design stuff. but learning very fast. I created a Swish movie which has buttons that link to external web sites. When I test the file either in the player or in the browser it works perfectly. As soon as I import it to Flash the buttons no longer work! All the links are gone.
I do this to add music to the site, flash seems to handle the .wav file better compressing it and encapslating it into the flash movie. Seems to load much faster that way!

Any ideas on why the buttons no longer work in flash?

I have been through both the manual and tutorials, which give three ways to use the SWF in Flash. I have tried all three methods with no success.

The only strange thing is that in the tutorial and in several messages on this forum you speak of a dialog box in the File> Export> menu, I can never see that box. when I use the File> Export> or the Export Tool Bar. I never see the Dialog box to set Export properties!

Thanks

View Replies !    View Related
Need Some Help For Flash4
Hi,

I had some problems for publishing flash4 files to HTML. I just created banners using flash4 and tried to publish them.

The coding that I uesd in HTML:

<object width="118" height="60">
<a target="blank" href="../Flash/Movie1.swf">
<param name="movie" value="../Flash/Movie1.swf">
<embed src="../Flash/Movie1.swf" width="118" height="60"></embed>
</a>
</object>

After publishing to HTML, the flash banner's size doesn't match the size that I designed, that should be 118x60,but it looks very small on the HTML page.

What caused this kind problem, I really don't know.
but the animation function looks fine,just the size had a problem.

Thanks for your help!

YL

View Replies !    View Related
OnClipEvent In Flash4
I did a nice animation in flash 5 but now I have to reconvert the script to flash4 for user-reachability issues.
But I'm only familiar with flash 5.
Does anyone know how to rewrite those line in flash4 actionscripting?
by exporting from flash5 into a flash 4 swf he cant convert those three lines:
for (var i = 0; i<_root.numberOfOptions; i++) {...
onClipEvent (load) {....
onClipEvent (enterFrame) {...

full code for Clipevents:

onClipEvent (load) {
initialScale = int(Math.random()*50)+75;
this._xscale = initialScale;
this._yscale = initialScale;
scaleInterval = 3;
}

onClipEvent (enterFrame) {
modifier = this._xscale/100;
this._x+=(_root.distance/50)*modifier;
if (this._x > 850) {
this._x = -65;
} else if (this._x <-65) {
this._x = 850;
}
if (scaledUp == 1 && this._xscale<=scaleTarget) {
this._xscale += scaleInterval;
this._yscale += scaleInterval;
} else if (scaledUp == 0 && this._xscale>=scaleTarget) {
this._xscale -= scaleInterval;
this._yscale -= scaleInterval;
}

}

I replaced this by the actual MC name.

View Replies !    View Related
Flash4 Vs. Flash 5
Hi,

I have a movie in Flash 4. I now own Flash 5. Can I open the Flash 4 movie and work on it and have it still work in Flash 5?

Are there any real differences I should be careful of?

Thanks!

View Replies !    View Related
Telltarget For Flash4
I did something in Flash 5 but it's clearly not "degrading" well to Flash 4. The "tell target" actions don't seem to work, though I though tell target was Flash 3 or later - anyone have any hints on making tell target actions work better in Flash 4??

View Replies !    View Related
Flash4 As To Flash5
hi there
i learned actionscript dot syntax and have great difficulties understanding flash4 AS. a lot of tutorials that interest me are written in flash4 AS and i just dont get them. could someone please explain the major differences to me, especially concerning getProperty???
thx very much schengen

View Replies !    View Related
Flash4 In Flash5
Will a Flash4 fla file open in flash5?

I am planning to uninstall Flash4 and Install Flash5.

View Replies !    View Related
Flash4 To Flash5 AS
Hi,
I was wondering if there is a site where they can help you to translate flash4 AS syntax into flash5 AS?
Like what does /: mean ? and things like that.

View Replies !    View Related
Tranlating Flash4 To Mx
I am tring to do a tutorial but it is written in flash 4 and I don't understand flash 4 so could someone translate this, from flash 4 script to MX script please. i would appreciate thanks.

if (Number(/CarS:CarV) == 1 and Number(/DogSogV) == 1 and Number(/FlowerS:FlowerV) == 1 and Number(/HouseS:HouseV) == 1 and Number(/MiloS:MiloV) == 1 and Number(/PhoneS:PhoneV) == 1 and Number(/SunS:SunV) == 1 and Number(/TreeS:TreeV) == 1) {
tellTarget ("/Sound") {
gotoAndStop("2");
}
tellTarget ("/Board") {
gotoAndPlay("2");
}
tellTarget ("/Vars") {
gotoAndStop("3");
}
}

View Replies !    View Related
Flash4 Help (lighttables?)
I have just started using flash 4 in the last week i have spent 1/2 of that time trying to figure out how to turn on a feature in flash. I want to use the feature that makes it like you are drawing on a light tables (so that i can see the last frame so i know where to draw on the new frame). I am sure its something as simple as ctrl + alt + something but i have tried mashing about the keys and still no luck, i know this is a dumb question but its so dumb i can't find the answer anywhere. I do know there is a feature that lets me do this because i had it on once by compleat mistake, can anyone please help out a girl that is almost bald from pulling out hair?

-----
Girl Yellow Flower

View Replies !    View Related
Using Variables In Flash4
Hello.
I am using Flash4. In my application i have four buttons and i would like after all these 4 buttons have been pushed to start a movieclip. How do i do that? I have tried using variables but nothing happened. I have initialised variables in a blanc movieclip as o1=0 (for the first button). When the first button was pushed i made o1=1. And so on with the other buttons. I don't know why isn't working. On the first frame of my main timeline i have plaied the initialisation movieclip and after that i have put a stop action. Please give me a complete solution.
Thanks.

View Replies !    View Related
Flash4- CD Get A Pdf File
hello- haven't work with flash 4 in a long time- have a client that wants to use 4. the project is simple- a self launching CD- a row of buttons that will launch their documents- created either in front page of as pdf files. can anyone refresh my memory on what the scripting would be for a simple rollover button?
thanks!

View Replies !    View Related
Flash4 Bore
I need to import an mp3 file into my sound program (peak) to convert it into a wav or aiff for flash4. My problem is the person sending it sends it as a Realplayer file instead of a quicktime which Peak does not recognize...I dunno what to do now...

View Replies !    View Related
Preloaders Using Bytes (flash4)
How am I meant to make a preloader that uses how much bytes the person has downloaded instead of frames?
I only have flash 4, so I have no idea how to do it.

View Replies !    View Related
Flash4 > Flash 5 Actionscript
hi

i'm converting a file from flash 4 to flash 5 actionscript - i can do most of it, but there are a couple of things i don't understand

there are a few lines like this:
setProperty ("tenkey.key" add i, _xscale, eval("PX" add i)*100/L);
and a few like this:
set ("PX" add i, eval("PX" add i)+eval("VX" add i));

i know what eval() does in javascript, but was wondering if it was necessary in flash 5 - i don't get the rest at all - can it be shortened?

thanks for your help

View Replies !    View Related
Flash4 > Flash5 Actionscript
hi

i'm converting a file from flash 4 to flash 5 actionscript - i can do most of it, but there are a couple of things i don't understand

there are a few lines like this:
setProperty ("tenkey.key" add i, _xscale, eval("PX" add i)*100/L);
and a few like this:
set ("PX" add i, eval("PX" add i)+eval("VX" add i));

i know what eval() does in javascript, but was wondering if it was necessary in flash 5 - i don't get the rest at all - can it be shortened?

thanks for your help

View Replies !    View Related
Flash4 To Flash5 Script
hi there, im doing a tutorial on flashkit , im using flash 5 and the tutorial tells me this tutorial is for flash 5 but the code is written for flash 4, how do i transulate the code as the guy who wrote the tutorial didnt provide the .fla file, the code is below


in frame 1

Code:



Comment: ----------------------------------------
Comment: Load text file
Comment: ----------------------------------------
Load Variables (byte.dat, 0)
in frame 2

Code:
Comment: ----------------------------------------
Comment: Once the text file has loaded
Comment: ----------------------------------------
If (_level0:bytedata_loaded = true)
Comment: ----------------------------------------
Comment: Ensure correct file is loaded
Comment: ----------------------------------------
If (_totalframes <> _level0:frame_total)
Set Variable: "error" = "wrong byte-datafile!"
Stop
End If
Loop While (x <= _level0:frame_total)
Comment: ----------------------------------------
Comment: Accumulative byte total
Comment: ----------------------------------------
Set Variable: "ins_bytes" = ins_bytes + eval("_level0:"&x)
Set Variable: "x" = x + 1
End Loop
Comment: ----------------------------------------
Comment: Display byte total
Comment: ----------------------------------------
Set Variable: "ins_bytes_show" = ins_bytes&" bytes"
Go to and Play (4)
End If
please help cause other wise this is a good tutorial

View Replies !    View Related
Tooltips For Buttons In Flash4
can someone plz gimem some idea of what the code could be for the following :

i need that everytime the mouse goes over a button - a tooltip to show up(the kind that come up when u take ur mouse on any button in a windows app)

if this is not possible in Flash4 then can u help me with the code in Flash 5

i believe that it is possible to do it in flash 5 using smart clips - but the flash 4 route would be more helpful for me

thanx in adv.

View Replies !    View Related
Creating A Slideshow In Flash4?
I'm trying to create a slideshow in Flash 4 where the user can scroll up and down viewing different pictures. I'm new to Flash and I'm not sure were to start. Can someone help me get started in the right direction?

Thanks,

View Replies !    View Related
Importing QuickTime To Flash4
Just can't seem to get the movie to play inside Flash
I know I must be doing somthing fundamentally wrong but what

View Replies !    View Related
Help With Inserting Code In Flash4
Hi! I am trying to follow a tutorial on how to create a preloader and they have me insert code. Where do I insert it?

View Replies !    View Related
Flash4 Actionscript For Sound On/off
action script for sound on/off in a loop. Can't find info on this for flash4...
Must be true/false-something? Where can I find info on this? Thanks Lyb

View Replies !    View Related
Works In Flash5 But Not In Flash4...Why?
I have tried to use all Flash 4 coding when working in Flash 5, but it only works in Flash 5 when published. Does anyone know of any reasons or had any similar problems so I might be able to trouble shoot this? For example,

Problem: When published in Flash 4, some of the artwork in my flash starts shrinking for no reason. But Flash 5 published is fine.

Can it be something like: do I have to use "Number" before every value if I'm working in Flash 5 but publishing as Flash 4? Any response is greatly appreciated.

--Mike


[Edited by mikerin on 02-01-2002 at 03:37 PM]

View Replies !    View Related
Percentage Preloader In Flash4
Hi,

I'm trying to find an Actionscript for an percentage preloader that works with Flash 4.
Somewhere I read, that it should work if I export my swf-movie by activating the field "Gernerate size report",
so that I can read out the variables which contain the bytesize. But I don't know how to programm it....

Does anybody know....?

greetings groove27

View Replies !    View Related
Mx Components Has Some Flash4 Behaiviour
I like making my mcs to components, it can be very practical. But there is a very disturbing issue with components, that they are not dubble-clickable, you have to right-click and select "edit in place", just as in flash 4. This really bugs me in my nervs, and I wonder if anyone knows how to turn this flash-4-behaivior OFF!

View Replies !    View Related
Help Translate Flash4 Code To Mx
Hi I was working with this tutorial about a typer,
but it was made with flash four coding:

on (keyPress "Backspace") { // <> backspace is between this but wont show on message board
if (Number(sign)<>1) {
sign = sign-1;
x_pos = getProperty(sign, _x);
y_pos = getProperty(sign, _y);
removeMovieClip(sign);
gotoAndStop("start");
}
}

when I publish in flash 6 player the backspace button does not work.
But if I publish in flash 4 player mode it works.

Can someone help/explain whats going on and how would I translate this?

Thank You

View Replies !    View Related
Translating From Flash4 To Flash Mx
Could some please help me translate the action script in this tutorial to flash mx? It's a real paing in the bug to run it in flashmx, mainly cos it doesn't work :P took me a while before I understood that it was flash 4

http://actionscript.org/tutorials/ad...mi/index.shtml

Thanks a lot.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved