How do I upgrade this code from Flash 6?
I bought a template and am attempting to reverse engineer the
code written for Flash 6 and ActionScript 1.0 without really
knowing ActionScript very well to start with. I would like to
update the code to ActionScript 3.0 and a later version of Flash so
that I can use the effect with updated features, but when setting
the publish preferences to Flash 8, the code simply does not work.
It doesn't fail or cause syntax or even runtime errors. It simply
does nothing at all. It works fine when publishing for Flash 6 but
not in Flash 8 or beyond. Is there something obvious to the
veterans out there that you can point out to me? When tracing the
code, the variable Object.environment.dotCount returns "undefined"
but I'm not sure how to define it without reinitializing it,
thereby defeating the purpose...
The code should produce the effect demonstrated at
http://www.ohmyflash.com/effect/201.html
Not so hastily.
Backup your data, and read this tip:
https://discussions.apple.com/docs/DOC-6271
Similar Messages
-
How do you convert this code from AS3 to AS2?
Hi,
I created some AS3 code that is working perfectly for us.
However now we need to convert it to AS2 so that it can be Flash
Player 8 compatible. If it could also be compatible for Flash
Player 7 that would be ideal but not a requirement.
Thanks in advance.Are you wanting someone to do the conversion for you, or are
you asking for general tips for doing the conversion yourself?
i can give you tips:
have a look at the
ActionScript
2.0 Migration page.
In this you'll find the property conversions eg(going from
AS3 to AS2). y becomes _y, height becomes _height, scaleX becomes
_xscale, void becomes Void etc.
you'll find that events need to be converted, eg.
particle.addEventListener(Event.ENTER_FRAME,
animateParticle);
becomes:
particle.onEnterFrame=animateParticle;
the onEnterFrame class doesn't pass an Event parameter to the
event listener. Instead, the event listener is automatically in the
scope of the event dispatcher, so instead of 'event.target' you
will be able to just target 'this'.
You'll need to use setInterval() instead of the Timer class.
You'll need to use attachMovie() instead of
addChild(). -
how do I upgrade this P.O.S. ipod 2g from crappy 2.2.1?!?!?!?!?!?!?
It is a first gen ipod touch.
You can purchase 3.1:
Purchasing iOS 3.1 Software Update for iPod touch (1st generation) -
HT2534 What is iTune gift card? How can i get the code from this?
What's iTune gift card? How can i get the code from this?
"What's iTune gift card?"
It is a gift card like any other gift card. It is a card that contains credit for purchases in the itunes store.
"How can i get the code from this?"
Genreally there is a scratch of area under which the code lies. -
HT1444 how can I upgrade my macbook from 10.5.8 version to the latest version
how can I upgrade my macbook from OS X 10.5.8 version to the latest version?
Start by checking if you can run Snow Leopard:
Requirements for OS X 10.6 'Snow Leopard'
http://support.apple.com/kb/SP575
Whilst Apple have withdrawn Snow Leopard from their stores, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $20 for a single user, or $30 for a family pack that covers up to 5 Macs. You can also purchase the code to use to download Lion from the same number (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
http://www.apple.com/osx/specs/
If you are outside the US call your national Apple Helpline:
http://support.apple.com/kb/HE57
If you're in the UK, use this number: 0871 508 4400
When you have installed it, run Software Update to download and install the latest updates for Snow Leopard.
To use iCloud you have to upgrade all the way to Mountain Lion:
http://support.apple.com/kb/HT4759 -
RE: Typekit...how do I move the code from an old account to my new account under the Creative Cloud? W/out (preferably) interuption to the website in question? Thanks!
Hi Jesse,
Please email us at [email protected] with:
- your current Typekit account email address
- the email address you use for Creative Cloud
We will be able to help you make this change without disrupting your current font serving.
Thank you,
-- liz -
How to find out company code from a plant ?
Hello friends,
I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD". For that, we have to export company code ID. Currently it is hard coded with one company code. Now we want to make this program usable by all company codes. So instead of hard coding, I would like to dynamically find out company code based on the plant. So I want to know - how to find out company code from a plant ? Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
Thanks,
- Chetanhi
u can find this from table T001K
or just goto EC01
here click on STRUCTURE>NAVIGATION
double click on co code u will get the list
u can slo try this in EC02
regards
kunal -
How do I upgrade my iMac from OSX10.5.8 to Mountain Lion?
How do I upgrade my iMac from OSX10.5.8 to Mountain Lion? I'm guessing I have to first purchase Snow Leopard? Is there anyway to download or upgrade online?
First, determine how high you can upgrade.
SL requires an Intel processor and 1 GB RAM, though more RAM is better.
Lion requires Core2Duo processor and 2 GB RAM, though more RAM is better.
Mountain Lion has higher requirements: http://www.apple.com/osx/specs/
Also review applications that do not work under Lion or ML to see if you will lose critical functionality: http://roaringapps.com/apps:table
Research first, as too many have discovered only after the upgrade that things are lost to them.
You can buy SL or Lion from 1-800-MY-APPLE. SL is a disk ($19 single disk license, $29 for 5-user license). Lion will be a $19 download code to use in App Store that you get with SL. -
How can i run this code correctly?
hello, everybody:
when i run the code, i found that it dons't work,so ,i hope somebody can help me!
the Ball class is this :
package {
import flash.display.Sprite;
[SWF(width = "550", height = "400")]
public class Ball extends Sprite {
private var radius:Number;
private var color:uint;
private var vx:Number;
private var vy:Number;
public function Ball(radius:Number=40, color:uint=0xff9900,
vx:Number =0, vy:Number =0) {
this.radius= radius;
this.color = color;
this.vx = vx;
this.vy = vy;
init();
private function init():void {
graphics.beginFill(color);
graphics.drawCircle(0,0,radius);
graphics.endFill();
and the Chain class code is :
package {
import flash.display.Sprite;
import flash.events.Event;
[SWF(width = "550", height = "400")]
public class Chain extends Sprite {
private var ball0:Ball;
private var ball1:Ball;
private var ball2:Ball;
private var spring:Number = 0.1;
private var friction:Number = 0.8;
private var gravity:Number = 5;
//private var vx:Number =0;
//private var vy:Number = 0;
public function Chain() {
init();
public function init():void {
ball0 = new Ball(20);
addChild(ball0);
ball1 = new Ball(20);
addChild(ball1);
ball2 = new Ball(20);
addChild(ball2);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
private function onEnterFrame(event:Event):void {
moveBall(ball0, mouseX, mouseY);
moveBall(ball1, ball0.x, ball0.y);
moveBall(ball2, ball1.x, ball1.y);
graphics.clear();
graphics.lineStyle(1);
graphics.moveTo(mouseX, mouseY);
graphics.lineTo(ball0.x, ball0.y);
graphics.lineTo(ball1.x, ball1.y);
graphics.lineTo(ball2.x, ball2.y);
private function moveBall(ball:Ball,
targetX:Number,
targetY:Number):void {
ball.vx += (targetX - ball.x) * spring;
ball.vy += (targetY - ball.y) * spring;
ball.vy += gravity;
ball.vx *= friction;
ball.vy *= friction;
ball.x += vx;
ball.y += vy;
thanks every body's help!ok, thanks for your reply ! I run this code in the Flex builder 3!and the Ball class and the Chain class are all in the same AS project!
and i changed the ball.pv property as public in the Ball class, and the Chain class has no wrong syntactic analysis,but the AS code don't run.so this is the problem.
2010-04-21
Fang
发件人: Ned Murphy <[email protected]>
发送时间: 2010-04-20 23:01
主 题: how can i run this code correctly?
收件人: fang alvin <[email protected]>
I don't see that the Ball class has a pv property, or that you even try to access a pv property in the Chain class. All of the properties in your Ball class are declared as private, so you probably cannot access them directly. They would need to be public. Also, I still don't see where you import Ball in the chain class such that it can use it. -
Stumped on how I can upgrade my MacBook from OSX Tiger 10.4.11 to higher?
Hello,
So we know more about it...
At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
Hardware Overview:
Model Name: iMac
Model Identifier: iMac7,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 6 GB
Bus Speed: 800 MHz
Boot ROM Version: IM71.007A.B03
SMC Version (system): 1.21f4
Snow Leopard/10.6.x Requirements...
General requirements
* Mac computer with an Intel processor
* 1GB of memory (I say 2GB at least)
* 5GB of available disk space (I say 30GB at least)
* DVD drive for installation
* Some features require a compatible Internet service provider; fees may apply.
* Some features require Apple’s MobileMe service; fees and terms apply.
Which apps work with Mac OS X 10.6?...
http://snowleopard.wikidot.com/
It looks like they do have it:
http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode. -
I am a Brit living in Germany. I really need to be able to purchase from the German iTunes Store (in €) and the English one (in £). How can I set this up from my iPad?
Technically correct (the best kind of correct)
Now if the Op has and retains a UK account with billing address and UK paymant card - He/She can continue to use the UK store in Germany - Apple does NOT use IP address blocking just a valid paymant card attached to a postcode !
Basically the first four of your paymant card are country codes.
What the op needs to do if he/she now has a Germany address and payment method (could just be German € value gift cards) is to open a separate German iTunes Account !
On a PC/Mac its very easy to change stores, however iOS has it a bit more difficult.
In fact i would recommend the Op sets up a new German account and credentials on a PC/Mac first.
And doing so just means opening the store in iTunes scrolling to the bottom of the screen and clicking on the littler circular flag in the bottom right.
After that the browser window is populated with loads of similar disc flags. Clicking any take you to that regional store where provided you have a valid address (Postcode/Zipcode actually) and payment method local credit/debit some prepayment VISA cards or just a gift card you can create a local account.
Oh and because Apple do NOT use IP addressing you don't actually have to be present in the country of that store. Its against to terms of the EULA but it works !
Back to the iOS device
Tap Settings/iTunes & App Store /Apple ID (that will probably be showing the UK account set up).
In the window that opens tap log out
Now change the ID to the new German name and password and in the next window make sure the flag selected is that of Germany (when in Germany)
When buying from the UK store follow that path again log out of the German account and re-log in using the UK ID
As it happens I have a UK Portuguese and US account all active because I have residences in all three - and can visit any of the stores from anywhere. -
V5 How can I get the code from an itunes gifcard that got scraped off
How can I get the code from an itunes gifcard that got scraped off
Try Here > http://support.apple.com/kb/TS1292
If no joy...
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
How can i rewrite this code into java?
How can i rewrite this code into a java that has a return value?
this code is written in vb6
Private Function IsOdd(pintNumberIn) As Boolean
If (pintNumberIn Mod 2) = 0 Then
IsOdd = False
Else
IsOdd = True
End If
End Function
Private Sub cmdTryIt_Click()
Dim intNumIn As Integer
Dim blnNumIsOdd As Boolean
intNumIn = Val(InputBox("Enter a number:", "IsOdd Test"))
blnNumIsOdd = IsOdd(intNumIn)
If blnNumIsOdd Then
Print "The number that you entered is odd."
Else
Print "The number that you entered is not odd."
End If
End Sub873221 wrote:
I'm sorry I'am New to Java.Are you new to communication? You don't have to know anything at all about Java to know that "I have an error," doesn't say anything useful.
I'm just trying to get you to think about what your post actually says, and what others will take from it.
what does this error mean? what code should i replace and add? thanks for all response
C:\EvenOdd.java:31: isOdd(int) in EvenOdd cannot be applied to ()
isOdd()=true;
^
C:\EvenOdd.java:35: isOdd(int) in EvenOdd cannot be applied to ()
isOdd()=false;
^
2 errors
Telling you "what code to change it to" will not help you at all. You need to learn Java, read the error message, and think about what it says.
It's telling you exactly what is wrong. At line 31 of EvenOdd.java, you're calling isOdd(), with no arguments, but the isOdd() method requires an int argument. If you stop ant think about it, that should make perfect sense. How can you ask "is it odd?" without specifying what "it" is?
So what is this all about? Is this homework? You googled for even odd, found a solution in some other language, and now you're just trying to translate it to Java rather than actually learning Java well enough to simply write this trivial code yourself? -
How do I Upgrade my iPad2 from Software Op Version 4.3.5 to IOS 6.0.
If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
http://support.apple.com/kb/HT4972
Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
http://support.apple.com/kb/HT4623
This process will upgrade the iPad to 6.1.3 -
How do I upgrade to Mavericks from 10.6.8 on a MacPro?
How do I upgrade to Mavericks from OS 10.6.8? I've downloaded the software, but it tells me I need to have OS X 10.7. I can find all kinds of updates to 10.7, but I can't find 10.7 anywhere.
Not so hastily.
Backup your data, and read this tip:
https://discussions.apple.com/docs/DOC-6271
Maybe you are looking for
-
My Mid 2010 MacBook Pro will not boot
My Mid 2010 MacBook Pro will not boot regularly, in safe mode, in recovery mode or from original OS DVD. Is this the logic board? I've tried resetting the SMC and pram numerous times and even tried switching out hdd's to try and do a clean install on
-
Unable to change members of AD security groups who have access to shared mailboxes
I have an exchange 2013 running for over a year now and never had any problems with it. Until recently. A request came in to make a new shared mailbox. So I did just that and gave rights to a security (not mail enabled) AD group. Just like I Always d
-
ITunes will not re-install after virus infection in Windows Vista
Hello there! I hope you are having a good day today! My name is Austin and I hope you can assist me with a problem I am having re-installing iTunes. Laptop: TOSHIBA Satellite L305-S5877 SYSTEM UNIT Model No.: PSLB0U-07K02D Windows Version
-
Changes to SAP BI master data reflecting in Crystal Filters
Hello All We are looking at a scenario where Crystal Reports is used to report off SAP BI. One of the characteristics in BI is used as a filter in Crystal. If new master data value is added to this characteristic in BI, is it automatically reflected
-
Why need to update ADF BC connection details for ensuring deployment??
I know it is a ADF question but still posting in this forum as it was encountered deploying a BPM application on OBPM 11.1.1.6. I get a bpm project from the internet and decide to test it out on my local. The objective was to populate the payload of