Getproperty/scroll-im A Newbie Kinda Help
Hi
I have this movie scrolling a movieclip on the x axis.
It actually works to my suprise but when I load it into another movie it doesnt. Ive tried to add this.getproperty etc and a bunch of other stuff but no luck.
The instance name of the clip to scroll is listan
The button.
PHP Code:
on (press) {
xrightnow = GetProperty(/:listan,_x) ;
targetx = xrightnow+50;
}
Then I have a movieclip called actions thats dragged out to main. It goes a little something like this.
PHP Code:
startx = GetProperty(/:listan,_x) ;
moved = /:targetx-startx;
setProperty(/:listan, _x, startx+(moved/9));
So please help me rewrite this so it works when loaded into another movie.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 06-10-2004, 03:31 PM
View Complete Forum Thread with Replies
Sponsored Links:
Kinda A Newbie
I kinda know flash because they made us learn a little bit of it. What I want know is there a way for me to make a fully functional chess game? I did a google search and came up with nothing, and then did a forum search and came up with very confusing stuff.
I'm making a Harry Potter website, and I thought it would be cool to have a wizards chess thing. I'm coding the site in PHP, so would there be a way for the user to "submit" their scores to a top 100 list and get gold for it (The HP website will be kinda similar to Neopets and Gaia Online)
I'm really quick at learning stuff like this if someone has a tutorial or could write up instructions.
View Replies !
View Related
Kinda Tricky For A Newbie ;)
Hello!
I'm creating a photoalbum in flash. Everything works just nice but now I want flash to make a button on my page for every picture on my server ... well this is how i planing on doing this:
First I have a textfile "images.txt" including a variable: images=x (x= how many pics there are on server)
then I'd like flash to create a clickable button, for each number loaded from textfile, on the homepage.
So if images=15 then it should create 15 buttons.
When I click on one of the buttons a movie (image as a swf file) loads into the flashdocument (each button assigned to a specific swf-file). Do I make sense?
Well how am I going to do this??
Plz write so a newbie understands
View Replies !
View Related
Uh... Kinda New To Components.. Any Help With Scroll Pane?
I don't even know if this is the right way to go about it, but I need to scroll a movie clip, and I am trying to use a scroll pane. I obviously set it to verticle only, that was easy. But How do I tell it what to scroll?
I already have the movieclip made, so can't I just tell it to scroll that, or something?
Just a descripion of what and how the thing works would be nice.
View Replies !
View Related
Newbie W/ Yet Another Scroll Question
I have this dynamic text box and I have the buttons set up to scroll on press, but I can't figure out how to keep it scrolling if you hold the mouse button down. It will only scroll one line at a time. I'm attaching the files, but I'm not sure if it will work, as the last few times I have tried to attach something, I've had to post it separately.
View Replies !
View Related
Newbie Scroll Question
I used Jesse's scrolling text tutorial to create scrollable text in a dynamic text field. It worked great! But . . . when I nest that movie inside another movie, the scroll buttons do not work. I'm assuming I have to make some modification to the path in my MC. Right now it reads:
if (_root.up) {
_root.text.scroll += 1;
} else if (_root.down) {
_root.text.scroll -= 1;
}
Do I need to modify the button script as well?
View Replies !
View Related
Custom Scroll Bar For A Newbie
It's me again. errr.. Just wanna ask how to make a custom scrollbar without using components. i wanna put a scroll bar in my news section here take a look James Florentino Creative Design Studios
thank you guys in advance.
Note: If someone has already made this post about custom scroll bars, please send me the forum link and let me reply before you delete this thread thanks.
View Replies !
View Related
Newbie: How Do I Make An Area Scroll? Please Help
Hello,
I am quite new to Flash, very new to CS3 and have no idea about actionsript.
I am really quite desperate for some help, advice, anything, I spent the whole of yesterday looking for tutorials!
I have made a tab that when you put your mouse over, it plays a movie clip of the tab sliding out to reveal thumbnail pictures. The thing is, there are too many thumbnails to fit on the tab so I really want to make it scroll! I think I read on a message board yesterday that you can't put buttons into movie clips. Is that right because I want the thumbnails to link to certain frames in the flash file when they are clicked. If need be I can remove the movie clip and not have the sliding effect, if that makes sense.
I would very much appreciate anyone reading this to tell me if this will be too difficult to acheive for a newbie? I have attached the file if you would be so kind to check it out.
Many thanks,
Helen
View Replies !
View Related
Scroll Button Problem (newbie)
i built an email form following these instructions:
http://www.kirupa.com/developer/acti..._php_email.htm
and can get the thing to work, except i can't get the message box buttons to scroll...the instructions didn't include how to setup the up/down buttons, so i just copied them and the code for them from the example...as far as i can tell, everything is the same...here's the AS code for the buttons, and i attached the form i created too, maybe there's something i'm totally spacing on.
scroll up:
ActionScript Code:
on (press) { form.body_txt.scroll--;}
scroll down:
ActionScript Code:
on (press) { form.body_txt.scroll++;}
i've tried messing with this thing for a while now, still can't get the stupid buttons to scroll the text... any ideas?
thanks in advance,
cev
View Replies !
View Related
Newbie, Page Flip V2, With Scroll Bar?
I'm currently using Page Flip v2 action script and am having trouble incorporating a scrolling text box mc on top of one of the pages.
This thread has an example of the script so I don't have to re-paste the code up here, (pages.http://www.kirupa.com/forum/showthread.php?t=214911) but basically everything works independently but when I try and incorporate my scrollbar movieclip within one of the page flip movieclips it doesn't function.
Is this even possible before I put much more time into figuring it out?
Thank you.
View Replies !
View Related
Scroll Button Problem (newbie)
i built an email form following these instructions:
http://www.kirupa.com/developer/acti..._php_email.htm
and can get the thing to work, except i can't get the message box buttons to scroll...the instructions didn't include how to setup the up/down buttons, so i just copied them and the code for them from the example...as far as i can tell, everything is the same...here's the AS code for the buttons, and i attached the form i created too, maybe there's something i'm totally spacing on.
scroll up:
ActionScript Code:
on (press) { form.body_txt.scroll--;}
scroll down:
ActionScript Code:
on (press) { form.body_txt.scroll++;}
i've tried messing with this thing for a while now, still can't get the stupid buttons to scroll the text... any ideas?
thanks in advance,
cev
View Replies !
View Related
Newbie Scroll Pane Component Troubles
I am working on a scroller with 54 images.
I've decided to use a scroll pane component but I really don't know what I'm doing in that there is a great deal of code that has been prepackaged for me and not only do I not know how to recreate it but I have absolutely no idea where to find it or the skins to modify it, but I suppose that's for another post.. The pressing problem of the hour is this: it loops and won't function with the left and right arrow keys. I'm familiar enough with flash to put the 54 images in a movie clip containing 9 frames with 6 images on each. If I put a stop action on each frame, the scroll pane won't acknowledge any thing beyond the 1st frame and it seems pretty pointless to have a constantly moving movie in a scroll bar! I thought I took care of the properties and perameters but I'm clearly missing some thing. Unfortunately the .fla is too big due to my 54 images and I don't have stuffit on my lap top. If I can ftp it to some body that's fine..
thanks in advance guys!
View Replies !
View Related
Newbie..need Code To Change Color Of My Scroll Bar
sliderColor = new Color(sliderButton);
trackColor = new Color(track);
arrowColor = new Color(arrows);
sliderColor.setRGB(myColor);
trackColor.setRGB(myColor);
arrowColor.setRGB(myColor);
hmm...i got a scroller that i want to turn white and black
this is what it is set to..
what is the code ? is it hex color code? this is weird
help would be appreciated thanks.
View Replies !
View Related
Getproperty...is This Possible?
Hey everyone!
Could check this out, I double checked the instances and movie names and that doesn't seem to be the problem. I want to use the getproperty action from Flash 4 but I don't know how do go about it right in flash 5.
here is the code applied to a button:
on (release) {
if (_root.musicdrag.music._visbility = "0") {
setProperty ("_root.musicdrag.music", _visible, "100");
}
}
*music MC is inside musicdrag MC
What's wrong?
cheers,
nigel
View Replies !
View Related
GetProperty
hi guys,
im stuck with this get property thing. ive made this button rite and i have dynamic text (xpos, ypos, height, width, rotation) and there are 2 coppies of that button. y is it that when i click on 1 button it comes up with the correct info but the second button it comes up with the 1st buttons info???
Code:
on (press) {
_root.xpos = getProperty(_target,_xscale);
_root.ypos = getProperty(_target,_yscale);
_root.width = getProperty(_target,_width);
_root.height = getProperty(_target,_height);
_root.rotation = getProperty(_target,_rotation);
}
on (release) {
_root.xpos = 0;
_root.ypos = 0;
_root.width = 0;
_root.height = 0;
_root.rotation = 0;
}
thanks
View Replies !
View Related
[HELP] - GetProperty?
[HELP] - getProperty?
Here's the link to what I'm trying to do for a visual:
http://www.geocities.com/boutros2/Test.swf
Each baby card is a movie labeled "baby_1, baby_2" ... and so on. Over each baby card is a button with alpha at about 40% so the cards can be seen behind it.
I want to click on any combo of two neighboring buttons and have the cards swap positions.
I've been able to get it to work only for one round. Then things get buggy.
My question is how to get the button over a particular box to read the new card that lives there. I've tried playing with the getProperty( myMovie, _name) but the catch 22 is I need the instance name of the movie. But I want a way for the button to read the instance name of whichever movie ends up under it so I can manipulate each movie ie:
setProperty("baby_?", _x, 222);
setProperty("baby_?", _y, 111);
or _root.baby_?.gotoAndStop(2);
As it is now, it will only correctly read the first baby_? MC that is under it.
I'm lost. Any point in the right direction would be very much appreciated.
If my question is unclear, I'd be happy to try and clarify.
Thanks.
View Replies !
View Related
GetProperty
I've created two objects and made a movieClip out of them, and then placed the clip on the stage. When I try to use getProperty all I get are the x, y positions from within the clip and it's relative position to the stage.
How can I find the x, y values?
View Replies !
View Related
GetProperty
I've found some action script that works fine on the parent level of my file, but as soon as I try to put the action script and the "fl" mc that it is talking to inside of a movie clip ("main"), it breaks.
If i keep the action script on the parent level of my file, and move the "fl" mc inside of "main", I know i need to denote this somehow in the actionscript, but everything i've tried hasn't worked. any ideas? thanks.
here is the action script:
Frame 1:
i = 0;
setProperty ("fl", _visible, 0);
xx = getProperty("fl",_x);
Frame 2:
if(i < 35)
{
duplicateMovieClip ("/fl", "fl" add i, i);
setProperty ( "fl" add i, _alpha,i*8);
setProperty ( "fl" add i, _x,random(3) + xx);
i = i + 1;
Frame 3:
gotoAndPlay(2);
View Replies !
View Related
GetProperty?
I have a problem on this:
When i attach a movieclip(drag and drop), there will be a form to fill in. After i fill in the form, the data will be stored in database. My problem is, i want to do a function that when i rollover on the movieclip, all the data that i've just key in will be displayed.. and i wonder how to do that.. is it something to do with getProperty?
Appreciate for any help...
View Replies !
View Related
GetProperty Help
Hi,
my main movie has a "mc_base" movieclip that has it's _width changed when i press a button, and that same button also loads an external .swf into another mc (mc_insert).
on the external swf i want to check if the width of my "_root.mc_base" is 500 and if so the movie should gotoandStop (3), else gotoAndPlay (2) where i place the actionscript gotoAndPlay (1), so that it continues to check if the width is already 500.
How can i do this?
Thanks,
Miguel Vera
View Replies !
View Related
GetProperty?
Hi
I'm working on a project where mostly all the elements are created at runtime. I have to create almost 30 empty movieclips and now I want to arrange them. Since each movie's size is different horizontally, I figured the easy way would be to get the width (in pixels) of the last clip created and then add 14 pixels as a spacer.
I read through the help files and it seems like getProperty can do this, but it doesn't work. I get no actionscript errors but my syntax must be incorrect. Below is an example of what I'm trying to do.
Ideally I would like to scale the clips automatically so I don't have to punch in the values, but all images laoding are different sizes, and all I know is they cannont be larger than 86 pixels high regardless of width. The scaling I have now has nothing to do with it, I am just shrinking the movieclpis because they are buttons with prototype tweens.
As the file progresses determining where to place each symbol on the _x may be more complicated so any advice will help. I know there must be a simpler way than what I'm doing.
HERE'S A CHUNK OF THE SCRIPT including my comments for the client
// This creates an empty movieclip symbol for the logo image
this.createEmptyMovieClip("logo2_mc", this.getNextHighestDepth());
// This specifies the absolute path of the logo image being loaded into the new movieclip
logo2_mc.loadMovie("http://www.blahblah.com/cfusion/blah/lala/horsehead.jpg");
// This sizes the movie clip
logo2_mc._height == 86
logo2_mc._width == 86
// This scales the movieclip
logo2_mc._xscale == 70
logo2_mc._yscale == 70
// This positions the movieclip by finding the width of the last movieclip and adding a spacing of an additional 14 pixels
logo2_mc._x == 14 + (getProperty(logo1_mc, _width))
logo2_mc._y == 0
View Replies !
View Related
If? Else? GetProperty?
Hi. I am using this code to align my main mc to the stage of my flash movie.
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
main_mc._y = Stage.height/2;
sizeListener = new Object();
sizeListener.onResize = function() {
main_mc._y = Stage.height/2;
};
Stage.addListener(sizeListener);
(this is for a website)
What I want is to detect when main_mc hits the top of the stage/browser window and make it not to go any further as the stage/browser window is made smaller. Did I get myself clear?
View Replies !
View Related
GetProperty() Help
When an external SWF file is loaded into a MovieClip, does the height of that MovieClip change based on the height of the imported SWF file?
If so, how can you get the height of the MovieClip?
This is what I have so far after the SWF has been loaded - but it doesn't seem to function.
clipHeight = getProperty(MovieclipName, _height);
trace (clipHeight);
I get 0 (zero) displayed in the output dialog box every time. What I am I overlooking? I am trying to establish the MovieClip height so that I can tell the MovieClip how far it can scroll up before stopping. I need the height of the MovieClip (actually the loaded SWF) to do that.
B.T.W. the height of the loaded SWF is never the same.
View Replies !
View Related
Problem With GetProperty
I have a clip that goes side to side different as i push a button.. i want in a special place , a clip to start depending on where an other clip is.. i use getproperty on the clip1(the one that slides)and do an if statement but it dosent work.... this code is in clip2:
onClipEvent (load) {
setProperty (clip2, _visible, 0);
if (clip1 = 115) { ///Is this right?????!!!!
setProperty (clip2, _visible, 100);
}
}
View Replies !
View Related
If Statements And Getproperty
Heres one for all you actionscripters...
I'm trying to make a dial rotate using tweens with different frames in a movie.
If you know what I mean.
Anyway I dont think my If statement is working - as i made it up. Is there anyone out there who can point out the flaws in my code?
on (release) {
getProperty (arrow, _currentframe );
if (_currentframe=10) {
tellTarget ("arrow") {
gotoAndPlay (11);
}
} else {
tellTarget ("arrow") {
gotoAndPlay (48);
}
}
}
Any ideas?
View Replies !
View Related
GetProperty Vs. DotSyntax
what's the difference between the following:
getProperty(scrollLine, _y)
and
scrollLine._y
I can't figure out when it's ok to just use dot syntax to access the value stored within a variable (or property, or array slot content) and when it's required that I use the getProperty() command.
Thanks!
View Replies !
View Related
GetProperty Between _levels - Possible, Or Not?
Hi
Does anyone know if it's possible for a button, located in an swf loaded on _level1, to get the name (or some other preset property) of a movie loaded on _level2, so that the button can load data (a jpg) specifically for that currently loaded swf.
Any help'd be greatly appreciated, 'cause I'm not sure where to start on this one.
(I'm using MX, BTW - if it matters)
View Replies !
View Related
GetProperty For _level..
Ok simple
this do not work,
getProperty (_root._level2, _x);
and this do not work
getProperty (_level2, _x);
and this do not work
getProperty (_parent._level2, _x);
from a "first child" MC,
anyone know what to do?
View Replies !
View Related
Getproperty Of Moving MC?
Hi!
I have a MoviClipSlide that moves back and forward i _x , depending on wich of several buttons u push. Se my code down below.
Id like to attach MoviClipText when MoviClipSlide has reach different _x values. For example when MoviClipSlide stops at _x == 200. Could u have like an emptymoviclip on the stage that checks the _x property of MoviClipSlide and then attaches the MoviClipText.
(MoviClipSlide)
onClipEvent (enterFrame) {
if (move == true) {
_x += (goal-_x)/3;
}
}
(button)
on (press) {
_root.Slide.move = true;
_root.Slide.goal = 200;
}
View Replies !
View Related
GetProperty(this._level)
Is there any way to find out which level a movieClip has been created on? I need to be able to have the level increment itself as more movie clips are dynamically created.... and I've tried this._level, this.getDepth and this._depth. Ideas?
View Replies !
View Related
GetProperty With A String
I'm having problem with this:
if (getProperty(_parent.loadUI.content, _totalframes) >0) {
trace("bla bla");
}
_parent.loadUI.content is a string-variable that contains the name of the movie clip to be inspected in quotes.
Does getProperty work with stings at all, or am I just too stupid ?
Latter is naturally the default assumption.
Many, many thanks in advance.
- Harry S
View Replies !
View Related
GetProperty Of A New LoadMovie
Hi everyone!
I'm trying to get the height of an swf that I'm loading into a movieclip so that I can turn the scrollbar off on a scrolling window when the content is too short:
...............................................
content.loadMovie("city/infoTextCity.swf");
if (content._height<255){
scroller._visible=0;
scrollerbg._visible=0;
}
...............................................
but it's returning a "0", the movieclips' original height.
Your help is appreciated.
Rob
View Replies !
View Related
This.Getproperty Or Something Else That Might Work.
Hi
How should i write this code if I want it to work when its loaded into another movie. Tried putting this. infront of alot of stuff.
A button:
on (press) {
xjustnu = GetProperty(/:listan,_x) ;
targetx = xjustnu+50;
}
Then I have a movieclip called actions and the first frame looks like this:
startx = GetProperty(/:listan,_x) ;
moved = /:targetx-startx;
setProperty(/:listan, _x, startx+(moved/9));
And when I load this movie into another stage it stops working. But if I just run it like it is without loading it into another movie/stage it works fine. Tried this.Getproperty and this.listan ,, nothing worked. please help me out.
View Replies !
View Related
GetProperty Problem
I'm making a gallery page for someone on a fully flash site. I originally drafted out the coding for the gallery in a separate .fla and it worked fine. Basically it just has a grid of thumbnails that ungrey if moused over and change size based on their proximity to the cursor. I then copied it over to the wrapper I had set up for the site (remaking everything and copy/pasting the script) and...nothing.
After some fiddling (yay trace!) I found that getProperty was returning undef.
below is the relevant code:
falloff=30;
trace(getProperty("b_2_2",_alpha));
for(i=0;i<5;i++)
{for(u=0;u<5;u++)
{dist=Math.sqrt(((getProperty("b_"+i+"_"+u+"",_x)-_xmouse)*(getProperty("b_"+i+"_"+u+"",_x)-_xmouse))+((getProperty("b_"+i+"_"+u+"",_y)-_ymouse)*(getProperty("b_"+i+"_"+u+"",_y)-_ymouse)));
if(100+100*(falloff/dist)>150)
{setProperty("b_"+i+"_"+u+"",_width,150);
setProperty("b_"+i+"_"+u+"",_height,112.5);}else if(100+100*(falloff/dist)<100)
{setProperty("b_"+i+"_"+u+"",_width,100);
setProperty("b_"+i+"_"+u+"",_height,75);}else{setProperty("b_"+i+"_"+u+"",_width,100+100*(fallof f/dist));
setProperty("b_"+i+"_"+u+"",_height,75+75*(falloff /dist));}}
}
It's sloppy, but it gets the job done, or at least would if it worked = ...
I've smacked it around a bunch but can't figure out why even when called straight up, with no variables getProperty won't work.
If anyone has any ideas I'd be in your debt...
EDIT: Todays lesson: use the preview button ALWAYS
View Replies !
View Related
GetProperty Not Working
this._parent.map.setsquare1._x=this._parent.map.sq uare._x;
location="this._parent.map.setsquare1”;
newx=this._parent.map.square._x;
setProperty(location,_x,newx);
i have an mc called setsquare, and a duplicate called setsquare1
the code in green works, but the code in red doesnt, in theory they mean exactly the same thing, it makes perfect sense but isnt working, any suggestions?
View Replies !
View Related
GetProperty Issues
Hi, I'm a newbie to Flash and this forum and am having a few problems referenceing the properties of one movie to another.
say we have two movies (movie1 and movie2) and this is the script for movie2:
Quote:
onClipEvent (load) {
this._y = getProperty(movie1, _y);
}
but nothing happens... any ideas?
I may even be barking up the wrong tree completely
Many thanks (in advance!)
View Replies !
View Related
Problem With GetProperty
This wont work:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_root.aaa._x--;
}
if (Key.isDown(Key.UP)) {
_root.aaa._y--;
}
if (Key.isDown(Key.RIGHT)) {
_root.aaa._x++;
}
if (Key.isDown(Key.DOWN)) {
_root.aaa._y++;
}
if (_root.aaa.hitTest(_root.walla)) {
_root.aaa._y=getProperty(_root.aaa,_y);
_root.aaa._x=getProperty(_root.aaa,_x);
}
View Replies !
View Related
Problem With Getproperty
if ((Key.isDown(key.RIGHT)) && (((getProperty(_root.mario,_currentframe)==3-37)==false))) {
_root.mario._x++;
_root.mario.gotoAndStop (1);
}
if ((Key.isDown(key.RIGHT)) && (((getProperty(_root.mario,_currentframe)==3-37)==true))) {
_root.mario._x++;
}
I want it when the mario movie clip is in the frames between 3 and 37 the movie clip doesn't go to frame one but is allowed to move right. When the frame is on 2 it should move to one. It doesn't work so can anyone help me with this please.
View Replies !
View Related
GetProperty / SetProperty
heya,
i have a scrolling map using get/setProperty functions. this works when i publish it for flash player6 but when i publish it as flash 7 or 8 the mapscrolling doesn't work. im having a tough time figuring this one out. anyone have any advice?
here are snippets of the code if it helps:
Code:
mover = getProperty("scrollingobject", _x);
Code:
mouseh = getProperty("/tracker", _x);
mousev = getProperty("/tracker", _y);
if (Number(mousev)>100 and Number(mousev)<300) {
movevalue = (Number(movevalue*_global.speed)+Number(((mouseh-320)/20)))/10;
setProperty("/alert", _visible, True);
} else {
setProperty("/alert", _visible, False);
}
Code:
mover = Number(mover)+Number(movevalue);
if (Number(mover)>1008) {
mover = 0;
}
if (Number(mover)<0) {
mover = 1008;
}
setProperty("/scrollingobject", _x, mover);
gotoAndPlay(20);
any ideas on what could make this flash 8 compatable?
thanks,
kris
View Replies !
View Related
GetProperty / SetProperty
what is wrong?
Code:
function mover(quien:MovieClip, desde:Number, hasta:Number, como,tiempo:Number):Void {
muevete = setProperty(quien, como, desde);
llego = Math.abs(hasta-getProperty(quien, como));
}
neo = _root.attachMovie("ball", "main", _root.getNextHighestDepth());
mover(neo,1000,200,_x,10);
View Replies !
View Related
GetProperty Allowables
To try solving another problem I've been playing with the getProperty function. I ran into an interesting issue. This line compiles:
var PVSForm = getProperty(_root.session.windowMgr[0], _x);
but this one doesn't:
var PVSForm = getProperty(_root.session.windowMgr[0], contentPath);
I attached my call to attachMovie. The question is, what properties are accessable through getProperty? Since _x and contentPath are both declared the same way, I assumed I could get to both, but apparently not.
Is there a list of runtime accessible properties available?
Attach Code
_root.application.EventDesktop.attachMovie
(
"GWWindowXP",
sInstanceName,
1,
{
title:"ESMS",
contentPath:"frmPublishVideoStream",
showStatusBar:true,
allowResize:true,
allowMinimize:true,
allowMaximize:true,
width:320,
height:540,
_x:0,
_y:42,
//dragBounds:dragBoundsWnd,
streamin:newStream,
wndid:sInstanceName
}
);
View Replies !
View Related
Help With XML Flash_proxy GetProperty
Greetngs,
I am trying to implement Danny Patterson's config settings class in an AS3.0 Flash CS3 project at http://www.communitymx.com/abstract.cfm?cid=976AD .
Each time that I request a parameter from the config xml, the override flash_proxy getProperty method returns all of the config.xml settings values. (See below).
Has anyone had better luck implementing this class than I have?
Regards,
Bill
// override method to return property value. data is the xml object.
override flash_proxy function getProperty(name:*):* {
var cs:Namespace = data.namespace("cs");
return data.cs::properties.cs::property.(@id = name).@value;
}
// request for value. __settings is the Settings class instance.
trace(__settings.serverName)
// xml file
<cs:settings xmlns:cs="
View Replies !
View Related
GetProperty On Imported Jpegs In Mx ?
Question about importing jpegs into mx...
I'm using loadMovie to import a jpeg into a target (placeholder) and then I'm attempting to use getProperty to ascertain the width and height of the imported jpeg. Problem is, it is only returning the width and height of the original placeholder mc.
Can someone please help me with the appropriate syntax for this action? Below is what I was trying that wasn't working...
loadMovie("import/pic.jpg", "placeholder");
width = getProperty(placeholder, _width);
height = getProperty(placeholder, _height);
Not sure if I should be using loadMovieNum instead... I've tried changing that using expert mode, but it keeps changing it back to loadMovie
thanks for any insight...
View Replies !
View Related
Can I GetProperty From Loaded Jpeg? Huh
is there a way to retrieve a property from a loaded jpeg...mainly its hieght and width and position ....
and then change that property
i know i can use the MC it loads into but that does not tell me the properties of the loaded image.
some insight would be muchly appreciated
View Replies !
View Related
Getproperty + Image _xscale
is it possible to get _xscale from an image on a website? Im trying to do something like this
a = getProperty("http://www.lineagecompendium.com/images/smooch/smooch00842.jpg", _xscale);
that doesnt work.. but is there a way to make something like that that will work? i need the _xscale to later set the x for the movie clip, so it will display the image correctly
View Replies !
View Related
Why Getproperty(_x) Is Not Geting The Pos Value Of Mc On This Code ?
on the .fla example attached you will find :
we have 3 Mc each one has squares diferents colors (red,blue,yellow)
we also have 3 boton colored (red,blue,yellow)
each movie clip has defined instance´s name´s for each movie clip .
1)at the begining red Mc comes from right to left until it positions it self in de middle of the screen.
2)the idea of the script is to recognize wich sqare is on screen; so if you press any other color boton then it will be capable to take it out and replace it (coming in from right to left) with the color choosen.
next code is logically supouse to do so ,, but is not !!!
if somebody please could find out why , or fixed the error and attached the .fla again it will help solve the problem that is already driving me knots .
code:
on (release) {
RedX = "getProperty(redPage,_x)";
BlueX = "getProperty(bluePage,_x)";
YellowX = "getProperty(yellowPage,_x)";
//gets the pos of all the squares(we only need the x coordinate)
if (YellowX<100.0) {
_root.yellowPage.gotoAndPlay(6);
if (blueX<100.0) {
_root.bluePage.gotoAndPlay(6);
//now it checks if any of the pages is on the screen and if the are sends them out
if (RedX<100) {
stop;
//if the red page is on stage nothing happens I would be stupid to have it go outand then come in again
_root.redPage.gotoAndPlay(2);
//and last sends the red page in if its not allready there
}
}
}
}
end code
View Replies !
View Related
How:GetProperty Of A Dynamic Target
Ok here's the code. The words Thumb is the prefix to the instance name of a duplicateed movieclip. CurrentThumb is the variable being loaded. I need to know how to evaluate them together to get the _x property of the Clip. Below is what I tried but it didn't work.
getProperty(("Thumb" +currentThumb), _x)
Any help is greatly appreciated.
View Replies !
View Related
|