Relative Positioning
I am creating a slide panel (slideRoll_mc) of photographs at run time. I need to be able to place the photos on the "slideRoll_mc" and then scroll the panel, moving the photos on top with the scroll of the item below. I don't know how to place the items so they are placed relative to the slide panel rather than the stage. As it stands now the slideRoll moves great but the photos stay in place.
swidth = (totalt * 137)+137
var pos=137
var clevel = 51002
attachMovie("slideReceiver_mc", "slideroll_mc",51000, {_x:0, _y:500,_width:swidth,_height:120});
for (var i = 0; i<totalt; i++) {
attachMovie("photoholder_mc","slideroll_mc.photohldr" + i + "_mc", clevel,{_x:pos,_y:510});
pos=pos+137
clevel = clevel +2
Adobe > Flash General Discussion
Posted on: 05/28/2007 03:19:19 PM
View Complete Forum Thread with Replies
Sponsored Links:
Relative Positioning...
CANNOT figure this one out...
I have "square_mc" on the stage, moving left to right, and rotating (rolling along).
Inside square_mc I have "point_mc", positioned on a corner of the square.
From the stage, how can I get the position of point_mc relative to the stage at any point in the rotation?
I'm missing something basic...
View Replies !
View Related
Relative Positioning
Hi I'm trying to position different Children relatively to eachother in my container. But it seems that height and length properties get altered when I add Children so it doesn't get in the right position. I know I am overlooking something stupid as usual cause I'm a newbie. What am I doing wrong here?
ActionScript Code:
newsBackground.graphics.beginFill (0xFFFFFF);
newsBackground.graphics.drawRect (0, 0, 620, 90);
newsBackground.graphics.endFill();
addChild(newsBackground);
newsThumb.load(new URLRequest(String(getXML.xml.pic.thumb[i])));
newsThumb.x = 60;
newsBackground.addChild(newsThumb);
newsId.text =String(getXML.xml.pic.@id[i]);
newsId.x = insidePadding;
newsId.y = insidePadding;
newsBackground.addChild(newsId);
newsTitle.text =String(getXML.xml.pic.@newstitle[i]);
newsTitle.x = newsThumb.x + newsThumb.width + insidePadding;
newsTitle.y = insidePadding;
newsBackground.addChild(newsTitle);
newsSubTitle.text =String(getXML.xml.pic.@newssubtitle[i]);
newsSubTitle.x = newsThumb.x + newsThumb.width + insidePadding;
newsSubTitle.y = insidePadding + newsTitle.height - newsBackground.height;
newsBackground.addChild(newsSubTitle);
newsDescription.text =String(getXML.xml.pic.newsdescription[i]);
newsDescription.x = newsThumb.x + newsThumb.width + insidePadding;
newsDescription.y = insidePadding + newsTitle.height + newsSubTitle.height;
newsBackground.addChild(newsDescription);
newsDate.text =String(getXML.xml.pic.@date[i]);
newsDate.x = newsThumb.width - insidePadding - newsDate.width;
newsDate.y = insidePadding;
newsBackground.addChild(newsDate);
View Replies !
View Related
Relative Positioning HELP
I'm trying to reposition a video window on full screen event. to global 0,0.. and i'm having a hell of a time. I attached a diagram explaining my problem. basically it's just figuring out how far to the negative x to move the window!
I know there is an easy way to do this and i'm trying to avoid using this.parent to reference the holder.
you guys rule.
View Replies !
View Related
AS 'Slider' With Relative Positioning
Hey -
anyone know how to create a Slider using relative positioning instead of an absolute x/y coordinate.
I am creating a full screen site - and would like the position to be relative to the screen size opposed to a fixed digit. A percentage of the screen.
basically - what I have been trying to do is combine these two types codes (these are just generic abrevations for example):
Code:
var homeMCy = new Array(0, -526, 40);
function jumpTohomeMCY(number) {
homeMC.newY = homeMCy[number];
}
Code:
logoBar.onResize = function() {
this._y = Stage.height-40;
this._x = (Stage.width)-240;
};
Stage.addListener(logoBar);
logoBar.onResize();
Anyone have any idea how I could make something work - so that the Array holds relative positioning...??
View Replies !
View Related
Positioning MC Relative To The Stage Border
I have several mc's that I want to position about 20 pixels from the right side of the users browser regardless of how big the resize it. Does anybody have any ideas of how to do this. I have been trying to use something like this:
onClipEvent(enterFrame){
this._x = Stage.width - 100;
}
but that still doesn't position it 100 pixels left of the stages width.
any ideas would be greatly appreciated
Mike
View Replies !
View Related
Intervals Using Relative Object Positioning?
Hey guys check this code out:
ActionScript Code:
function moveClip() { if (myClip_mc._x < 400) { // the _x value is less than 400, so increase _x by 1px, // and let setInterval execute this function again myClip_mc._x += 1; // move the clip 1 px to the right } else { // the _x value is greater than 400, // so stop the setInterval from executing anymore clearInterval(myInterval); } // end "if myClip_mc._x < 400" } // end moveClip()// do this when "myButton_btn" is clickedmyButton_btn.onPress = function() { // execute the "moveClip" function every 10 milliseconds myInterval = setInterval(moveClip, 5);} // end myButton_btn.onPress()
I was wondering, is there a way to change if (myClip_mc._x < 400) { to a relative position of myClip_mc.
I mean, i want myClip_mc to move 100px from it's current position everytime the button is clicked. Instead of only moving it
if it's x position is less than 400.
So it needs to somehow check it's current position everytime the button is clicked and then make it shift from that position.
I know this is a long winded way of doing it but i want it this way so i can use it for something different.
Any ideas?
View Replies !
View Related
Positioning _mc Relative To Browser Size
Hi hope you can help me?
I have a sliding dock utilizing a caurina tweener class however am having problems aligning it on the x y scale. I want it to be able to maintain it's respective position relative to the changing size of the screen. It seems like the x y variable here
var baseX:Number = 200;
var baseY:Number = 200;
keeps it static & I tried to place this code below to keep it's position relative to browser size but it only centers it. I tried playing around with the x y values but it only works bettween 1 & 2. Is there a way to align it to the bottom right of the screen that will adjust accordingly to browser size?
Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";
myListenerload = new Object ();
myListenerload.onResize = function () {
slidingdock_mc._x = Stage.width / 1;
slidingdock_mc._y = Stage.height / 1.5;
};
Stage.addListener (myListenerload);
myListenerload.onResize ();
As you can see I'm a newbie at all this so If I'm doing something worng here can someone point me in the right direction?
Thanks.
View Replies !
View Related
Relative Movieclip Positioning To Stage Size
Heya,
I am looking for some code to enable a movieclip to reposition itself according to the stage size
so far I got the footer to resize itself according to stage size.
However I will have some text as well which is supposed to stay position x=10 and y= (depending on height of the stage)
Attach Code
Stage.align = "TL";
Stage.scaleMode = "noScale";
var stageListener:Object = new Object();
stageListener.onResize = function() {
var stageWidth:Number = Math.round(Stage.width);
var stageHeight:Number = Math.round(Stage.height);
trace("Stage size is now " + Stage.width + " by " + Stage.height);
footerBG_mc._width = stageWidth;
footerBG_mc._x = 0;
footerBG_mc._y = stageHeight-150;
footerLinks_mc._x = (stageWidth/2) - (footerLinks_mc._width/2) ;
footerLinks_mc._y = stageHeight-18;
text_mc._x = (stageWidth/2) - (wallPaper_mc._width/2);
[ Static x position and variable y position, according to stage size
};
Stage.addListener(stageListener);
stageListener.onResize();
View Replies !
View Related
Relative Positioning External Loaded Elements
I'm trying positioning external loaded images from an XML and position them according to the stage dimensions.
Here's what I've come so far: creating a loader for each image and then position them according to their size.
Is there any way to do this avoiding to create a multidimensional array (that's to say two arrays one for the images name and one for the loaders)?
Code:
private function loadBg():void {
for each (var image:XML in xml.BG..IMG) {
var loader:Loader = new Loader();
loader.load(new URLRequest(image.@url));
loader.addEventListener(Event.COMPLETE, positionBg);
addChild(loader);
}
}
private function positionBg(e:Event):void {
.....
switch (?????) {
case "bg_br.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= stage.stageHeight-loader.height;
break;
case "bg_bl.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= stage.stageHeight-loader.height;
break;
case "bg_tr.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= 0;
break;
}
......
}
View Replies !
View Related
Positioning Xml Text Fields In Flash With Relative Width
Hello, I have a problem that I can not find the solution about XML and Flash text fields..
Let's say I have the flash where I want to show few text fields next to each other like that:
This is one xml driven text field | another xml text | more xml text from text field
How can I make the widths of the the fields relative to the content i.e not to have fixed widths and how to make each text field come next to the end of the previous.
I've tried
Code:
my_txt.autoSize = "left";
my_txt.multiline = false;
to make the width of the text field as long as the text content, but it doesn't seems to be working.
Thank you in advance.
View Replies !
View Related
Mc Keeping Relative Positioning Depending On Browser Window Size/resize
hi, i'm redesigning my personal website and i'm trying to figure out how to keep certain objects (btns, mc, gfx) in a certain spot on the browser window and how to "animate" them moving to those positions when the window is resized. the best example i can find is this website (www.superfad.com). when the window is resized, objects move accordingly with sort of an smooth animation. also, how can i get one that doesn't animate (also on the same website with the smoke). i've looked a lot of different websites and forums and can't really find (maybe since i don't know how to ask the question in a search box). if someone can help me on this, it'll be greatly appreciated. thanks.
View Replies !
View Related
Relative URL?
OK sort of a two part question. Im trying to launch a video from Flash. I wanted it to be integrated, but as this seems to be a pain without using image sequences, I decided to just use a GET URL command on a button. OK. Browser prompts me to open or save, I open and say dont ask again,...no problem. Same with WMF files except an empty browser also comes up...starting to get messy. Anyway, is there a way to launce the player directly so you dont have to go through the GET URL and have the browser try and take over? if not can I eliminate the empty browser that comes up with the AVI files?
Part two. This is all for offline content on CD Rom. When specifying the path to the .mov or .avi, I cannot use an absolute path because the drive letter will change from system to system, right? How do I get around this? I've heard of relative URLs butI really dont have a clue what that means.
Thanks for the help!
D
View Replies !
View Related
Using Relative Url's
anyone know of a way to use relative url's?
I am trying to make a flash object that anyone can use on thier site, and it needs to reference other files in the same directory on their web server.
I am using
loadvariablesnum(myrelativeurl,0,"post")
this is what i get back:
Error opening URL "file:///D|/inetpub/wwwroot/AT/mypage.asp"
it is trying to use physical addressing?
I don't want to have to hard code in the website because it is going to be used on multiple systems.
is there a way of passing in variables such as the current web server web address, without needing to know that in the flash already?
Robert
View Replies !
View Related
Relative URL's ?
hi all, i am using the loadmovie function and would like to type the relative URL as the swf's are all in the same folder. if the address is http://www.anything.com/flash/file.2 to the second swf from the first swf that is in the same folder what is the relative URL.
thanks
protocol
View Replies !
View Related
Relative Url
how do you post a form from flash 5 to a server side cgi-bin
I can only use a relative link and not an absolute link so geturl will not work here or will it?
the directory structure is /
/cgi-bin
/docs
under the /docs folder the showckwave file is located here /docs/images/website.swf
I need to send the info like this <FORM ACTION="../../cgi-bin/mailinglist.cgi" METHOD=POST>
I have the text box up and the button, but how do I post.
the cgi is a basic form mail script
all the variables are incoded in the script so the only info to send is <input type=text name=email>
please please please help
I tried searching the tutorials, but came back empty
thank you
Dixon
View Replies !
View Related
Relative Url?
I am loading an external .txt, as well as some external .jpg's (thumbs)...is there a way to load these dynamically using a relative url, or do they have to be explicit?
can't seem to get the relative path to work for some reason...
View Replies !
View Related
X Relative To A Movieclip
English:
Hi
I'm sorry for my english but i'm a stupid italian...
I have to use the x and y of the mouse relative to a movieclip.
I mean , if I have a movieclip rotated of 90° the x value should grow when i move the mouse down...
I hope some of u can understand what i said....
THX
BRX
Italiano:
Buongiorno
Qualcuno sa se c'e'un modo per gestire la x e la y del mouse relativamente ad un movieclip e non alla x e la y generale?
Diciamo che ho un movieclip quadrato che ruota e io ho bisogno di gestire la x del mouse all'interno di questo.
Il che vuol dire che nel momento in cui il movieclip e' ruotato di 90° rispetto all'asse generale la x del mouse aumentaera' quando io lo muovero' verso il basso...
... sono stato abbastanza chiaro?
Se qualcuno mi puo' dare una mano sarebbe veramente gradita!
Grazi ein anticipo
BRX
View Replies !
View Related
Relative Size
I hope someone can help me with this.
The situation:
A VB application has two swf's on it, one swf is on top 25% of app and the second is on the lower 75% of the app
The current state:
On resizing of the application the swf's resize in both height and width no matter how the app is resized
What is needed to meet the needs:
On resizing the application either taller or wider, the swf's need to resize accordingly to the appropriate size
(i.e. if the app gets wider the swf's get wider)
The problem I am stuck on:
How do I do this?
View Replies !
View Related
_x And _y Relative To Who? -- GURU's Only
Hi all,
Not really restricted to GURU's....
Flashers.... given the following:
===========================================
MyCurrentMovie is my main movie timeline
'audio' is a MC whose _parent is myCurrentMovie
'mySwf.swf' is an external, compiled movie
'slider' is a MC whose _parent is mySwf
'tracker' is a MC whose _parent is slider
tracker does -->
Movieclip.prototype.tracer=function(delay){
_x+=(_parent._xmouse-_x)/delay;
_y+=(_parent._ymouse-_y)/delay;
};
--> onClipEvent(EnterFrame)
=========================================
So my question..... if I do:
audio.loadMovie("EPlayer.swf");
from myCurrentMovie, should tracker._x and tracker._y be the _x and _y position relative to 'slider'???
This appeared to be working until very recently when I changed.... (????).... something obviously. If my assumption is incorrect, could you please explain how to determine what the _x and _y properties are relative to???
thanx in advance,
View Replies !
View Related
Relative Links
I'm trying to load a movie in a new window. You click the button in movie01.swf which is here: "swf/intro/movie01.swf". Now the new window needs to load popup.html which is here: "html/popup.html". Both the swf and html folders are in the same directory but when the button to open the new window uses: "../../html/popup.html" it doesn't work.
Anyone know why this happening??
View Replies !
View Related
Relative Targets
Hi people
okay Im in the process of contructing a simple text scroller now Im having a little difficulty using the setProperty command
heres my code for the actions of sidescroll (which is a button converted to an MC):
onClipEvent (enterFrame) {
if (dragging) {
setProperty ("_root.scroller.words", _y, (-(_root.scroller.sidescroll._y)*((_root.scroller.wo rds._height-80)/100)));
call ("");
}
}
and heres the structure of the movie
Main time line
|
scroller(MC)
|
words(MC), sidescroll(MC)
This code works fine but Im trying without success to modify the above setProperty command so that the targets are relative so instead of "_root.scroller.words" it would be maybe "../words" and instead of _root.scroller.sidescroll._y simply _y or ../sidescroll._y
okay Ill leave it with you and hope it makes enough sense
thanks !
View Replies !
View Related
Relative Movement
Relative movement of MC
Hi all, i have a MC on the stage - also on the stage are 4 buttons, with each button presses i want the MC to move to a certain position on the stage.
How do i actionscript this movement from where the MC was last (the position th MC moved to at the last button click).
Kind of relative movement kind of thing..
k, let me explain further, when i press a button i want to retrieve the MC on the stage's _x and _y position and then move the MC from the obtianed x and y position to a new specified x and y position. this will need to be a smooth movement(like a tween) rather than just a change of position...
thanks again
View Replies !
View Related
What Is Depth Relative To?
When you set a movie clip instance to a certain depth, can only one instance be at that depth in that movie clip, or the entire flash file?
For instance, let's say in the _root, I set an mc's (movie clip's) depth to 5. I create an mc within the root, and I want to assign a movie clip within that to a depth of 5. Will this interfere with the movie with a depth of 5 in the _root?
View Replies !
View Related
Relative Links?
I'm trying to link a existing flash (which resides in a webpage) to other pages (many links).
Eg. The existing flash is in this url http://www.flash.com/flash.html
And I wanted to link to http://www.flash.com/flash/test.html
Am I able to use the relative path using just "flash/test.html" in the URL?
View Replies !
View Related
Relative Scaling
When you scale a movieclip
how do you make movieclips either side of it scale relative to it?
I am hoping to so something similar to :
http://www.martin-h.com/
like the four boxes he has in "Step 3" athough my project requires up to 16 boxes
Any sample code about?
I've attached wht I have so far ( it's an MX file )
I have the following code:
speed = 5;
big.onEnterFrame = function() {
// size alterations:
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
// position alterations
this._x += (xpos-this._x)/speed;
this._y += (ypos-this._y)/speed;
// make smaller box follow bigger box and remain 10 pixels to the right
small._y = (this._y+this._height)-small._height;
small._x = (this._x+this._width)+10;
};
with a symbol intance big and small and a button changing the x and y values.
the code on the button is:
on (release) {
w = Math.random()*200;
h = Math.random()*200;
xpos = Math.random()*Stage.width/2;
ypos = Math.random()*Stage.height/2;
}
Do I just do the code for all 16 squares listing the sizes ( instead of the random code) or is there a quicker way
Really appreciate any help. Thanks
View Replies !
View Related
Relative Paths
I'm using the getURL action. The problem is, some of my links are local... to links.htm, while some are remote. After i go to a remote link in my IFRAME, the local ones no longer work. how cna i make relative and absolute both work?
View Replies !
View Related
Relative URL Links
how do I get a URL link to be a relative link, so that no matter where the SWF is being viewed from, it will link to */whatever.htm, without having to specify http://domainname.com/whatever.htm?
View Replies !
View Related
Relative Url Links?
i have a client that ive created 6 animations for, they want a button at the end of each one. They are asking me for relative url's. heres the links they want, im just checking to see exactly how i put the code into flashmx:
"/FlashRedirect.aspx?message=bride"
"/FlashRedirect.aspx?message=lost"
"/FlashRedirect.aspx?message=holyspirit"
"/FlashRedirect.aspx?message=father"
"/FlashRedirect.aspx?message=healing"
"/FlashRedirect.aspx?message=presence"
do i simply put a get url code in and paste "/FlashRedirect.aspx?message=bride" into the box?
thanks in advance
sean
View Replies !
View Related
Relative Loading
Ive stooped to noob status again
I wanna load a text file that is back a folder and in text/home.txt because the .swf file is in pages folder, which is in the same folder as the text folder.
View Replies !
View Related
Relative Path Help
i have this huge relative path im trying to get and its driving me nuts
basically I have a homepage.swf in the main folder( lets call it flash)
in homepage.swf I load both "pages/gallerypage.swf" and "menu.swf" in different empty clips labeled mtClipContent and mtClipMenu, respectively.
Within menu.swf, I load "pages/galleries/coloscroller.swf" in an empty movie clip labeled mtClipScroller.
Now, within coloscroller.swf, I have different thumbnails, that when clicked I want to play the movie "pages/galleries/colorado/yankeeboy.swf" in an empty movie clip in gallerypage.swf labeled mtClipPhotos
right now, i have the script
on(release) {
_root._parent._parent.mtClipContent.mtClipPhotos.l oadMovie("pages/galleries/colorado/yankeeboy.swf");
}
but of course it is not working, anyone have any ideas on how to make the relative path to
View Replies !
View Related
Absolute, Relative
simple question what is the difference between relative and absolute when chosing movie clip actions for a button instance..... just wondering ive noticed that my buttons will work with one sometimes and sometimes the other??
View Replies !
View Related
Absolute Or Relative?
nesting problem
How I could apply a values to the dynamic text located into movie Clip.
When the dynamic text fields nested in button are stationed onto the root (actually button is) they easy accept the values loaded from the text file (loadVariablesNum(“text.txt”, 0); ).
But when the button is nested (converted)in MC; probably, I have to point out explicit where are they located.
I try i.e.
_root.container_mc.name_btn.buttonUp = buttonUp;
But it stays empty.
Thanks for help
View Replies !
View Related
Relative GotoAndStop(); ?
Hi, is it possible to get the frame number of a label dynamically?
For example, I have 10 buttons, all going to frames 10 to 19, but if I were to add a few frames inbetween, I'd have to change 100 button instances to reflect the 3 frame shift.
Is it possible to do something like :
Code:
on(release){
destination = Labelname.FrameNumber+2;
gotoAndStop(destination);
}
Thanks in advance for any help offered.
Cheers
John
View Replies !
View Related
Relative Coordinates?
i am trying to get an _x coord on a rollover state of a button. the button is inside a movie clip that moves. when i use 'this._x' it gives me the x coord relative to the movie clip it is in. How can i get the x coord of the button relative to the _root stage? thanks.
code:
on (rollOver) {
trace(this._x);
follow = new mx.transitions.Tween(this._parent._parent.follower , "_x", mx.transitions.easing.Strong.easeOut, this._parent._parent.follower._x, this._x-95, .5, true);
}
View Replies !
View Related
Relative Navigation
This is about creating flash navigation for an HTML site. The code I'm using is from a tutorial, but it's not working correctly yet......
Quote:
FROM TUTORIAL: "Relative getURL links in .swf files are only relative to the .html file they are embedded in. This becomes a problem with you are creating one flash file (a menu bar for example) that will that will appear on HTML files in multiple sub folders on your site. "
SOLUTION I'M ATTEMPTING:
first frame of MYFlash file:
code:
myRootFinder = _url.lastIndexOf("/");
myRoot = _url.substring(0, myRootFinder+1);
Then, whenever I use getURL put the myRoot variable infront of the relative link:
code:
on (release) {
getURL(myRoot+"folder/main.html");
}
What happens is that the relative link simply gets added to the current directory, instead of the site root. I'm not uber comfortable with actionscript so my troubleshooting so far isn't going too well.... Thoughts?
View Replies !
View Related
Relative Y Axis
please help this noob figure out actionscript (flash 5) for the movement of one symbol's y axis to affect another symbol's y axis automatically. i only want the movement of one to affect the other, and not both. so, if a is the controlled, a moves down, and b moves up ; if a moves up, b moves down.
View Replies !
View Related
Relative Path To URL
I have created my online portfolio using flash. Two of my buttons link to seperate html files. If the user is connected to the internet everything works fine. The problem is, I have to set up my digital portfolio in a gallery without internet access. How do I change the path so it loads these html files off the hard drive instead of the web. I tried just using webpage.html or d:webpage.html but these did not work. Any ideas. thanks.
www.mydigitalscott.com
View Replies !
View Related
Relative Zoom
Hello,
I totally new to flash. Below is what am trying.
I have a base movie clip which can be zoomed and panned. There is an additional option that user can drag some pre-defined symbols and place it over the base movie clip.
i have completed the above steps and below is my problem
After dragging an item to the base clip, if the base clip is zoomed or panned, i want the added items to act relative to the base clip.
can anyone suggest me some method
thanks in advance
View Replies !
View Related
Relative Paths?
I am constructing a rollover with button for down and up which scroll text. Simple enough. I've made them many times before, however, this one is embedded deep in a movie. I think my tellTarget is off.
ASSETS:
5 layers spanning 2 frames. 2 buttons, up & down. 1 movie called scrollingtext.
The buttons have this code applied to them:
on (rollOver) {
tellTarget ("scrollingtext") {
prevFrame();
}
gotoAndPlay("frame.up2");
}
The above is actually from the scroll up button on the first frame. I am asking it to move to previous frame in the scrollingtext movie clip and go to the frame labeled up2 which is the exact same script only up2 is up1. So basically it goes from 1 to 2 to 1 to 2 to create the seemingly endless scroll.
The down buttons are the same only pointing to frames down1 & down2 with a nextFrame command rather than the prevFrame.
All this makes sense. The problem is when I preview it does nothing. Nothing at all and I think it is because the tellTarget is not correct.
The scrollingtext movie is under Scene 1 & inside another movie called sign-in & yet another movie called signin_scroll. I think this is where I'm getting screwed up. So Scene 1 -> sign-in -> signin_scroll -> scrollingmovie is where its located.
I am unsure if there is additional information needed to help but many thanks for anyone who attempts to help me here.
Jaysun
View Replies !
View Related
[F8] Relative URL With Javascript For Pop Up?
Hello,
I have the following code for creating a pop up:
code: on (release) {
getURL ("javascript:NewWindow=window.open('http://www.google.com/','newWin','width=400,height=400,left=200,top=150, toolbar=No,location=No,scrollbars=No,status=Yes,re sizable=Yes,fullscreen=No');NewWindow.focus();void (0);");
}
I used the Google URL for example purposes. What I really need is to use a relative URL - something along the lines of ".../pages/products/02390.html". Can this been done or do I need to have an absolute URL? The problem is that the server I am using for development and testing is not the one the files will ultimately reside on.
Any ideas?
Thanks!
View Replies !
View Related
Relative URL To Absolute URL
Is there a method in Flash to convert a relative url to the absolute url?
Basically, I need a function like:
relativeToAbsoluteURL("image1.png");
It would return: "http://www.site.com/image1.png".
I would assume it HAS to be in there somewhere undocumented becasue anytime you make a request for a file it's done internally. Check out any IOError. It lists the whole absolute filename.
If not, I'll just have to write a little parser based off of root.loaderInfo.url. :/
Thanks!
View Replies !
View Related
Relative Flv Path
im making an interactive cdrom containing video footage.
im linking to the flvs with an absolute path at the mo (C:Documents and Settingsetcetc...) which isnt a problem,
however if im using it on another computer it wont work because the path has changed so... need to change the path to a relative one...
and for some reason it doesnt work... it just tells me its failed to load the flv...
help
View Replies !
View Related
[MX] Relative To Movieclip
I want to do something where only when I click a particular movieclip, the event happens. Right now I'm just making the event going to the next frame to test it but that event happens no matter where I click.
PHP Code:
stop();
acid.onMouseDown = function() {
gotoAndStop (2);
}
Acid is the movieclip I want it to only work on.
View Replies !
View Related
Absolute VS Relative
hello! I dont quite understand the difference between absolute and relative paths.
If im not mistaken its just to different ways to show FLASH player were a certain object is. I could not find a tutorial for this.
The way i am used to and understand is:
Code:
_root.mymovieclip.mybutton
is this absolute or relative?
how do the other one work?
what about the conflict when you load a movieclip into another?
View Replies !
View Related
Relative Path To The URL
hi, I am new to the AS, so my question is quite simple. I have a piece of code, where I need to display different files/documents from the web site. Currently it looks like this:
app_btn.onRelease = function()
{
getURL("http://www.xyz.com ", "_blank");
}
Now, I would like to make it more sophisticated using a relative path,which includes directory name + file name. Unfortunately I did not find an example in the book that I have. Could you please help mew with this?
TIA
View Replies !
View Related
Relative Paths
I'm using LoadVars and loadMovie to load variables and pictures into my flash. I just point them to the relative path, for example: folder/file.jpg and it works perfectly on my computer.
It works on the internet only if the html page displaying it is in the same directory as folder. How do I tell it to look for folder/file.jpg in the same directory as the .swf instead of the .html page displaying it?
View Replies !
View Related
FileReference W/ Relative URL
I'm using fileReference on a button to download a file. It works fine if I hard code the entire url for the download file.
However, I'm testing on my site; then the folder structure for the site will be moved to the clients server (which I don't have access to). Thus, I need a way to use relative paths and it doesn't seem to work unless the entire path is encoded.
Here's the code:
ActionScript Code:
on (release) {
import flash.net.FileReference;
var file= new FileReference();
file.download("/ppt/aerodata.pps", "aerodata.pps");}
This doesn't work, but if I change the last line to:
ActionScript Code:
file.download("http://www.spontaneouspop.com/projects/ifis/ppt/aerodata.pps", "aerodata.pps");}
it works!
The swf file resides at "http://www.spontaneouspop.com/projects/ifis/ifis01.swf"
so it seems like a relative url would work.
Any help would be greatly appreciated!!!!
View Replies !
View Related
|