Re: [Flashcoders] Fwd: Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Craig Stanford

Will give it a shot, thanks heaps :)

On 6/2/06, Grant Cox <[EMAIL PROTECTED]> wrote:


Perhaps it's the Flash security settings then.  I personally find flash
security to be a grey area, but things to check would be:

- That you have a crossdomain.xml file on your server, allowing flash
files to load data from that domain
- That your local flash security settings (from

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html#117502
) have "Always Allow" ticked, and you add "c:\" to your "trusted
locations".

Hope that helps.

Regards,
Grant Cox


Craig Stanford wrote:
> Yeah all the files are in the same folder. Its strange cos it works fine
> when published inside Flash, but when I try and run it stand alone, or
> in a
> browser i get nothing.
>
> On 6/2/06, Grant Cox <[EMAIL PROTECTED]> wrote:
>>
>> Are all files in the same folder?  When it reports that the file cannot
>> be found, it should give a path in the trace statement - make sure this
>> is where the file actually is.  The load call will be from the location
>> of the holder movie, not the ticker.swf.
>>
>> Regards,
>> Grant Cox
>>
>>
>> Craig Stanford wrote:
>> > still need some help with this please. I am depserate!
>> >
>> > Cheers
>> > Craig.
>> > 
>> >
>> > Hi everyone,
>> >
>> > I have 2 swfs, and I want to load them both into one holder movie. Im
>> > loading them in as follows:
>> >
>> > tickerHolder.loadMovie("ticker.swf");
>> > clockHolder.loadMovie("clock.swf");
>> >
>> > The ticker.swf uses a text file. The file works fine by itself, but
as
>> > soon
>> > as I load it into the holder movie, it tells me that the text file
>> > couldnt
>> > be loaded.
>> >
>> > Any help would be greatly appreciated.
>> >
>> > Cheers,
>> > Craig.
>> > ___
>> > Flashcoders@chattyfig.figleaf.com
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >
>> > Brought to you by Fig Leaf Software
>> > Premier Authorized Adobe Consulting and Training
>> > http://www.figleaf.com
>> > http://training.figleaf.com
>> >
>> >
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Fwd: Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Craig Stanford

Yeah all the files are in the same folder. Its strange cos it works fine
when published inside Flash, but when I try and run it stand alone, or in a
browser i get nothing.

On 6/2/06, Grant Cox <[EMAIL PROTECTED]> wrote:


Are all files in the same folder?  When it reports that the file cannot
be found, it should give a path in the trace statement - make sure this
is where the file actually is.  The load call will be from the location
of the holder movie, not the ticker.swf.

Regards,
Grant Cox


Craig Stanford wrote:
> still need some help with this please. I am depserate!
>
> Cheers
> Craig.
> 
>
> Hi everyone,
>
> I have 2 swfs, and I want to load them both into one holder movie. Im
> loading them in as follows:
>
> tickerHolder.loadMovie("ticker.swf");
> clockHolder.loadMovie("clock.swf");
>
> The ticker.swf uses a text file. The file works fine by itself, but as
> soon
> as I load it into the holder movie, it tells me that the text file
> couldnt
> be loaded.
>
> Any help would be greatly appreciated.
>
> Cheers,
> Craig.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Fwd: Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Craig Stanford

still need some help with this please. I am depserate!

Cheers
Craig.


Hi everyone,

I have 2 swfs, and I want to load them both into one holder movie. Im
loading them in as follows:

tickerHolder.loadMovie("ticker.swf");
clockHolder.loadMovie("clock.swf");

The ticker.swf uses a text file. The file works fine by itself, but as soon
as I load it into the holder movie, it tells me that the text file couldnt
be loaded.

Any help would be greatly appreciated.

Cheers,
Craig.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Loading Text files into swfs then loading swfs into other swfs...

2006-06-01 Thread Craig Stanford

Hi everyone,

I have 2 swfs, and I want to load them both into one holder movie. Im
loading them in as follows:

tickerHolder.loadMovie("ticker.swf");
clockHolder.loadMovie("clock.swf");

The ticker.swf uses a text file. The file works fine by itself, but as soon
as I load it into the holder movie, it tells me that the text file couldnt
be loaded.

Any help would be greatly appreciated.

Cheers,
Craig.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HELP STILL NEEDED, PLEASE!

2006-05-24 Thread Craig Stanford

HI Loren,

You can do it the cheap and nasty way, which I like to employ as often as
possible :)

Simpy put a stop(); frame on the frame on the main timeline where the swf is
loaded, and at the end of your loaded swf put the action _parent.play();

This means that the main timeline is stopped, whilst your movie loads in and
plays. Then when the loaded swf gets to the end of its timeline, it tells
the main timeline (its parent) to play.

Hope that helps!

Cheers,
Craig.

On 5/24/06, Loren R. Elks <[EMAIL PROTECTED]> wrote:



Folks:

I still need help on this.  I know there are some really, really smart
folks on this list (smarter than me).  Can you please help me?

I am beginning to work with screens and slides.  I understand how to
load external swfs into my slides or screens.

Here's the question:  How do I write code such that when my external swf
that is loaded into the current slide or screen finishes playing, the
application will automatically move to the next slide (or another slide
or screen)?



Sincerely,

Loren
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford

Actually its all good, some security issue in the browser itself.

Thankyou very much!

Craig.

On 5/23/06, Craig Stanford <[EMAIL PROTECTED]> wrote:



Hi guys,

Thanks for your fast responses.

Ramon, your solution worked and I can see the values of the URL inside the
onRelease function when i trace it, however a browser wont launch when i
click the button. Im not sure why. Any suggestions?


<>
function buildNav():Void {
var dropDownValue:Number = 0;
for (var i:Number = 0; i<_root.numberOfItems; i++) {
//attach the nav Item
trace("done iteration "+i);
navContainer.attachMovie("navItem", "navItem"+i, i);
trace("navItem"+i+" has been attached");
//position the nav Item
navContainer["navItem"+i]._y = dropDownValue;
dropDownValue += 15;
navContainer["navItem"+i]._x = navContainer["navItem"+i]._x;
//assign the title
navContainer["navItem"+i].navItemText =
_root.contentItems[i].navItemText;
//var thisURL = _root.contentItems[i].jobUrl;
navContainer["navItem"+i].__n = i;

navContainer["navItem"+i].onRelease = function() {

trace(_root.contentItems[this.__n].jobUrl);
<-THIS WORKS
getURL(_root.contentItems[this.__n].jobUrl,
"_blank");   <-THIS DOESNT
};
}
}

Cheers,
Craig.


On 5/23/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:
>
> Try tracing the _root.contentItems[1].jobUrl in the different steps of
> the program: when you create it, before you enter the onRelease
> defining part, etc.  The problem must lie in referencing it.
>
> Note, however, that this code won't work (look at part 1):
> http://pastebin.com/732422
>
> You'll need to save the "i" on the button itself so it can remember
> (look at part 2)
> http://pastebin.com/732422
>
> On 5/23/06, Craig Stanford <[EMAIL PROTECTED]> wrote:
> > Hello Everyone,
> >
> > I am experiencing a strange issue when I am trying to do an onRelease
> in the
> > following code. All it does is cycle through the items in an XML file,
> then
> > assign the data to labels, buttons etc. Everything works fine until I
> try to
> > assign the URL. Even when I try to trace it out inside the onRelease
> > function it gives undefined. Is this a flash issue or is there
> something
> > here I am missing?
> >
> > Any help is much appreciated.
> >
> > <>
> >
> > function buildNav():Void {
> > var dropDownValue:Number = 0;
> > for (var i:Number = 0; i<_root.numberOfItems; i++) {
> > //attach the nav Item
> > trace("done iteration "+i);
> > navContainer.attachMovie ("navItem", "navItem"+i, i);
> > trace("navItem"+i+" has been attached");
> > //position the nav Item
> > navContainer["navItem"+i]._y = dropDownValue;
> > dropDownValue += 15;
> > navContainer["navItem"+i]._x = navContainer["navItem"+i]._x;
> > //assign the title
> > navContainer["navItem"+i].navItemText =
> > _root.contentItems[i].navItemText;
> > //var thisURL = _root.contentItems[i].jobUrl;
> > navContainer["navItem"+i].onRelease = function() {
> > getURL(_root.contentItems[1].jobUrl, "_blank");
> > trace(_root.contentItems[1].jobUrl);
> > };
> > }
> > }
> >
> > Cheers,
> > Craig.
>
> --
> Ramon Miguel M. Tayag
> Managing Director
> Quirkworks
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford

