Asp.net :: Addressing From The Root Directory Of Website?
Oct 30, 2010
I have a flash banner in my website and it has some navigation links on it .
Because I have several different folders in my website I need address them from the root .
At the moment i use getUrl like this :
getURL("ArticleList/Default.aspx");But it doesn't work .
View 2 Replies
Similar Posts:
Nov 3, 2009
I have a web service running in http://server/abc/service which is being accessed by Flash from a different domain. I deployed a cross domain policy file to http://server/abc/crossdomain.xml and made the Flash load it using: flash.system.Security.loadPolicyFile("http://server/abc/crossdomain.xml");
in the constructor of the main movie clip. However, when the Flash starts, it requests and loads this file (observed in Firebug), but then it also requests it from the root of the server (i.e. from http://server/crossdomain.xml) which does not exist. Subsequent HTTP requests don't work reporting security cross domain errors. When I put the policy file to the root of the server, it all works. Why does it request the policy file from the root as well even thought it loads it from the subdirectory? Why the subdirectory policy file is not enough?
I should also note that the two policy files are loaded before any application HTTP requests are issued.
View 2 Replies
May 25, 2010
iam using a template, i designed everything alright but need to know how to click a thumbnail to open a file in the root directory.The XML file for the thumbnails looks like this currently and everything in the flash movie work and the explorer window opens to he link:
<?xml version="1.0" encoding="utf-8"?>
<thumbnails>
<thumbnail filename="ms.jpg" url="http://www.myspace.com/XXXX" [code]...
but instead of a URL I want a file to be opened (a mp3 or wmv or swf or exe) in its own window or default player...What is the code i would use? A similar flash template would be this http:[url]....but when you click each of the thumbnails, i want 1 to open a mp3, one ar flash movie etc
View 1 Replies
Feb 19, 2009
In AS2 when I had a button on an external page swf that was loaded into the main website swf and I wanted that button to go back to the main website swf main time line and change to a specific frame I just used ...
Code: _root.gotoAndPlay("$/pmp/engine/"); ...in the button's release code. How do I do that in AS3? I guess I just need to know how to get to the main swf since root refers to the external page swf's main timeline. Garrr this is annoying. My structure is this:
main.swf's main time line has a button. Click that button, it loads preloaderpmp.swf into a blank movie frame with the instance name container. preloaderpmp.swf loads pmp.swf in. In pmp.swf's main timeline there is a movie clip inside a movie clip which contains a button that I want link back to main.swf and go to the frame "$/pmp/engine/" once it is released. What can I replace _root with since this is AS3?
[Code]...
View 3 Replies
Feb 19, 2009
In AS2 when I had a button on an external page swf that was loaded into the main website swf and I wanted that button to go back to the main website swf main time line and change to a specific frame I just used ...
Code: Select all_root.gotoAndPlay("contact")
...in the button's release code. How do I do that in AS3? I guess I just need to know how to get to the main swf since root refers to the external page swf's main timeline. Garrr this is annoying.
View 2 Replies
Feb 19, 2009
In AS2 when I had a button on an external page swf that was loaded into the main website swf and I wanted that button to go back to the main website swf main time line and change to a specific frame I just used ...
Code: _root.gotoAndPlay("$/pmp/engine/");
...in the button's release code. How do I do that in AS3? I guess I just need to know how to get to the main swf since root refers to the external page swf's main timeline. Garrr this is annoying. My structure is this:
main.swf's main time line has a button. Click that button, it loads preloaderpmp.swf into a blank movie frame with the instance name container. preloaderpmp.swf loads pmp.swf in. In pmp.swf's main timeline there is a movie clip inside a movie clip which contains a button that I want link back to main.swf and go to the frame "$/pmp/engine/" once it is released. What can I replace _root with since this is AS3? Here are some other attempts I have tried and failed to work right:
I.
Code:
stage.gotoAndPlay("$/pmp/engine/");[code]....
View 2 Replies
Feb 9, 2010
When I have a class linked to a MovieClip in my library and that class takes an argument in its constructor method. That class will compile properly ONLY when it's located in my top-level directory (same dir as the .fla and Document.as files). If I move that class to a deeper directory, say com.place, and update the package statement and symbol link appropriately, the compiler will generate error "1136: Incorrect number of arguments. Expected 0."Create flash project and put a rectangle on the stage. Covert it to symbol and assign it to class TestPanel - or whatever you choose. Also configure the fla so that is uses a Document (Main) class.Create Main.as and TestPanel.as in the same folder. In the Main class, instantiate a instance of TestPanel and add it to the stage. Flash will, predictably, add the rectangle symbol and everything is fine.Now modify TestPanel so that its constructor method takes a Number and have Main.as pass some number to TestPanel.[code]You now get the error: 1136: Incorrect number of arguments.Expected 0.When I move the TestPanel.as into a deeper directory, Flash somehow is looking elsewhere for the base class for Symbol, even though I'm mapping that Symbol to com.place.TestPanel.
View 4 Replies
Nov 18, 2009
I've been modifying some code I wrote a while ago that simply loads and plays an external FLV. The original code works well as I can simply copy the swf into any folder and when run, it will play the FLV with the given name in that particular folder.
I decided to have a photo still over of the movie before it plays, so I modified the script and 'loader' to put in the external Jpg. If I test the swf it works fine. But when I install the code from a sub folder into a webpage via 'object', the Flash file trues to find the photo in the webpage folder not the sub folder where the swf originates and where both the FLV and jpg are?? Both the FLVplayback and Jpg loader address in the same way in 'parameters' of properties, yet the FLV plays and the jpg won't. I only discovered what exactly was happening on a hunch and copied a different photo into the main web page folder with the same name.
I have also rewritten it a completely different way using movieloader, but got exactly the same results. I know I could put the full web address of the jpg into the parameters, but then I have to modify it every time I use it. I'd really like to be to simply copy it into another folder.
View 3 Replies
Jan 9, 2003
I was wondering what you put in for addressing the duplicate MC?
View 10 Replies
Nov 7, 2004
I have the instance 'CONTENT_ldr' on the main timeline. Now I need to load an swf into it using AS when I press on the 'Illu_mc' button placed in my HomeMenu_mc.
Heres the script I have placed in my HomeMenu_mc:
this.Illu_mc.onRelease = function() {
this._parent.CONTENT_ldr.contentPath = "ILLUPROJ.swf";
};
View 6 Replies
Jun 11, 2009
I imported the flvplayback component on-stage in one frame and gave the instance a name of hv.If a button takes the movie to another frame, how do I pause the flv at that point
View 1 Replies
Mar 27, 2004
I have a movieClip, in it a button, in it another movieClip (activated on mouse over). When i rollOver it works normally, it stops at the 15th frame as it should. Now I have another 15 frames for the rollOut and i can't get them to play,
[Code]...
View 4 Replies
Jun 25, 2008
Looking to convert the following attachMovie actions to a for loop. I get an error message running the following loop and I'm not sure what the correct syntax is. Takers?[code]
View 1 Replies
May 17, 2005
i have this on my buttons (movieclips):
on (rollOver) {
name=this._name;
path=this._target;
_root.push (name, path);
}
on the timeline i have the function:
_root.push = function (name, path){
trace(name);
name.gotoAndPlay("over");
}
on rollOver i want to dynamically pass a movieclips name to a function which controls that the movieclip should goto its frame named "over", but i cant get the adressing to work.if i trace the variable "name" in the example it gives me the moviename correctly. so i guess my syntax is wrong.the function doesnt work with the path variable either.
View 6 Replies
Mar 10, 2009
I've got a column of buttons that load dynamically with attachMovie, and are named in the for loop as "patentBtn"+i+"_mc" etc.
When I address them in the code like this:
Code:
patMenuHolder_mc.patentBtn0_mc.onRelease = function(){
gotoAndStop("Claims1");
patMenuHolder_mc.patentBtn0_mc.gotoAndStop("active");
[Code]......
View 11 Replies
Sep 10, 2009
I have three movieclip "buttons" within a couple of nested movieclips and I am unsure how to address them in actionscript. I have an event listener and a function for the rollover and rollout mouseEvents below
procedures_mc.p_dropdown_mc.p_body_mc.addEventListener(MouseEvent.ROLL _OVER, cursorOverButton);
procedures_mc.p_dropdown_mc.p_breasts_mc.addEventListener(MouseEvent.R OLL_OVER, cursorOverButton);
procedures_mc.p_dropdown_mc.p_face_mc.addEventListener(MouseEvent.ROLL _OVER, cursorOverButton);
function cursorOverButton(e:MouseEvent):void{e.currentTarget.gotoAndPlay("over");
e.currentTarget.addEventListener(MouseEvent.ROLL_OUT, cursorOutButton);}
function cursorOutButton(e:MouseEvent):void{e.currentTarget.gotoAndPlay("out");}
Within the movieclip buttons are labels over and out included in the buttons. When I rollover and rollout the mouse over the movieclip buttons they don't behave correctly. I am wondering if the e.currentTarget inside the function is the right address of the nested movieclip buttons procedures_mc.p_dropdown_mc.p_body_mc, etc.
View 2 Replies
Oct 11, 2009
So I've got this function to make a sprite walk:
[Code]....
But what do I have to do to get the function to adress various versions, such as
chibi.bluejeans1.rtleg._y = 4 + walk; chibi.bluejeans1.ltleg._y = 5 - walk;
so that I can address each type for walking accordingly, through something like
wlk(tunicpants1);
wlk(bluejeans1);
wlk(tuxedopants1);
[Code]....
View 1 Replies
Aug 4, 2009
I'm brand new at AS3 and having trouble targeting nested movie clips stored in my library. Here's my sample code:
[Code]..
View 0 Replies
Nov 27, 2005
I can't address the array i've created inside the movieclip from outside!
Array name is categories, inside the templates movieclip in _root; I press a button on _root to trace the array inside the movieclip using this code:
Code:
on(release){
trace(_root.templates.categories);
}
It gives me: undefined
View 9 Replies
Sep 1, 2006
I'm having a bit of a problem with this. I have a class- MiniMap which extends the MovieClip class.This class has a variable which is itself a movieClip, this movieClip is a small window which can be moved around on the map to select which portion of the miniMap will be shown in the bigger map.
How do I refer back a events on the class variables to effect the host class?
[Code]...
View 4 Replies
Sep 9, 2010
I'm successfully adding an external .swf file using the following code:
[Code]...
So - I'm loading the "graphic.swf" into a movie clip called "topClip" which is already on the stage in the main timeline. That works fine. But... then I'm having a problem addressing the loaded "graphic.swf" with a button (to lower it's alpha). I'm using this:
[Code]...
View 1 Replies
Oct 8, 2004
does anyone have a tip on how to "bind" events to dynamically created movieclips ?
[Code]...
View 4 Replies
Jan 14, 2009
Situation:
- We have a Flash application located on a SAP EP (let's say ep.x.com)
- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)
- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices
Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.
- A crossdomain policy file on root level cannot be deployed on root level
- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.
Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.
Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.
- SAP / Adobe always features the close relationship between their technologies.
Question:- What could we do?
- How does the Visual Composer works around that problem?
View 1 Replies
Mar 22, 2010
I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?
View 1 Replies
Nov 7, 2011
How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have
addChild(fade_eng);
and in fade_eng I have the following on frame 20
root.gotoAndStop(2);
this.gotoAndStop(1);
But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.
View 1 Replies
Oct 18, 2010
I am trying to dynamically address different instances of the same movieclip by passing a string into the movieclip address, but apparently I don't know what I'm doing. I'm trying something like below:
var vsTargetName:String;
vsTargetName = "instance50";
vsTargetName + vsThumb.thumbHighlight.visible = true;
Is something like this possible? What am I doing wrong/what do I need to do to make that work?
View 3 Replies
Jun 30, 2009
I have a series of mc's I'm attaching from the library, with buttons in the main movieInside each of the attached mc's is a close button that needs to close the attached mc and launch a function in the main movie, but I'm having trouble addressing the button inside the attached mc from the main timeline.I've tried this:
Code:
calloutHolder_mc.attachMovie("mar01callout", "callout_mc", 0);
calloutHolder_mc.callout_mc.close_btn.onRelease = function(){
[code]......
View 0 Replies
Sep 18, 2009
what I'm trying to do is access the data of several movies clips, that are inside of several other movie clips:
MC1.insideMC1._visible=false (which works, but isn't dynamic)
but dynamically with a FOR loop. I've tried:
For(bullet=1; bullet<5; bullet++){
"MC"+bullet.insideMC1._visible=false (this does not work)
}
View 1 Replies
Apr 22, 2004
I have a problem with relative addressing... it's not about _root stuff, but how to open an html page from a Flash movie.The Flash movie is inside a Folder named "Dogs". And the html document is outside this folder, sitting in the main folder for the site.Usually if I call a movie from inside a folder I put a slash eg. getUrl("dogs/intro", "window")but i want to go in the opposite direction, from inside this folder to a file outside... does that make sense?
View 1 Replies
May 17, 2005
i have this on my buttons (movieclips):
[Code]...
on rollOver i want to dynamically pass a movieclips name to a function which controls that the movieclip should goto its frame named "over", but i cant get the adressing to work. if i trace the variable "name" in the example it gives me the moviename correctly. so i guess my syntax is wrong. the function doesnt work with the path variable either. i know this might be a stupid question. dont mind me, i'm a noob.
View 6 Replies