(/^[A-Za-z0-9]{8,}$/) == -1
|| s.search(/[A-Z]/) == -1
|| s.search(/[0-9]/) == -1)
throw new Error(Invalid password!);
Manish
That's right. The browser will contact YouTube and Flickr directly to
load content from those websites. Only the SWF will be loaded from
your site.
On 6/5/09, steve horvath flexcod...@stevehorvath.com wrote:
I've got a SWF on my website that loads images and videos from another
domain. If a
});
funcs.push(functor.call);
}
for each (var f:Function in funcs) {
f();
}
Output:
0
1
2
3
4
Manish
=someContainer.addChild(new Component1()) /
You can also look at the states feature (AddChild).
Manish
On Wed, Jun 3, 2009 at 11:46 PM, Amy amyblankens...@bellsouth.net wrote:
--- In flexcoders@yahoogroups.com, Manish Jethani manish.jeth...@... wrote:
On Wed, Jun 3, 2009 at 10:26 PM, Manish Jethani
manish.jeth...@... wrote:
2009/6/3 j2me_soul j2me_s...@...:
override protected function
class. Why this is missing from this event? Do
I need to access it a different way?
Have you looked at the metadata property and the metadataReceived event?
Manish
ToolTipManager to display it), which you show and hide
in response to events from the slider.
Manish
place UIComponent and I can use addChild with
validator object?
StringValidator is not a visual component. Why are you trying to add
it using addChild()? You can just store it in an internal array (as
you're doing) and that should be it.
Manish
);
trace(s);
I've made it more strict in terms of how it matches stuff. But you
should be able to modify your original regexp just by appending a ?
to the .*.
Manish
://manishjethani.com/blog/why-the-superclasss-createchildren-should-be-called-last/
Manish
On Wed, Jun 3, 2009 at 10:26 PM, Manish Jethani
manish.jeth...@gmail.com wrote:
2009/6/3 j2me_soul j2me_s...@163.com:
override protected function measure():void{
this.explicitMinWidth = this.explicitMinHeight = 50;
}
}
Here you should set the meauredWidth, measuredHeight
=vs.selectedIndex = 1 label=1 /
/mx:VBox
mx:VBox id=vb2
mx:Button click=vs.selectedIndex = 0 label=2 height=600 /
/mx:VBox
/mx:ViewStack
/mx:Application
Manish
() will just capture the object as it would
appear on the screen. I don't believe that the IBitmapDrawable object
gets any sort of notification when it is being drawn. You can of
course notify it yourself so it can redraw itself a different way
before calling BitmapData.draw().
Manish
this works:
var ns:Namespace = xml.namespace();
trace(xml..ns::Fund[0].ns::Name);
But this won't work:
default xml namespace = xml.namespace();
trace(xml..Fund[0].Name);
I don't know how to explain that.
Manish
);
endFill();
}
Manish
2009/6/2 j2me_soul j2me_s...@163.com:
drawRect(0, 0, btn1.width + 20, btn1.height+ 20);
Is the 0,0 point is the ContentPoint of the btn1 ?
No, it's the top-left.
Manish
, so I get the benefit of framework
caching, but I just want to use TLF and not the rest of the Flex
framework. Is there an option to get a .swz for just TLF?
Manish
On Tue, Jun 2, 2009 at 12:51 AM, Gordon Smith gosm...@adobe.com wrote:
That's correct. FTE simply creates TextLines that display
of employer
time -- but who cares!).
Manish
On Tue, Jun 2, 2009 at 3:17 AM, luvfotography
ygro...@all-digital-links.com wrote:
Is this list declining? According to the number of posts, May stats were the
lowest since Jan 2006. It's been slowly declining since March 2008. Is this
because of better
Try putting a breakpoint in SystemManager's
installCompiledResourceBundles() function. That's where the resource
bundles are set up.
It's possible that your class is being loaded before the resource
bundles are set up, and that's why you're getting null.
Manish
On Tue, Jun 2, 2009 at 5:08 AM
this:
mx:HTTpService url=somethin.do?
Manish
://mydomain.com/;);
trace(lastXML.ns::ListFundsResult);
Or,
default xml namespace = new Namespace(http://mydomain.com/;);
trace(lastXML.ListFundsResult);
Manish
);
var textLine:TextLine = textBlock.createTextLine();
textLine.y = textLine.ascent;
addChild(textLine);
How do I make the text selectable and editable?
(Note: I'm not using the Text Layout Framework.)
Manish
just loop through these tasks in what can
be called the event loop and perform them little by little on each
iteration, at the same time processing user events as well. So you
continue to get your mouse and keyboard events while the data is still
downloading.
Manish
updateDisplayList according to these rules.
Manish
purpose , both
required a mouse Clk before they dispached.
I thought you'd get 'activate' when the player got focus. You could
try setting the focus back to Flash through JavaScript (I don't
remember how to do this now). You should be getting a focus event on
the HTML/JS side at least.
Manish
that though in all but the rarest cases. It makes the code messy.
Manish
not the popups that's the problem, it's the fact that you're not
listening for the event on the popup object itself.
If you did this:
popup.addEventListener(...)
... it would work, without bubbles set to true.
Manish
the text entered assigned to the Bindable character string
userName, however it is not. What's the proper way to do this?
mx:String id=userName{myName.text}/mx:String
MXML rules.
Manish
= new Date(Date.parse(s));
trace(d);
Manish
of the SystemManager, so you could maybe work your way up to the
SystemManager get the URL parameters from there.
preloader.parent.loaderInfo.parameters.myParameter.
Manish
correctly ?
[...]
Why are you calling writeObject() in the case of the URLLoader? You
should call writeBytes() instead. writeObject() is for objects, not
raw bytes
Manish
(value:String):void
{
if (label.text != value) {
label.text = value;
invalidateDisplayList();
}
}
override protected function updateDisplayList(...):void
{
// do the effect here if necessary
}
Manish
--
www.manishjethani.com
own. For instance, you'll have to remove any event listeners or
any other references to objects inside your SWF on your own.
I had made an API for this for my entire application.
http://tech.groups.yahoo.com/group/apollocoders/message/2766
Manish
--
www.manishjethani.com
I think normally if changing property1 also calls for a change in
property2, that change should happen in the setter for property1. Then
both properties get committed in commitProperties()
If your situation is special and you can't follow that pattern, you
can try a callLater() on
., is supported. Maybe somebody from the Flex
team can throw some light on this.
I would use callLater() to dispatch that event.
My $0.02.
Manish
with the autoPlay property set to false. Then you call
load() on the next one in the queue while the current one is playing.
When the current one finishes, you swap the new one in place and call
play() on it (and load the next one).
Manish
On Thu, May 28, 2009 at 1:38 AM, Dharmendra Chauhan
chauhan_i...@yahoo.com wrote:
Please , suggest some alternative for EnterFrame event which gets fired on
set focus event.
activate?
Manish
definitions in a class.
Here's the order:
1. Private properties
2. Protected properties
3. Public properties
4. Public methods
5. Protected methods
6. Private methods
Manish
of AddSourceCommand
each time, instead of have it called through an event?
Manish
/
but the error shows: no .../src/app1/common/asfile.as found.
That would be the absolute path on your disk.
For instance:
mx:Script source=/Users/manish/Code/test/test_script.as /
Manish
, shiftKey, ctrlKey, transition);
}
}
2. Use this class as the dropdown in the ComboBox.
mx:ComboBox id=cb prompt=-- select -- dataProvider={['1', '2', '3']}
dropdownFactory={new ClassFactory(MyList)} /
Tada!
Manish
--
www.manishjethani.com
) before you send
it to the parse function.
Manish
your task
manager to see if there are any running in the background.
The command-line debugger (fdb) listens for the player to connect on
port 7935. So on OS X you could run this command to see if another
instance is already listening:
lsof -i | grep 7935
Output:
java 5408 manish
nf:NumberFormatter = new NumberFormatter();
nf.decimalSeparatorFrom = ,;
nf.thousandsSeparatorFrom = .;
nf.decimalSeparatorTo = .;
nf.thousandsSeparatorTo = ;
var s:String = nf.format(1.234,56);
trace(s);
var f:Number = parseFloat(s);
trace(f);
Manish
of that.
Manish
://www.mail-archive.com/flexcoders@yahoogroups.com/msg80560.html
Manish
://manishjethani.com/blog/2008/07/31/using-weak-references-in-actionscript-3/
You can see for instance the EffectManager class in the Flex 3
framework uses a Dictionary object to store references to effects.
Manish
object. If you resize the content,
you might get the new values from the Loader, but the original values
will be available in the LoaderInfo.
Manish
-- so you'll see fewer and fewer sites using Flash just for
charts as time goes by.
Manish
--
Manish Jethani
www.manishjethani.com
to have that.
Manish
On Sun, Mar 15, 2009 at 2:15 AM, wubac1 wub...@gmail.com wrote:
Manish,
The javascript-based data grid components don't compare from a usability
standpoint (i.e. pagination by button vs. scroll bar). The Google Reader
makes an interesting attempt at a scrollable data grid
assigning it.
var i:int = 10;
var n:Number = i;
If you're coming straight from a C/C++ background, there's a lot
you'll need to unlearn before you start to get a hang of ActionScript
3. But it's basically in the same family of languages, so you should
have no trouble.
Manish
On Thu, Mar 12, 2009
your question? In that case, it'll be nice if
you could explain with some sample code what you're trying to achieve.
Manish
--
Manish Jethani
http://manishjethani.com
to access the internal array.
You can also get a reference to the child using the getChildAt method.
this.getChildAt(0).someArray
Manish
/07/31/using-weak-references-in-actionscript-3/
Manish
2009/1/17 Sefi Ninio sefi.ni...@gmail.com:
It is better to write messages in english, if you want them answered...
FYI: That is spam, or at least of no relevance to flexcoders.
Manish
2009/1/17 p...@vin Uttarwar pravinuttar...@gmail.com
एकदा अत्रे नदिवर नहात होते .
तेथे कपडे धुनार्या बाई
this with the sample you posted,
you'll see that you get the desired behavior.
DataGrid minWidth=1 ... /
Manish
with a single one:
trace(.replace(//g, \\));
Note: You have to escape them in string and regexp literals.
Manish
--
Visit me at manishjethani.com
they have a crossdomain.xml that won't allow your app.
http://quote.yahoo.com/crossdomain.xml
Manish
--
Manish Jethani
mx:Blog source=/dev/random ...
manishjethani.com
On Wed, Jan 14, 2009 at 10:53 PM, Nate Pearson napearso...@yahoo.com wrote:
Ahhh! No way to get around that?
Proxy the calls through your own web service (hosted on your own domain).
Manish
--
Manish Jethani
mx:Blog source=/dev/random ...
manishjethani.com
Mouse.hide. If you skipped that, you would end up
with a composite cursor.
Maybe CursorManager should have an option for this.
Manish
--
Manish Jethani
mx:Blog source=/dev/random ...
manishjethani.com
or more letters, numbers, or spaces (any combination
of those). Since a double-quote or a comma do not fall in any of these
categories (letters, numbers, or spaces), they won't be matched.
Is that what you're looking for?
Manish
--
http://manishjethani.com
\,\title\:\hello\;
var a:Array = s.match(/[^]*:([^,]*)/g);
trace(a[0]);
trace(a[1]);
var s1:String = s.replace(/[^]*:([^,]*),?/g, $1\n);
trace(s1);
Manish
--
http://manishjethani.com
(MyEvent.MY_EVENT, ...));
And your handler, myEventHandler, will be able to handle it perfectly
well. Isn't that what you're looking for?
Manish
--
http://manishjethani.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files
, and such). But
sometimes that's just what you need. The Flex framework, for instance,
uses include statements to include common style metadata into various
components.
Manish
give you is the DataGrid source code itself -- look
into that.
Manish
--
http://manishjethani.com
never fires (the custom event *is* set to bubble)
To add to Josh's response, I would say the best way to do this is to
listen on the object itself.
obj = new MyClass();
obj.addEventListener(...);
The events don't have to be bubbling then.
Manish
mx:Button label=b1 moveEffect=Move /
mx:Button label=b2 moveEffect=Move /
mx:Button label=b3 moveEffect=Move /
mx:Button label=b4 moveEffect=Move /
/mx:VBox
/mx:Application
Manish
--
http://manishjethani.com
application-wide, by making it a singleton, for instance, or by making
it a property of the main application. It seems you're already doing
something to that effect -- dispatching off the main application
object.
Manish
to accommodate all the
columns.
Manish
--
http://manishjethani.com
this be achieved?
You have to add a listener for each event type separately.
obj.addEventListener(foo, commonHandler);
obj.addEventListener(bar, commonHandler);
obj.addEventListener(baz, commonHandler);
...
There's no shortcut way to listen for all events from an object.
Manish
On Mon, Jan 12, 2009 at 11:09 AM, vinod kumar coolvinu1...@ymail.com wrote:
I want an urgent help. From metadata information i got the frame rate as 15.
So between every second i want to display the values 1 to 15 using timer.
You can listen for the enterFrame event and do it there.
Manish
access a property or method of a null object
reference.
You have to use .logo (as opposed to logo) in your call to
getStyleDeclaration.
Manish
--
http://manishjethani.com
if not in the constructor). So if you
want to check if you're on the stage yet, just check for the stage
property.
onStage = (stage != null);
Manish
--
http://manishjethani.com
of your ancestors, you usually
want to use a weak reference (the last parameter to addEventListener).
That's because your parent doesn't know you're listening on it, so
when you've been removed and discarded, you'll still be around
because of the event listener.
Manish
it,
it no longer notifies it of the event.
Manish
, for
now, here's a workaround:
Tree ... dragDrop=callLater(doWorkaround) ... /
function doWorkaround() {
var e = new CollectionEvent(collectionChange);
e.kind = update;
myXMLListCollection.dispatchEvent(e);
}
See if that works.
This ought to be logged in the Flex bugbase.
Manish
On Tue, Jan 6, 2009 at 10:27 PM, Manish Jethani
manish.jeth...@gmail.com wrote:
function doWorkaround() {
var e = new CollectionEvent(collectionChange);
e.kind = update;
Hey, I meant:
e.kind = reset;
That'll refresh everything.
myXMLListCollection.dispatchEvent(e);
}
Manish
of a good way to get rid of the ellipses? I see
that the IUITextField in Button does have truncateToFit but I'm not
aware of a good way to get at it. (Could reflection be used?)
It's in mx.core.UITextField.
I don't think you can get rid of it easily or at all.
Manish
;
return noVowels.charAt(Math.round(Math.random() *
(noVowels.length - 1)));
}
return noVowels.charAt(Math.floor(Math.random() * (noVowels.length)));
This gives a fair chance to all letters. With Math.round, B and Z were
being slightly discriminated against.
Manish
. You can
load the SWF when you need one of the classes. So a component that is
shared between multiple modules could be part of an RSL. (For what
it's worth, the Flex framework is also available as an RSL.)
Manish
mxmlc to compile the files but how can i see the parameters passed to
mxmlc through flex builder.
I'm not a big Flex Builder user, but I'm guessing it picks up its
settings from one of them flex-config.xml files.
Manish
the hand cursor
conditionally you'll have to do what you're thinking: switch cursors
on roll over and roll out.
Manish
of your
Applciation points to a Button instance you create somewhere, you'll
have to null out that reference.
someContainer.removeChild(myButton);
myButton = null;
Manish
On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000
markgoldin_2...@yahoo.com wrote:
I dont really have a name (myButton). Objects are added to a
container at run-time.
while (container.numChildren 1)
container.removeChildAt(0);
Or you can use removeAllChildren
Manish
On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
markgoldin_2...@yahoo.com wrote:
removeAllChildren
Yes, that's what I use but I dont see objects being completely
destroyed.
Define destroyed.
Surely you see them go away?
Manish
'initialize'. It's hard to say without knowing more about
the sort of initialization you're doing here.
Manish
On Sat, Jan 3, 2009 at 5:00 AM, Luis Francisco Hernández Sánchez
luispac...@hotmail.com wrote:
Hi, I want to start sending messages to others. Thanks.
You have succeeded.
Manish
, but normally in a
situation like this I would use an interface. You would end up with a
ContactProxy that wraps the ContactVO, and both implement the
IContactVO interface.
And if that's overkill, maybe just refer to the ContactVO directly:
__model.contact = __model.myAC[i].object;
Manish
by the TabNavigator, and then there's the initialize
and creationComplete events dispatched by the individual child
containers.
Manish
--
http://manishjethani.com/
Code Snippet
[snip]
Do you want to display each key as an item? You'll have to convert the
hash map object into an array.
Manish
and NumericStepper objects up to
the HBox?
Manish
. But you might have performance concerns here depending
on how many different categories you have ... so think about that.
If you must generate the views dynamically every time a tab is
selected, then I think the change event is the way to go.
Manish
=flash.events.Event)]
/mx:Metadata
...
Manish
the module in AS3 with a simple Loader and see
if you still get the problem.
loader = new Loader();
loader.contentLoaderInfo.addEventListener(complete, completeHandler);
loader.load(...);
In the completeHandler function, check that loader.contentLoaderInfo
is not null.
Manish
--
http
it's also deprecated. Here's what I suggest:
/* in your item editor */
public function get myCustomProperty():Object
{
var item:Object = selectedItem;
if (item == null)
return null;
return item.data;
}
DataGridColumn editorDataField=myCustomProperty ... /
Manish
is
more than just a TabBar + ViewStack. There's the focus
management/handling which you get for free.
Manish
into the source code of this library and thought it
looked promising:
http://blog.generalrelativity.org/?p=29
You should be able to split your CRC32 computation into chunks quite
easily, either with this library, or with something more basic using
just a simple Timer.
Manish
--
http://manishjethani.com
(both the methods you're trying). I suspect it's
something to do with the loaded SWF itself. What happens if you call
gotoAndPlay() on the MovieClip object (mc)?
Manish
\projects\framework\src\m
x\modules\ModuleManager.as:717]
So it looks like contentLoaderInfo is null ... which is, like,
impossible. What does event.target point to? You can check that with a
breakpoint. It should be pointing to the contentLoaderInfo itself.
Manish
in a sophisticated way. It's doable. Essentially what
you're looking for is a cross between a MenuBar and a ToggleButtonBar,
so I would draw inspiration from those two components.
Manish
--
http://manishjethani.com/
1 - 100 of 1302 matches
Mail list logo