Hi guys,

Thanks for your fast responses.

Ramon, your solution worked and I can see the values of the URL inside the
onRelease function when i trace it, however a browser wont launch when i
click the button. Im not sure why. Any suggestions?

<>
function buildNav():Void {
   var dropDownValue:Number = 0;
   for (var i:Number = 0; i<_root.numberOfItems; i++) {
   //attach the nav Item
   trace("done iteration "+i);
   navContainer.attachMovie("navItem", "navItem"+i, i);
   trace("navItem"+i+" has been attached");
   //position the nav Item
   navContainer["navItem"+i]._y = dropDownValue;
   dropDownValue += 15;
   navContainer["navItem"+i]._x = navContainer["navItem"+i]._x;
   //assign the title
   navContainer["navItem"+i].navItemText =
_root.contentItems[i].navItemText;
   //var thisURL = _root.contentItems[i].jobUrl;
   navContainer["navItem"+i].__n = i;
   navContainer["navItem"+i].onRelease = function() {

trace(_root.contentItems[this.__n].jobUrl);
<-THIS WORKS
   getURL(_root.contentItems[this.__n].jobUrl, "_blank");
<-THIS DOESNT
   };
   }
}

Cheers,
Craig.

On 5/23/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:


Try tracing the _root.contentItems[1].jobUrl in the different steps of
the program: when you create it, before you enter the onRelease
defining part, etc.  The problem must lie in referencing it.

Note, however, that this code won't work (look at part 1):
http://pastebin.com/732422

You'll need to save the "i" on the button itself so it can remember
(look at part 2)
http://pastebin.com/732422

On 5/23/06, Craig Stanford <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I am experiencing a strange issue when I am trying to do an onRelease in
the
> following code. All it does is cycle through the items in an XML file,
then
> assign the data to labels, buttons etc. Everything works fine until I
try to
> assign the URL. Even when I try to trace it out inside the onRelease
> function it gives undefined. Is this a flash issue or is there something
> here I am missing?
>
> Any help is much appreciated.
>
> <>
>
> function buildNav():Void {
> var dropDownValue:Number = 0;
> for (var i:Number = 0; i<_root.numberOfItems; i++) {
> //attach the nav Item
> trace("done iteration "+i);
> navContainer.attachMovie("navItem", "navItem"+i, i);
> trace("navItem"+i+" has been attached");
> //position the nav Item
> navContainer["navItem"+i]._y = dropDownValue;
> dropDownValue += 15;
> navContainer["navItem"+i]._x = navContainer["navItem"+i]._x;
> //assign the title
> navContainer["navItem"+i].navItemText =
> _root.contentItems[i].navItemText;
> //var thisURL = _root.contentItems[i].jobUrl;
> navContainer["navItem"+i].onRelease = function() {
> getURL(_root.contentItems[1].jobUrl, "_blank");
> trace(_root.contentItems[1].jobUrl);
> };
> }
> }
>
> Cheers,
> Craig.

--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Issue with movieClip.onRelease

2006-05-22 Thread Craig Stanford

Hello Everyone,

I am experiencing a strange issue when I am trying to do an onRelease in the
following code. All it does is cycle through the items in an XML file, then
assign the data to labels, buttons etc. Everything works fine until I try to
assign the URL. Even when I try to trace it out inside the onRelease
function it gives undefined. Is this a flash issue or is there something
here I am missing?

Any help is much appreciated.

<>

function buildNav():Void {
   var dropDownValue:Number = 0;
   for (var i:Number = 0; i<_root.numberOfItems; i++) {
   //attach the nav Item
   trace("done iteration "+i);
   navContainer.attachMovie("navItem", "navItem"+i, i);
   trace("navItem"+i+" has been attached");
   //position the nav Item
   navContainer["navItem"+i]._y = dropDownValue;
   dropDownValue += 15;
   navContainer["navItem"+i]._x = navContainer["navItem"+i]._x;
   //assign the title
   navContainer["navItem"+i].navItemText =
_root.contentItems[i].navItemText;
   //var thisURL = _root.contentItems[i].jobUrl;
   navContainer["navItem"+i].onRelease = function() {
   getURL(_root.contentItems[1].jobUrl, "_blank");
   trace(_root.contentItems[1].jobUrl);
   };
   }
}

Cheers,
Craig.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com