ah sumly cool. Thanks for showing off. I love it.
On Wed, Jun 3, 2009 at 3:52 PM, Robert Leisle wrote:
> Here's another version:
>
> var str:String = "http://www.yourDomain.com/dir1/dir2/dir3/preloader.swf";;
> var intFirst:int = str.indexOf(".com/") +5;
> var intLast:int = str.lastIndexOf("/"
Here's another version:
var str:String = "http://www.yourDomain.com/dir1/dir2/dir3/preloader.swf";;
var intFirst:int = str.indexOf(".com/") +5;
var intLast:int = str.lastIndexOf("/")+1;
var intPathLen:int = intLast - intFirst;
//
var serverName:String = str.substr( 0, intFirst );
var director
Thanks for the replies. I'll be looking into both.
kind of been playing around with this as well:
str = _url;
slash = str.lastIndexOf("/");
str = str.substring(slash+1, str.length);
dot = str.lastIndexOf(".");
filename = str.substring(0, dot);
directoryLocation = _url.split(filename + ".swf").joi
I have several buttons which create some windows based on a movie
clip that exports for actioncript.
Everything is ok, with the creation, but when it comes to close them
( I have a button in the window itself that
can remove the child), I will trying to do it using actionscript.
if (stage.
Hi Maurice,
How about sending it in as a URL variable when you load preloader.swf into
the html page?
In the HTML:
...
Then in preloader.swf:
var ojtParams:Object = this.loaderInfo.parameters;
var swfPath:String = ojtParams.path;
hth,
Bob
-Original Message
Hi Maurice,
Check out the "base" attribute for the object / embed tag (you can also
define it with SwfObject and similar scripts for embedding swfs):
base - . or *[base directory]* or *[URL]*. Specifies the base directory or
URL used to resolve all relative path statements in the Flash Player mo
Hello!
First time on here, so thanks for any advice.
I'm pulling in a preloader.swf file into an html file that sits at root
"swf/preloader.swf". All my swf's are located in a swf directory that gets
preloaded into this preloader.swf - simple enough. I'd like to try to keep
my server as clean as
My guess is that if it's iterating through a loop to load, I would
imagine that the loader objects are being lost in the loop by getting
de-referenced and are getting garbage collected. If this is what's
happening, you would probably have to put your loader objects in a stack
or array so they d
Without looking through your code:
* For alignment of the thumbnail container, you could be waiting
until after everything has loaded inside before asking it to
change it's y position.
* For the thumbs not loading properly, that could be caused by your
load order... Your dow
Hi Glen, I did as you said and this is the result of the first
part:clip is [object MainTimeline] name root1 how can I rename the
object?True is I don't know how.
I tried using :
var newWindow:AboutUsWindow = new AboutUsWindow();
newWindow.name = "newWindow";
but it returns nothing, I onl
I would love to see what's going on, as it sounds crazy; yet, your site
isn't coming up for me.
Isaac Alves wrote:
Hello fellowcoders,
I've been experiencing some problems with an application I've made with AS3.
It consists of an image gallery which loads images dynamically from an XML
file.
Hi,
Sorry, I am a little confused - I may have looked at your question wrong...
Your error says
"1120: Access of undefined property contactWindow"
etc.
Where is "contactWindow" created - if you have no variable called
contactWindow in the scope of your removerChild function, it will
complain
Hi Glen, the problem is not the creation of the window(which is movie
clip exported to actionscript), is to removing then in a function.
Regards,
Gustavo
On Jun 3, 2009, at 11:04 AM, Glen Pike wrote:
function click(e:MouseEvent):void{var newWindow:AboutUsWindow = new
AboutUsWindow()://??addCh
Hello fellowcoders,
I've been experiencing some problems with an application I've made with AS3.
It consists of an image gallery which loads images dynamically from an XML
file.
Maybe you'd want to skip my explanations and go directly to the problem in
the bottom of this message.
Since it's my fi
function click(e:MouseEvent):void{
var newWindow:AboutUsWindow = new AboutUsWindow():
//??
addChild(newWindow)
}
Gustavo Duenas wrote:
Hi Matt I did as you sent me, but something wrong happened this is the
warning flash gave me:
1120: Access of undefined property contactWindow.
and so on with
Hi Matt I did as you sent me, but something wrong happened this is
the warning flash gave me:
1120: Access of undefined property contactWindow.
and so on with the other parts of the code , code is:
function removerChild():void{
if(stage.contains(contactWindow)){
stag
could be good - thanks a lot Karl
On Wed, Jun 3, 2009 at 12:37 PM, Karl DeSaulniers wrote:
> Well you could take a look at marjnivessers (prob didnt spell that right)
> ImageLoader. That class smooths a loaded image. But the one I have is as2.
> Try googling ImageLoader and see if he has an as3 v
Well you could take a look at marjnivessers (prob didnt spell that
right) ImageLoader. That class smooths a loaded image. But the one I
have is as2. Try googling ImageLoader and see if he has an as3
version. If anything, you could get the logistics from it and apply.
HTH
Karl
Sent from los
Hey guys
I'm having a problem with using smoothing on my loaded bitmap images with
AS3 and I was wondering if you could help, please?
Here is my code:
[code]
private function sendImageLoadEvent(e:Event):void
{
var nCurImg:Number = _arImageArray.length;
19 matches
Mail list logo