Flash CS3 Check Syntax
Been using CS3 for a week now and the one very useful tool
that seems to no longer work is the Check Syntax button. Usually if
you click this at author-time then it can pick up basic errors such
as assigning a string to a number
var myValue:Number
myValue = "abc"
This isn't picked up at author-time but only at compile-time.
Is the Check Syntax tool no longer available for AS3?
Evidently not. It will find the error at compile time, but to
my mind that is too little too late. We've got a longish thread
about this and am encouraging people to report this as a bug! It is
nice to know that there is one more who noticed.
BTW, if you publish for AS2 it will pick up on these types of
errors.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288&threadid=1264371
Similar Messages
-
Flash CC - check syntax option?
So what option do I have to check the syntax of my code, now that the 'check syntax' button is gone? I've been scouring the net for over an hour, and no one even mentions it's dissappearance other than Adobe's formal announcements of it's deprecation.
How can a intermediate coder such as myself check syntax?That only seems to correct the structure of the indentations of my code. It doesn't call out wrongly spelled code, for instance. I don't understand how this was seen as an unnecessary feature worthy of deprecation!
-
Flash CS3: AS3 - ReferenceError #1065 Variable is not defined
I have developed several actionscript classes. Two of these
classes are associated with MovieClip objects in the library. The
MovieClips have their Linkage Base Classes set to their respective
package and class locations and when I check the Linkage settings
(using the check mark icon) Flash CS3 reports that it can find the
associated classes for both MovieClips.
When I check the syntax of my code there are no problems, and
when I test the Flash movie no Compile Errors are shown. Yet, in
the output window I get the following error:
ReferenceError: Error #1065: Variable class1 is not defined.
ReferenceError: Error #1065: Variable class2 is not defined.
I have placed class1 and class2 in the above error messages
to represent the classes that are associated with the MovieClip.
Am I missing an import command somewhere? I have the base
class path properly set in the preferences of Flash CS3.
Thanks,It appears that this issue was due to some of my classes not
being marked as public. I had been following examples from AS2 that
had the classes marked as dynamic without a private or public
identifier. Apparently, AS3 assumes all unmarked classes are
private. -
How do you build an image gallery in Flash CS3 actionscript3?
I am building my entire website in flash cs3, actionscript3
but I really need help building an image gallery. What I need is a
horizontal scroll bar that contains thumbs within it and then loads
the full size image right above the scroll bar. Anyone has any
suggestions for books, tutorials or even safe places to purchase
the fla that I can customize it?if you want help understanding as3 check:
http://www.senocular.com/flash/tutorials/as3withflashcs3/
if you want to purchase a custom fla that does exactly what
you want send me an email via my website. -
Color management issues with Flash CS3, please help?
Hello everyone.
I am having issues with color from a Jpeg image produced in Photoshop CS4
after importing onto the stage in Flash CS3. The color in Flash changes the image to a lighter less saturated state. Yuk.
Here is a link to a screen capture to show you what's happening (for a bigger view):
http://www.rudytorres.com/color/weirdcolor.png
As you can see the front image is the Photoshop image showing the sRGB color profile embedded but Flash (behind) changes that color.
This client is quite picky and she will notice this difference.
If any one can help, please.
- Rudy
P.S. It's a button somewhere, Right?Dougfly,
Only an hour wasted? Lucky you. Color is an incredibly complex subject. First, forget matching anything to the small LCD on the back of your camera. That's there as a basic guide and is affected by the internal jpg algorithm of your camera.
2nd, you're not really takeing a color photo with your digital camera, but three separate B&W images in a mosaic pattern, exposed thru separate red, green and blue filters. Actual color doesn't happen until that matrix is demosaiced in either your raw converter, or the in-camera processor (which relies heavily on camera settings, saturation, contrast, mode, etc.)
Having said the above, you can still get very good, predictable results in your workflow. I have a few color management articles on my website that you might find very helpful. Check out the Introduction to Color Management and Monitor and Printer Profiling. In my opinion, a monitor calibration device is the minimum entry fee if you want decent color.
http://www.dinagraphics.com/color_management.php
Lou -
AIR Intrinsic Classes-Tried and Proven Approach to building AIR applications in the Flash CS3 IDE
Hi everyone,
For all of you out there who would like to develop AIR
applications
from the Flash CS3 IDE but aren't sure how to get those pesky
intrinsic
classes working, I have a technique that you can work with to
create
your classes and make fully functional AIR applications.
First of all, those solutions out there that list
"intrinsic" functions
in their class definitions won't work. That keyword has been
taken out
and simply won't work. The "native" keyword also doesn't work
because
Flash will reject it. The solution is to do dynamic name
resolution at
runtime to get all the classes you need.
Here's a sample class that returns references to the "File",
"FileStream", and "FileMode" classes:
package com.adobe{
import flash.utils.*;
import flash.display.*;
public class AIR extends MovieClip {
public static function get File():Class {
try {
var classRef:*=getDefinitionByName('flash.filesystem.File');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get File
public static function get FileMode():Class {
try {
var
classRef:*=getDefinitionByName('flash.filesystem.FileMode');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get FileMode
public static function get FileStream():Class {
try {
var
classRef:*=getDefinitionByName('flash.filesystem.FileStream');
} catch (err:ReferenceError) {
return (null);
}//catch
return (classRef);
}//get FileStream
}//AIR class
}//com.adobe package
I've defined the package as com.adobe but you can call it
whatever you
like. You do, however, need to import "flash.utils.*" because
this
package contains the "getDefinitionByName" method. Here I'm
also
extending the MovieClip class so that I can use the extending
class
(shown next) as the main Document class in the Flash IDE.
Again, this is
entirely up to you. If you have another type of class that
will extend
this one, you can have this one extend Sprite, Math, or
whatever else
you need (or nothing if it's all the same to you).
Now, in the extending class, the Document class of the FLA,
here's the
class that extends and uses it:
package {
import com.adobe.AIR;
public class airtest extends AIR{
public function airtest() {
var field:TextField=new TextField();
field.autoSize='left';
this.addChild(field);
field.text="Fileobject="+File;
}//constructor
}//airtest class
}//package
Here I'm just showing that the class actually exists but not
doing much
with it.
If you run this in the Flash IDE, the text field will show
"File
object=null". This is because in the IDE, there really is no
File
object, it only exists when the SWF is running within the
Integrated
Runtime. However, when you run the SWF as an AIR application
(using the
adl.exe utility that comes with the SDK, for example), the
text field
will now show: "File object=[object File]". Using this
reference, you
can use all of the File methods directly (have a look here
for all of
them:
http://livedocs.adobe.com/labs/flex/3/langref/flash/filesystem/File.html).
For example, you can call:
var appResource:File=File.applicationResourceDirectory;
This particular method is static so you don't need an
instance. If you
do (such as when Flash tells you the property isn't static),
simply
create an instance like this:
var fileInstace:File=new File();
fileInstance.someMethod('abc'); //just an example...read the
reference
for actual function calls
Because the getter function in the AIR class returns a Class
reference,
it allows you to perform all of these actions directly as
though the
File class is part of the built in class structure (which in
the
runtime, it is!).
Using this technique, you can create references to literally
*ALL* of
the AIR classes and use them to build your AIR application.
The beauty
of this technique is its brevity. When you define the class
reference,
all of the methods and properties are automatically
associated with it
so you don't need reams of code to define each and every
item.
There's a bit more that can be done with this AIR class to
make it
friendlier and I'll be extending mine until all the AIR
classes are
available. If anyone's interested, feel free to drop me a
line or drop
by my site at
http://www.baynewmedia.com
where I'll be posting the
completed class. I may also make it into a component if
there's enough
interest. To all of you who knew all this already, I hope I
didn't waste
your time.
Happy coding,
PatrickWow, you're right. The content simply doesn't show up at all.
No
JavaScript or HTML parsing errors, apparently. But no IE7
content.
I'll definitely have to look into that. In the meantime, try
FireFox :)
I'm trying to develop a panel to output AIR applications from
within the
Flash IDE. GSkinner has one but I haven't been able to get it
to work
successfully. Mine has exported an AIR app already so that's
a step in
the right direction but JSFL is a tricky beast, especially
when trying
to integrate it using MMExecute strings.
But, if you can, create AIR applications by hand. I haven't
yet seen an
application that allows you to change every single option
like you can
when you update the application.xml file yourself. Also, it's
a great
fallback skill to have.
Let me know if you need some assistance with AIR exports.
Once you've
done it a couple of times, it becomes pretty straightforward.
Patrick
GWD wrote:
> P.S. I've clicked on your link a few times over the last
couple of days to
> check it out but all I get is a black page with a BNM
flash header and no way
> to navigate to any content. Using IE7 if that's any
help.
>
>
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
Problem displaying dynamically loaded text in Flash CS3
I created a Flash CS3 application that does not display
dynamically loaded text (from internal AS3 scripts) on 3/6 of my
client's computers. All computers run IE 6 and Flash Player 9. I
cannot replicate the problem on any computer in my department. The
problem seems to be related to Flash Player 9 or a browser
setting/IT restriction. Has anyone encountered this? If so, have
you found a solution?
If I cannot find a solution, then I will need to almost
completely redo the application.
One slightly insane idea I have considered is to, if
possible, convert dynamically loaded text to an image real-time. Is
that possible?
Btw, I have created a font in my library. Should I try
manually embedding the font from the Properties menu and selecting
all characters?
Thanks in advance.yes, even though you may be using a font from the library,
you still have to specify that each text field that uses that font
embeds the font, and you'll need to select all characters(well not
all, unless you require all the different scripts of the world -
upper-case, lower-case, numerals and punctuation usual suffices).
I bet if you checked, the computers where the font did not
appear did not have the font on their system.
Good luck
Craig -
Flash CS3 / Adobe products: crashes or acting erraticly
HI -
I recently posted a thread conserning Flash CS3 deleting the
contents or erroring out my built and working .fla's and .swf's
apon opeing them to edit the .fla's.
Suspected a virus - scanned etc etc.
an Avast boot scan showed a corrupt cab archive avast error
#42127 on a boot scan for a DW20.exe adn 4 or 5 other cab
archives... thes are all related to Visual Basic C# - the DW20 .exe
is for error reporting to MS about crashes. - thsi may be an "avast
error" - but no viruses detected.
I checking my WinXP error logs for a further clue they showed
at the time of Flash CS3 crashing when trying to preview - it was
due to FFMpeg.exe
is this something that flash implements in importing a video
file or perhaps a mpeg?
When these crashes started, i was attempting to import a .wmv
(- which btw - i thought past flash 8 there was no problems with -
it now asks for Direct Show to be installed or Quicktime.?? Maybe
someone can give an answer to this as well My understanding was
that past Flash 8 - this was no longer nessasary - if this is true
- any thoughts as to why CS3 is asking me to install these products
to import or encode a wmv file?
Back to topic: Since attempting to bring in the wmv video
and/or mpeg audio and/or the flv i was experimentiing with
- Flash not only crashes on me when attempting to open any
.fla now.
- but also destroys or corrupts all other .fla's and .swf's
in the same file folder as the one i'm working on.
My questiion is - since ffmeg is not a win exe - is this
something that Flash implements in it's importing of a video or
audio file? or at all.
I have 12 error event crashes listed from Flash - all list
the same:
" faulty application ffmeg.exe
- faulty module: ffmeg.exe
- fault address 0x001be5e3
- event id:1000
anyone have knowledge on how to fix this or what may cause
this -
I mentioned the cab errors because i'mm not sure if one is
related to the other - i had C# installed but removed it from the
comp.
as mentioned in my other post related to this - Photoshop
Lightbox is also acting complety crazy as well - all adobe products
are the ones seemly - that i know of or noticed thus far - the only
products acting up.
I need this issue fixed - as i have to finish my fla! lol
I'd much rather be doing that than trouble shooting crashes
from Flash or other Adobe products acting up.
Any help would really be appriciated since this goes beyond
my skills and knowledge.
thanxSure wish I had a quick fix, but it will take more info than
what you have entered. I was having a lot of trouble also, until I
did the 5 tasks listed below.
1. Is there enough memory for Flash CS3? Setup tells you how
much and if you have enough to install the program.
2. Is there enough storage space for Flash CS3? Again, Setup
tells you how much it needs and if ;you have enough to install the
program.
3. How many files do you have on your hard disk? The amount
of directories and files on your hard disk matters a great deal
when you are installing new programs. I usually go through my c:\
directory and get rid of programs I don't use. I try to keep my
folders and files at the lowest I can get away with.
4. When was the last time you cleaned and defragged the
registry?
This matters a great deal too. If you have an overabundance
of empty registry keys, etc. it can hang up your computer too. I
use RegCure, it's a great program.
5. When was the last time you did a defrag on C:\? Many
people don't realize that just these 5 tasks can have a bad effect
on your hard drive.
It would be a great thing if you uninstall Flash CS3, do
tasks 1-5 and then reinstall Flash CS3. Seems like a lot of work,
but it is extremely important to keep your computer running at its
best.
hope this helps.
jan -
Help with Flash CS3 Particle Effect Tutorial Code
I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code:
var starsArray:Array = new Array();
var maxStarss:Number = 8;
function addStars(e:Event)
var stars:Stars = new Stars();
stars.x = stage.stageWidth/2;
stars.y = stage.stageHeight/2;
stars.alpha = Math.random() * .8 + .2;
stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
stars.xMovement = Math.random() * 10 - 5;
stars.yMovement = Math.random() * 10 - 5;
starsArray.push(stars);
addChild(stars);
stars.cacheAsBitmap = true;
if (starsArray.length >= maxStarss)
removeChild(starsArray.shift());
stars.addEventListener(Event.ENTER_FRAME,moveStars);
function moveStars(e:Event)
e.currentTarget.x += e.currentTarget.xMovement;
e.currentTarget.y += e.currentTarget.yMovement;
var myTimer:Timer = new Timer(50);
myTimer.addEventListener(TimerEvent.TIMER, addStars);
myTimer.start();
This time, I'm trying to make the stars shrink and transparent as they move away from the point. So I coded it like this:
import flash.events.Event;
var starsArray:Array = new Array();
var maxStarss:Number = 8;
function addStars(e:Event)
var stars:Stars = new Stars();
stars.x = stage.stageWidth/2;
stars.y = stage.stageHeight/2;
stars.alpha = Math.random() * .8 + .2;
stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
stars.xMovement = Math.random() * 10 - 5;
stars.yMovement = Math.random() * 10 - 5;
starsArray.push(stars);
addChild(stars);
stars.cacheAsBitmap = true;
if (starsArray.length >= maxStarss)
removeChild(starsArray.shift());
stars.addEventListener(Event.ENTER_FRAME,moveStars);
stars.addEventListener(Event.ENTER_FRAME,animeStars);
function animeStars(e:Event)
trace(this.starsArray);
this.scaleX-=0.01;
this.scaleY-=0.01;
this.alpha-=0.01;
if (this.alpha<=0) // remove this object from stage
function moveStars(e:Event)
e.currentTarget.x += e.currentTarget.xMovement;
e.currentTarget.y += e.currentTarget.yMovement;
var myTimer:Timer = new Timer(50);
myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
myTimer.start();
I couldn't make it work. All I got was an error message saying "
1084: Syntax error: expecting identifier before rightbrace.
Help?It is because of this line of code at the end
myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
if you read the documentation on addeventlistener it looks for these type of arguments to be passed
addEventListener(type:String, listener:Function, useCapture:Boolean);
animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
myTimer.addEventListener(TimerEvent.TIMER, addStars); -
Flash CS3 Issues ..?
Hi - General question ii hope some cna help me with.
Recently downed Flash CS3 - Dreamweaver and PS
No issue on install - things i thought were going fine
Comps got a fresh OS and updated drivers new - 2 gig of
memory.
i've been noticing little things like - when i save my fla -
i updates other .fla's in the same folder - (not with the same
name)
I just built a CF and now - with no change to the swf - when
i saved the .fla after a minor update - it changed all the other
versions of .fla and the .swfs - all were empty - 1k swf and 1k
.fla's after saving.
when attempting to preview the fla's i had been using and is
working fine on my site. Flash stated it had preformed and illigal
something? and crashed and keeps crashing upon attempting a preview
whethr browser or flash.
I checked all code and code in the xml's js nad action
scripts html etc etc - it was fine
Now here is the kicker - my flash player ? seems to be
missing over and over - i go to the adobe site - it shows it's not
installed - i've installed it at least 8 damn times today. I dont'
know if this is realated - but - it seems to be happening
after deleting the 1k .swf's and fla files it produced
I coped and pasted a back up copies of the .swfs and .fla's -
which worked fine while in the back up folder - worked perfectly -
till i opened it up the .fla in flash ( rechecking code to be sure
i didn't miss something.
Flash did it again, emptied or changed the back-up copy of
the .swf and .fla down to .1k - empty nothing there. all i did was
open it up?
did a virus scan - a spy ware scan - nothing - didnt' think
there would be - but better safe than sorry.
These issues just really kicked in today - while i was
working on a final .fla and considering some changes additions -
going to experiment and get deeper into what i wanted to create.
Till around 4pm today my .fla's and .swf Previewed fine and
played fine - then just quit - and though it won't preview - i
tested a export movie - the new .swf worked???
any thoughts on the cause?
Possible software conflict - maybe?
but that wouldn't explain the Flash player not showing as
installed on the adobe site or would it.
I need to finish this fla soon, so i could use some help with
this if any one has some suggestions as to what may be causing the
issues.
tia
- c -thanx for the reply jdmajor -
as mentioned - i scanned yesterday - first thing was a boot
scan - memory scan - file scan - took 3 hrs to scan everything so
many times - nothing popped up - well.....
a Avast stated a cab file was corrupted on the boot scan -
reinstalled Avast - re-updated signatures and Re-Boot scanned,
memory scanned.
Nothing showing as corrupted as far as viruses trojans worms
etc
did the usual maintanence - defrag - etc etc which
maintanance is done nightly anyway.
checked all updates for wares - nothing.
drivers - nothing new.
The flash player needing to be re-installed has been from the
begining - lasts usually a couple days - then it shows as not being
installed and i have to re-install it - now it's worse - yet
thoughit shows not installed via the Flash Player page - it plays
flash fine so i know it's installed.
there are no hacked warz on the comp.
Tried again last night - with some other back-up copies of
the fla. -
it keeps bring the 12k file to 1k and it refuses to work -
now claiming it can't load the .xml file which is ...
aaaarrggh! frustrating to say the least... lol up till 2:30am
trying to fix it
rebilt another mini file - worked fine - maybe there is
something conflicting with paper vision.
though there shouldn't be - i'm not re-writting the files.
Just opening an existing previously working .fla file.
I downed flash again last night - thought maybe a re-install
of flash cs3
- but...??? haven't done it yet
tried debugging the script - nothing other than it keeps
staing now that it can't load the .xml file
checked pathways - a hundred times - they're correct.
issue is somewhere... that's for sure.
thanx for the suggestion
i'll try a safemode scan - maybe it will reviel somthing
though to be honest i hope not - not wishing for virus or worm I'd
rather it be something else to be honest.
Doesn't anyone come up with viruses and hacks that do good
things ?
lol theres a thought -
I have just spent a day and a half trying to get the flash ad
I made link to the customer's website.....Its not that hard.....
and I have done it before in Flash 8..... but for some reason I
could not get it to work untill I saved it back to flash 8. Im just
wondering if anyone else is having this problem and or if anyone
can help me to get this to work in CS3.
Thanks
MorgenMorgen,
> I have just spent a day and a half trying to get the
flash
> ad I made link to the customer's website.....
> but for some reason I could not get it to work untill I
> saved it back to flash 8.
Hmm, that sounds odd.
> Im just wondering if anyone else is having this problem
> and or if anyone can help me to get this to work in CS3.
I wonder if your publish settings were configured for
ActionScript 3.0
in Flash CS3 and you didn't realize it? AS3 is different in
quite a few
ways from AS2, so that would be the first place I'd check. My
hunch is that
you were trying to use AS2 in an AS3 document.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
More FMS & Flash CS3 not loading FLV
I consider myself an intelligent fellow, but getting Flash
CS3 to stream vis FMS is killing me. I've read the posts here where
people are describing similar situations. I've read several
websites that show kinda similar methods of getting this done, but
none are working! The docs on FMS & CS3 are like in an infinite
loop "see AS2.0/3.0 documentation on how to stream videos" &
when you get there "See FMS documentation on how to stream
videos"!!
I've read this & did it all, no dice:
http://www.mcalister.cc/ddd/flv/index.html
Read this which linked me to above, no dice:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00003495.html
Here is my config:
SERVER running FMS2, Windows Server 2003, IIS6, offsite, but
am able to RDP in.
File structure:
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\streams\small\Cosmo_Small.flv
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\main.asc (sole content being:
load(components.asc))
Where: ForRentFlash = appName
small = instanceName
Flash CS3 development locally & testing movie produces
WHITE SCREEN.
Component Inspector for FLVPlayBack AS3.0 dropped on stage:
Source Content Path:
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv (of course with
correct IP)
No matter how I go about this, I end up with: FAILED TO LOAD
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv.
Port 1935 was opened on the firewall of the remote
server.Try placing your flv files in a _definst_ directory.....
Here is how mine are set up:
C:\Program Files\Macromedia\Flash Media Server
2\applications\aniridia\streams\_definst_\V032v.flv
I don't use any .asc files, but I'm fairly certain that they
would be in the root of the " aniridia " directory (which is the
application), rather than in the " aniridia\streams\_definst_ "
directory.
My videos would not stream until I put them in the _definst_
directory.
I use an xml playlist with my flv player to call my videos.
My stream syntax looks like this:
rtmp://mydomain.com/aniridia
Don't reference the flv file name.
Good luck! -
Flash CS3 timeline display problems
I have just upgraded to Flash CS3 and immediately noticed a
problem when viewing and working with the Timeline window. When I
click on a frame (keyframe or other) it highlights that frame
completely white, which means I can no longer tell what type of
frame it is. The same happens if I highlight a series of frames,
they are all white and hard to interact with. If I highlight a
series of frames and attempt to Right-Click, I can rarely get a
sub-menu to show for quick options like 'Remove Frames' and 'Create
Motion Tween'. Most of the time my Right-Click is ignored
completely (ie nothing happens).
I have searched Google, Flashkit and Adobe site for help with
this, but no love. Has anyone else experienced this problem? The
rest of my CS3 install is working perfectly.
Computer: 20" iMac Intel 2.16Ghz Core 2 Duo, 2Gb RAM, 250Gb
HDD (~100Gb Free)
OS: Mac OS X 10.4.9
Version: Adobe Flash CS3 Version 9.0quote:
Originally posted by:
sczulu
Since upgrading from Flash V8, I'm having an issue where
prominent fonts (such as Myriad Pro) appear jaggy until the file is
published, making layout and design difficult. I've checked the
text display settings with now change in appearance. The files do
publish with anti-aliased text.
I've noticed this issue as well and was wondering why I was
having a problem, thanks for answering that question. -
Created website in flash cs3, wont open once hosted...
I tried to find the answer here in the forums but couldn't,. I'm sorry, i bet this question has been posted before..
I created a website in flash cs3. published it so that I now have an index.html, home.swf and AC_RunActiveContent.js file.
when I upload these to host, the url just shows blank white page. I called customer support of host, godaddy, and they said the server could not find the swf file.
are they named incorrectly? I'm new to this...
thank you very muchAccording to a quick check there is no file by the name of...
So... two things:
1. Never use spaces in the names of files you intend to use on the web. That space can break code up. It is best to use an underscore if you need to, but not an empty space.
2. After you change the name and get things updated in the code for the new name, make sure your spelling is correct.
After you have loaded the newly named file you should be able to access it directly on the web using ... newfilename.swf
where newfilename is whatever new name you give it. -
FLVPlayback Memory Leak in Flash CS3
Hi There,
I' making a flash file with AS2 in Flash CS3. I put a FlVPlayback in stage and let it load a couple of FLV files from my local HDD and playing continuously. I use "addEventListener" to check the current running flash movie is completed. After complete event occur, I load another flv movie to paly again.Here, I noticed that memory usage is increasing every time a new flv file is loaded and played. I heard "addEventListener" in CS3 is causing the memory leak and not being detected by GC.
Please let me know if there is a solution to solve the memory leak issue. I posted my codes here to know something I'm doing wrong.
Thanks in advance...
================================
onClipEvent (load)
function _fun_complete(eventObj)
this.autoRewind = "true";
var _v1 = _root.v;
var _v2 = _root.FLVlists.length;
--__v2;
if (_v1 < _v2)
++_v1;
else
_v1 = 0;
this.contentPath = _root.FLVlists[_v1].path;
var _v3 = _root.listVids[_v1].width;
var _v4 = (stage._width - _v3) / 2;
this._x = _v4;
_root.v = _v1;
this.play();
this.addEventListener("complete", _fun_complete);Helllo Friend,
Thanks for your feedback. The problem with removeEventListener is that , the player stops and not playing anymore. In my application, I nned to loop and play one FLV files after another. For example, I need to play 3 flv files, File1.flv, File2.flv, File3.flv. I load and play File1.flv first. Once complete event trigger from "addEventlisterner" , then I load File2.flv and then File3.flv and then Flie1.flv. So it needs play continuously and causing memory leak. Please let me know if there is another way of working around.
Regards
Maybe you are looking for
-
Hi - had issues with BB speed - ip profile was set to only 0.25mbps. BT did a line reset on Monday lunchtime. IP profile is still set ot 0.25mbps. Contacted BT who said it would take 10 days for the line to stabilise and spped will vary in that ti
-
Problems sending e'mail (using Windows Live Mail)
Can anyone decipher this message for me. I can receive e'mails but get this message whenever I try and send a message. I have checked through my e'mail account settings and everything looks as it should. An unknown error has occurred. Subject 'Fw: I
-
Hi, I want detailed config steps for vat on sales. Please provide a detailed list of config settings. Thanks CHEERS
-
Multiple row as a single row in a column
Hi, I want to select Multiple rows into a single line in 'Single Column Table' . For ex: Employee table has only one column , named as empname . it has three rows Select empname from emp; empname thambi peter antony My expected result: thambi,peter,a
-
Dear *, I downloaded the Wsdl for "Service Request". Unfortunatly, it doesn't pass the W3C validation rules.[http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#NCName|http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#NCName] actually, it contains