Need help with loading in a different place every time the page reloaded the film.
Hello
I have a Flash movie that I need to go to one of the 6 chosen images when say a user presses the button back or home page of the site. I don't want just the same user, see the flash movie to play again in the same place each time that they return home.
Help with this is appreciated.
Thanks advance.
-Ann
Here's what I wrote:
var numbers: Array = [2,114,415,687,960,1195,1485];
_root.firstTime = true;
{if (Firsttime)}
firstTime = false;
The frame number: var = Math.floor (Math.random () * numbers.) (Length);
gotoAndPlay ([frame] numbers);
}
I also tried this:
Array.prototype.shuffle = function() {}
for (var = this.length - 1; ivar ivar > = 0; ivar-) {}
var p = random (ivar + 1);
var t = this [ivar];
This [ivar] = this [p];
This [p] = t;
}
};
ASSetPropFlags (Array.prototype, ["shuffle"], 1, 1);
var Array_ar:Array = new Array (2,114,415,687,960,1195,1485);
Array_ar.shuffle ();
index = 0;
function load_random() {}
gotoAndPlay(Array_ar[index++]);
If (index == Array_ar.length) {}
(index = 0);
}
}
load_random();
But this Dungeon jumping whenever I hit the back of the frame 1 or refresh.
Thanks again.
use:
var numbers: Array = [2,114,415,687,960,1195,1485];
The frame number: var = Math.floor (Math.random () * numbers.length);
gotoAndPlay ([frame] numbers);
Tags: Adobe Animate
Similar Questions
-
NEED HELP WITH SERVICE PACK 3. After downloading and the computer goes into rebooting mode I get the screen to restart with three options, network security safe mode and the other thing. , but it of although he gets, he keeps countdown to restart and reboots and restarts, over and over again, never reboots, same screen. my computer won't let me out this screen even after I turned off the computer and turn it back on, I get the same screen. the only way I can get out of this is to erase my computer everything and bring it back to factory, right out of the box, this big headaches. Thanks for anyone who can help me. PS. Keep the answers in simple terms please.
Hi BSRC$, in stock
- You have security software installed on the computer?
- You receive an error message when you restart the computer?
Reinstalling Windows XP to the factory setting would not be the first option.
It is possible that some third-party programs or the services installed on the computer interfere with the installation of service pack 3.
I suggest that you try to uninstall service pack 3 from the computer by using the recovery console and subsequently ask the article below for what to do before installing the service pack 3on the computer.
How to remove Windows XP Service Pack 3 from your computer
http://support.Microsoft.com/kb/950249
Steps to take before you install Windows XP Service Pack 3
-
need help with my screen has been using mouse and the screen is smaller and smaller
need help with my screen has been using the mouse and the screen is smaller and smaller, so can't see
Try to hold the 'ctrl' key and turn the wheel of scrolling the mouse forward to zoom, turning the scroll wheel to the rear is to zoom out.
-
need help with loading Flash on Apple Mac Mini
Lost my username, password & I am unable to load flash version 8 or better, totally computer illiterate & need HELP!
Hi Michael,
Please see what userid & password I need to install Flash Player?.
--
Maria
-
Need help with loading the XML file
Hello
I spent reviewing the web/forums for an example on how to do this for a few days now. I managed to get this working in Flash Pro easily enough, but I think I'm missing something when I want to do the same thing in Flex.
Basically, I want to load an XML file and then set the values of the text of labels 5, equal to the data in the XML file.
So I have a button created in MXML and have put the following click event:
Click = "dsSetup (Event)" "
I also stated the following:
public var myRequest:URLRequest = new URLRequest ("assets/myFile.xml"); folder located under the CBC in project
public var myLoader:URLLoader = new URLLoader();
public var myXML:XML;
My function that loads is as follows:
public function dsSetup(event:MouseEvent):void
{
trace ("dsSetup");
myXML = new XML (myLoader.data);
H3. Text = myXML.source.itemA;
H4.text = myXML.source.itemB;
H5.text = myXML.source.itemC;
H7.text = myXML.source.itemD;
H8.text = myXML.source.itemE;
currentState = "MainMenu";
}
myLoader.addEventListener (Event.COMPLETE, dsSetup); I think that this line is no longer as I put it in the MXML
myLoader.load (myRequest);
It's the way I did in Flash and it worked fine, but I must be missing something when it comes to Flex.
Can you explain or point me to a good tutorial that shows how to load XML in Flex code?
Those I've found seems to have about 50 lines of code just to load a file and add through a complex for a beginner.
Thank you very much
I suggest you save the data loaded in a variable that can be linked, then bind the properties of the text - who:
[Bindable]
var myXML:XML;
public void dsSetup(event:MouseEvent):void
{
myXML = new XML (myLoader.data);currentState = "MainMenu";
}...
-
Need help with Java Script to perform a calculation in the form of Adobe Acrobat Pro 9
I have a form (test) I created in Adobe Acrobat 9 Pro.
I need help to create a custom JavaScript, so I can get the desired response.
1) there are several questions in each group requiring a numeric response between 0-4
2) there is a total set up field to calculate the sum of the responses of all of the above questions
(3) the final "score" takes the answer in step 2 above and divide by the total possible response
Any help to what Java Script I need to fill it would be greatly appreciated!
I have attached a spreadsheet "" which shows more in detail as are the result of what I used in Excel to get the desired end formulas.
Thanks in advance.
Have you tried the "field is the average of:"?
-
need help with loading the icon
can I get help about icon loading in oracle forms?OK make a folder name it icons and copy all you are gif icons and paste into the same folder (icons), and then copy the icons folder and paste in
D:\DevSuiteHome_1\forms\java\oracle\formsWhen you want to display the icon, then do not use .gif (Note: sometimes also works with .gif) and something more Stéphane on capital letter of gif - icons.it should be in letter.i hope that you understand.
Sarah
-
need help with loading paper inkjet 4635
I just bought a HP Office Jet 46635 and I can understand how to load the paper. Can anyone help?
Here's the Manual. PG 24 illustrates how to load the paper. Happy new year!!
-
Need help with loading BSO cube with several data export files using the Regional service
Hello
We have BSO cubes that are huge and when I expoted data in files, it generated ABC.txt, ABC_1.txt, ABC_2.txt, like this.
How to load this data in the Cube that sits on the other environments? We use Essbase 9.3.1.
I can load the individual files using EAS data loading? If so, ABC_2.txt then ABC_1.txt and finally an ABC.txt would be the loading sequence back?
Please suggest.As Essbase is written this block by block, each block will have its complete info if it is done as a single export or parallel export. You can easily prove this (and I have) If you export a database and load only files 2 or 3, it loads without error. don't forget that you load a file rules, the load fails when the first error. There is no error found, so a value of a complete block of information must be present. Also open export (large files can be opened with wordpad) and you will see a complete info for block exery
-
Need help with loading lightroom 6
Loaded disc. happens by entering the serial number is application to choose a name. does not load program.
You must go in the App Store, and then you could spend MAC
You can also contact Apple Chat Support for the upgrade.
-
Need help with loading analyzed text RSS
Hi, I've created an AS3 FLA where I am the analysis and displays the text of RSS. I've traced the analyzed text and the text displayed in the boxes of dynamic text on the stage without problem.
However the line breaks in the text will appear on stage as well.
How does a band on the < p > or </r > tags in the text to make the text a nice long line that ends with the length of the text as parameters box is?OK, I found the answer, thanks all.
var myvar:String = myDynamicText.text;
myDynamicText.text = myvar.split ("\r").join("");
myDynamicText.text = myDynamicText.text.split("\n").join(""); -
Need help with a warranty issue, but can't take the computer back to the shop
I have the following problem:
I'm a backpacker and bought a Toshiba A660/15j someone in Adelaide. I have the original receipt and the laptop is still under warranty.
Now 2 issues have been raised. First of all, I sometimes get a message that my system runs too hot and that I should stop the computer immediately and return to the service. When I open the monitor health all values are good and the system does not display any overheating (nor does it feel too hot). The second thing is that about two weeks ago, the battery started to empty real quick. When I now fully recharge the battery and do not touch the computer for 2 days, it will be completely empty. It is surely not normal!The laptop was bought initially in Queensland, but I am now in Perth and have no way to go back and return to the store like it what I have to do according to the directives of service Toshiba.
What can I do?
Thanks for your help.Hello
There may be a build-up of dust in the radiator. You can buy a can of compressed Air from electronic stores (DickSmith and Jaycar for example) to blow dust through the vents.
What about the battery drain, update the BIOS to the latest version (take a look at mytoshiba.com.au-> Support-> downloads), then go into BIOS by pressing F2 during POST and disable the USB Sleep and fresh.
If you still have problems with it, you can send the laptop to a Toshiba repair center. There is a list ASP on mytoshiba.com.au
-
Need help with high back and create more space on the computer's internal drive.
I don't have a lot of space on my internal hard drive. I just got a backup unit portable 500 GB. After that I backup everything, what should I do next to create more space on the original disk of disk space?
Hello
Here are some steps to free up the memory of hard drive on your computer.
Method 1: how to optimize disk space everything back to the top
http://Windows.Microsoft.com/en-us/Windows7/what-backup-settings-should-I-use-to-maximize-my-disk-spaceMethod 2: perform cleaning disc.
Delete files using disk cleanup
http://Windows.Microsoft.com/en-us/Windows7/delete-files-using-disk-cleanupHope this information helps.
Please respond back with the State of the issue and let us know if you have any questions. -
Need help with a query about user not assigned to the location
Hello
Oracle Version: 11.2.0.2.0
I have a table say user_nm and loc. The table contains data users and the places they can visit his profile.
with user_nm as (select 'abc' as name, 1 as id_loc from dual union select 'def', 2 from dual union select 'abc', 3 from dual ), loc as ( Select 1 as id_loc, 'china' as loc_nm from dual union Select 2, 'japan' from dual union Select 3, 'london' from dual ) select name, loc_nm from user_nm u, loc l where u.id_loc = l.id_loc
I want to know the users and the location that they do not have access. Output should be as below.
name loc_nm
The ABC Japan
China def.
def London
Thank you
with
user_nm as
(select 'abc' as name, 1 as id_loc of all the double union)
Select "def", 2 double Union all
Select 'abc', 3 double
),
Loc as
(Select 1 as id_loc, 'China' as loc_nm from dual union all
Select 2, 'Japan' Union double all the
Select 3, 'london' from dual
)
Select n.name, l.loc_nm
l loc
cross join
(select distinct name
of user_nm
) n
left outer join
user_nm u
On u.id_loc = l.id_loc
and you.name = n.name
where u.id_loc is null
n.name order
NAME LOC_NM ABC Japan def London def China Concerning
Etbin
-
Need help with Adobe Captivate 5.5, this version is the best that I have access to the
Recently, we loaded Adobe Captivate 5.5 on my desktop machine, we have enterprise systems I can not get the most recent 9. Can anyone provide any support on 5.5, specifically related to the text-to-speech feature?
Ask your questions in this forum. Maybe someone will jump in.
Maybe you are looking for
-
All of a sudden I can't order prints on my computer. I get a message saying that it is impossible to establish a connection. That is what it is?
-
How do you derive speed and acceleration data position?
Hello We are working on a project that requires data of distance, speed and acceleration over time. We use the NI 9234 compactDAQ chassis connected to an accelerometer. The accelerometer is attached to a topic plastic cantilevered (rectangular) whi
-
Problem initializing shift register
Hello I'm using labview 7.1 to control a spectrometer. In my program, I have a certain function that runs 32 times and adds up, and all works again n times. I use two 'loop' for s in the other. In the inner loop, I have a shift register to send infor
-
My system; HP G series windows 7 64 bit. Hard drive crashed, bought a new, but needed the system recovery dvd. PC product #: QF761UAR #ABA The given info with dvd said to start the PC, the slip to disk 1, but will have to reboot the PC will start whe
-
Power LED is red (WAG354G)
After power on, the power Led flashes red, then turns red. It is not described in the user manual. Wath do you mean? Thank you.