Can not get the use of variable function!
Hi, I created an actionscript function that stops at an animation to a specific image that works very well. Then, I loaded in a php file with a variable that will contain the number for the frame I want to stop on the animation. It loaded fine and I loaded it into a function. what I can't do is enter the variable in the function that tells the animation to stop playing.
Here is my code:
load variables
varReceiver = new LoadVars(); create an object to store the variables
varReceiver.load ("http://playground.nsdesign6.net/percentage/external.php" "");
load variables
function1
varReceiver.onLoad = function() {}
value is the var that is created.
var paul = this.percentage;
}
function1
function2
this.onEnterFrame = function() {}
{if (this._currentframe == (Paul))}
This.Stop ();
this.onEnterFrame = undefined;
}
}
Play();
function2
One problem lies in that you declare the variable in a function. This limits the scope of this variable to the function. So that your enterFrame function can not see it. Another thing you should consider is not the enterFrame function until the variable is read. So while I would have suggested that you move the declaration of the variables of the function, maybe move the enterFrame function will have a similar effect...
varReceiver.onLoad = function() {}
value is the var that is created.
var paul = this.percentage;
this.onEnterFrame = function() {}
{if (this._currentframe == (Paul))}
This.Stop ();
this.onEnterFrame = undefined;
}
}
}
Play();
If this does not work, then just try to move the variable outside the function declaration and only assign its value it contains. In this way, paul is visible in the second function...
var paul;
function1
varReceiver.onLoad = function() {}
value is the var that is created.
Paul = this.percentage;
}
function1
Tags: Adobe Animate
Similar Questions
-
I use the old style Firefox browser and can not get the password manager to remember a password of my main site. How can I do this?
Thanks for the advice, I went to another program... Last time... and saved my passwords with it. I find it easy to use and non-intrusive, and it has several features that are very convenient for me.
-
I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: opens showing the file
It is not usually necessary to create an exception for the certificates.
Possible causes are that a server does not send the full (intermediate) certificate chain or self signed certificates. -
I have a new mac air and can not get the bookmark to be deleted in Safari.
I have a new mac air and can not get the bookmark to be deleted in Safari. It has default Favorites - I don't want to see them--when I right click and select Remove - I get this error message.
You are using Safari with bookmarks, history, and imported passwords of Firefox. To change your Favorites, you must first keep or delete data from Firefox.
When I click on "do not keep" nothing happens.
Please, back up all data before proceeding.
Triple-click anywhere in the line below on this page to select this option:
~/Library/Preferences/com.apple.Safari.plist
A right click or Ctrl-click on the line and select
Services ▹ reveal in Finder (or just to reveal)
of the contextual menu.*, a file must open with a selected item. Quit the application runs. Move selected item to the office, leaving the window open. Restart the application and test. If there is no change, leave again and place the item you back where he was, crushing the that may have been created in its place. If not, remove the item you moved. If possible, restore from a backup prior to the problem.
* If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select
Go ▹ go to the folder...
from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.
-
I can not get the latest version of photoshop on my laptop, my office has 20151114.r.301 x 64 my can of laptop ONLY get 20150529.r.88 x 64.
What gives?
Hi again,
Use this link to make a direct download - http://blogs.adobe.com/crawlspace/2011/03/keeping-photoshop-up-to-date.html#cc2015
Concerning
Rohit
-
why I can not get the same apps I have on my iPad?
why I can not get the same apps I have on my iPad?
Because they are different versions for different operating systems.
-
I can not get the norton for 36 firefox toolbar. Have run Norton live update repeatedly. He updated of all good and applied a patch. When I go to the firefox menu > Modules > extensions, toolbar Norton is grayed out and says he is not compatible with firefox 36 and is disabled. Help! I need my Norton safe.
Hi Cathie7372, according to Norton the latest version of the toolbar is compatible with firefox 36 is 2014.7.10.26 - your watch as 2014.7.10. 16...
as norton distributes the updates themselves we are probably not able to help much - please contact norton support if you do not receive the last update, even after running liveupdate repeatedly. they should be able to help get their product to date.
-
I download the latest version of Firefox, but when I go to sign up for google + it tells me that my browser is no longer supported. I tried uninstalling and everything, but can not get the new version appears. Any Suggestions?
Please see that.
-
Hi everyone, this is my first post, also help on the post would be appreciated.
I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.
Thanks in advance
Newbie
The only way to install an ipad app is through the app store. PC or Mac software does not run on the ipad. Search in the contacts link at the bottom right of this page. Give apple a call.
I guess is the icon for pages in icloud for storing documents pages. At the same time, apple had a cloud based pages. Not sure what happened to her.
R
-
Device, I have an archos 605 WiFi and can not get the Conect to my pc that like Windows 7
I have an archos 605 WiFi and can not get the Conect to my pc that like Windows 7
http://www.ARCHOS.com/support/support_tech/index.html?country=us&lang=en
-
How can I get the date and time function to appear as a tile
How can I get the date and time function to appear as a tile
How can I get the date and time function to appear as a tile
WIN8 are delivered with this tile/app. The only way to display the time is to launch the charm bar (Win - key + C) or mouse over to the right up/down. That said go to the Windows store... There are several free applications that display the time / date as a live tile. Good luck.
-
Bought Lightroom CC for 2 devices. One installed fine but can not get the LIBRARY to work on the 2nd unit. 2nd camera, it is the menu bar, but nothing other than a gray screen, 1 device has all the tools. If anyone can help.
Thanks Tanuj,
After reloading the software it seems to work now.
-
I bought the Adobe Photoshop classroom in a book for CS6 by chance and I CC. I know, stupid mistake. But I can't take back the book. Is is quite similar to CC I can always get the use of the book? Thank you very much
Each version of Adobe products is based on the previous ones. Some things like filters and advanced features may change or become obsolete over time, but the basic tools remained much the same for decades. As long as you know there are subtle differences between the versions, I think that you will always get a large part of the value of C to a and B for CS6.
Also see the tutorials online CC
Tutorials Photoshop CC | Learn how to use Photoshop CC
Nancy O.
-
Satellite L35-S1054: can not get the Atheros 802 .11B/G to work
I can't get the internal WIFI to work! I wiped the day the first HARD drive and reinstalled a fresh XP Pro SP2. I manually installed all drivers except toshiba machine has not properly categorized them. Does anyone have a link for the real for L35-S1054 Atheros wifi driver?
Also, how to turn on the radio for him once it is properly installed? I see a Fn F8 button that looks like the radio, but it does nothing. Do I need a hotkey program to do this work?
Help!
And thank you!
Hello
The discussion is a little confuse
Have you checked the Device Manager and checked her if the Wlan card driver has been correctly installed? Check it out.But back to the root. The device seems to be a mobile American. I put t know if the American notebooks come with drivers CD or not, but normally you should have the drivers on the support. If this isn't the case, then the image of Toshiba contains options for creating a CD of drivers and tools clean.
The laptop with Atheros Wlan card supports also an Atheros Wlan client utility.
This sets up the WiFi connection. You have 2 options. You will use the clean Windows configuration or you will disable her and use Atheros client utility.But in a first time, you must activate the Wlan with the switch on the side of the laptop and the Fn + F8 key combination
-
Hello!
I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);
which real command structure box to a value of the randomNrGen of the sample and place it in a table.
but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.
AND:
the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;
would it be because of the wait time 1ms?
1. How can I create a structure that does this:
If set to True, it samples a value from Genesis at random and places it in the table
OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?
2. How can I stop it pop samples (multiples of 1000 in my case)?
In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.
Please ignore the meter.
Please help me!
TibiG wrote:
Thanks, Crossrulz!
This did not omit all values and it works fine.
Is it possible to get information in a case without making use of the large loop?
My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.
If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.
Thank you!
You could also use a Feedback node, just keep it out of the structure of the case.
Maybe you are looking for
-
Hello I've just hava on thing in my mind Why is there nothing in the control of labview block 2012 that implement the model reference adaptive control? any information! ~~ Best regards m, sm
-
Hello! I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real); which real command structure box to a value of the randomNrGen of the sample and place it in a table. but I would like to USE this table and I
-
Scanning for convert to text - recognition of words in bold problems
I have an Office Pro 8500 running on Windows XP. During the analysis of text (rtf), sometimes the scanner will recognize the words in characters bold and on other occasions, he won't. When it does not show the "BOLD" type, it shows everything in norm
-
I just received a telephone call from a girl called Janet who said she was calling from Windows and every time I logged on my computer all my personal stuff has been compromised. She also wanted me to turn on my computer while she was on the phone an
-
I was able to disable my SSID in the advance settings, I try now to allow it, but now get the message, the settings have been changed and I have to use the username admin with my current password to access my settings and when I do, it bounces me in