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








Something Unexpected For Me


PHP Code:



import fl.controls.DataGrid;
import flash.display.MovieClip
var aBox:DataGrid=new DataGrid()
aBox.x=0
aBox.y=0
aBox.width=200
var s:MovieClip=new MovieClip()
trace(s.width +"  " +aBox.width)
s.addChild(aBox)
trace(s.width +"  " +aBox.width)




out puts are :
0 200
115 200

I am wonder Why the sprite size is not equal by aBox ?




FlashKit > Flash Help > Actionscript 3.0
Posted on: 12-27-2007, 10:31 AM


View Complete Forum Thread with Replies

Sponsored Links:

Well That Was Unexpected
im pretty new to using variables and i have a problem. this is the code im trying to use:

set Variable: "amount" = 100

now for some reason when i try to use this variable i get this error:

Scene=Scene 1, Layer=main, Frame=1: Line 1: ';' expected
set Variable: "amount" = 100


now from my understanding i somwhere have missed out a ";". but where have a missed it out and why am i getting this rubbish.
manyt thanks

View Replies !    View Related
Unexpected Mc Reload. HELP
I have a masked mc that I have scripted to goto and stop frame 2 so as the mask tweens, it appears to reveal the mc.
As the last frame of the mask tween loads, it also forces the masked mc to reload and reset to frame 1.

I can't figure out why or how to correct this issue.

Anyone experience this?
any ideas?

