Re: [Flashcoders] Retrieving URL params gets truncate in ActionScript2

2008-05-21 Thread ACE Flash
nice. one more question.
can I convert the string back in Flash? I need to use getURL to launch the
link and want to see the real web address :)

thanks

On Tue, May 20, 2008 at 3:54 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 The problem seems to be in what Javascript is sending to the swf.

 Try url encoding the link with the escape function in JS.

 Something like:

 'flashvars':escape('link=
 http://www.google.com?test=1test2=2test3=3test4=4')


 Cheers
 Juan Pablo Califano

 2008/5/20, ACE Flash [EMAIL PROTECTED]:
 
  Hey there,
  I was trying to figure out how to handle this in Action Script 2, the url
  link string gets truncate and stops at test=1. It's weird, is there any
  limitation for handle this in AS2?
 
  Thanks
 
  === action script in test.swf ==
  // reads url links from FlashVars in HTML code
  var theLink:String = _root.link;
 
  // now I get http://www.google.com?test=1
  http://www.google.com/?test=1test2=2test3=3test4=4
  ONLY
  getURL(theLink, _blank);
 
 
  = embedding code in HTML=
 
 var FO = {
  movie:'http://www.google.com/test.swf,
  width:'100',
  height:'200',
  majorversion:'8',
  build:'0',
  name:'sidebarFlash',
  id:'sidebarFlash',
  'flashvars':'link=
 http://www.google.com?test=1test2=2test3=3test4=4
  http://www.google.com/?test=1test2=2test3=3test4=4
  '
 };
 UFO.create(FO, 'sidebar');
  ===
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] as2: loading font with external swf

2008-05-21 Thread Allandt
Hi

I'm trying to use an external swf to load a font for use within another swf
but I'm having problems - i suspect the problem is that the swf with the
font in is loading after the swf that is calling it

could you take a look at the object for me please?

in the flash movie:
import com.SharedFontLibrary;
var shared_font_library:String;
if (!shared_font_library) shared_font_library = shared_fonts.swf; // if
the containing webpage doesn't pass shared_font_library to this movie
new SharedFontLibrary(shared_font_library);

object:
class com.SharedFontLibrary extends MovieClip {

// Private Properties
private var mcFontContainer:MovieClip;
private var mclFontLoader:MovieClipLoader;
private var objLoaderListener:Object;
private var sPath:String;

// Constructor
public function SharedFontLibrary(path:String) {
trace (NakheelSharedFontLibrary loaded);

sPath = path;

mcFontContainer = _root.createEmptyMovieClip(mcFontContainer, 10);

objLoaderListener = new Object();
objLoaderListener.onLoadComplete = function(target_mc:MovieClip):Void {
trace(objLoaderListener.onLoadComplete);
};
objLoaderListener.onLoadError = function(target_mc:MovieClip,
errorCode:String, httpStatus:Number):Void {
trace( objLoaderListener.onLoadError());
trace( ==);
trace( errorCode:  + errorCode);
trace( httpStatus:  + httpStatus);
};

mclFontLoader = new MovieClipLoader();
mclFontLoader.addListener(objLoaderListener);
mclFontLoader.loadClip(sPath, mcFontContainer);

}

// Private Methods


// Public Methods


}

if it is a timing issue, does anyone know a way around this?

thanks a lot
a


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] very easy question

2008-05-21 Thread Jesse Graupmann
http://www.kirupa.com/forum/showthread.php?p=1910480

Jonathan mentioned this before... you're goal isn't to set your text to
display what the loader is. Your goal is to display the content that is
loaded. In order to do that, you need to listen to the load event and get
the data out of there.

loader.addEventListener(Event.COMPLETE, stuffLoaded);
function stuffLoaded(event:Event):void 
{
var myStuff = loader.data;
//...
}


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Tuesday, May 20, 2008 1:09 PM
To: Flash Coders List
Subject: Re: [Flashcoders] very easy question

ok, when I trace this instead of the text it shows [target.object]
it is a html xml formatted page, it is supposed to show in other way  
right?


regards,

guatvo
On May 20, 2008, at 3:48 PM, Eduardo Omine wrote:

 Try this:

 var loader:URLLoader = new URLLoader();
 loader.load(new
 URLRequest(http://leftandrightsolutions.com/txt/whoweare.txt;));

 -- 
 Eduardo Omine
 http://blog.omine.net/
 http://www.omine.net/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flex charting and canceling

2008-05-21 Thread Ricky Bacon
My Google-fu is failing me here.  I'm trying to cancel tool tips on a 
scatter plot using the Flex charting components.  When there are a 
cluster of items, I only want the first tool tip window to display 
instead of all of them.  Attempts like:


private function _chartItemRollOverHandler(event:ChartItemEvent):void {
if(event.hitSet.length  1) {
for(var i:int = 1; i  event.hitSet.length; ++i) {
var hitData:HitData = event.hitSet[i] as HitData;
hitData.chartItem.itemRenderer.visible  = false;
}
}
}

Have been unsuccessful.  Any suggestions on where I should look?

thanks

-Ricky
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] does most browsers support e4x?

2008-05-21 Thread ACE Flash
hey there,
I heard about some browsers doesn't support e4x? is that true? if so, is
there any info to show me the list?

I would like to get the confirmation before coding them in e4x. :)


thank you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] does most browsers support e4x?

2008-05-21 Thread Merrill, Jason
Is this a Flash question? 


Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of ACE Flash
Sent: Wednesday, May 21, 2008 5:00 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] does most browsers support e4x?

hey there,
I heard about some browsers doesn't support e4x? is that 
true? if so, is there any info to show me the list?

I would like to get the confirmation before coding them in e4x. :)


thank you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] does most browsers support e4x?

2008-05-21 Thread Dave Watts
 I heard about some browsers doesn't support e4x? is that 
 true? if so, is there any info to show me the list?

I don't think any browsers support E4X. Flash Player 9 does, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] does most browsers support e4x?

2008-05-21 Thread Wagner Amaral
On Wednesday 21 May 2008 19:15:35 Dave Watts wrote:
  I heard about some browsers doesn't support e4x? is that
  true? if so, is there any info to show me the list?

 I don't think any browsers support E4X. Flash Player 9 does, though.

I believe Firefox 1.5+ supports E4X through the SpiderMonkey JavaScript 
engine. Not sure about other browsers.
I've never tried this, though. Just read today, coincidently.

Oh, and you need to change the script tag to something like this:
script type=text/javascript; e4x=1 ... /script
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders