Need help w / skip intro AS3 code
Hello world!
I'm building a site that needs an intro.
I have everything set up for the intro and the main site on the same file; Intro is a scene and website is another.
I made a text, converted to the symbol, the name of the instance of "skip_btn" and placed just after the start of the animation timeline.
Shortly before the end of the animation, the "skip" button disappears, and in its place a button 'enter site'; It's in the same place, but it has a different instance name: "enter_btn."
I use this code for the "skip" button (and by editing a little, I would like to use it for the button 'enter site' as well):
skip_btn.addEventListener (MouseEvent.CLICK, skipIntro);
function skipIntro(event:MouseEvent):void {}
gotoAndPlay ("site", 1);
}
And I get this error:
1067: constraint implied a value of type int to type String unrelated.
I placed the code on the first frame of the ActionScript layer that lies on the other layers and the action 'stop' to the last image.
I attach the project file so that everyone can check to detect the error.
I appreciate your help.
Thank you very much.
JC
If you are familiar with AS2, AS3 reverses the order of the arguments to the function gotoAndPlay...
skip_btn.addEventListener (MouseEvent.CLICK, skipIntro);
function skipIntro(event:MouseEvent):void {}
gotoAndPlay (1, "site");
}
In addition, you can probably use the same function of skipIntro as that is for the Enter key. You only need to create the listener for it.
Tags: Adobe Animate
Similar Questions
-
Charger (need help to convert AS2 AS3)
Because I know that this code works very well and that I use it in one of my flash AS3, I need it in one of my flash AS2 and I do not know how to adapt. I searched more than 100 threads and I can not find something similar... Thank you to help me make it work in AS2! As I need in AS2, I thought it would be the right place to post.
I posted the entire process of loading code, but I need help especially with the charger part. How to do this in AS2? Thank you!
var img = 0;
var image_total = 0;var myImages_array:Array = new Array();
var myBitmaps_array:Array = new Array();function Init();
{
Image URLS is loaded into a table before this call
LoadImage();}
function LoadImage()
{
If (img, myImages_array.length) / / img is the index of the current image and myImages_array is my URL table
{I need help with this framework, you can
var loader: Loader = new Loader();/ / Returns the full path of the image and load it
Loader.Load (new URLRequest (my_site_url + myImages_array [img]));
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, imageLoaded);
}
on the other
{
If (count == 0)
{When everything is loaded, I'll start loading my Bitmaps in a short slide show
Count += 1;
init_slideshow();
}
}
}function imageLoaded(e:Event):void
{
Bitmap of the image: var = e.target.content;Bitmap manipulation (deleted) here
image_total = myBitmaps_array.push (image);
If (img < myImages_array.length)
{
IMG += 1;Call the following image
LoadImage();
}
}function init_slideshow (): void
{The current index for the first Reserts
IMG = 0;Start the slide show, since everything is loaded
animate_slideshow();
}Look at the MoveClipLoader class and the addListener method that supports.
-
Hello
I did a little intro in Flash for a site that I built in Golive. I have no knowledge of Flash what it is, and I need help to ensure that, as soon as the intro ends the visitor is redirected to the home page. I did the intro in Imageready (so all the executives eventually bitmaps in Flash), but I read somewhere that I should use some scripts on the last image. I opened the file in Flash, but I'm not sure of what the script to use and how. Could someone help me here (it is not a commercial site, it's just my own site but any help would be less appreciated!)? And then I also have to add scripts in the html page.
My site is here: http://www.fdesign.eu/sicilia2007/index.htmlon the last picture set...
This.Stop ();
getURL ("home.html"); -
Hi there I need help with my laptop my code is 55385917 please help
- Hi there, I need help wit my computer hp pavilion laptop it starts just to show enter them administration or turn on password after 3 times the disable password are 55385917 Please HELP ME because THAT ALL MY WORK IS IT ON please
Groove
Try: 40083339
Concerning
Visruth
-
Need help to buy the activation Code for Windows Vista Home Basic Edition
Hi I am looking to buy a new Activation Code for Windows Vista Edition family Basic can help you
Original title: activaction Code for Windows Vista Home Basic
Hello
See the article to get a new Windows product key:Get a new Windows product key
http://Windows.Microsoft.com/en-us/Windows-Vista/get-a-new-Windows-product-key
If you need assistance more support article about activation:Support for the Microsoft Product Activation issues
http://support.Microsoft.com/GP/cu_sc_prodact_masterSee also:
Activating Windows: Frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/activating-Windows-frequently-asked-questionsI hope this helps.
-
Need help with html and as3 dropdown
First of all Hello! I need to create a html for a company Web site. The design that I did is in photoshop... .and I need to create a menu drop-down. The first question is: can I create the drop in flash without having to use html frames? Can I connect one of the menu buttons in an html page so that it loads in the same window of the browser to another html page (If Yes... with what?)? Please... I need to know... because I prefer simply to apply it in flash rather then html. And the second question is: If the scene in flash can be transparent? Because if I do the menu inside, it will be impossible to match all the dimensions of the stage... and I would like to integrate it in an html page, if possible without the stage color >... Thanks in advance! Tudor
For the opening of the pages you wish to study using the navigateToURL() function. The help documentation provides information abiout it year how to control the appearance of the window as well.
To make the transparent scene is more than a html one aspect of Flash element, if you can set it to publish it. The key is to set the wmode paraemter which is located in the "transparent" html embed code I don't know if all browsers supports this feature, but I think that many are willing to.
-
Need help with a PL/SQL code
Hello
I am trying to execute the following PL/SQL code, which translates errors, obviously I'm not doing things, but it gives you an idea what I'm trying to do:
DECLARE
INT var_count;
SELECT COUNT (*) IN var_count
FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name = "ACTOR";
If var_count > 0 then
BEGIN
DROP TABLE "ACTOR";
END;
/
Erros:
SELECT COUNT (*) IN var_count
*
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: encountered the symbol "SELECT" at the expected in the following way:
Start function < an ID > pragma procedure subtype type
< between double quote delimited identifiers > delete the current cursor
There is before
The symbol 'start' has been substituted for "SELECT" to continue.
ORA-06550: line 7, column 1:
PLS-00103: encountered the symbol "DROP" when expecting one of the following conditions:
(begin case declare exit for goto if loop mod null pragma
raise return select update while < ID >
< between double quote delimited identifiers of > < a variable binding > < <
continue the narrow current delete fetch locking insert open rollback
savepoint sql set run commit forall fusion pipe purge
Your help to create it in a right way will be appreciated.
Thank you very much.
Tonya.
Try the following:
My = $ora $csr-> prepare (q {}
DECLARE
INT var_count;
BEGIN
SELECT COUNT (*) IN var_count
FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name =: ts;
If var_count > 0 then
RUN IMMEDIATELY 'DROP TABLE' |: ts | "CASCADE CONSTRAINTS;
end if;
END;
});
-
Need help with security when AS3 running inside the browser
Hello
I'm relatively new to flash, but a fairly skilled programmer.
I've created a game that works perfectly and communicates with a WinSock server on port 4000 to publish his final to score. With the help of simple XMLSocket and Send.
When I start the game in the stand-alone flash player everything works perfectly as it should
However, when I embed in an HTML page or similar this is wrong. The game works fine, but the final display on the WinSock socket server fails. I got the error message.
ioErrorHandler: [SecurityErrorEvent type = "securityError" bubbles = false cancelable = false eventPhase = 2 text = "Error #2048"]
My server is a local server run me IIS 6. Everything works very well by the stand-alone flash player, so I know that the ports are clear and firewalls is not the problem.
Searching around google and forums I discovered in 9,0,124,0 (flash I'm short) that they brought security enhancements, namely you must validate a cross-domain file.
My file is sitting in the wwwroot in my Web server where my flash swf is hosted and looks like
< cross-domain-policy >
< allow-access-from domain = "" * "safe ="false"/ >"
< / cross-domain-policy >
I also tried adding to article 1 of the swf file
Security.loadPolicyFile (" http://mydomainname.com/crossdomain.xml");
I tried all the bottlenecks, but I can't get the flash to communicate with the server socket when it inside a web browser.
If I run it in the stand-alone player, everything works perfectly.
Can someone help me please. I've been googling and ripping my hair out for centuries. It's the last step in my project and I failed the final step.
Just to add.
My server and the test computer are on the same domain, the web server is a win2003 server and my tests and server coding is a XP machine running IE7. They are connected by a router ADSL, sharing the same external IP address, but rather through the DHCP addressing. Everything works fine for winsocket port port forwarding.
Just for emphasis, I think that this configuration is correct, because everything works fine when I run in the flash player.
Thank you very muchI fixed it later.
In version 9.0.124.0 flash they force now you have a server running on port 843 XML socket server somewhere if you want to use XMLSocket in a browser.
Nothing to do with the domain or crossdomain.xml files.
You must also call
Security.loadPolicyFile ("xmlsocket://x.x.x.x:843") before opening the socket.
to load into the XML file that defines what is allowed.
Google search for AS3 and socket server port 843 and you will find examples and even a simple Java based server to use.
-
HP 630: Need help with the system off code 54257826
Try to install the OS on HP 630. 54257826 disabled BIOS password locking system. Any help please.
Hello
Enter 41135208
Kind regards
DP - K
-
Need help with this pl/sql code
Hello
It is showing an error sql command not properly ended... where FLX_TEXTTRAN802003. SPTEXTINSERT
is a package... help me please
BEGIN DECLARE v_TextID NUMBER :=0; I_LanguageID NUMBER := 1033; v_count number; e_error EXCEPTION; BEGIN --INsert into text FLX_TEXTTRAN802003.SPTEXTINSERT (io_id => v_TextID, i_type => N'', i_lastupdateon => cob_f_getutc, i_lastupdatedby => 'NGMESSystem', i_createdon => cob_f_getutc, i_createdby => 'NGMESSystem' ); -- Insert into TEXT_TRANSLATION FLX_TEXTTRAN802003.SPTEXTTRANINSERT (i_TextID => v_TextID, I_LanguageID => I_LanguageID, i_short => 'CUSTOMER', i_medium => 'CUSTOMER', i_extended => 'CUSTOMER', i_lastupdateon => cob_f_getutc, i_lastupdatedby => 'NGMESSystem', i_createdon => cob_f_getutc, i_createdby => 'NGMESSystem' ); select count(*) into v_count from characteristic_class where name='CUSTOMER' if v_count = 0 then Insert into FLXUSER.characteristic_class (ID, NAME, TEXTID, REFERENCEID, LASTUPDATEON, LASTUPDATEDBY, CREATEDON, CREATEDBY, ACTIVE, LASTDELETEON, LASTDELETEDBY, LASTREACTIVATEON, LASTREACTIVATEDBY, ARCHIVEID, LASTARCHIVEON, LASTARCHIVEDBY, LASTRESTOREON, LASTRESTOREDBY, ROWVERSIONSTAMP) Values (SEQ_CHARACTERISTIC_CLASS.nextval, 'CUSTOMER', v_TextID, NULL, NULL, NULL, TO_DATE('11/05/2012 16:49:05', 'MM/DD/YYYY HH24:MI:SS'), 'SYSTEM', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1); commit; ELSE Raise e_error; END IF; EXCEPTION when e_error then dbms_output.put_line('data already exist'); end;
Hello
next to what Frank says, the following line:
select count(*) into v_count from characteristic_class where name='CUSTOMER'
missing semicolon at the end:
select count(*) into v_count from characteristic_class where name='CUSTOMER' ;
Also the BEGIN initial until the DECLARE is unmatched (no corresponding END).
You can remove it.Kind regards.
AlPublished by: Alberto Faenza on November 6, 2012 16:24
-
Need help to modify the Javascript code...
Hello world
We have the batch script to create InDesignCS2 PS files. We got this script from adobe only forums. And his works fine. Now, I am creating the batch script to create PDF files. Almost, I modified the script, but in the step-exporter script shows an error inside. I tried but unable to solve the problem. I have attached the cliché and find the script below.
//--------------------------------
#target indesign4-0
var myFolder = Folder.selectDialog ("Please select the data in the entry InDesign files");
var myFileIn = File (myFolder) .getFiles ("*.indd");
var myFileOut = Folder.selectDialog ("Please select the Out put PDF file");
var params = new Array();
params = getData (myFolder, myFileIn);
app.dialogs.everyItem () .destroy ();
Opens();function getData (PDF)
{
var pdfPresets = app.pdfExportPresets.everyItem () .name;
Dlg var = app.dialogs.add ({name: 'Choose the Style'});
with (DLG)
{
with (dialogColumns.add ())
{
with (borderPanels.add ())
{
staticTexts.add ({staticLabel: "PDF presets:', minWidth: 93});
dropDown = dropdowns.add ({stringList: pdfPresets, selectedIndex: 0});
}
}
}
If (dlg.show () == false) {}
DLG. Destroy();
Exit (0);
}
Return dropDown.selectedIndex;
}function Opens()
{
for (var i = 0; i < myFileIn.length; i ++) {}
var myDoc = app.open (myFileIn [i], true);
var end = new Array();
var myFileInPath = myDoc.filePath;
var PDFs = new Folder (myFileOut);
pdfUsing (params, PDFs, ".pdf");
myDoc.close (SaveOptions.NO);
}
}function pdfUsing (presetName, folderPath, fileExt)
{
var targFolder = new Folder (folderPath);
try {}
.pdfExportFile app.pdfExportPresets.item (presetName) = new file (targFolder.fsName + "/" + app.activeDocument.name.split (".indd") [0] + fileExt);
app.activeDocument.pdfExport (ExportFormat.pdfType, false, app.pdfExportPresets.item (presetName));
} catch (e) {}
Alert (' error in pdfUsing: "+ e)
}
}Alert ("completed");
//--------------------------------
Please see this and help for me. Thanks in advance
Indana
Hi John,.
You want to use the method "exportFile", not "export" (that's a word reserved in JavaScript), and not "exportPDF" (which does not appear as a method of the document object - that you will notice if you look at the document object in the ExtendScript Toolkit object model viewer).
Thank you
OLE
-
nx9105: System 16316 disabled need help what power on computer hp laptop of password
System disabled 16316 need help working and then a code pop - up 16316 power on password can someone help me need power on password for hp compaq please
Hello
Enter: oirb
or
rcxalnd
Kind regards
DP - K
-
BlackBerry Smartphones need help to unlock my BlackBerry 9810
I have a BlackBerry Torch 9810 of AT & T. The phone keeps asking me the PUK code. Please help me find the PUK code for my torch 9810. I can't access anything, not even the menu for my BlackBerry 9810!
Need help to remove the PUK code!
I am totally fed up with AT & T as they rob me of my money. I need network unlock my phone contract AT & T I need code unlock and the PUK code. If I don't get the unlockcodes I'll have to throw my BlackBerry Torch 9810 for nothing!
When the error message "ENTER PUK CODE" appears on the screen of the device:
- Connect to myAT & T.
- Select Wireless in the myAT & T tab at the top of the page.
- Select my phone/device.
4. click on unlock the SIM card.
5 follow the instructions on the page pop up.
Unlock the SIM card
1. Enter the eight-digit on the phone PUK code, then press OK/Yes.
Note: Some users of Motorola phones must enter * 05 * if "enter PUK code" is not already displayed. After entering * 05 *, enter the eight digit PUK code and press OK.
2. Select a new PIN code, then press OK/Yes.
3 re - enter the PIN code, then press OK/Yes.
4. If the codes have been entered correctly, the phone is ready for use.
Now get rid of AT & T...
It is also possible by using an unlock code. For BlackBerry is the unlock code is also known as the MEP2 code. First you try to call the AT & T customer service. Give them the IMEI number of your BlackBerry Torch 9810. They will provide you the unlock code (MEP2) for your BlackBerry Torch 9810. But this does not always work.
Most of the carriers will give you the unlock code for your BB. Some have policies that vary from having an active account in good standing (good payment history) to have been a customer for 90 days or more. You can buy the unlock code from various suppliers. Unlock codes are unique to each BlackBerry. They cannot be used with a BB to another. Do not purchase your unlock code from a friend who has an and said that the code was for his BB. Unlock codes can last from 4 hours to 10 days to get it. A few BlackBerrys simply cannot be unlocked for various reasons: the IMEI number is not found in the RIM base, or the aircraft was a pre-release, not-to-be-sold device.
The best way to unlock your Blackberry device is buy release from a trusted provider. Search the internet for unlocking mobile phone Web sites. You will encounter a thousand websites that can do this. Choose which ever you like. Do not price comparisons and unlocking instructions. Check again the number of model-network to which your phone is locked and the IMEI number before ordering. If you have made mistakes in these details these people will never give you refund! One last thing, before ordering ask them about the conditions for a full refund in the case of an error code! Think and make a wise decision. I personally bought the code for my Blackberry 8900 curve unlock genie.com. This is because they have good reviews on most of the cell phone forums.
-
Test at startup - short - failed - DST failure ID: gxx3j4-5a771u-xd0037-60w603 - need help
Test at startup - short - failed - DST failure ID: gxx3j4-5a771u-xd0037-60w603 - need help
Hello
Error code 24 characters for short drive Self Test (DST) would indicate that hard is defective and must be replaced.
If your laptop is still under warranty, contact HP (with the error code) and make arrangements for the disk replaced - you can check the status of your warranty here.
If you live in the United States, contact HP here.
If you are in another part of the world, begin here.
If you are out of warranty and would like a guide to replacing the hard drive yourself, please let me know - include the full model number and the laptop Nr - see here for an explanation.
Kind regards
DP - K
-
Problem in creating a global var 'data' to a json file - need help
I'm having a problem with a code and need help.
I use the code below to load and parse a JSON file and store the result in a var 'data '. Everything works fine on the compositionReady page. The problem is that it would save a lot of extra time analysis of loading/if I could do this 'data' available worldwide. With the currentvar = eval (json) data
the 'data' are only available locally. So, how do I or can I do a global var ABOARD cela?
Here's what I have now and what I tried.
$.getJSON ("images/profiles.json", function (json)
{
SYM. Data = eval (json); it does not work
data var = eval (json);
var temp = eval (json); , and is not this pair
sym.setVariable (temporary data)
for (i = 1; i 17 <; i ++) {}
sym.getSymbol("thumb"+[i]).$("thumb1").css ("background-image", "url (".thumb + data.player [i] + ")" ");
sym.getSymbol("thumb"+[i]).$("j_num").html (data.player [i] .j_num);
sym.getSymbol("thumb"+[i]).$("p_name").html ((data.player[i].f_name) + "< br >" + (.l_name data.player [i]));
} / / 3 above lines retrieves the thumbnail image of players, Jersey number and first - last name. it's all working well
}
);
SYM.$("stage"). CSS({"margin-left":"auto","margin-right":"auto"});)
There are 17 other 'profile' of sym.elements leaves, who will appear via ' by clicking on ' an animated image of an inch. Each sheet contains approximately 20 "fields" that get their data from the JSON file. If it is better to recharge/eval the json for each sheet I can do. It's just seems a better idea to be able to access the same 'data' and only load/parse it once?
If any of you gurus of coding could help me I would appreciate it.
Thank you
Joel HRough workaround is to use data = eval (json). This will create a global variable. Not a good solution though. Smarter way is to use the setVariable() method: sym.getComposition () .getStage () .setVariable ('data', eval (json)). After that, you can use data var = sym.getComposition () .getStage ().getVariable('data') to access.
Maybe you are looking for
-
Safari to stopped working intermittently
Last week over a period of 24 hours, our fossil site has stopped working properly in Safari (https://www.thefossilstore.com/). It worked fine in Firefox and Chrome at the time. Also, it was not fair on my iMac that I had this problem. I refreshed the
-
Satellite P300 - 19 H: can I replace T5750 by T7500?
Satellite P300 - 19HReference: PSPC4E-04M015FR Question: extensible? HelloCan I replace T5750 by T7500?Kind regards
-
How can you generate a list of unmet needs in a customized in NO Gateway requirements report?
I am creating a custom report that lists the requirements that are covered (i.e., a traceability matrix) and also a list of unmet needs. I think I have the first part figured out, but I can't understand how to generate a list of unmet, preferably by
-
Has no updates to Office 2010 error Code 80070652
I failed 4 times to install Office pro more 2010 updates Vista Home Prem SP2 - help I tried the suggestion of restarting without result! Error code 80070652 (unknown, of course!) Details: Update of security for Microsoft PowerPoint 2010 (KB2553185) 3
-
A message is displayed both in my list of message and I have to remove it to get my next message.