event.target.content.loaderInfo gives error if I'm to access images of the external field (SecurityErr
I'm working on OSMF-based player. I added the image of the logo at the top right of my player. Now, I want to open a link when you click on the logo image.
I wrote a script code Action in onMouse during the event
CODE:
private void onMainClick(event:MouseEvent):void {}
If (Event.Target.hasOwnProperty ('Content'))
{
var info: LoaderInfo = event.target.content.loaderInfo;
var imageUrl:String = configuration. LogoImage; Logo url to view the player
imageUrl = imageUrl.split("/").splice(1).join("/"); "
If (info. URL. Search (ImageUrl) > = 0)
{
var url: String = configuration. LogoLink; Logo link to open it in a new tab
var request: URLRequest = new URLRequest (url);
Try
{
navigateToURL (request, "_blank");
}
catch(Error:Error)
{
trace ("Error occurred!");
}
}
}
}
When I give the url of the Logo of the same domain, it works very well (given the url will open in a new tab). Problem occure when I access the image of the external domain. A field that doesn't support request to my domain.
More information: the Logo image appears correctly on the upper right of my player. On clcik logo url, I am getting error below. I am providing the url of the logo of my config file
SecurityError: Error #2123: security sandbox violation: Loader.content: http://10.1.0.126/release/XYZPlayer.swf Can't access to http://www.esnipe.com/shared/help_icon.gif . Access granted to no political file.
to flash. display::Loader / get content())
to StrobeMediaPlayback / onMainClick)
Please can someone help me out of this error.
use:
var info: LoaderInfo = event.target.contentLoaderInfo;
Tags: Adobe Animate
Similar Questions
-
Remove the MovieClip with event.target.content
Hi everyone please I need your help I have this code and I want to delete baresClip but I cante removeit Please helpme
var loaderBares:Loader = new Loader();
loaderBares.unload ();
loaderBares.load (new URLRequest("negocio/bares.swf"));
loaderBares.contentLoaderInfo.addEventListener (Event.COMPLETE, loadBares);
function loadBares(event:Event) {}
var baresClip:MovieClip = event.target.content;
baresClip.x =-474;
baresClip.y = - 135;
addChild (baresClip);
baresClip.over1.receta1.addEventListener (MouseEvent.CLICK, prueba);
function prueba(event:MouseEvent):void {}
gotoAndStop ("receta1");
removeChild (baresClip); / * Here is work * /.
}
MovieClip (root),.mc_negocio.menu_negocio.btn_botanas.addEventListener (MouseEvent.CLICK, goToBotanas);
function goToBotanas(event:MouseEvent):void
{
removeChild (baresClip); / * Here is not work * /.
gotoAndPlay ("botanas");
}
Oh, I see what you're doing. you entered baresClip local loadBares.
to remedy this, use:
var baresClip:MovieClip
var loaderBares:Loader = new Loader();
loaderBares.unload ();
loaderBares.load (new URLRequest("negocio/bares.swf"));
loaderBares.contentLoaderInfo.addEventListener (Event.COMPLETE, s loadBare);
function loadBares(event:Event) {}
baresClip = event.target.content;
baresClip.x =-474;
baresClip.y = - 135;
addChild (baresClip);
baresClip.over1.receta1.addEventListener (MouseEvent.CLICK, prueba);
function prueba(event:MouseEvent):void {}
gotoAndStop ("receta1");
removeChild (baresClip); / * Here is work * /.
}
MovieClip (root).mc_negocio.menu_negocio.btn_botanas.addEventListener (ouseEvent.CLICK, goToBotanas M);
function goToBotanas(event:MouseEvent):void
{
removeChild (baresClip); / * Here is not work * /.
gotoAndPlay ("botanas");
}
-
run event.target from a page 1 button to run on page 4 of the form
Hello
I currently have a button on page four of the form which takes place this javascript.
If (event.target.value! = 'Off') {}
this.getField("strike5").display = display.visible;
} else {}
this.getField("strike5").display = display.hidden;
}
If (event.target.value! = 'Off') {}
this.getField("strike6").display = display.visible;
} else {}
this.getField("strike6").display = display.hidden;
}
//
If (event.target.value! = 'Off') {}
this.getField("strike7").display = display.hidden;
} else {}
this.getField("strike7").display = display.visible;
}
If (event.target.value! = 'Off') {}
this.getField("strike8").display = display.hidden;
} else {}
this.getField("strike8").display = display.visible;
}
I wish now to turn by a button on page 0 to do the same on page four.
Is this possible?
I hope so... See you soon
I would create a document-level function to adjust the display of the fields when the box of cehck is not equal to 'Off '.
function SetStrikeDisplay (cValue)
{
Set the fields to display when the value is 'Off' to the default value;
this.getField("strike5").display = display.hidden;
this.getField("strike6").display = display.hidden;
this.getField("strike7").display = display.visible;
this.getField("strike8").display = display.visible;
If (cValue! = "Off")
{
this.getField("strike5").display = display.visible;
this.getField("strike6").display = display.visible;
this.getField("strike7").display = display.hidden;
this.getField("strike8").display = display.hidden;
}
return;
} / / end of function SetStrikeDisplay;For each field, you want this script to run to use the following code:
SetStrikeDisplay (event.target.value);
-
HI, I'm getting an error code 604 when I try to import images, it comes up with the following message, some import operations were not made, the following files were not imported because they could be read... items 1-100 etc.
I import the raw files from my card, it's no different than when I imported on the free trial version, but now I've updated it wont let me import, everything else seems to work very well with the catalogue, export etc. Please help me as soon as possible, if someone had this problem?
Hi thank you 99jon, you're perfectly right, it's to do with permissions and thanks for putting me on the right track to fix, the destination had for some strange reason changed during the upgrade, so raw files went to a file on the hard drive which has permissions rather than the images where he used to go (until the upgrade). If anyone has this error code 604, please look to see where the images are current, is not always easy to say right away, I saw he entered the hard drive and initially assumed that it would go into pictures where it is before the upgrade, it would be useful that adobe has this error code with an explanation of what this means on their list of troubleshooting , but could not find any information anywhere. It caused me a lot of delays with hundreds of images that I work on different maturities, but thank God its fixed, very happy
-
Error importing CSV files with "hidden" characters using the external Table
Hi people
Bit of a strange here.
Well, we are accustomed to the use of the external Table method to load data from CSV files in the database, but a recent event presented us a problem.
We have received some CSV files that "look like" regular CSV files, but Oracle will not load them.
When we looked at the CSV using VIM on a UNIX machine, we saw the following characters 'hidden' between each regular character in the file.
If a string that looks like this when opened in Excel/Wordpad etc.^@
Looks like this when exmained with VIM"TEST","TEXT"
Has anyone encountered this before?^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"
Thank you very much
Simon Gadd
Oracle 11g 11.2.0.1.0Hi Simon,.
^ @ represents the ZERO character (0x00).
So, most likely, you have a file encoded in Unicode.You need to specify the character set in the record specification (and if necessary the byte order mark), for example:
CREATE TABLE ext_table ( col1 VARCHAR2(10), col2 VARCHAR2(10) ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY dump_dir ACCESS PARAMETERS ( RECORDS DELIMITED BY ' ' CHARACTERSET 'UTF16' FIELDS TERMINATED BY ',' ) LOCATION ('dump.csv') ) REJECT LIMIT UNLIMITED;
http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/et_params.htm#i1009499
-
Create the content table gives error since the site Explorer
Hi all
I'm new to the web sites of the centre.
Trying to create the table from the Explorer of sites.
Tied at the top of the screen for creating the table.
Get above error after clicking OK.
No idea what I can do wrong. I logged in Site Explorer using admin user 'fwadmin '.
Another way, I can create table content?
Thanks in advance...
Kind regards
Ganesh
Hello
As Stephan said, you must create the table with the ID. Also, I wanted to just mention that I did face some questions, creation or update of some tables because of fwadmin ACL.
There is another default user who has these specific ACLs to work on the database:
-name: ContentServer
-password: password
I hope this can help,
Concerning
-
The environment is Windows XP SP3
-Windows Update fails for these 2 updates
-Fixit research and 'fixed' a problem to update storage location.
-Windows Update still does not work
-Download the update on Microsoft.com
-Manual installation fails with 'Access denied' during installation.
Runnng Bit Defender but it too fails when you try to automatically install these 2 updates.
Yes, I am the administrator and the only user on the machine.
Thoughts? Help?
THX!
Hello
1. what ran fixit?
2. what version of Windows XP are you using (whether x32bit or x64bit)?
3. you have made no changes to the computer before the broadcast took place?
Follow the steps:
Method 1:
Follow the article:
http://support.Microsoft.com/kb/968003
Method 2: To run only the fixit for Windows update reset component
http://support.Microsoft.com/kb/KB971058
Restart the computer and the monitor upgrade of windows, if you get the same error then perform method 3.
Method 3: Run the Windows update agent and check.
http://support.Microsoft.com/kb/943144
a. click on the link above and download the appropriate version of Windows Agent and run it.
b. restart the computer and control it upgrade of Windows.
c. If the problem remains same run the run the Register the Wups2.dll file attach it in the above link and check for the issue.
Registry warning:
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the link below to follow the steps to back up registry:
http://support.Microsoft.com/kb/322756
Hope the above information is helpful.
-
Question of Event.Target
Hi, I think I wrote that this evil, but could not find a solution.
It works:
Parts1_mc.addEventListener (MouseEvent.CLICK, RunTraining);
function RunTraining(e:MouseEvent):void
{
Global.run = Parts1_mc. Parts1.text;
trace (Global.run);
};
When I do that, I get an undefined error message:
Parts1_mc.addEventListener (MouseEvent.CLICK, RunTraining);
function RunTraining(e:MouseEvent):void
{
Global.run = Parts1_mc.event.target.text;
trace (Global.run);
};
As you found, if the event target is the object textfield, so would you just to get the text value, since it is a direct link with it. But the textfield object could not be the target of the event, since you have the listener assigned to Parts1_mc, not Parts1 textfield. The target of the event could be any child of the Parts1_mc object. You're better off assigning the listener to the target object and use e.currentTarget instead of e.target.
-
How to use event.target.name in AS2?
Thanks kglad, I could see how event.target.name in AS3 could make a button to load a movieclip with the same name.
I do the same thing now in AS2, but don't know what to write instead of event.target.name.
And so, at the present time, each button push information in a table and then a function that uses to decide what movieclip to tie to a holder after that he faded once and then fades new...
BEGINNING OF THE GALLERY OF IMAGES *.
Add images to the holder
imgholder.attachMovie ("img0", "image0_0", 1).Table
var nextLoad = ['img0'];Listeners of BTN
img5.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img5"); btnClick()} / / written on 1 line
img4.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img4"); btnClick()}
img3.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img3"); btnClick()}
img2.onRelease = function() {trace (nextLoad); nextLoad.pop (); nextLoad.push ("img2"); btnClick()}
img1.onRelease = function() {}
nextLoad.pop ();
nextLoad.push ("img1");
btnClick()
}
img0.onRelease = function() {}
nextLoad.pop ();
nextLoad.push ("img0");
btnClick()
}
The function of btn
function btnClick() {}
trace ('click');
var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");
myImgTween.onMotionFinished = function() {}
fadeOutImg();
}
}The function part of II btn
function fadeOutImg() {}
trace ("fadeOutImg");
imgholder.attachMovie (nextLoad, "image1_1", 1);
var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");
}I know I should be able to push the button name in the table, but I meet to use a string... I don't know that my code is heavy! But it works. I tried to push as the name of the button but it end by including the reference to full step.Is there a cleaner way to do this using event.target.name?Thanks for the research!There is no event.target in AS2. However since AS2 has no way to remember the scope object where the target object, you can use this to your advantage to get the name of the target using the command 'that' in the function when you use the format above "mc.onPress = myfunc". FYI, the delegate popular workaround solution, enabled when you called 'this' in the function, you can retrieve the scope object where the target instance. So without her help, "this" will return the name of the target object. In any case, this is the code that you can use:
imgholder.attachMovie("img0","image0_0",1);
var nextLoad = ['img0'];
img5.onRelease = onImgRelease;
img4.onRelease = onImgRelease;
img3.onRelease = onImgRelease;
img2.onRelease = onImgRelease;
img1.onRelease = onImgRelease;
img0.onRelease = onImgRelease;
function onImgRelease (): Void {}
nextLoad.pop ();
nextLoad.push (this._name);
btnClick();
}
The function of btn
function btnClick() {}
trace ("Click");
var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true ");
myImgTween.onMotionFinished = function() {}
fadeOutImg();
}
}
The function part of II btn
function fadeOutImg() {}
trace ("fadeOutImg");
imgholder.attachMovie(nextLoad,"image1_1",1);
var myImgTween:Object = new Tween (imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true ");
}
-
Helps the event.target.name
I'm very green with actionscript and coding in general so please forgive me if I ask you something that sounds super easy.
Is it possible to take the "event.target.name" value, which in my case would be something like 'SW5005_mc' and change this value.
I use this value now to tell another clip of gotoAndStop (event.target.name); I have identical to the event.target.name marked images.
I would like to take the value of event.target.name for example "SW5005_mc" and delete the "_mc" and put a dash between the 'SW' and the '5005.
for "SW-5005" and then I'd spend it in a text field.
I don't really know where to start, or if this is possible.
Thanks for any help or suggestion,
Chris
You can use String.indexOf to find the _ and just get everything entered, then use substr and substring for the rest:
var a: String = event.target.name;
var b:String = a.substring (0, a.indexOf ("_")); get the front part of the _
var c:String = b.substr (0.2) + "-" + b.substr (2); Insert a - between the first two characters and the rest
trace (c);SW-5005
-
Original title: How can I fix external MSI?
When I try to download the updates, the error message says there is a problem with the external Setup program and it must be closed. Updates will not be installed. Anyone know how to solve this problem...?
Hi John,.
· You are able to install other applications on the computer?
It seems to be a problem with the corruption of the .net framework. I suggest trying to repair the .net framework on the computer and see if you can install the updates.
http://support.Microsoft.com/kb/923100
Hope the helps of information.
-
The page will load and then get a page not found error. I can still access files using the office program and saying that they have synchronized. I tried to erase the cache, cookies and others, I've used other computers, browsers, and different browsers on different computers, clear the caches and data on establishments. I tried to change my password and log out, then log.
Nothing works, my guess is that it has a file corrupted in my archives or it's a server problem. (an admin may permanently delete all my files?, nothing to important there)
Anything to help.
Thank you
Marc Kubischta responded to you here http://forums.adobe.com/message/6338690#6338690.
It service is not down for everyone.
-
FTP Get VI gives error on the target of RT 15550
Hello
I set up an ftp server on my computer using Filezilla, the purpose is to allow a RT (CRIO-9022) target to download files from my PC.
This is the VI requesting the file on the ftp server:
This VI works when I run it on my computer in the Project Explorer, but when I run it on the target RT I get error 15550.
Maybe I need to change the IP address, but I don't know what the IP address of my computer from the point of view of the objective of RT.
I found this solution on support: click
But I'm not using any external hard drive and I'm not creating a new folder.
Thank you for your help,
David
I finally found the solution, I used the IP address of my ethernet card.
Sorry for creating a useless topic.
-
Pages.gotoAndStop (event.target.name);
I followed this tutorial
http://www.YouTube.com/watch?v=AhsSQGcm46E
I make a Web site with buttons but when I test the scene it scrolls and loops of each content page.
This is the code I have for action script
var myMenuArray = [which, video, photography, Web design];
for each {(var btn in myMenuArray)btn.addEventListener (MouseEvent.CLICK, onBtnClick);
}
function onBtnClick(event:MouseEvent):void {}
Pages.gotoAndStop (event.target.name);
}When I test the scene, he said.
1061: call to a Stop method maybe not defined through a reference with static type fl.motion:AnimatorFactory.
Any ideas?
The error would give the impression that Pages is not an object with a timeline
-
How to use the String with an external dispatchEvent event.target.name?
... I hope that the question of the title makes sense...
On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.
On the main stage a listener can load a SWF it in a magazine called Gallery.
The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.
I use tweens to fade and, in the content of the Gallery when a key is pressed.
--
Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...
The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.
(I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)
My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:
Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.
Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)
Code:
var myTweenIn2:Tween;
var myTweenOut2:Tween;
var nextLoadS2:String;
Listening external inclinometer shipped external event
addEventListener ("contactStage", btnClickExtrnl);
function btnClickExtrnl(e:Event):void {}
nextLoadS2 =?
myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);
}
Function universal BTNS
function tweenOutCompleteF2(e:TweenEvent) {}
myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);
myTweenOut2 = null;
var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");
myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);
Gallery.Load (newSWFRequest);
Gallery.x = Xpos;
Gallery.y = Ypos;
}
Thank you.
If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.
Maybe you are looking for
-
Firefox didn't sync my bookmark on my account? WTF. I reinstall my windows but I thought that ff synchronize my favorites. .. How to restore my bookmark on my account?
-
How to remove the file if is no longer located in...?
When I try to delete, the file in the download folder can not be deleted. And illustrated: this item is not found."This is no longer in C:\Users\Downloads. Check the location of the item and try again. "Please, help me to remove it.
-
What is the PSIKEY means no work?
I get a message that the PSIKEY doesn't is what and where it is
-
I just bought this computer two days ago. I noticed after I put everything in place that the hard drive has been split in two. How can I send all the space of the D: drive on the C: drive? I tried to extend the volume, but it won't let me. Please see
-
How to access the source timecode in the timeline?
HelloWhen I enter a time code while in the panel mounting, the prescription jumps to absolute timecode. How to access the source timecode of the clip on the prescription is?THX,Jayson