View Replies !    View Related
Flash MX && :unexpected
if(this.hitTest(_root.ship)) && (_global.second = false){

produces:
"Unexpected '&&' encountered
if(this.hitTest(_root.ship)) && (_global.second = false){"


why??????????????????

View Replies !    View Related
Unexpected Format On .FLA
Hi all, first post so be gentle !

I have been passed an FLA to edit, simple stuff really but author unknown by provider, i have tried to open in both MX Studio and MX 2004 and get a loud beep (turn down that speaker) and a grey box saying UNEXPECTED FORMAT - any ideas ?

There is an outside chance that the file is corrupt, but the included SWF works fine.

Cheers all.

View Replies !    View Related
Unexpected Fileformat Why?
Im trying to open a old site i did in 2004 (probably in an older Flash version) because i have tu update it. But i get the message "Unexpected fileformat" when i try to open the .fla's

Im aware of that this can hapen if you go from Newer to older versions but to my knowledge it shouldn't happen when you go from a older to a newer!!!???

Does annybodey have a clue??? should a try an older flash version!??

can i probably go around it somehow?, or is my problem something else!?

please help fast, have to resolve this otherwise im screwd! :-(

View Replies !    View Related
Unexpected XML Behavior
I have an XML file with a list of photos which I need to step through and put the data into a couple of arrays. I am using a for loop and nextSibling to step through the data, but it takes 2 iterations to get to the next sibling for some reason, and that is messing my script up. Any ideas?

Actionscript 2.0 code snippet:
var numOfRooms = parseInt(photoData.firstChild.attributes.num);
aChild=photoData.firstChild.firstChild;
for (var c=0; c<numOfRooms; c++)
{
trace("c="+c+". Current node: "+aChild.attributes.path);
photoPaths[c] = aChild.attributes.path;
photoDescs[c] = aChild.attributes.desc;
aChild=aChild.nextSibling;
}

XML:
<photos num="7">
<photo path="1.jpg" desc="This first room"/>
<photo path="2.jpg" desc="this is the second room"/>
<photo path="3.jpg" desc="This is the third room"/>
<photo path="4.jpg" desc="This is the fourth room"/>
<photo path="5.jpg" desc="This is the fifth room"/>
<photo path="6.jpg" desc="This is the sixth room"/>
<photo path="7.jpg" desc="This is the seventh room"/>
</photos>

Output Window:
c=0. Current node: undefined
c=1. Current node: 1.jpg
c=2. Current node: undefined
c=3. Current node: 2.jpg
c=4. Current node: undefined
c=5. Current node: 3.jpg
c=6. Current node: undefined


I am perplexed, maybe my data is not formated quite right? Thanks in advance for any help. I'm using MX 2004 Pro.

View Replies !    View Related
Unexpected Format
Hey,

I have been working with flash from vesion 4
(Not professional, just for fun)

Now I have some troubles with Flash MX 2004
Last nigth I reïnstalled my pc and reïnstalled Flash MX 2004
When I try to open a flash file that I made last week with Flash MX 2004, it gives the error: unespected format
The same error I get for all fla's made in Flash MX

Can anybody help me out on this one, cause I realy need to be able to open those files

View Replies !    View Related
Unexpected MouseOut
I have a menu item,...mouse over, and the sub menus will appear below. The architecture i was going for was,
1-mouse over main mc
2-mc adds an empty mc (a container) that will hold the submenu mc's
3-add submenu mc to container
4-user can mouse over submenu and select a submenu mc

the problem is a few: the container mc appears to be quite low, and then when i am to mouse over the subs (or the container) Flash responds as if it is a mouseOut on the main mc...any thoughts

i think this may be answerable (is that a word?) without the code, but i have attached the key methods as well


Code:

private function showSub(me:MouseEvent):void
{

var bx:bbb_Button=bbb_Button(me.currentTarget);
bx.upDown="down";
//find boxes below:
this.lowerGroup=extract(bx);

//add the submenus

var subContainer:MovieClip= new MovieClip();
subContainer.name="subContainer";
subContainer.addEventListener(Event.ADDED_TO_STAGE,positionSUBS)
bx.addChild(subContainer);
//start the flow:

bx.addEventListener(Event.ENTER_FRAME,roll);
}
private function positionSUBS(ev:Event):void
{
var bx=ev.currentTarget.parent
var subLength:Number=bx.xml.sub.length()

for(var y:Number=0;y<subLength;y++){
var subMenu:bbb_SubButton= new bbb_SubButton(bx.xml.sub[y].toString(),bx.xml.sub[y].attribute("url"))

subMenu.addEventListener(Event.ADDED_TO_STAGE,positionAndPrep)
ev.currentTarget.addChild(subMenu) ;
}
}

View Replies !    View Related
Unexpected 'eq' Encountered
**Error** Scene=Scene 1, layer=PROCESS - BUTTON, frame=1:Line 394: Unexpected 'eq' encountered
if (socmigm22.text) eq 0.0) {

**Error** Scene=Scene 1, layer=PROCESS - BUTTON, frame=1:Line 396: 'else' encountered without matching 'if'
} else if socmigm22.text > 0 {

Total ActionScript Errors: 2 Reported Errors: 2







Code:

if (socmigm22.text) eq 0.0) {
label.custommixtitle22.text = " ";
} else if socmigm22.text > 0 {
label.custommixtitle22.text = (socmii22.text) + " " + " " + Number(socmigm22.text) / Number(100) + " MG";
}



I can't get it to work!

View Replies !    View Related
Where Did These Unexpected Errors Come From?
Hi,

So the project I'm working on has started throwing errors for apparently no good reason. It tells me one of the classes is trying to reference something it can't, but nothing relating to it has been changed. I haven't so much as touched the class files and documents that were publishing before (and haven't been changed) are now throwing these errors too. It also happens whether I use Flash 8 or CS3.

I've tried replacing the classes from a backup, just in case they'd got corrupted somehow, and clearing the ASO cache but to no avail.

Please, does anyone have any idea what might be happening?

View Replies !    View Related
Unexpected '/' In RegExp
Thanks for reading this, I am trying to match values from a texfile using Zinc 3.0 to import the text file into a string. If you read the following page,

http://www.actionscript.org/forums/s....php3?t=183562

it will explain what I've done so far. But I am working in AS2.0. So how can I solve the Unexpected '/' encountered that I am getting on this code?


ActionScript Code:
var DataArray = Data[1].match( /-?d+.d+w*/ );
trace( DataArray );

Thanks for your help.

View Replies !    View Related
Unexpected Results
I'm not getting the results I expect with this code: var numPoints:uint = selectedPieces * selectedPieces * selectedPieces;

What I expect is selectedPieces^3 what I'm getting is (selectedPieces^2)^2

I.E. if selectedPieces = 3, I expect 3 * 3 * 3 = 27; I get (3*3)(3*3) = 81 why?

View Replies !    View Related
Tween, Unexpected End
Hi,
I'm trying to simulate ocean waves for a presentation. In order to make it look random I've added 2 waves with a coded tween each. Once a tween is over it gets recalculated and moves to the other edge. And so and so.
The problem here is sometimes this tweens comes interrupted with no reason and neither a TweenEvent is dispatched. So... why does my tween end unexpectedly or how can I detect it in order to make it run again?

Thanks a lot

View Replies !    View Related
Unexpected Error
I imported a gif picture, and some frames became like this:







Wtf is going on??

View Replies !    View Related
Discover The Unexpected
derbauer bV to be launch, 08.08.2003 0800 PM
1024/768 resolution screen recommended

View Replies !    View Related
Unexpected File Format?
Half the .fla files I download from flashkit or Macromedias own site, I try to open in Flash 5, I get an "unexpected file format". Anyone have any idea? Appreciate it.

View Replies !    View Related
Unexpected File Format
I have Flash 4, and am a new registered person in this FlashKit place. I tried to download a movie on this forum, that clearly states "V4" in black, but when I attempt to pull it up, my Flash 4 says "Unexpected File Format". Anybody have any suggestions for me? Thanks. (I feel like a real dumb Flash user that wants to become a pro one day. Fat chance I guess?)

View Replies !    View Related
Unexpected Mc Reload Problem
I'm scripting a masked mc to goto and stop frame 2,
but when the mask finishes it's tween to reveal the mc, it reloads the masked mc which has a stop on frame 1.
so I can see the mc as the mask opens and as soon as it stops, the mc goes to and stops frame 1.

Any idea how to overcome this?

View Replies !    View Related
'unexpected File Format'
Am a newbie with Flash 5 on a Mac, can anyone tell me why some of the .fla's I've downloaded from Flashkit won't open and show me the error message: 'unexpected file format'

thanks for any help

View Replies !    View Related
Unexpected File Format
I can't open a Flash MX file in Flash 5. When I am using MX, how do I save the file to work for Flash 5?

View Replies !    View Related
Unexpected File Format?
Hi there,
Total newbie here, just started playing around with MX and cant seem to download anything, well I can dwnld but when I try to open it Flash says "unexpected file format" Is cant just be a mx v f5 so where am I going wrong? Prob a dunce newbie question but, ya know.....

View Replies !    View Related
Unexpected Increment In Array
Hello,
I cannot understand why the value in test1 is being altered in this code, can somebody please explain


test1 = [[0,0],[0,5],[0,10],[5,0],[5,5],[5,10]];
test2 = new Array(test1);

trace("test1 * "+test1);
trace("test2 * "+test2);
trace("-----");

this.onEnterFrame = function(){

test2[0][0][1] += 1;

test2[0][0][1] >= 5 ? delete this.onEnterFrame : null;

trace("test1 - "+test1); // why does test1 change ?
trace("test2 - "+test2);
trace("=====");

};

/* Output
test1 * 0,0,0,5,0,10,5,0,5,5,5,10
test2 * 0,0,0,5,0,10,5,0,5,5,5,10
-----
test1 - 0,1,0,5,0,10,5,0,5,5,5,10
test2 - 0,1,0,5,0,10,5,0,5,5,5,10
=====
test1 - 0,2,0,5,0,10,5,0,5,5,5,10
test2 - 0,2,0,5,0,10,5,0,5,5,5,10
=====
test1 - 0,3,0,5,0,10,5,0,5,5,5,10
test2 - 0,3,0,5,0,10,5,0,5,5,5,10
=====
test1 - 0,4,0,5,0,10,5,0,5,5,5,10
test2 - 0,4,0,5,0,10,5,0,5,5,5,10
=====
test1 - 0,5,0,5,0,10,5,0,5,5,5,10
test2 - 0,5,0,5,0,10,5,0,5,5,5,10
=====
*/

thanks for any assistance,

View Replies !    View Related
Unexpected Pauses In Scenes ..?
I am having an issue with a FLA i am working on. The movie contains lots of scenes (by neccesity) and there are only simple goTo label commands in the movie. The playhead seems to stop at acertain poins, and in particular one scene (the menu scene). I have re-written and checked through the actions in the movie, but to no avail.

This movie was doing the same thing a while ago, but in a different place, and i changed the position of some of the labels.. and it seemed to just start working again. This situation didn't last long, as the problem started to crop up elsewhere??

The scene that is the problem will load, but it just stops as soon as it hits frame 1. I have tried different labels names, and going to a frame rather than a label, but it makes no difference.

Does anyone know if there is a way to force and a scene to play?? i have even tried putting 'play' actions on the first few frames.. but NO..

err... any help would be very much appreciated.

chunk

View Replies !    View Related
Unexpected Pauses In Scenes ..?
I am having an issue with a FLA i am working on. The movie contains lots of scenes (by neccesity) and there are only simple goTo label commands in the movie. The playhead seems to stop at acertain poins, and in particular one scene (the menu scene). I have re-written and checked through the actions in the movie, but to no avail.

This movie was doing the same thing a while ago, but in a different place, and i changed the position of some of the labels.. and it seemed to just start working again. This situation didn't last long, as the problem started to crop up elsewhere??

The scene that is the problem will load, but it just stops as soon as it hits frame 1. I have tried different labels names, and going to a frame rather than a label, but it makes no difference.

Does anyone know if there is a way to force and a scene to play?? i have even tried putting 'play' actions on the first few frames.. but NO..

err... any help would be very much appreciated.

chunk


_____

View Replies !    View Related
Unexpected File Formats
Hello!

I had a Flash movie that I made on a PC, then altered it on a Mac OS 10, and now it says "unexpected file format" when I load it back on my PC. Before, I did this with no problems. Any help on how I can get my movie back?

Thanks

View Replies !    View Related
Unexpected File Format
Hello,

I was working on flash mx (on a mac) at work and I sent the file to myself via email because I thought I could work on it at home (on a pc). When I tried to open it, it said unexpected file format.

Is there anyway I would be able to work on this file on my PC?

View Replies !    View Related
Unexpected File Format?
pleaase tell me what this error message means....Joy

View Replies !    View Related
Unexpected File Format?
Unexpected file format????
pleaase tell me what this error message means....Joy

View Replies !    View Related
HELP Unexpected File Format
I have recently formated my HD, and have reinstalled Flash MX pro. I created files on my old HD in Flash MX pro, but here is my problem. Some .fla flies open up, but some keep saying "Unexpected file format". I tried opening the files in older versions of flash MX but same error! PLEASE HELP!

thanks

View Replies !    View Related
Unexpected File Format
every time i try to open a project that was not made on my computer, i get an error saying"unexpected file format". im using flash2004PRO on winXP home.

View Replies !    View Related
Unexpected File Format?
Please tell me why, oh WHY can't I openan MX file in the newere MX 2004? Every time I do it goves me an unexpected file format error message? What am I doing wrong? Do I have to import it? I simply can't believe that Macromedia would be stupid enough to have NO backwards compatibility in the new software. Please HELP!

View Replies !    View Related
Unexpected File Format ?
I don't understand why I am getting this error message when trying to open a .swi file. Nothing has changed since then (ie. no new updates to swish, etc) I have been working on the movie every day..and suddently today I get this message. I have a lot of time invested in this, I really hope it is not gone forever! Does anyone know what could be wrong/how I can fix this?

Thank you for any feedback.
-Sabrina

View Replies !    View Related
Unexpected File Format
Hey guys .. I am having this issue. I wanted to look at an FLA that someone posted here, but when I tried to open it (in 7.0), it says "UNEXPECTED FILE FORMAT." So I updated to 7.0.1, and now they work! But all my files that were created in 7.0 are now not openable!

Im going insane I just lost my whole homepage design, because no one is going to have v7.0 to download.

View Replies !    View Related
Unexpected File Format
what makes i cannot open the fla saved in my friend's flash? he use mac verison flashMX and i use mac and pc flashMX.
but the problem we are experiencing is
i cannot use my pc/mac flash MX to open his fla files
the alert dialogue is:
(pc flash MX)
unexpected file format
fail to open document


thanks who can help

View Replies !    View Related
I Get 'unexpected File Format' PLZ HELP
Hi,

I know most of you already passed trought that kind of problem before...

But i think my problem is a little different...

I made a tiny flash file on FlashMX(doesnt remember version) 4 month ago and now im trying to open it using FlashMX and im getting the error... UNEXPECTED FILE FORMAT...

what is wrong? it is possible i made it in FLASH 5, but doesn't Mx open flash5 file?

any help would be appreciated...

View Replies !    View Related
Unexpected File Format
Whenever i try to open a project or file from another computer, or from my computer before i formatted it, it gives me an error saying "Unexpected File Format" then doesnt open. How can i get my files back?

View Replies !    View Related
Unexpected File Format
Ok... I have tried to open several Flash Movies off of the internet by downloading their source code, to try and figure out how they did stuff, but it won't let me open it in flash. It just keeps on saying, unexpected file format or something like that. Anyone know how to solve my problem?

View Replies !    View Related
Unexpected File Format
I downloaded several flash movies, source code from off the internet and try to open them in flash to see how they did everything, but when I try to open the movie in flash it just says unexpected file format or something like that. Can anyone solve my problem?

View Replies !    View Related
Unexpected File Format
I am trying to open .fla files created somewhere else. Flash opens but it will not load the file. I get an "unexpected file format" message instead. The file has an .fla extention after it so it is properly named. I am not sure what else it could be. Any ideas? Thank you.

View Replies !    View Related
Unexpected File Format
Hi there. I'm trying to open a .FLA in Flash MX, but keep getting "unexpected file format" before the program quits.

I assume it's written in a higher version of Flash than I'm using.

Would anyone be so kind to convert it into Flash MX for me if I post the fla? (if indeed that is possible)

View Replies !    View Related
Unexpected File Format?
I have an .fla that gives an "Unexpected File Format" error message all of a sudden when I try to open it. It was created using 2004 MX Professional and I am trying to open it with the same. This happened all of a sudden and I do not know what to do. What has caused this? How can I remedy it?

View Replies !    View Related
Unexpected File Format
I can't open some of my fla files. I get the following message "unexpected file format" even though it is not the fact.

Anyway around this or are my source files completely lost?

Thanks

View Replies !    View Related
Unexpected File Format
"unexpected file format" this is a message i get when tryin to open any of files from tutorials on this site. i'm running flashMX. any suggestions?

View Replies !    View Related
Unexpected File Format
Hi..i'm new here...

i've downloaded a .fla file here in flashkit. From Here.

it's preview so cool..awsome..and I hope dat i can change the layout colours to make it suitable for my website....but, badly ...when i try to open the file, the same things appeared..."Unexpected File Format"..is it something wrong with my flash MX? or is it wrong with dat file?

Just asking....

View Replies !    View Related
Unexpected File Format
I get this message everytime I try to open a certain document, and all back up versions of it.
I created it on my old mac, which was system 9, with flash 5. My mac exploded so I had to buy a new one, I am still using Flash 5.

Does anyone know what this might be, or how I may be able to open it?


Thanks
Sarah

View Replies !    View Related
Unexpected File Format
I have to edit a few .fla's that I got from a client but i'm unable to open them... unexpected file format

i work with plash mx pro 2004

any idea how to solve this problem?

thanks

View Replies !    View Related
Unexpected File Format
I got some source for flash files created by another person and get the above error on open (which subsequently shuts down flash). How do I go about getting them converted to something that works?

View Replies !    View Related
Unexpected File Format
hi all, i am sort of not new to flash, but haven't used in donkeys years.
i have had a web site made by a designer, and since have let him go.

i have the source files he sent to me, and he tells me that they were created in flash mx2004.

i have this installed on my computer, but when i got to open the files, it comes up error 'unexpected file format'
if i recall correctly, isn't this usually a version creation error? ie: i am trying to open it with the wrong version of flash?

if anyone can help me that would be greatly appreciated

cheers
bret

View Replies !    View Related
:( Unexpected File Format
hi.. im new to flash trying to learn and this site helped me a lot.. but i got a real problem..

i dowloaded macromedia flash mx professional 2004 ... its trial.. i dont know if its a problem..

i download fla files.. i try to open the files but i always get the same error
"unexpected file format".. someone said file may be corrupt.. no.. all the files cant be corrupt..? no one worked in my flash..

someone said the fla version may be different.. i mean made by with another version of macromedia flash.. believe me i installed one by one every versions just to test it.. the same.. unexpected file format.. i cant learn by editing fla files and looking into them.. please someone help me please......

View Replies !    View Related
Unexpected File Format?
Hey,
I got a file from a Mac user, and I opened it up with Flash, and I got unexpected file format, so I couldn't open it. It's a .fla file. I get that a lot of times actually, like from downloading .fla's on here and what not. Does it have to do with having a Mac machine (im a pc) or ..is something with what version of flash I'm using?

- Jess

View Replies !    View Related
Unexpected File Format
Hey there,

I created a little menu in MX Prof. 2k4. Now i want to make some changes and both MX and MX Prof 2k4 both give a file unexpected error...
Anyone able to open it or to convert it?


thx in advance!

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